Xcode: use native path naming scheme.

This commit is contained in:
Jussi Pakkanen 2021-04-21 18:40:19 +03:00
parent 4881c2cf98
commit b9b00c714e
1 changed files with 6 additions and 1 deletions

View File

@ -32,8 +32,13 @@ foreach i : targets.to_list()
paths += i.full_path()
endforeach
# The Xcode backend has a different output naming scheme.
if meson.backend() == 'xcode'
assert(paths == [meson.project_build_root() / get_option('buildtype') / 'second.h',
meson.project_build_root() / get_option('buildtype') / 'second.sh'])
# Skip on Windows because paths are not identical, '/' VS '\'.
if host_machine.system() != 'windows'
elif host_machine.system() != 'windows'
assert(paths == [meson.current_build_dir() / 'second.h',
meson.current_build_dir() / 'second.sh'])
endif