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 : [libffi_dep, libglib_dep],
72 c_args : ['-DG_LOG_DOMAIN="GLib-GObject"', '-DGOBJECT_COMPILATION'] + glib_hidden_visibility_args,
73 link_args : glib_link_flags,
76 pkg.generate(libraries : libgobject,
77 requires : ['glib-2.0'],
78 version : glib_version,
79 install_dir : glib_pkgconfigreldir,
80 filebase : 'gobject-2.0',
82 description : 'GLib Type, Object, Parameter and Signal Library',
85 libgobject_dep = declare_dependency(link_with : libgobject,
86 include_directories : gobjectinc)
93 python_tools_conf = configuration_data()
94 python_tools_conf.set('VERSION', glib_version)
95 python_tools_conf.set('PYTHON', python.path())
97 foreach tool: python_tools
98 tool_bin = configure_file(
101 configuration : python_tools_conf,
103 install_dir : glib_bindir,
106 # Set variables for later use
107 set_variable(tool.underscorify(), tool_bin)
110 executable('gobject-query', 'gobject-query.c',
112 dependencies : [libglib_dep, libgobject_dep])
114 install_data('gobject_gdb.py', install_dir : join_paths(glib_pkgdatadir, 'gdb'))
115 gdb_conf = configuration_data()
116 gdb_conf.set('datadir', glib_datadir)
118 input: 'libgobject-gdb.py.in',
119 output: 'libgobject-2.0.so.@0@-gdb.py'.format(library_version),
120 configuration: gdb_conf,
121 install_dir: gdb_install_dir,
125 gobject_stp = configure_file(input : 'gobject.stp.in',
126 output : '@0@.stp'.format(libgobject.full_path().split('/').get(-1)),
127 configuration : stp_cdata,
128 install_dir : tapset_install_dir,