Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
meson: Use join_paths() instead of '/'
Let Meson decide correct seperator such as '\' for Windows and
'/' for others
  • Loading branch information
seungha-yang authored and tp-m committed Dec 18, 2018
1 parent 90e801e commit 076d023
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion meson.build
Expand Up @@ -31,7 +31,7 @@ curversion = gst_version_minor * 100 + gst_version_micro
libversion = '@0@.@1@.0'.format(soversion, curversion)
osxversion = curversion + 1

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()
Expand Down
14 changes: 7 additions & 7 deletions tests/check/meson.build
Expand Up @@ -152,39 +152,39 @@ foreach t : base_tests

env = environment()
env.set('GST_PLUGIN_PATH_1_0',
meson.build_root(), '@0@/@1@'.format(get_option('prefix'), plugins_install_dir),
meson.build_root(), join_paths(get_option('prefix'), plugins_install_dir),
pluginsdirs)
env.set('GST_PLUGIN_SYSTEM_PATH_1_0', '')
env.set('GST_STATE_IGNORE_ELEMENTS', 'cdio cdparanoiasrc libvisual_ alsasrc alsasink')
env.set('CK_DEFAULT_TIMEOUT', '20')
env.set('GST_TAG_LICENSE_TRANSLATIONS_DICT', gst_tag_dir + '/license-translations.dict')
env.set('GST_TAG_LICENSE_TRANSLATIONS_DICT', join_paths(gst_tag_dir, 'license-translations.dict'))
env.set('GST_PLUGIN_LOADING_WHITELIST', 'gstreamer',
'gst-plugins-base@' + meson.build_root(), separator: ':')
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)))
test(test_name, exe, env: env, timeout: 3 * 60)
endif
endforeach

# videoscale tests (split in groups)
foreach group : [1, 2, 3, 4, 5, 6]
vscale_test_name = 'elements-videoscale-@0@'.format(group)
exe = executable(vscale_test_name, 'elements/videoscale.c',
exe = executable(vscale_test_name, join_paths('elements', 'videoscale.c'),
include_directories : [configinc],
c_args : ['-DHAVE_CONFIG_H=1', '-DVSCALE_TEST_GROUP=@0@'.format(group) ] + test_defines,
dependencies : [libm] + test_deps + extra_deps)

# TODO Use env.copy when it is in meson
env = environment()
env.set('GST_PLUGIN_PATH_1_0',
meson.build_root(), '@0@/@1@'.format(get_option('prefix'), plugins_install_dir),
meson.build_root(), join_paths(get_option('prefix'), plugins_install_dir),
pluginsdirs)
env.set('GST_PLUGIN_SYSTEM_PATH_1_0', '')
env.set('GST_STATE_IGNORE_ELEMENTS', 'cdio cdparanoiasrc libvisual_ alsasrc alsasink')
env.set('CK_DEFAULT_TIMEOUT', '20')
env.set('GST_TAG_LICENSE_TRANSLATIONS_DICT', gst_tag_dir + '/license-translations.dict')
env.set('GST_TAG_LICENSE_TRANSLATIONS_DICT', join_paths(gst_tag_dir, 'license-translations.dict'))
env.set('GST_PLUGIN_LOADING_WHITELIST', 'gstreamer',
'gst-plugins-base@' + meson.build_root(), separator: ':')
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)))

test(vscale_test_name, exe, env: env, timeout: 3 * 60)
endforeach

0 comments on commit 076d023

Please sign in to comment.