2017-10-23 10:53:04 +02:00
|
|
|
subdir('cmph')
|
|
|
|
|
|
|
|
girepo_gthash_lib = static_library('girepository-gthash',
|
|
|
|
sources: 'gthash.c',
|
2017-11-23 09:15:37 +01:00
|
|
|
include_directories : configinc,
|
2017-10-23 10:53:04 +02:00
|
|
|
c_args: gi_hidden_visibility_cflags,
|
|
|
|
dependencies: [
|
|
|
|
cmph_dep,
|
2017-11-23 09:15:37 +01:00
|
|
|
glib_dep,
|
|
|
|
gmodule_dep,
|
2017-10-23 10:53:04 +02:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
girepo_gthash_dep = declare_dependency(
|
|
|
|
link_with: girepo_gthash_lib,
|
2017-11-23 09:15:37 +01:00
|
|
|
dependencies: [glib_dep, gmodule_dep],
|
2017-10-23 10:53:04 +02:00
|
|
|
include_directories: include_directories('.'),
|
|
|
|
)
|
|
|
|
|
|
|
|
girepo_internals_lib = static_library('girepository-internals',
|
|
|
|
sources: [
|
|
|
|
'girmodule.c',
|
|
|
|
'girnode.c',
|
|
|
|
'giroffsets.c',
|
|
|
|
'girparser.c',
|
|
|
|
'girwriter.c',
|
|
|
|
],
|
|
|
|
c_args: gi_hidden_visibility_cflags,
|
2017-11-23 09:15:37 +01:00
|
|
|
include_directories : configinc,
|
2017-10-23 10:53:04 +02:00
|
|
|
dependencies: [girepo_gthash_dep, libffi_dep],
|
|
|
|
)
|
|
|
|
|
|
|
|
girepo_internals_dep = declare_dependency(
|
|
|
|
link_with: girepo_internals_lib,
|
|
|
|
dependencies: libffi_dep,
|
|
|
|
include_directories: include_directories('.'),
|
|
|
|
)
|
|
|
|
|
|
|
|
girepo_headers = [
|
|
|
|
'giarginfo.h',
|
|
|
|
'gibaseinfo.h',
|
|
|
|
'gicallableinfo.h',
|
|
|
|
'giconstantinfo.h',
|
|
|
|
'gienuminfo.h',
|
|
|
|
'gifieldinfo.h',
|
|
|
|
'gifunctioninfo.h',
|
|
|
|
'giinterfaceinfo.h',
|
|
|
|
'giobjectinfo.h',
|
|
|
|
'gipropertyinfo.h',
|
|
|
|
'giregisteredtypeinfo.h',
|
|
|
|
'girepository.h',
|
|
|
|
'girffi.h',
|
|
|
|
'gisignalinfo.h',
|
|
|
|
'gistructinfo.h',
|
|
|
|
'gitypeinfo.h',
|
|
|
|
'gitypelib.h',
|
|
|
|
'gitypes.h',
|
|
|
|
'giunioninfo.h',
|
|
|
|
'giversionmacros.h',
|
|
|
|
'givfuncinfo.h',
|
|
|
|
]
|
|
|
|
|
|
|
|
girepo_sources = [
|
|
|
|
'gdump.c',
|
|
|
|
'giarginfo.c',
|
|
|
|
'gibaseinfo.c',
|
|
|
|
'gicallableinfo.c',
|
|
|
|
'giconstantinfo.c',
|
|
|
|
'gienuminfo.c',
|
|
|
|
'gifieldinfo.c',
|
|
|
|
'gifunctioninfo.c',
|
|
|
|
'ginvoke.c',
|
|
|
|
'giinterfaceinfo.c',
|
|
|
|
'giobjectinfo.c',
|
|
|
|
'gipropertyinfo.c',
|
|
|
|
'giregisteredtypeinfo.c',
|
|
|
|
'girepository.c',
|
|
|
|
'girffi.c',
|
|
|
|
'gisignalinfo.c',
|
|
|
|
'gistructinfo.c',
|
|
|
|
'gitypeinfo.c',
|
|
|
|
'gitypelib.c',
|
|
|
|
'giunioninfo.c',
|
|
|
|
'givfuncinfo.c',
|
|
|
|
]
|
|
|
|
|
|
|
|
# Used in gir/meson.build
|
|
|
|
girepo_gir_sources = files(
|
|
|
|
'giarginfo.c',
|
|
|
|
'gibaseinfo.c',
|
|
|
|
'gicallableinfo.c',
|
|
|
|
'giconstantinfo.c',
|
|
|
|
'gienuminfo.c',
|
|
|
|
'gifieldinfo.c',
|
|
|
|
'gifunctioninfo.c',
|
|
|
|
'giinterfaceinfo.c',
|
|
|
|
'giobjectinfo.c',
|
|
|
|
'gipropertyinfo.c',
|
|
|
|
'giregisteredtypeinfo.c',
|
|
|
|
'girepository.c',
|
|
|
|
'gisignalinfo.c',
|
|
|
|
'gistructinfo.c',
|
|
|
|
'gitypeinfo.c',
|
|
|
|
'giunioninfo.c',
|
|
|
|
'givfuncinfo.c',
|
|
|
|
'giarginfo.h',
|
|
|
|
'gibaseinfo.h',
|
|
|
|
'gicallableinfo.h',
|
|
|
|
'giconstantinfo.h',
|
|
|
|
'gienuminfo.h',
|
|
|
|
'gifieldinfo.h',
|
|
|
|
'gifunctioninfo.h',
|
|
|
|
'giinterfaceinfo.h',
|
|
|
|
'giobjectinfo.h',
|
|
|
|
'gipropertyinfo.h',
|
|
|
|
'giregisteredtypeinfo.h',
|
|
|
|
'girepository.h',
|
|
|
|
'gisignalinfo.h',
|
|
|
|
'gistructinfo.h',
|
|
|
|
'gitypeinfo.h',
|
|
|
|
'gitypelib.h',
|
|
|
|
'gitypes.h',
|
|
|
|
'giunioninfo.h',
|
|
|
|
'givfuncinfo.h',
|
|
|
|
)
|
|
|
|
|
|
|
|
install_headers(girepo_headers, subdir: 'gobject-introspection-1.0')
|
|
|
|
|
|
|
|
girepo_lib = shared_library('girepository-1.0',
|
|
|
|
sources: girepo_sources,
|
2017-11-23 09:15:37 +01:00
|
|
|
include_directories : configinc,
|
2017-10-23 10:53:04 +02:00
|
|
|
c_args: gi_hidden_visibility_cflags + ['-DG_IREPOSITORY_COMPILATION'],
|
2017-11-23 09:15:37 +01:00
|
|
|
dependencies: [glib_dep, gobject_dep, gmodule_dep,
|
|
|
|
gio_dep, girepo_internals_dep],
|
2017-10-23 10:53:04 +02:00
|
|
|
version: '1.0.0',
|
|
|
|
install: true,
|
|
|
|
)
|
|
|
|
|
2017-11-23 21:59:01 +01:00
|
|
|
# Copy to builddir for use with giscanner/dumper.py when running uninstalled
|
|
|
|
configure_file(input : 'gdump.c',
|
|
|
|
output : 'gdump.c',
|
|
|
|
configuration : configuration_data(),
|
|
|
|
install_dir: join_paths(get_option('datadir'), 'gobject-introspection-1.0'),
|
|
|
|
install : true,
|
2017-10-23 10:53:04 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
girepo_dep = declare_dependency(
|
|
|
|
link_with: girepo_lib,
|
2017-11-23 09:15:37 +01:00
|
|
|
dependencies: [glib_dep, gobject_dep, gio_dep, gmodule_dep],
|
2017-10-23 10:53:04 +02:00
|
|
|
include_directories: include_directories('.'),
|
|
|
|
)
|
|
|
|
|
|
|
|
gthash_test = executable('gthash-test', 'gthash-test.c',
|
|
|
|
dependencies: girepo_gthash_dep,
|
|
|
|
)
|
|
|
|
|
|
|
|
test('gthash-test', gthash_test)
|
|
|
|
|
|
|
|
if giounix_dep.found()
|
|
|
|
executable('gi-dump-types', 'gi-dump-types.c',
|
2017-11-23 09:15:37 +01:00
|
|
|
dependencies: [girepo_dep, giounix_dep])
|
2017-10-23 10:53:04 +02:00
|
|
|
endif
|