1 gobject_install_headers = files([
2 'gobject-autocleanups.h',
21 'gobjectnotifyqueue.c', # sic
23 install_headers(gobject_install_headers, subdir : 'glib-2.0/gobject')
49 gobject_dtrace_obj = dtrace_obj_gen.process('gobject_probes.d')
50 gobject_dtrace_hdr = dtrace_hdr_gen.process('gobject_probes.d')
52 gobject_dtrace_obj = []
53 gobject_dtrace_hdr = []
56 libgobject = shared_library('gobject-2.0',
57 gobject_dtrace_obj, gobject_dtrace_hdr,
58 sources : [gobject_c_sources],
59 version : library_version,
60 soversion : soversion,
62 include_directories : [configinc],
63 dependencies : [libintl, libffi_dep, libglib_dep],
64 c_args : ['-DG_LOG_DOMAIN="GLib-GObject"', '-DGOBJECT_COMPILATION'] + glib_hidden_visibility_args)
66 libgobject_dep = declare_dependency(link_with : libgobject,
67 include_directories : gobjectinc)
74 python_tools_conf = configuration_data()
75 python_tools_conf.set('VERSION', glib_version)
76 python_tools_conf.set('PYTHON', python.path())
78 foreach tool: python_tools
79 # FIXME: Ensure we set the appropriate permissions
80 tool_bin = configure_file(
83 configuration : python_tools_conf,
85 install_dir : glib_bindir,
88 # Set variables for later use
89 set_variable(tool.underscorify(), tool_bin)
92 executable('gobject-query', 'gobject-query.c',
94 c_args : ['-DHAVE_CONFIG_H=1'],
95 dependencies : [libglib_dep, libgobject_dep])
97 install_data('gobject_gdb.py', install_dir : join_paths(glib_pkgdatadir, 'gdb'))
98 gdb_conf = configuration_data()
99 gdb_conf.set('datadir', glib_datadir)
101 input: 'libgobject-gdb.py.in',
102 output: 'libgobject-2.0.so.@0@-gdb.py'.format(library_version),
103 configuration: gdb_conf,
105 install_dir: join_paths(get_option('datadir'), 'gdb/auto-load/' + glib_libdir)
109 gobject_stp = configure_file(input : 'gobject.stp.in',
110 output : '@0@.stp'.format(libgobject.full_path().split('/').get(-1)),
111 configuration : stp_cdata,
112 install_dir : tapset_install_dir,