mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-06-01 10:20:07 +02:00
Meson: Fix build error in gdbus-example-objectmanager
test_c_args is defined in the root meson.build with unfiltered list of compiler flags, then redefined in gio/tests/meson.build after the subdir() call. Move it before.
This commit is contained in:
parent
68203b1665
commit
c9c7509e02
@ -5,6 +5,13 @@ common_gio_tests_deps = [
|
|||||||
libgio_dep,
|
libgio_dep,
|
||||||
]
|
]
|
||||||
|
|
||||||
|
test_c_args = [
|
||||||
|
'-DG_LOG_DOMAIN="GLib-GIO"',
|
||||||
|
'-DTEST_SERVICES="@0@/gio/tests/services"'.format(meson.build_root()),
|
||||||
|
'-DGLIB_MKENUMS="@0@"'.format(glib_mkenums),
|
||||||
|
'-DGLIB_COMPILE_SCHEMAS="@0@"'.format(glib_compile_schemas.full_path()),
|
||||||
|
]
|
||||||
|
|
||||||
if host_machine.system() == 'windows'
|
if host_machine.system() == 'windows'
|
||||||
common_gio_tests_deps += [iphlpapi_dep, winsock2, cc.find_library ('secur32')]
|
common_gio_tests_deps += [iphlpapi_dep, winsock2, cc.find_library ('secur32')]
|
||||||
endif
|
endif
|
||||||
@ -88,13 +95,6 @@ test_env.set('G_TEST_BUILDDIR', meson.current_build_dir())
|
|||||||
test_env.set('GIO_MODULE_DIR', '')
|
test_env.set('GIO_MODULE_DIR', '')
|
||||||
test_env.set('GIO_LAUNCH_DESKTOP', meson.build_root() + '/gio/gio-launch-desktop')
|
test_env.set('GIO_LAUNCH_DESKTOP', meson.build_root() + '/gio/gio-launch-desktop')
|
||||||
|
|
||||||
test_c_args = [
|
|
||||||
'-DG_LOG_DOMAIN="GLib-GIO"',
|
|
||||||
'-DTEST_SERVICES="@0@/gio/tests/services"'.format(meson.build_root()),
|
|
||||||
'-DGLIB_MKENUMS="@0@"'.format(glib_mkenums),
|
|
||||||
'-DGLIB_COMPILE_SCHEMAS="@0@"'.format(glib_compile_schemas.full_path()),
|
|
||||||
]
|
|
||||||
|
|
||||||
# Check for libdbus1 - Optional - is only used in the GDBus test cases
|
# Check for libdbus1 - Optional - is only used in the GDBus test cases
|
||||||
# 1.2.14 required for dbus_message_set_serial
|
# 1.2.14 required for dbus_message_set_serial
|
||||||
dbus1_dep = dependency('dbus-1', required : false, version : '>= 1.2.14')
|
dbus1_dep = dependency('dbus-1', required : false, version : '>= 1.2.14')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user