2017-01-28 17:59:45 +01:00
|
|
|
gobject_install_headers = files([
|
2016-03-07 12:13:24 +01:00
|
|
|
'gobject-autocleanups.h',
|
|
|
|
'glib-types.h',
|
|
|
|
'gbinding.h',
|
|
|
|
'gboxed.h',
|
|
|
|
'gclosure.h',
|
|
|
|
'genums.h',
|
|
|
|
'gmarshal.h',
|
|
|
|
'gobject.h',
|
|
|
|
'gparam.h',
|
|
|
|
'gparamspecs.h',
|
|
|
|
'gsignal.h',
|
|
|
|
'gsourceclosure.h',
|
|
|
|
'gtype.h',
|
|
|
|
'gtypemodule.h',
|
|
|
|
'gtypeplugin.h',
|
|
|
|
'gvalue.h',
|
|
|
|
'gvaluearray.h',
|
|
|
|
'gvaluecollector.h',
|
|
|
|
'gvaluetypes.h',
|
|
|
|
'gobjectnotifyqueue.c', # sic
|
2017-01-28 17:59:45 +01:00
|
|
|
])
|
2016-12-09 20:30:22 +01:00
|
|
|
install_headers(gobject_install_headers, subdir : 'glib-2.0/gobject')
|
2016-03-07 12:13:24 +01:00
|
|
|
|
|
|
|
gobject_c_sources = [
|
|
|
|
# 'gobject_probes.d',
|
|
|
|
'gatomicarray.c',
|
|
|
|
'gbinding.c',
|
|
|
|
'gboxed.c',
|
|
|
|
'gclosure.c',
|
|
|
|
'genums.c',
|
|
|
|
'gmarshal.c',
|
|
|
|
'gobject.c',
|
|
|
|
'gobject_trace.h',
|
|
|
|
'gparam.c',
|
|
|
|
'gparamspecs.c',
|
|
|
|
'gsignal.c',
|
|
|
|
'gsourceclosure.c',
|
|
|
|
'gtype.c',
|
|
|
|
'gtypemodule.c',
|
|
|
|
'gtypeplugin.c',
|
|
|
|
'gvalue.c',
|
|
|
|
'gvaluearray.c',
|
|
|
|
'gvaluetransform.c',
|
|
|
|
'gvaluetypes.c',
|
|
|
|
]
|
|
|
|
|
2017-01-25 18:02:51 +01:00
|
|
|
if enable_dtrace
|
|
|
|
gobject_dtrace_obj = dtrace_obj_gen.process('gobject_probes.d')
|
|
|
|
gobject_dtrace_hdr = dtrace_hdr_gen.process('gobject_probes.d')
|
|
|
|
else
|
|
|
|
gobject_dtrace_obj = []
|
|
|
|
gobject_dtrace_hdr = []
|
|
|
|
endif
|
|
|
|
|
2016-12-20 23:37:24 +01:00
|
|
|
libgobject = shared_library('gobject-2.0',
|
2017-01-25 18:02:51 +01:00
|
|
|
gobject_dtrace_obj, gobject_dtrace_hdr,
|
2016-12-20 23:37:24 +01:00
|
|
|
sources : [gobject_c_sources],
|
|
|
|
version : library_version,
|
|
|
|
soversion : soversion,
|
|
|
|
install : true,
|
|
|
|
include_directories : [configinc],
|
2017-03-21 17:36:22 +01:00
|
|
|
dependencies : [libintl, libffi_dep, libglib_dep],
|
2017-02-16 10:52:58 +01:00
|
|
|
c_args : ['-DG_LOG_DOMAIN="GLib-GObject"', '-DGOBJECT_COMPILATION'] + glib_hidden_visibility_args)
|
2016-12-20 23:37:24 +01:00
|
|
|
|
|
|
|
libgobject_dep = declare_dependency(link_with : libgobject,
|
|
|
|
include_directories : gobjectinc)
|
|
|
|
|
|
|
|
glib_mkenums_conf = configuration_data()
|
|
|
|
glib_mkenums_conf.set('GLIB_VERSION', glib_version)
|
2017-07-14 21:43:19 +02:00
|
|
|
glib_mkenums_conf.set('PYTHON', python.path())
|
2016-12-20 23:37:24 +01:00
|
|
|
|
|
|
|
# FIXME: Set permissions
|
|
|
|
glib_mkenums = configure_file(input : 'glib-mkenums.in',
|
|
|
|
output : 'glib-mkenums',
|
|
|
|
install : true,
|
|
|
|
install_dir : 'bin', configuration : glib_mkenums_conf)
|
|
|
|
|
|
|
|
executable('gobject-query', 'gobject-query.c',
|
|
|
|
install : true,
|
|
|
|
c_args : ['-DHAVE_CONFIG_H=1'],
|
|
|
|
dependencies : [libglib_dep, libgobject_dep])
|
|
|
|
|
|
|
|
gmarshal_strings = custom_target('gmarshal.strings',
|
|
|
|
input : ['gmarshal-list-to-strings.py', 'gmarshal.list'],
|
|
|
|
output : ['gmarshal.strings'],
|
|
|
|
command : [python, '@INPUT0@', '@INPUT1@', '@OUTPUT@'])
|
|
|
|
|
2017-07-14 01:35:09 +02:00
|
|
|
glib_genmarshal_conf = configuration_data()
|
|
|
|
glib_genmarshal_conf.set('VERSION', glib_version)
|
2017-07-14 21:43:19 +02:00
|
|
|
glib_genmarshal_conf.set('PYTHON', python.path())
|
2017-07-14 01:35:09 +02:00
|
|
|
|
|
|
|
glib_genmarshal = configure_file(input : 'glib-genmarshal.in',
|
|
|
|
output : 'glib-genmarshal',
|
2016-12-20 23:37:24 +01:00
|
|
|
install : true,
|
2017-07-14 01:35:09 +02:00
|
|
|
install_dir : 'bin', configuration : glib_genmarshal_conf)
|
2016-03-07 12:13:24 +01:00
|
|
|
|
2016-12-21 02:04:47 +01:00
|
|
|
install_data('gobject_gdb.py', install_dir : join_paths(glib_pkgdatadir + 'gdb'))
|
2016-12-06 14:07:03 +01:00
|
|
|
gdb_conf = configuration_data()
|
|
|
|
gdb_conf.set('datadir', glib_datadir)
|
|
|
|
configure_file(
|
|
|
|
input: 'libgobject-gdb.py.in',
|
|
|
|
output: 'libgobject-2.0.so.@0@-gdb.py'.format(library_version),
|
|
|
|
configuration: gdb_conf,
|
|
|
|
install: true,
|
2016-12-09 20:30:22 +01:00
|
|
|
install_dir: join_paths(get_option('datadir'), 'gdb/auto-load/' + glib_libdir)
|
2016-12-06 14:07:03 +01:00
|
|
|
)
|
|
|
|
|
2017-01-25 18:02:51 +01:00
|
|
|
if enable_systemtap
|
|
|
|
gobject_stp = configure_file(input : 'gobject.stp.in',
|
|
|
|
output : '@0@.stp'.format(libgobject.full_path().split('/').get(-1)),
|
|
|
|
configuration : stp_cdata,
|
|
|
|
install_dir : tapset_install_dir,
|
|
|
|
install : true)
|
|
|
|
endif
|
|
|
|
|
2016-03-07 12:13:24 +01:00
|
|
|
subdir('tests')
|