...
 
Commits (9)
#!/usr/bin/env python3
import sys, os
from pathlib import Path
output_fd = sys.stdout.buffer.fileno()
for fname in sys.argv[1:]:
inputf = Path(fname)
with inputf.open('rb') as f:
while os.sendfile(output_fd, f.fileno(), None, 1 << 30) != 0:
pass
valaccode_sources = [
'valaccodeassignment.vala',
'valaccodebinaryexpression.vala',
'valaccodeblock.vala',
'valaccodebreakstatement.vala',
'valaccodecasestatement.vala',
'valaccodecastexpression.vala',
'valaccodecommaexpression.vala',
'valaccodecomment.vala',
'valaccodeconditionalexpression.vala',
'valaccodeconstant.vala',
'valaccodecontinuestatement.vala',
'valaccodedeclaration.vala',
'valaccodedeclarator.vala',
'valaccodedostatement.vala',
'valaccodeelementaccess.vala',
'valaccodeemptystatement.vala',
'valaccodeenum.vala',
'valaccodeenumvalue.vala',
'valaccodeexpressionstatement.vala',
'valaccodeexpression.vala',
'valaccodefeaturetestmacro.vala',
'valaccodefile.vala',
'valaccodeforstatement.vala',
'valaccodefragment.vala',
'valaccodefunctioncall.vala',
'valaccodefunctiondeclarator.vala',
'valaccodefunction.vala',
'valaccodeggnucsection.vala',
'valaccodegotostatement.vala',
'valaccodeidentifier.vala',
'valaccodeifsection.vala',
'valaccodeifstatement.vala',
'valaccodeincludedirective.vala',
'valaccodeinitializerlist.vala',
'valaccodeinvalidexpression.vala',
'valaccodelabel.vala',
'valaccodelinedirective.vala',
'valaccodemacroreplacement.vala',
'valaccodememberaccess.vala',
'valaccodemodifiers.vala',
'valaccodenewline.vala',
'valaccodenode.vala',
'valaccodeoncesection.vala',
'valaccodeparameter.vala',
'valaccodeparenthesizedexpression.vala',
'valaccodereturnstatement.vala',
'valaccodestatement.vala',
'valaccodestruct.vala',
'valaccodeswitchstatement.vala',
'valaccodetypedefinition.vala',
'valaccodeunaryexpression.vala',
'valaccodevariabledeclarator.vala',
'valaccodewhilestatement.vala',
'valaccodewriter.vala'
]
valaccode_lib = static_library(
'valaccode',
valaccode_sources,
dependencies: [gobject_dep, valagee_dep, valacore_dep],
install: false,
vala_args: ['--use-header'],
vala_header: 'valaccode.h',
vala_vapi: 'valaccode.vapi',
)
valaccode_dep = declare_dependency(
link_with: [valaccode_lib],
dependencies: [valagee_dep],
include_directories: include_directories('.'),
)
valacodegen_sources = [
'valaccode.vala',
'valaccodearraymodule.vala',
'valaccodeassignmentmodule.vala',
'valaccodeattribute.vala',
'valaccodebasemodule.vala',
'valaccodecompiler.vala',
'valaccodecontrolflowmodule.vala',
'valaccodedelegatemodule.vala',
'valaccodememberaccessmodule.vala',
'valaccodemethodcallmodule.vala',
'valaccodemethodmodule.vala',
'valaccodestructmodule.vala',
'valaclassregisterfunction.vala',
'valactype.vala',
'valaenumregisterfunction.vala',
'valagasyncmodule.vala',
'valagdbusclientmodule.vala',
'valagdbusmodule.vala',
'valagdbusservermodule.vala',
'valagerrormodule.vala',
'valagirwriter.vala',
'valagobjectmodule.vala',
'valagsignalmodule.vala',
'valagtkmodule.vala',
'valagtypemodule.vala',
'valagvariantmodule.vala',
'valainterfaceregisterfunction.vala',
'valastructregisterfunction.vala',
'valatyperegisterfunction.vala'
]
valacodegen_lib = shared_library(
'valacodegen',
valacodegen_sources,
dependencies: [gobject_dep, valacore_dep, valaccode_dep],
install_rpath: pkglibdir,
install_dir: pkglibdir,
install: [ true, false, false ],
vala_args: ['--use-header'],
vala_header: 'valacodegen.h',
vala_vapi: 'valacodegen.vapi',
)
valacodegen_dep = declare_dependency(
link_with: [valacodegen_lib],
dependencies: [valacore_dep, valaccode_dep],
include_directories: include_directories('.'),
)
valac_sources = [
'valacompiler.vala'
]
valac_name = 'valac@0@'.format(vala_version_suffix)
valac_exe = executable(
valac_name,
valac_sources,
dependencies: [glib_dep, valacodegen_dep],
install: true,
)
vala_name = 'vala@0@'.format(vala_version_suffix)
# https://github.com/mesonbuild/meson/issues/1602
meson.add_install_script('sh', '-c', 'cd $DESTDIR@0@; ln -fs --relative @1@ valac'.format(join_paths(get_option('prefix'), get_option('bindir')), valac_name))
meson.add_install_script('sh', '-c', 'cd $DESTDIR@0@; ln -fs --relative @1@ @2@'.format(join_paths(get_option('prefix'), get_option('bindir')), valac_name, vala_name))
meson.add_install_script('sh', '-c', 'cd $DESTDIR@0@; ln -fs --relative @1@ vala'.format(join_paths(get_option('prefix'), get_option('bindir')), valac_name))
/* Name of package */
#mesondefine PACKAGE
/* Define to the address where bug reports for this package should be sent. */
#mesondefine PACKAGE_BUGREPORT
#mesondefine PACKAGE_DATADIR
/* Define to the full name of this package. */
#mesondefine PACKAGE_NAME
/* Define to the full name and version of this package. */
#mesondefine PACKAGE_STRING
/* Define to the suffix of this package */
#mesondefine PACKAGE_SUFFIX
/* Define to the one symbol short name of this package. */
#mesondefine PACKAGE_TARNAME
/* Define to the home page for this package. */
#mesondefine PACKAGE_URL
/* Define to the version of this package. */
#mesondefine PACKAGE_VERSION
/* Version number of package */
#mesondefine VERSION
install_man(['vala-gen-introspect.1', 'valac.1', 'valadoc.1', 'vapigen.1'])
# https://github.com/mesonbuild/meson/issues/1602
meson.add_install_script('sh', '-c', 'cd $DESTDIR@0@/man1; ln -fs --relative vala-gen-introspect.1.gz @1@'.format(join_paths(get_option('prefix'), get_option('mandir')), 'vala-gen-introspect@0@.1.gz'.format(vala_version_suffix)))
meson.add_install_script('sh', '-c', 'cd $DESTDIR@0@/man1; ln -fs --relative valac.1.gz @1@'.format(join_paths(get_option('prefix'), get_option('mandir')), 'valac@0@.1.gz'.format(vala_version_suffix)))
meson.add_install_script('sh', '-c', 'cd $DESTDIR@0@/man1; ln -fs --relative valadoc.1.gz @1@'.format(join_paths(get_option('prefix'), get_option('mandir')), 'valadoc@0@.1.gz'.format(vala_version_suffix)))
meson.add_install_script('sh', '-c', 'cd $DESTDIR@0@/man1; ln -fs --relative vapigen.1.gz @1@'.format(join_paths(get_option('prefix'), get_option('mandir')), 'vapigen@0@.1.gz'.format(vala_version_suffix)))
valagee_sources = [
'arraylist.vala',
'collection.vala',
'hashmap.vala',
'hashset.vala',
'iterable.vala',
'iterator.vala',
'list.vala',
'mapiterator.vala',
'map.vala',
'set.vala',
'timsort.vala'
]
valagee_lib = static_library(
'valagee',
valagee_sources,
dependencies: [gobject_dep],
install: [ false, true, false ],
install_dir: [
false,
join_paths (get_option('includedir'), 'vala@0@'.format (vala_version_suffix)),
false
],
vala_args: ['--use-header'],
vala_header: 'valagee.h',
vala_vapi: 'gee.vapi',
)
valagee_dep = declare_dependency(
link_with: [valagee_lib],
include_directories: include_directories('.', '..'),
)
gidl_sources = [
'gidlmodule.c',
'gidlnode.c',
'gidlparser.c',
'gmetadata.c',
]
gidl_lib = static_library('gidl',
gidl_sources,
dependencies: [gobject_dep, gmodule_dep])
gidl_dep = declare_dependency(
link_with: [gidl_lib],
include_directories: include_directories('.'),
)
flex = find_program('flex')
bison = find_program('bison')
lgen = generator(flex,
output: '@PLAINNAME@.c',
arguments: ['-o', '@OUTPUT@', '@INPUT@'])
lfiles = lgen.process('scannerlexer.l')
pgen = generator(bison,
output: ['@BASENAME@.c', '@BASENAME@.h'],
arguments: ['@INPUT@', '--defines=@OUTPUT1@', '--output=@OUTPUT0@'],
)
pfiles = pgen.process('scannerparser.y')
gen_introspect_sources = [
'gidlwriter.c',
'scanner.c',
lfiles,
pfiles,
]
gen_introspect_name = 'gen-introspect@0@'.format(vala_version_suffix)
executable(gen_introspect_name,
gen_introspect_sources,
install: true,
install_dir: pkglibdir,
dependencies: [gobject_dep, gmodule_dep, gidl_dep],
)
libvaladoc_sources = [
'doclet.vala',
'errorreporter.vala',
'filehelper.vala',
'moduleloader.vala',
'settings.vala',
'markupwriter.vala',
'gtkdocmarkupwriter.vala',
'devhelp-markupwriter.vala',
'ctyperesolver.vala',
'gtkdocrenderer.vala',
'gvc-compat.c',
'documentation/commentscanner.vala',
'documentation/documentation.vala',
'documentation/documentationparser.vala',
'documentation/wiki.vala',
'documentation/wikiscanner.vala',
'documentation/gtkdoccommentparser.vala',
'documentation/gtkdoccommentscanner.vala',
'documentation/gtkdocmarkdownparser.vala',
'documentation/gtkdocmarkdownscanner.vala',
'documentation/importerhelper.vala',
'documentation/girmetadata.vala',
'importer/documentationimporter.vala',
'importer/valadocdocumentationimporter.vala',
'importer/valadocdocumentationimporterscanner.vala',
'importer/girdocumentationimporter.vala',
'importer/internalidregistrar.vala',
'api/sourcecomment.vala',
'api/girsourcecomment.vala',
'api/attribute.vala',
'api/array.vala',
'api/callable.vala',
'api/childsymbolregistrar.vala',
'api/class.vala',
'api/constant.vala',
'api/delegate.vala',
'api/enum.vala',
'api/enumvalue.vala',
'api/errorcode.vala',
'api/errordomain.vala',
'api/field.vala',
'api/formalparameter.vala',
'api/interface.vala',
'api/item.vala',
'api/method.vala',
'api/namespace.vala',
'api/node.vala',
'api/nodetype.vala',
'api/ownership.vala',
'api/package.vala',
'api/pointer.vala',
'api/property.vala',
'api/propertyaccessor.vala',
'api/signal.vala',
'api/signaturebuilder.vala',
'api/sourcefile.vala',
'api/struct.vala',
'api/symbol.vala',
'api/tree.vala',
'api/typeparameter.vala',
'api/typereference.vala',
'api/typesymbol.vala',
'api/visitor.vala',
'api/driver.vala',
'content/block.vala',
'content/blockcontent.vala',
'content/comment.vala',
'content/contentfactory.vala',
'content/contentelement.vala',
'content/contentrenderer.vala',
'content/contentvisitor.vala',
'content/embedded.vala',
'content/headline.vala',
'content/inline.vala',
'content/inlinetaglet.vala',
'content/inlinecontent.vala',
'content/wikilink.vala',
'content/link.vala',
'content/list.vala',
'content/listitem.vala',
'content/page.vala',
'content/paragraph.vala',
'content/warning.vala',
'content/note.vala',
'content/resourcelocator.vala',
'content/run.vala',
'content/sourcecode.vala',
'content/styleattributes.vala',
'content/symbollink.vala',
'content/table.vala',
'content/tablecell.vala',
'content/tablerow.vala',
'content/taglet.vala',
'content/text.vala',
'charts/chart.vala',
'charts/chartfactory.vala',
'charts/hierarchychart.vala',
'charts/simplechartfactory.vala',
'parser/manyrule.vala',
'parser/oneofrule.vala',
'parser/optionalrule.vala',
'parser/parser.vala',
'parser/parsercallback.vala',
'parser/rule.vala',
'parser/scanner.vala',
'parser/sequencerule.vala',
'parser/stubrule.vala',
'parser/token.vala',
'parser/tokentype.vala',
'taglets/tagletdeprecated.vala',
'taglets/tagletinheritdoc.vala',
'taglets/tagletinit.vala',
'taglets/tagletlink.vala',
'taglets/tagletparam.vala',
'taglets/tagletreturn.vala',
'taglets/tagletsee.vala',
'taglets/tagletsince.vala',
'taglets/tagletthrows.vala',
'highlighter/scanner.vala',
'highlighter/codescanner.vala',
'highlighter/xmlscanner.vala',
'highlighter/codetoken.vala',
'highlighter/highlighter.vala',
'html/basicdoclet.vala',
'html/htmlchartfactory.vala',
'html/linkhelper.vala',
'html/cssclassresolver.vala',
'html/htmlmarkupwriter.vala',
'html/htmlrenderer.vala',
]
libvaladoc_lib = shared_library(
'valadoc@0@'.format(vala_version_suffix),
libvaladoc_sources,
dependencies: [gmodule_dep, valacore_dep, valacodegen_dep, libgvc_dep],
soversion: '0.0.0',
install: true,
install_dir: [
true,
join_paths (get_option('includedir'), 'valadoc@0@'.format (vala_version_suffix)),
true
],
c_args: ['-DPACKAGE_VALADOC_LIBDIR="@0@"'.format(join_paths(get_option('prefix'), get_option('libdir'), 'valadoc'))],
vala_args: ['--use-header'],
vala_header: 'valadoc.h',
vala_vapi: 'valadoc@0@.vapi'.format(vala_version_suffix),
)
libvaladoc_dep = declare_dependency(link_with: [libvaladoc_lib], dependencies: [gmodule_dep, valacore_dep, libgvc_dep], include_directories: include_directories('.'))
configure_file(input: 'valadoc.deps.in', output: 'valadoc@0@.deps'.format(vala_version_suffix), configuration: pkgconf)
configure_file(
input: 'valadoc.pc.in',
output: 'valadoc@0@.pc'.format(vala_version_suffix),
configuration: pkgconf,
install_dir: pkg_install_dir,
)
project('vala',
'c', 'vala',
version: '0.43.90',
meson_version: '>= 0.44',
license: 'LGPL2.1'
)
vala_version = meson.project_version()
version_array = vala_version.split('.')
vala_api_version = '0.44'
vala_version_suffix = '-@0@'.format(vala_api_version)
# Minimal required version for an initial build
vala_version_required = '0.16.1'
vala = meson.get_compiler('vala')
if not vala.version().version_compare('>= @0@'.format(vala_version_required))
error('valac >= @0@ required!'.format(vala_version_required))
endif
if not vala.version().version_compare('>= @0@'.format(vala_version))
warning('Proper bootstrap build with valac >= @0@ is required!!!'.format(vala_version))
endif
pkgdatadir = join_paths(get_option('prefix'), get_option('datadir'), 'vala@0@'.format(vala_version_suffix))
pkglibdir = join_paths(get_option('prefix'), get_option('libdir'), 'vala@0@'.format(vala_version_suffix))
conf = configuration_data()
conf.set_quoted('PACKAGE', meson.project_name())
conf.set_quoted('PACKAGE_BUGREPORT', 'https://gitlab.gnome.org/GNOME/vala/issues')
conf.set_quoted('PACKAGE_DATADIR', pkgdatadir)
conf.set_quoted('PACKAGE_NAME', meson.project_name())
conf.set_quoted('PACKAGE_STRING', '@0@ @1@'.format(meson.project_name(), vala_version))
conf.set_quoted('PACKAGE_SUFFIX', vala_version_suffix)
conf.set_quoted('PACKAGE_TARNAME', meson.project_name())
conf.set_quoted('PACKAGE_URL', 'https://wiki.gnome.org/Projects/Vala')
conf.set_quoted('PACKAGE_VERSION', vala_version)
conf.set_quoted('VERSION', vala_version)
conf.set_quoted('API_VERSION', vala_api_version)
conf.set_quoted('BUILD_VERSION', vala_version)
configure_file(input: 'config.h.meson', output: 'config.h', configuration: conf)
vcs_tag(input: 'version.h.meson', output: 'version.h')
pkgconf = configuration_data()
pkgconf.set('prefix', get_option('prefix'))
pkgconf.set('exec_prefix', '${prefix}')
pkgconf.set('libdir', '${prefix}/@0@'.format(get_option('libdir')))
pkgconf.set('bindir', '${exec_prefix}/@0@'.format(get_option('bindir')))
pkgconf.set('datarootdir', '${prefix}/@0@'.format(get_option('datadir')))
pkgconf.set('datadir', '${datarootdir}')
pkgconf.set('includedir', '${prefix}/@0@'.format(get_option('includedir')))
pkgconf.set('pkgdatadir', '${datarootdir}/vala@0@'.format(vala_version_suffix))
pkgconf.set('pkglibdir', '${exec_prefix}/@0@'.format(get_option('libdir'), 'vala@0@'.format(vala_version_suffix)))
pkgconf.set('PACKAGE_SUFFIX', vala_version_suffix)
pkgconf.set('VERSION', vala_version)
pkg_install_dir = '@0@/pkgconfig'.format(get_option('libdir'))
configure_file(
input: 'libvala.pc.in',
output: 'libvala@0@.pc'.format(vala_version_suffix),
configuration: pkgconf,
install_dir: pkg_install_dir
)
versionconf = configuration_data()
versionconf.set('VALA_MAJOR_VERSION', version_array[0])
versionconf.set('VALA_MINOR_VERSION', version_array[1])
versionconf.set('VALA_MICRO_VERSION', version_array[2])
versionconf.set('API_VERSION', vala_api_version)
versionconf.set('PACKAGE_VERSION', vala_version)
add_project_arguments([
'--disable-version-header',
'--vapidir', join_paths(meson.source_root(), 'vapi'),
'--pkg', 'config',
],
language: 'vala'
)
if vala.version().version_compare('>= 0.25.1')
add_project_arguments(['--hide-internal'], language: 'vala')
endif
if vala.version().version_compare('>= 0.39.6')
add_project_arguments(['--abi-stability'], language: 'vala')
endif
add_project_arguments([
'-Wno-discarded-qualifiers',
'-Wno-incompatible-pointer-types',
'-Wno-unused',
'-DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_40',
'-DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_40',
],
language: 'c',
)
glib_version_required = '2.40.0'
libgvc_version_required = '2.16'
glib_dep = dependency('glib-2.0', version: '>= @0@'.format(glib_version_required))
gobject_dep = dependency('gobject-2.0', version: '>= @0@'.format(glib_version_required))
gmodule_dep = dependency('gmodule-2.0', version: '>= @0@'.format(glib_version_required))
libgvc_dep = dependency('libgvc', version: '>= @0@'.format(libgvc_version_required))
# Check for CGraph support of libgvc
cc = meson.get_compiler('c')
if cc.run('''#include <gvc.h>
int main(void) {
#ifdef WITH_CGRAPH
return 0;
#else
return -1;
#endif
}''',
dependencies: libgvc_dep).returncode() == 0
add_project_arguments('-D', 'WITH_CGRAPH', language: 'vala')
endif
subdir('gobject-introspection')
subdir('gee')
subdir('vala')
subdir('ccode')
subdir('codegen')
subdir('compiler')
subdir('vapigen')
subdir('libvaladoc')
subdir('valadoc')
subdir('vapi')
subdir('doc')
subdir('tests')
install_data('vala.m4', install_dir: join_paths('share', 'aclocal'))
pycat = find_program(join_paths(meson.source_root(), 'build-aux', 'meson', 'cat.py'))
#custom_target(
# 'libvala@0@.vapi'.format(vala_version_suffix),
# command: [pycat, '@INPUT@'],
# depends: [valagee_lib, valacore_lib],
# capture: true,
# install: true,
# install_dir: join_paths('share', 'vala', 'vapi'),
# input: [
# join_paths(meson.current_build_dir(), 'gee', 'gee.vapi'),
# join_paths(meson.current_build_dir(), 'vala', 'vala.vapi'),
# ],
# output: 'libvala@0@.vapi'.format(vala_version_suffix),
#)
This diff is collapsed.
#!/usr/bin/env python3
import sys, os, re
from pathlib import Path
if len(sys.argv) != 3:
print("Wrong amount of parameters.")
inputf = Path(sys.argv[1])
outputf = Path(sys.argv[2])
with inputf.open('r') as ifile:
with outputf.open('w') as ofile:
if not ifile.readline().strip() == "Invalid Code":
ifile.seek(0)
lines = ifile.readlines()
ofile.writelines(lines)
#!/bin/sh
cd "${DESTDIR}/${MESON_INSTALL_PREFIX}/mydir"
ln -s -f "${DESTDIR}/${MESON_INSTALL_PREFIX}/mydir"
touch "${DESTDIR}/${MESON_INSTALL_PREFIX}/mydir/file.dat"
install-exec-hook:
cd $(DESTDIR)$(bindir) && $(LN_S) -f vapigen@PACKAGE_SUFFIX@$(EXEEXT) vapigen$(EXEEXT)
cd $(DESTDIR)$(bindir) && $(LN_S) -f vapicheck@PACKAGE_SUFFIX@$(EXEEXT) vapicheck$(EXEEXT)
install-data-hook:
cd $(DESTDIR)$(pkgconfigdir) && $(LN_S) -f vapigen@PACKAGE_SUFFIX@.pc vapigen.pc
valacore_sources = [
'valaaddressofexpression.vala',
'valaarraycopymethod.vala',
'valaarraycreationexpression.vala',
'valaarraylengthfield.vala',
'valaarraymovemethod.vala',
'valaarrayresizemethod.vala',
'valaarraytype.vala',
'valaassignment.vala',
'valaattribute.vala',
'valabaseaccess.vala',
'valabasicblock.vala',
'valabinaryexpression.vala',
'valablock.vala',
'valabooleanliteral.vala',
'valabooleantype.vala',
'valabreakstatement.vala',
'valacallable.vala',
'valacallabletype.vala',
'valacastexpression.vala',
'valacatchclause.vala',
'valacharacterliteral.vala',
'valaclasstype.vala',
'valaclass.vala',
'valacodecontext.vala',
'valacodegenerator.vala',
'valacodenode.vala',
'valacodevisitor.vala',
'valacodewriter.vala',
'valacomment.vala',
'valaconditionalexpression.vala',
'valaconstant.vala',
'valaconstructor.vala',
'valacontinuestatement.vala',
'valacreationmethod.vala',
'valadatatype.vala',
'valadeclarationstatement.vala',
'valadelegatetype.vala',
'valadelegate.vala',
'valadeletestatement.vala',
'valadestructor.vala',
'valadostatement.vala',
'valadynamicmethod.vala',
'valadynamicproperty.vala',
'valadynamicsignal.vala',
'valaelementaccess.vala',
'valaemptystatement.vala',
'valaenum.vala',
'valaenumvaluetype.vala',
'valaenumvalue.vala',
'valaerrorcode.vala',
'valaerrordomain.vala',
'valaerrortype.vala',
'valaexpressionstatement.vala',
'valaexpression.vala',
'valafieldprototype.vala',
'valafield.vala',
'valafloatingtype.vala',
'valaflowanalyzer.vala',
'valaforeachstatement.vala',
'valaforstatement.vala',
'valagenerictype.vala',
'valagenieparser.vala',
'valageniescanner.vala',
'valagenietokentype.vala',
'valagircomment.vala',
'valagirparser.vala',
'valaifstatement.vala',
'valainitializerlist.vala',
'valaintegerliteral.vala',
'valaintegertype.vala',
'valainterfacetype.vala',
'valainterface.vala',
'valainvalidtype.vala',
'valalambdaexpression.vala',
'valaliteral.vala',
'valalocalvariable.vala',
'valalockable.vala',
'valalockstatement.vala',
'valaloop.vala',
'valamarkupreader.vala',
'valamemberaccess.vala',
'valamemberinitializer.vala',
'valamethodcall.vala',
'valamethodtype.vala',
'valamethod.vala',
'valanamedargument.vala',
'valanamespace.vala',
'valanullliteral.vala',
'valanulltype.vala',
'valaobjectcreationexpression.vala',
'valaobjecttypesymbol.vala',
'valaobjecttype.vala',
'valaparameter.vala',
'valaparser.vala',
'valaphifunction.vala',
'valapointerindirection.vala',
'valapointertype.vala',
'valapostfixexpression.vala',
'valaprofile.vala',
'valapropertyaccessor.vala',
'valaproperty.vala',
'valapropertyprototype.vala',
'valarealliteral.vala',
'valareferencetransferexpression.vala',
'valareferencetype.vala',
'valaregexliteral.vala',
'valareport.vala',
'valareturnstatement.vala',
'valascanner.vala',
'valascope.vala',
'valasemanticanalyzer.vala',
'valasignaltype.vala',
'valasignal.vala',
'valasizeofexpression.vala',
'valasliceexpression.vala',
'valasourcefile.vala',
'valasourcelocation.vala',
'valasourcereference.vala',
'valastatementlist.vala',
'valastatement.vala',
'valastringliteral.vala',
'valastruct.vala',
'valastructvaluetype.vala',
'valasubroutine.vala',
'valaswitchlabel.vala',
'valaswitchsection.vala',
'valaswitchstatement.vala',
'valasymbolresolver.vala',
'valasymbol.vala',
'valatargetvalue.vala',
'valatemplate.vala',
'valathrowstatement.vala',
'valatokentype.vala',
'valatrystatement.vala',
'valatuple.vala',
'valatypecheck.vala',
'valatypeofexpression.vala',
'valatypeparameter.vala',
'valatypesymbol.vala',
'valaunaryexpression.vala',
'valaunlockstatement.vala',
'valaunresolvedsymbol.vala',
'valaunresolvedtype.vala',
'valausedattr.vala',
'valausingdirective.vala',
'valavaluetype.vala',
'valavariable.vala',
'valaversionattribute.vala',
'valavoidtype.vala',
'valawhilestatement.vala',
'valayieldstatement.vala',
]
valaversion_source = configure_file(
input: 'valaversion.vala.in',
output: 'valaversion.vala',
configuration: versionconf,
)
valacore_lib = shared_library(
'vala@0@'.format(vala_version_suffix),
valacore_sources,
valaversion_source,
dependencies: [gobject_dep, gmodule_dep, valagee_dep],
soversion: '0.0.0',
install: true,
vala_args: ['--use-header'],
vala_header: 'vala.h',
vala_vapi: 'vala.vapi',
install_dir: [
true,
join_paths (get_option('includedir'), 'vala@0@'.format (vala_version_suffix)),
false
],
)
valacore_dep = declare_dependency(
link_with: [valacore_lib],
dependencies: [valagee_dep],
include_directories: include_directories('.', '..'),
)
doclet_devhelp_sources = [
'doclet.vala',
]
shared_module(
'doclet',
doclet_devhelp_sources,
dependencies: [gobject_dep, libvaladoc_dep],
install: true,
install_dir: join_paths(get_option('libdir'), 'valadoc', 'doclets', 'devhelp'),
)
doclet_gtkdoc_sources = [
'commentconverter.vala',
'dbus.vala',
'doclet.vala',
'gcomment.vala',
'generator.vala',
'utils.vala',
]
shared_module(
'doclet',
doclet_gtkdoc_sources,
dependencies: [gobject_dep, libvaladoc_dep],
install: true,
install_dir: join_paths (get_option('libdir'), 'valadoc', 'doclets', 'gtkdoc'),
)
doclet_html_sources = [
'doclet.vala',
]
shared_module(
'doclet',
doclet_html_sources,
dependencies: [gobject_dep, libvaladoc_dep],
install: true,
install_dir: join_paths (get_option('libdir'), 'valadoc', 'doclets', 'html'),
c_args: ['-DPACKAGE_VALADOC_ICONDIR="@0@"'.format(join_paths(get_option('prefix'), get_option('datadir'), 'valadoc', 'icons'))],
)
# FIXME clashing shared_module targetnames
#subdir('devhelp')
#subdir('gtkdoc')
subdir('html')
install_data([
'abstractclass.png',
'abstractmethod.png',
'abstractproperty.png',
'class.png',
'coll_close.png',
'coll_open.png',
'constant.png',
'constructor.png',
'delegate.png',
'devhelpstyle.css',
'enum.png',
'enumvalue.png',
'errorcode.png',
'errordomain.png',
'field.png',
'interface.png',
'method.png',
'namespace.png',
'package.png',
'packages.png',
'property.png',
'scripts.js',
'signal.png',
'staticmethod.png',
'struct.png',
'style.css',
'tip.png',
'virtualmethod.png',
'virtualproperty.png',
'warning.png',
'wikistyle.css',
],
install_dir: join_paths('share', 'valadoc', 'icons'),
)
valadoc_sources = [
'driver.vala',
'girwriter.vala',
'initializerbuilder.vala',
'symbolresolver.vala',
'treebuilder.vala',
'valadoc.vala',
]
valadoc_name = 'valadoc@0@'.format(vala_version_suffix)
executable(
valadoc_name,
valadoc_sources,
dependencies: [gobject_dep, valacodegen_dep, libvaladoc_dep],
install: true,
)
# https://github.com/mesonbuild/meson/issues/1602
meson.add_install_script('sh', '-c', 'cd $DESTDIR@0@; ln -fs --relative @1@ valadoc'.format(join_paths(get_option('prefix'), get_option('bindir')), valadoc_name))
subdir('doclets')
subdir('icons')
......@@ -282,7 +282,6 @@ GIDL_BINDINGS = \
gconf-2.0 \
gdk-2.0 \
gdk-x11-2.0 \
gdk-x11-3.0 \
gdl-1.0 \
gio-unix-2.0 \
gnome-desktop-2.0 \
......
......@@ -24,6 +24,8 @@ namespace GLib {
public bool get_show_in (string desktop_env);
public unowned string get_startup_wm_class ();
public unowned string get_string (string key);
[CCode (array_length_type = "gsize")]
public string[] get_string_list (string key);
public bool has_key (string key);
public void launch_action (string action_name, GLib.AppLaunchContext launch_context);
public bool launch_uris_as_manager (GLib.List<string> uris, GLib.AppLaunchContext? launch_context, GLib.SpawnFlags spawn_flags, GLib.SpawnChildSetupFunc? user_setup = null, GLib.DesktopAppLaunchCallback? pid_callback = null) throws GLib.Error;
......
......@@ -1131,6 +1131,8 @@ namespace Gst {
public bool can_monitor ();
public class unowned string? class_get_metadata (string key);
public void device_add (Gst.Device device);
[Version (since = "1.16")]
public void device_changed (Gst.Device device, Gst.Device changed_device);
public void device_remove (Gst.Device device);
public Gst.Bus get_bus ();
public GLib.List<Gst.Device> get_devices ();
......@@ -1563,6 +1565,9 @@ namespace Gst {
[Version (since = "1.4")]
public Message.device_added (Gst.Object src, Gst.Device device);
[CCode (has_construct_function = false)]
[Version (since = "1.16")]
public Message.device_changed (Gst.Object src, Gst.Device device, Gst.Device changed_device);
[CCode (has_construct_function = false)]
[Version (since = "1.4")]
public Message.device_removed (Gst.Object src, Gst.Device device);
[CCode (has_construct_function = false)]
......@@ -1606,6 +1611,8 @@ namespace Gst {
public bool parse_context_type (out unowned string context_type);
[Version (since = "1.4")]
public void parse_device_added (out Gst.Device device);
[Version (since = "1.16")]
public void parse_device_changed (out Gst.Device device, out Gst.Device changed_device);
[Version (since = "1.4")]
public void parse_device_removed (out Gst.Device device);
public void parse_error (out GLib.Error gerror, out string debug);
......
......@@ -117,6 +117,8 @@ namespace Gst {
public bool set_connection (owned Gst.RTSP.Connection conn);
public void set_mount_points (Gst.RTSPServer.MountPoints? mounts);
public void set_send_func (owned Gst.RTSPServer.ClientSendFunc func);
[Version (since = "1.16")]
public void set_send_messages_func (owned Gst.RTSPServer.ClientSendMessagesFunc func);
public void set_session_pool (Gst.RTSPServer.SessionPool? pool);
public void set_thread_pool (Gst.RTSPServer.ThreadPool? pool);
[NoWrapper]
......@@ -639,7 +641,6 @@ namespace Gst {
public void set_ulpfec_percentage (uint percentage);
[Version (since = "1.16")]
public void set_ulpfec_pt (uint pt);
public void set_watch_context (GLib.MainContext context);
public GLib.List<Gst.RTSPServer.StreamTransport> transport_filter (Gst.RTSPServer.StreamTransportFilterFunc? func);
public bool unblock_linked ();
public bool update_crypto (uint ssrc, Gst.Caps? crypto);
......@@ -665,10 +666,16 @@ namespace Gst {
public void message_sent ();
public Gst.FlowReturn recv_data (uint channel, owned Gst.Buffer buffer);
public bool send_rtcp (Gst.Buffer buffer);
[Version (since = "1.16")]
public bool send_rtcp_list (Gst.BufferList buffer_list);
public bool send_rtp (Gst.Buffer buffer);
[Version (since = "1.16")]
public bool send_rtp_list (Gst.BufferList buffer_list);
public bool set_active (bool active);
public void set_callbacks (Gst.RTSPServer.SendFunc send_rtp, owned Gst.RTSPServer.SendFunc send_rtcp);
public void set_keepalive (owned Gst.RTSPServer.KeepAliveFunc keep_alive);
[Version (since = "1.16")]
public void set_list_callbacks (Gst.RTSPServer.SendListFunc send_rtp_list, owned Gst.RTSPServer.SendListFunc send_rtcp_list);
public void set_message_sent (owned Gst.RTSPServer.MessageSentFunc message_sent);
public void set_timed_out (bool timedout);
public void set_transport (owned Gst.RTSP.Transport tr);
......@@ -821,6 +828,9 @@ namespace Gst {
}
[CCode (cheader_filename = "gst/rtsp-server/rtsp-server.h", cname = "GstRTSPClientSendFunc", instance_pos = 3.9)]
public delegate bool ClientSendFunc (Gst.RTSPServer.Client client, Gst.RTSP.Message message, bool close);
[CCode (cheader_filename = "gst/rtsp-server/rtsp-server.h", cname = "GstRTSPClientSendMessagesFunc", instance_pos = 3.9)]
[Version (since = "1.16")]
public delegate bool ClientSendMessagesFunc (Gst.RTSPServer.Client client, [CCode (array_length_cname = "n_messages", array_length_pos = 2.5, array_length_type = "guint", type = "GstRTSPMessage*")] Gst.RTSP.Message[] messages, bool close);
[CCode (cheader_filename = "gst/rtsp-server/rtsp-server.h", cname = "GstRTSPClientSessionFilterFunc", instance_pos = 2.9)]
public delegate Gst.RTSPServer.FilterResult ClientSessionFilterFunc (Gst.RTSPServer.Client client, Gst.RTSPServer.Session sess);
[CCode (cheader_filename = "gst/rtsp-server/rtsp-server.h", cname = "GstRTSPKeepAliveFunc", instance_pos = 0.9)]
......@@ -829,6 +839,9 @@ namespace Gst {
public delegate void MessageSentFunc ();
[CCode (cheader_filename = "gst/rtsp-server/rtsp-server.h", cname = "GstRTSPSendFunc", instance_pos = 2.9)]
public delegate bool SendFunc (Gst.Buffer buffer, uint8 channel);
[CCode (cheader_filename = "gst/rtsp-server/rtsp-server.h", cname = "GstRTSPSendListFunc", instance_pos = 2.9)]
[Version (since = "1.16")]
public delegate bool SendListFunc (Gst.BufferList buffer_list, uint8 channel);
[CCode (cheader_filename = "gst/rtsp-server/rtsp-server.h", cname = "GstRTSPServerClientFilterFunc", instance_pos = 2.9)]
public delegate Gst.RTSPServer.FilterResult ServerClientFilterFunc (Gst.RTSPServer.Server server, Gst.RTSPServer.Client client);
[CCode (cheader_filename = "gst/rtsp-server/rtsp-server.h", cname = "GstRTSPSessionFilterFunc", instance_pos = 2.9)]
......
......@@ -80,7 +80,7 @@ namespace Gtk {
public Gtk.PrintCapabilities get_capabilities ();
public Gtk.PageSetup get_default_page_size ();
public unowned string get_description ();
public bool get_hard_margins (double top, double bottom, double left, double right);
public bool get_hard_margins (out double top, out double bottom, out double left, out double right);
public unowned string get_icon_name ();
[CCode (cname = "gtk_printer_is_virtual")]
public bool get_is_virtual ();
......
......@@ -22,7 +22,7 @@ namespace Gtk {
public uint get_n_up ();
public Gtk.NumberUpLayout get_n_up_layout ();
public int get_num_copies ();
public Gtk.PageRange get_page_ranges (int n_ranges);
public unowned Gtk.PageRange[] get_page_ranges ();
public Gtk.PageSet get_page_set ();
public Gtk.PrintPages get_pages ();
public unowned Gtk.Printer get_printer ();
......@@ -100,7 +100,7 @@ namespace Gtk {
public Gtk.PrintCapabilities get_capabilities ();
public Gtk.PageSetup get_default_page_size ();
public unowned string get_description ();
public bool get_hard_margins (double top, double bottom, double left, double right);
public bool get_hard_margins (out double top, out double bottom, out double left, out double right);
public unowned string get_icon_name ();
[CCode (cname = "gtk_printer_is_virtual")]
public bool get_is_virtual ();
......
......@@ -22,7 +22,7 @@ namespace Gtk {
public uint get_n_up ();
public Gtk.NumberUpLayout get_n_up_layout ();
public int get_num_copies ();
public Gtk.PageRange get_page_ranges (int n_ranges);
public unowned Gtk.PageRange[] get_page_ranges ();
public Gtk.PageSet get_page_set ();
public Gtk.PrintPages get_pages ();
public unowned Gtk.Printer get_printer ();
......@@ -100,7 +100,8 @@ namespace Gtk {
public Gtk.PrintCapabilities get_capabilities ();
public Gtk.PageSetup get_default_page_size ();
public unowned string get_description ();
public bool get_hard_margins (double top, double bottom, double left, double right);
public bool get_hard_margins (out double top, out double bottom, out double left, out double right);
public bool get_hard_margins_for_paper_size (Gtk.PaperSize paper_size, out double top, out double bottom, out double left, out double right);
public unowned string get_icon_name ();
[CCode (cname = "gtk_printer_is_virtual")]
public bool get_is_virtual ();
......
......@@ -6637,6 +6637,7 @@ namespace Gtk {
public int get_current_page ();
public int get_n_pages ();
public unowned Gtk.Widget? get_nth_page (int page_num);
public unowned Gtk.AssistantPage get_page (Gtk.Widget child);
public bool get_page_complete (Gtk.Widget page);
public bool get_page_has_padding (Gtk.Widget page);
public unowned string get_page_title (Gtk.Widget page);
......@@ -6662,6 +6663,21 @@ namespace Gtk {
public signal void escape ();
public virtual signal void prepare (Gtk.Widget page);
}
[CCode (cheader_filename = "gtk/gtk.h", type_id = "gtk_assistant_page_get_type ()")]
public class AssistantPage : GLib.Object {
[CCode (has_construct_function = false)]
protected AssistantPage ();
public unowned Gtk.Widget get_child ();
public Gtk.Widget child { get; construct; }
[NoAccessorMethod]
public bool complete { get; set; }
[NoAccessorMethod]
public bool has_padding { get; set; }
[NoAccessorMethod]
public Gtk.AssistantPageType page_type { get; set; }
[NoAccessorMethod]
public string title { owned get; set; }
}
[CCode (cheader_filename = "gtk/gtk.h", type_id = "gtk_bin_get_type ()")]
public abstract class Bin : Gtk.Container, Atk.Implementor, Gtk.Buildable {
[CCode (has_construct_function = false)]
......@@ -10434,6 +10450,7 @@ namespace Gtk {
public bool get_hhomogeneous ();
public bool get_homogeneous ();
public bool get_interpolate_size ();
public unowned Gtk.StackPage get_page (Gtk.Widget child);
public uint get_transition_duration ();
public bool get_transition_running ();
public Gtk.StackTransitionType get_transition_type ();
......@@ -10464,6 +10481,23 @@ namespace Gtk {
[CCode (has_construct_function = false)]
protected StackAccessible ();
}
[CCode (cheader_filename = "gtk/gtk.h", type_id = "gtk_stack_page_get_type ()")]
public class StackPage : GLib.Object {
[CCode (has_construct_function = false)]
protected StackPage ();
public unowned Gtk.Widget get_child ();
public Gtk.Widget child { get; construct; }
[NoAccessorMethod]
public string icon_name { owned get; set; }
[NoAccessorMethod]
public string name { owned get; construct; }
[NoAccessorMethod]
public bool needs_attention { get; set; }
[NoAccessorMethod]
public int position { get; set; }
[NoAccessorMethod]
public string title { owned get; set; }
}
[CCode (cheader_filename = "gtk/gtk.h", type_id = "gtk_stack_sidebar_get_type ()")]
public class StackSidebar : Gtk.Bin, Atk.Implementor, Gtk.Buildable {
[CCode (has_construct_function = false, type = "GtkWidget*")]
......@@ -11611,6 +11645,7 @@ namespace Gtk {
public Gdk.ModifierType get_modifier_mask (Gdk.ModifierIntent intent);
public unowned Gtk.Widget? get_next_sibling ();
public double get_opacity ();
public Gtk.Overflow get_overflow ();
public unowned Pango.Context get_pango_context ();
public unowned Gtk.Widget? get_parent ();
public unowned Gdk.Surface? get_parent_surface ();
......@@ -11703,6 +11738,7 @@ namespace Gtk {
public void set_margin_start (int margin);
public void set_margin_top (int margin);
public void set_opacity (double opacity);
public void set_overflow (Gtk.Overflow overflow);
public void set_parent (Gtk.Widget parent);
public void set_parent_surface (Gdk.Surface parent_surface);
public void set_receives_default (bool receives_default);
......@@ -11761,6 +11797,7 @@ namespace Gtk {
public int margin_top { get; set; }
public string name { get; set; }
public double opacity { get; set; }
public Gtk.Overflow overflow { get; set; }
public Gtk.Widget parent { get; }
public bool receives_default { get; set; }
public int scale_factor { get; }
......@@ -12952,6 +12989,11 @@ namespace Gtk {
HORIZONTAL,
VERTICAL
}
[CCode (cheader_filename = "gtk/gtk.h", cprefix = "GTK_OVERFLOW_", type_id = "gtk_overflow_get_type ()")]
public enum Overflow {
VISIBLE,
HIDDEN
}
[CCode (cheader_filename = "gtk/gtk.h", cprefix = "GTK_PACK_DIRECTION_", type_id = "gtk_pack_direction_get_type ()")]
public enum PackDirection {
LTR,
......
vapis = [
'alsa.vapi',
'alsa.deps',
'atk.vapi',
'atspi-2.vapi',
'atspi-2.deps',
'avahi-client.vapi',
'avahi-gobject.deps',
'avahi-gobject.vapi',
'bzlib.vapi',
'cairo.vapi',
'cairo-xcb.deps',
'cairo-xcb.vapi',
'ccss-1.vapi',
'clutter-1.0.deps',
'clutter-1.0.vapi',
'clutter-gdk-1.0.deps',
'clutter-gdk-1.0.vapi',
'clutter-gst-2.0.deps',
'clutter-gst-2.0.vapi',
'clutter-gst-3.0.deps',
'clutter-gst-3.0.vapi',
'clutter-gtk-0.10.deps',
'clutter-gtk-0.10.vapi',
'clutter-gtk-1.0.deps',
'clutter-gtk-1.0.vapi',
'clutter-x11-1.0.deps',
'clutter-x11-1.0.vapi',
'cogl-1.0.vapi',
'cogl-1.0.deps',
'cogl-pango-1.0.vapi',
'cogl-pango-1.0.deps',
'curses.vapi',
'dbus-glib-1.vapi',
'enchant.vapi',
'fuse.deps',
'fuse.vapi',
'gconf-2.0.vapi',
'geocode-glib-1.0.deps',
'geocode-glib-1.0.vapi',
'glib-2.0.vapi',
'gdesktopenums-3.0.vapi',
'gdk-2.0.deps',
'gdk-2.0.vapi',
'gdk-3.0.deps',
'gdk-3.0.vapi',
'gdk-pixbuf-2.0.deps',
'gdk-pixbuf-2.0.vapi',
'gdk-x11-2.0.deps',
'gdk-x11-2.0.vapi',
'gdk-x11-3.0.deps',
'gdk-x11-3.0.vapi',
'gdl-1.0.deps',
'gdl-1.0.vapi',
'gdl-3.0.deps',
'gdl-3.0.vapi',
'gedit-2.20.vapi',
'gedit-2.20.deps',
'gio-2.0.vapi',
'gio-unix-2.0.deps',
'gio-unix-2.0.vapi',
'gio-windows-2.0.deps',
'gio-windows-2.0.vapi',
'gmodule-2.0.vapi',
'gnet-2.0.deps',
'gnet-2.0.vapi',
'gnome-desktop-2.0.deps',
'gnome-desktop-2.0.vapi',
'gnome-desktop-3.0.deps',
'gnome-desktop-3.0.vapi',
'gnome-vfs-2.0.vapi',
'gnutls.vapi',
'gobject-2.0.vapi',
'gobject-introspection-1.0.vapi',
'goocanvas.deps',
'goocanvas.vapi',
'goocanvas-2.0.deps',
'goocanvas-2.0.vapi',
'graphene-1.0.deps',
'graphene-1.0.vapi',
'gsl.vapi',
'gstreamer-1.0.vapi',
'gstreamer-allocators-1.0.vapi',
'gstreamer-allocators-1.0.deps',
'gstreamer-app-1.0.vapi',
'gstreamer-app-1.0.deps',
'gstreamer-audio-1.0.vapi',
'gstreamer-audio-1.0.deps',
'gstreamer-bad-allocators-1.0.deps',
'gstreamer-bad-allocators-1.0.vapi',
'gstreamer-base-1.0.vapi',
'gstreamer-base-1.0.deps',
'gstreamer-check-1.0.vapi',
'gstreamer-check-1.0.deps',
'gstreamer-controller-1.0.vapi',
'gstreamer-controller-1.0.deps',
'gstreamer-fft-1.0.vapi',
'gstreamer-fft-1.0.deps',
'gstreamer-net-1.0.vapi',
'gstreamer-net-1.0.deps',
'gstreamer-pbutils-1.0.vapi',
'gstreamer-pbutils-1.0.deps',
'gstreamer-player-1.0.vapi',
'gstreamer-player-1.0.deps',
'gstreamer-riff-1.0.deps',
'gstreamer-riff-1.0.vapi',
'gstreamer-rtp-1.0.vapi',
'gstreamer-rtp-1.0.deps',
'gstreamer-rtsp-1.0.vapi',
'gstreamer-rtsp-1.0.deps',
'gstreamer-rtsp-server-1.0.vapi',
'gstreamer-rtsp-server-1.0.deps',
'gstreamer-sdp-1.0.vapi',
'gstreamer-sdp-1.0.deps',
'gstreamer-tag-1.0.vapi',
'gstreamer-tag-1.0.deps',
'gstreamer-video-1.0.vapi',
'gstreamer-video-1.0.deps',
'gstreamer-webrtc-1.0.vapi',
'gstreamer-webrtc-1.0.deps',
'gst-editing-services-1.0.vapi',
'gst-editing-services-1.0.deps',
'gtk+-2.0.deps',
'gtk+-2.0.vapi',
'gtk+-3.0.deps',
'gtk+-3.0.vapi',
'gtk+-unix-print-2.0.deps',
'gtk+-unix-print-2.0.vapi',
'gtk+-unix-print-3.0.deps',
'gtk+-unix-print-3.0.vapi',
'gtk4.deps',
'gtk4.vapi',
'gtk4-unix-print.deps',
'gtk4-unix-print.vapi',
'gtkmozembed.deps',
'gtkmozembed.vapi',
'gtksourceview-2.0.deps',
'gtksourceview-2.0.vapi',
'gudev-1.0.deps',
'gudev-1.0.vapi',
'hal.deps',
'hal.vapi',
'hildon-1.deps',
'hildon-1.vapi',
'hildon-fm-2.deps',
'hildon-fm-2.vapi',
'javascriptcoregtk-4.0.vapi',
'json-glib-1.0.deps',
'json-glib-1.0.vapi',
'libarchive.deps',
'libarchive.vapi',
'libbonoboui-2.0.vapi',
'libdaemon.vapi',
'libepc-1.0.vapi',
'libesmtp.vapi',
'libftdi.deps',
'libftdi.vapi',
'libgeoclue-2.0.vapi',
'libgeoclue-2.0.deps',
'libglade-2.0.deps',
'libglade-2.0.vapi',
'libgnome-2.0.vapi',
'libgnome-menu.vapi',
'libgnome-menu-3.0.deps',
'libgnome-menu-3.0.vapi',
'libgnomeui-2.0.deps',
'libgnomeui-2.0.vapi',
'libgrss.deps',
'libgrss.vapi',
'libgsf-1.deps',
'libgsf-1.vapi',
'libgvc.vapi',
'libmagic.vapi',
'libnl-1.vapi',
'libnl-2.0.deps',
'libnl-2.0.vapi',
'libnl-3.0.deps',
'libnl-3.0.vapi',
'libnotify.deps',
'libnotify.vapi',
'liboobs-1.vapi',
'libosso.vapi',
'libpanelapplet-2.0.deps',
'libpanelapplet-2.0.vapi',
'libpeas-1.0.deps',
'libpeas-1.0.vapi',
'libpeas-gtk-1.0.deps',
'libpeas-gtk-1.0.vapi',
'libpq.vapi',
'libsexy.deps',
'libsexy.vapi',
'libsoup-2.4.deps',
'libsoup-2.4.vapi',
'libusb.vapi',
'libusb-1.0.deps',
'libusb-1.0.vapi',
'libwnck-1.0.deps',
'libwnck-1.0.vapi',
'libwnck-3.0.deps',
'libwnck-3.0.vapi',
'libxml-2.0.vapi',
'linux.deps',
'linux.vapi',
'loudmouth-1.0.vapi',
'lua.vapi',
'mysql.vapi',
'orc-0.4.vapi',
'packagekit-glib2.deps',
'packagekit-glib2.vapi',
'pango.deps',
'pango.vapi',
'pangocairo.deps',
'pangocairo.vapi',
'pixman-1.vapi',
'polkit-agent-1.deps',
'polkit-agent-1.vapi',
'polkit-gobject-1.deps',
'polkit-gobject-1.vapi',
'poppler-glib.deps',
'poppler-glib.vapi',
'posix.vapi',
'purple.deps',
'purple.vapi',
'raptor.vapi',
'rasqal.vapi',
'rasqal.deps',
'readline.vapi',
'rest-0.7.deps',
'rest-0.7.vapi',
'rest-extras-0.7.deps',
'rest-extras-0.7.vapi',
'sdl.vapi',
'sdl-gfx.vapi',
'sdl-gfx.deps',
'sdl-image.vapi',
'sdl-image.deps',
'sdl-mixer.vapi',
'sdl-mixer.deps',
'sdl-net.vapi',
'sdl-net.deps',
'sdl-ttf.vapi',
'sdl-ttf.deps',
'sqlite3.vapi',
'taglib_c.vapi',
'tiff.vapi',
'tokyocabinet.vapi',
'udisks2.deps',
'udisks2.vapi',
'unique-1.0.deps',
'unique-1.0.vapi',
'v4l2.vapi',
'vte.deps',
'vte.vapi',
'vte-2.90.deps',
'vte-2.90.vapi',
'webkit-1.0.deps',
'webkit-1.0.vapi',
'webkit2gtk-4.0.vapi',
'webkit2gtk-4.0.deps',
'webkit2gtk-web-extension-4.0.vapi',
'webkit2gtk-web-extension-4.0.deps',
'x11.vapi',
'xcb.vapi',
'xcb-icccm.vapi',
'xcb-icccm.deps',
'xtst.vapi',
'xtst.deps',
'zlib.vapi',
]
install_data(vapis, install_dir: join_paths('share', 'vala@0@'.format(vala_version_suffix), 'vapi'))
gidl_bindings = [
'clutter-gtk-0.10',
'cogl-1.0',
'gconf-2.0',
'gdk-2.0',
'gdk-x11-2.0',
'gdl-1.0',
'gio-unix-2.0',
'gnome-desktop-2.0',
'gnome-vfs-2.0',
'goocanvas',
'gtk+-2.0',
'gtk+-unix-print-2.0',
'gtk+-unix-print-3.0',
'gtk4-unix-print',
'gtksourceview-2.0',
'hildon-1',
'hildon-fm-2',
'libepc-1.0',
'libglade-2.0',
'libgnome-2.0',
'libgnome-menu',
'libgnomeui-2.0',
'liboobs-1',
'libsexy',
'libwnck-1.0',
'loudmouth-1.0',
'purple',
'unique-1.0',
'vte',
'webkit-1.0',
]
gir_bindings = [
# vapi-name, gir-namespace, custom.vala-exists, dependencies
['atk', 'Atk-1.0', true, []],
['atspi-2', 'Atspi-2.0', true, []],
['clutter-1.0', 'Clutter-1.0', true, ['atk', 'cairo', 'pango', 'cogl-1.0', 'cogl-pango-1.0', 'json-glib-1.0']],
['clutter-gdk-1.0', 'ClutterGdk-1.0', false, ['clutter-1.0', 'gdk-3.0']],
['clutter-gtk-1.0', 'ClutterGtk-1.0', true, []],
['clutter-gst-2.0', 'ClutterGst-2.0', true, ['cogl-1.0', 'clutter-1.0', 'gstreamer-base-1.0', 'gstreamer-video-1.0']],
['clutter-gst-3.0', 'ClutterGst-3.0', true, ['cogl-1.0', 'clutter-1.0', 'gdk-pixbuf-2.0', 'gstreamer-1.0', 'gstreamer-audio-1.0', 'gstreamer-base-1.0', 'gstreamer-pbutils-1.0', 'gstreamer-video-1.0']],
['clutter-x11-1.0', 'ClutterX11-1.0', false, ['clutter-1.0']],
['cogl-pango-1.0', '', false, []],
['gdk-3.0', '', true, ['gio-2.0']],
['gdk-x11-3.0', '', true, ['gio-2.0', 'gdk-3.0', 'x11']],
['gdk-pixbuf-2.0', '', false, []],
['gdl-3.0', '', false, []],
['geocode-glib-1.0', '', false, []],
['gio-2.0', '', false, []],
['gobject-introspection-1.0', '', false, []],
['graphene-1.0', '', false, []],
['gtk+-4.0', '', false, []],
['gudev-1.0', '', false, []],
['json-glib-1.0', '', false, []],
['libgnome-menu-3.0', '', false, []],
['libgrss', '', false, []],
['libnotify', '', false, []],
['libpeas-1.0', '', false, []],
['libpeas-gtk-1.0', '', false, []],
['libsoup-2.4', '', false, []],
['libwnck-3.0', '', false, []],
['mx-1.0', '', false, []],
['packagekit-glib2', '', false, []],
['pango', '', false, []],
['pangocairo', '', false, []],
['polkit-agent-1', '', false, []],
['polkit-gobject-1', '', false, []],
['poppler-glib', '', false, []],
['rest-0.7', '', false, []],
['rest-extras-0.7', '', false, []],
['udisks2', '', false, []],
['vte-2.90', '', false, []],
['webkit2gtk-4.0', '', false, []],
['webkit2gtk-web-extension-4.0', '', false, []],
]
gir_bindings = [
# GStreamer 1.0
['gstreamer-1.0', 'Gst-1.0', true, []],
['gstreamer-base-1.0', 'GstBase-1.0', true, ['gstreamer-1.0']],
['gstreamer-allocators-1.0', 'GstAllocators-1.0', false, ['gstreamer-1.0', 'gstreamer-base-1.0']],
['gstreamer-app-1.0', 'GstApp-1.0', false, ['gstreamer-1.0', 'gstreamer-base-1.0']],
['gstreamer-audio-1.0', 'GstAudio-1.0', false, ['gstreamer-1.0', 'gstreamer-base-1.0']],
['gstreamer-bad-allocators-1.0', 'GstBadAllocators-1.0', false, ['gstreamer-1.0', 'gstreamer-base-1.0']],
['gstreamer-check-1.0', 'GstCheck-1.0', true, ['gstreamer-1.0', 'gstreamer-base-1.0']],
['gstreamer-controller-1.0', 'GstController-1.0', false, ['gstreamer-1.0', 'gstreamer-base-1.0']],
# ['gstreamer-fft-1.0', 'GstFft-1.0', true, ['gstreamer-1.0', 'gstreamer-base-1.0']],
['gstreamer-net-1.0', 'GstNet-1.0', false, ['gstreamer-1.0', 'gstreamer-base-1.0', 'gio-2.0']],
# ['gstreamer-riff-1.0', 'GstRiff-1.0', false, ['gstreamer-1.0', 'gstreamer-base-1.0']],
['gstreamer-rtp-1.0', 'GstRtp-1.0', false, ['gstreamer-1.0', 'gstreamer-base-1.0']],
['gstreamer-sdp-1.0', 'GstSdp-1.0', false, ['gstreamer-1.0', 'gstreamer-base-1.0']],
['gstreamer-tag-1.0', 'GstTag-1.0', false, ['gstreamer-1.0', 'gstreamer-base-1.0']],
['gstreamer-video-1.0', 'GstVideo-1.0', true, ['gstreamer-1.0', 'gstreamer-base-1.0']],
['gstreamer-pbutils-1.0', 'GstPbutils-1.0', false, ['gstreamer-1.0', 'gstreamer-base-1.0', 'gstreamer-audio-1.0', 'gstreamer-video-1.0']],
['gstreamer-player-1.0', 'GstPlayer-1.0', false, ['gstreamer-1.0', 'gstreamer-base-1.0', 'gstreamer-video-1.0']],
['gstreamer-rtsp-1.0', 'GstRtsp-1.0', false, ['gstreamer-1.0', 'gstreamer-base-1.0', 'gstreamer-sdp-1.0', 'gio-2.0']],
# ['gstreamer-rtsp-server-1.0', 'GstRtspServer-1.0', false, ['gstreamer-1.0', 'gstreamer-base-1.0', 'gstreamer-rtsp-1.0']],
]
gobject_introspection_dep = dependency('gobject-introspection-1.0', required: false)
girdir = gobject_introspection_dep.get_pkgconfig_variable('girdir')
metadatadir = join_paths(meson.current_source_dir(), 'metadata')
vapigen_args = ['--metadatadir', metadatadir, '--vapidir', meson.current_source_dir()]
foreach gir_vapi : gir_bindings
pkg_args = []
foreach pkg : gir_vapi[3]
pkg_args += ['--pkg', pkg]
endforeach
custom_target(gir_vapi[0],
output: '@0@.vapi'.format(gir_vapi[0]),
input: [
join_paths(girdir, '@0@.gir'.format(gir_vapi[1])),
gir_vapi[2] ? join_paths(metadatadir, '@0@-custom.vala'.format(gir_vapi[1])) : [],
],
command: [vapigen_exe,
'--library', gir_vapi[0],
vapigen_args,
pkg_args,
'@INPUT@',
],
# install: true,
# install_dir: join_paths(get_option('datadir'), 'vala@0@'.format(vala_version_suffix), 'vapi'),
)
endforeach
......@@ -56,3 +56,7 @@ RTSPThread base_type="Gst.MiniObject"
.mini_object skip
RTSPToken base_type="Gst.MiniObject"
.mini_object skip
// Upstream
RTSPClientSendMessagesFunc
.messages array array_length_idx=2
......@@ -316,6 +316,14 @@
<parameter name="key" type="char*"/>
</parameters>
</method>
<method name="get_string_list" symbol="g_desktop_app_info_get_string_list">
<return-type type="gchar**"/>
<parameters>
<parameter name="info" type="GDesktopAppInfo*"/>
<parameter name="key" type="char*"/>
<parameter name="length" type="gsize*"/>
</parameters>
</method>
<method name="has_key" symbol="g_desktop_app_info_has_key">
<return-type type="gboolean"/>
<parameters>
......
......@@ -4,6 +4,8 @@ g_desktop_app_info_get_action_name transfer_ownership="1"
g_desktop_app_info_get_implementations transfer_ownership="1" type_name="GLib.List<GLib.DesktopAppInfo>"
g_desktop_app_info_get_keywords type_name="string[]" no_array_length="1" array_null_terminated="1"
g_desktop_app_info_get_locale_string transfer_ownership="1" nullable="1"
g_desktop_app_info_get_string_list is_array="1" array_length_idx=1 array_length_type="gsize" transfer_ownership="1"
g_desktop_app_info_get_string_list.length hidden="1"
g_desktop_app_info_list_actions type_name="string[]" no_array_length="1" array_null_terminated="1"
g_desktop_app_info_launch_uris_as_manager.uris type_name="GLib.List<string>"
g_desktop_app_info_launch_uris_as_manager.launch_context nullable="1"
......
......@@ -6,6 +6,10 @@ gtk_print_unix_dialog_get_settings transfer_ownership="1"
gtk_printer_accepts_pdf name="get_accepts_pdf"
gtk_printer_accepts_ps name="get_accepts_ps"
gtk_printer_get_default_page_size transfer_ownership="1"
gtk_printer_get_hard_margins.top is_out="1"
gtk_printer_get_hard_margins.bottom is_out="1"
gtk_printer_get_hard_margins.left is_out="1"
gtk_printer_get_hard_margins.right is_out="1"
gtk_printer_is_virtual name="get_is_virtual"
gtk_printer_list_papers transfer_ownership="1" type_name="GLib.List<Gtk.PageSetup>"
GtkPrintJobCompleteFunc hidden="1"
......
Gtk cheader_filename="gtk/gtkunixprint.h" gir_namespace="Gtk" gir_version="3.0" cprefix="Gtk" lower_case_cprefix="gtk_"
gtk_print_job_get_page_ranges is_array="1"
gtk_print_job_get_page_ranges.n_ranges hidden="1"
gtk_print_job_send.callback transfer_ownership="1"
gtk_print_job_send.dnotify hidden="1"
gtk_print_unix_dialog_get_settings transfer_ownership="1"
gtk_printer_accepts_pdf name="get_accepts_pdf"
gtk_printer_accepts_ps name="get_accepts_ps"
gtk_printer_get_default_page_size transfer_ownership="1"
gtk_printer_get_hard_margins.top is_out="1"
gtk_printer_get_hard_margins.bottom is_out="1"
gtk_printer_get_hard_margins.left is_out="1"
gtk_printer_get_hard_margins.right is_out="1"
gtk_printer_is_virtual name="get_is_virtual"
gtk_printer_list_papers transfer_ownership="1" type_name="GLib.List<Gtk.PageSetup>"
GtkPrintJobCompleteFunc hidden="1"
......
......@@ -29,10 +29,22 @@
</struct>
<struct name="GtkPrintJob_autoptr">
</struct>
<struct name="GtkPrintJob_listautoptr">
</struct>
<struct name="GtkPrintJob_slistautoptr">
</struct>
<struct name="GtkPrintUnixDialog_autoptr">
</struct>
<struct name="GtkPrintUnixDialog_listautoptr">
</struct>
<struct name="GtkPrintUnixDialog_slistautoptr">
</struct>
<struct name="GtkPrinter_autoptr">
</struct>
<struct name="GtkPrinter_listautoptr">
</struct>
<struct name="GtkPrinter_slistautoptr">
</struct>
<flags name="GtkPrintCapabilities" type-name="GtkPrintCapabilities" get-type="gtk_print_capabilities_get_type">
<member name="GTK_PRINT_CAPABILITY_PAGE_SET" value="1"/>
<member name="GTK_PRINT_CAPABILITY_COPIES" value="2"/>
......@@ -493,6 +505,17 @@
<parameter name="right" type="gdouble*"/>
</parameters>
</method>
<method name="get_hard_margins_for_paper_size" symbol="gtk_printer_get_hard_margins_for_paper_size">
<return-type type="gboolean"/>
<parameters>
<parameter name="printer" type="GtkPrinter*"/>
<parameter name="paper_size" type="GtkPaperSize*"/>
<parameter name="top" type="gdouble*"/>
<parameter name="bottom" type="gdouble*"/>
<parameter name="left" type="gdouble*"/>
<parameter name="right" type="gdouble*"/>
</parameters>
</method>
<method name="get_icon_name" symbol="gtk_printer_get_icon_name">
<return-type type="gchar*"/>
<parameters>
......
Gtk cheader_filename="gtk/gtkunixprint.h" gir_namespace="Gtk" gir_version="4.0" cprefix="Gtk" lower_case_cprefix="gtk_"
gtk_print_job_get_page_ranges is_array="1"
gtk_print_job_get_page_ranges.n_ranges hidden="1"
gtk_print_job_send.callback transfer_ownership="1"
gtk_print_job_send.dnotify hidden="1"
gtk_print_unix_dialog_get_settings transfer_ownership="1"
gtk_printer_accepts_pdf name="get_accepts_pdf"
gtk_printer_accepts_ps name="get_accepts_ps"
gtk_printer_get_default_page_size transfer_ownership="1"
gtk_printer_get_hard_margins.top is_out="1"
gtk_printer_get_hard_margins.bottom is_out="1"
gtk_printer_get_hard_margins.left is_out="1"
gtk_printer_get_hard_margins.right is_out="1"
gtk_printer_get_hard_margins_for_paper_size.top is_out="1"
gtk_printer_get_hard_margins_for_paper_size.bottom is_out="1"
gtk_printer_get_hard_margins_for_paper_size.left is_out="1"
gtk_printer_get_hard_margins_for_paper_size.right is_out="1"
gtk_printer_is_virtual name="get_is_virtual"
gtk_printer_list_papers transfer_ownership="1" type_name="GLib.List<Gtk.PageSetup>"
GtkPrintJobCompleteFunc hidden="1"
......@@ -16,4 +26,4 @@ gtk_enumerate_printers.destroy hidden="1"
*.dummy* hidden="1"
*_reserved* hidden="1"
*_gtk_recent* hidden="1"
*_autoptr hidden="1"
*autoptr hidden="1"
vapigen_sources = [
'valagidlparser.vala',
'valavapigen.vala',
]
vapigen_name = 'vapigen@0@'.format(vala_version_suffix)