From a04349ac71bca1fd5c35ba255e19ccaf91849d0f Mon Sep 17 00:00:00 2001 From: projectitis <32183808+projectitis@users.noreply.github.com> Date: Thu, 7 Oct 2021 02:18:56 +1300 Subject: [PATCH] examples, tests: replace backslashes with forward slashes for portability (#880) * Replace backslashes with forward slashes * Downgrade to older meson syntax --- meson.build | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index 41b1aa3d..758bad33 100644 --- a/meson.build +++ b/meson.build @@ -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())