1 gobject_install_headers = files(
2 'gobject-autocleanups.h',
21 'gobjectnotifyqueue.c', # sic
23 install_headers(gobject_install_headers, subdir : 'glib-2.0/gobject')
25 gobject_sources = files(
46 if host_system == 'windows'
47 gobject_win_rc = configure_file(
48 input: 'gobject.rc.in',
50 configuration: glibconfig_conf,
52 gobject_win_res = windows.compile_resources(gobject_win_rc)
53 gobject_sources += [gobject_win_res]
57 gobject_dtrace_obj = dtrace_obj_gen.process('gobject_probes.d')
58 gobject_dtrace_hdr = dtrace_hdr_gen.process('gobject_probes.d')
60 gobject_dtrace_obj = []
61 gobject_dtrace_hdr = []
64 libgobject = library('gobject-2.0',
65 gobject_dtrace_obj, gobject_dtrace_hdr,
66 sources : gobject_sources,
67 version : library_version,
68 soversion : soversion,
70 include_directories : [configinc],
71 dependencies : [libintl, libffi_dep, libglib_dep],
72 c_args : ['-DG_LOG_DOMAIN="GLib-GObject"', '-DGOBJECT_COMPILATION'] + glib_hidden_visibility_args)
74 libgobject_dep = declare_dependency(link_with : libgobject,
75 include_directories : gobjectinc)
82 python_tools_conf = configuration_data()
83 python_tools_conf.set('VERSION', glib_version)
84 python_tools_conf.set('PYTHON', python.path())
86 foreach tool: python_tools
87 tool_bin = configure_file(
90 configuration : python_tools_conf,
92 install_dir : glib_bindir,
95 # Set variables for later use
96 set_variable(tool.underscorify(), tool_bin)
99 executable('gobject-query', 'gobject-query.c',
101 c_args : ['-DHAVE_CONFIG_H=1'],
102 dependencies : [libglib_dep, libgobject_dep])
104 install_data('gobject_gdb.py', install_dir : join_paths(glib_pkgdatadir, 'gdb'))
105 gdb_conf = configuration_data()
106 gdb_conf.set('datadir', glib_datadir)
108 input: 'libgobject-gdb.py.in',
109 output: 'libgobject-2.0.so.@0@-gdb.py'.format(library_version),
110 configuration: gdb_conf,
111 install_dir: gdb_install_dir,
115 gobject_stp = configure_file(input : 'gobject.stp.in',
116 output : '@0@.stp'.format(libgobject.full_path().split('/').get(-1)),
117 configuration : stp_cdata,
118 install_dir : tapset_install_dir,