about 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:02:52 +0200
committerMichael Biebl <biebl@debian.org>2018-10-24 21:02:52 +0200
commitf87c30ac3b55627a166953aec4de552f5a8c5a53 (patch)
tree1eb82dba7af28b0504403e2aacaeaf927d14065c /src/meson.build
parentbf9fe831a32fc90b956ee777b629adaf6df49d65 (diff)
parent3626b425d1bc017fdc6f1ea0cfd329d1e1681641 (diff)
Update upstream source from tag 'upstream/1.14.4'
Update to upstream version '1.14.4'
with Debian dir 3e8398be8782c0495d64cae17094a6b9e5e62907
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')