examples, tests: replace backslashes with forward slashes for portability (#880)

* Replace backslashes with forward slashes

* Downgrade to older meson syntax
This commit is contained in:
projectitis 2021-10-07 02:18:56 +13:00 committed by GitHub
parent 9737dd4a89
commit a04349ac71
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,8 +6,9 @@ project('thorvg',
config_h = configuration_data()
add_project_arguments('-DEXAMPLE_DIR="@0@/src/examples/images"'.format(meson.current_source_dir()),
'-DTEST_DIR="@0@/test/images"'.format(meson.current_source_dir()),
src_dir = '/'.join(meson.current_source_dir().split('\\'))
add_project_arguments('-DEXAMPLE_DIR="@0@/src/examples/images"'.format(src_dir),
'-DTEST_DIR="@0@/test/images"'.format(src_dir),
language : 'cpp')
config_h.set_quoted('THORVG_VERSION_STRING', meson.project_version())