meson: Prefer to use join_paths() over '/'
authorSeungha Yang <seungha.yang@navercorp.com>
Tue, 18 Dec 2018 11:39:40 +0000 (20:39 +0900)
committerSeungha Yang <seungha.yang@navercorp.com>
Tue, 18 Dec 2018 13:52:24 +0000 (22:52 +0900)
... to avoid mixing '/' and '\' in a path string on Windows.

meson.build
tests/check/meson.build

index 6d5720583657d450f8b6a2f14432815e43cc1266..f3f88004977153a22f7ec65dccedad6800dddab5 100644 (file)
@@ -25,7 +25,7 @@ gst_req = '>= @0@.@1@.0'.format(gst_version_major, gst_version_minor)
 
 api_version = '1.0'
 
-plugins_install_dir = '@0@/gstreamer-1.0'.format(get_option('libdir'))
+plugins_install_dir = join_paths(get_option('libdir'), 'gstreamer-1.0')
 
 cc = meson.get_compiler('c')
 host_system = host_machine.system()
index 2cb12623127edf76849ba3efe8d3169c2e0f6790..c4e0c8db866feddc1ae4c6127fb08b9f72f91387 100644 (file)
@@ -183,7 +183,7 @@ foreach t : good_tests
     env.set('GST_PLUGIN_PATH_1_0', [meson.build_root()] + pluginsdirs)
     env.set('GSETTINGS_BACKEND', 'memory')
 
-    env.set('GST_REGISTRY', '@0@/@1@.registry'.format(meson.current_build_dir(), test_name))
+    env.set('GST_REGISTRY', join_paths(meson.current_build_dir(), '@0@.registry'.format(test_name)))
     exe = executable(test_name, fname,
       include_directories : [configinc],
       c_args : ['-DHAVE_CONFIG_H=1' ] + test_defines,