mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-14 13:26:16 +01:00
cf93b27ceb
Properly define GLIB/GOBJECT_STATIC_COMPILATION when static build is enabled. Use library() instead of shared_library() to allow selecting static builds. https://bugzilla.gnome.org/show_bug.cgi?id=784995
25 lines
1.3 KiB
Meson
25 lines
1.3 KiB
Meson
# FIXME: set UNINSTALLED_GLIB_{SRC|BUILD}DIR=top_{src|build}dir ?
|
|
gdbus_example_objectmanager_generated = custom_target('gdbus-example-objectmanager-generated',
|
|
input : ['gdbus-example-objectmanager.xml'],
|
|
output : ['gdbus-example-objectmanager-generated.h',
|
|
'gdbus-example-objectmanager-generated.c',
|
|
'gdbus-example-objectmanager-generated-org.gtk.GDBus.Example.ObjectManager.Animal.xml',
|
|
'gdbus-example-objectmanager-generated-org.gtk.GDBus.Example.ObjectManager.Cat.xml'],
|
|
command : [python, gdbus_codegen,
|
|
'--interface-prefix', 'org.gtk.GDBus.Example.ObjectManager.',
|
|
'--c-namespace', 'Example',
|
|
'--c-generate-object-manager',
|
|
'--output-directory', '@OUTDIR@',
|
|
'--generate-c-code', 'gdbus-example-objectmanager-generated',
|
|
'--generate-docbook', 'gdbus-example-objectmanager-generated',
|
|
'@INPUT@'])
|
|
|
|
libgdbus_example_objectmanager = library('libgdbus-example-objectmanager',
|
|
gdbus_example_objectmanager_generated,
|
|
c_args : ['-DHAVE_CONFIG_H=1'] + gio_c_args,
|
|
dependencies : [libglib_dep, libgmodule_dep, libgobject_dep, libgio_dep],
|
|
install : false)
|
|
|
|
libgdbus_example_objectmanager_dep = declare_dependency(sources : gdbus_example_objectmanager_generated,
|
|
link_with : libgdbus_example_objectmanager)
|