summary refs log tree commit diff
path: root/src/meson.build
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2018-10-24 21:01:12 +0200
committerMichael Biebl <biebl@debian.org>2018-10-24 21:01:12 +0200
commit3626b425d1bc017fdc6f1ea0cfd329d1e1681641 (patch)
treee3eb1ffa953bc2ca100c9c50ab2aaa8cbfffa8f0 /src/meson.build
parent6518e361171f64bcaaa4bf868139362ed95cc2e0 (diff)
New upstream version 1.14.4 upstream/1.14.4
Diffstat (limited to 'src/meson.build')
-rw-r--r--src/meson.build13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/meson.build b/src/meson.build
index 87c57671..28fcfa8f 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -214,9 +214,6 @@ if enable_tests
     test_cflags += ['-DREQUIRE_ROOT_TESTS=1']
   endif
 
-  platform = (host_machine.system().contains('linux') ? 'linux' : 'fake')
-  test_cflags_platform = '-DSETUP=nm_' + platform + '_platform_setup'
-
   libnetwork_manager_test = static_library(
     nm_name + 'Test',
     sources: sources,
@@ -231,6 +228,16 @@ if enable_tests
     link_with: libnetwork_manager_test
   )
 
+  test_nm_dep_fake = declare_dependency(
+    dependencies: test_nm_dep,
+    compile_args: ['-DSETUP=nm_fake_platform_setup']
+  )
+
+  test_nm_dep_linux = declare_dependency(
+    dependencies: test_nm_dep,
+    compile_args: ['-DSETUP=nm_linux_platform_setup']
+  )
+
   subdir('dnsmasq/tests')
   subdir('ndisc/tests')
   subdir('platform/tests')