Skip to content

Commit 453a21f

Browse files
committed
CI: Fix build.
1 parent 94c52d5 commit 453a21f

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

Script/ci_build.sh

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,13 @@ declare -A build_config=(
2525
[windows]='RelWithDebInfo'
2626
)
2727

28+
if [[ "$ci_platform" == "windows" ]] || [[ "$ci_platform" == "uwp" ]];
29+
then
30+
sep=';' # Windows uses semicolon as path separator
31+
else
32+
sep=':' # Unix-like systems use colon as path separator
33+
fi
34+
2835
function action-dependencies() {
2936
if [[ "$ci_platform" == "web" ]]; then
3037
sudo apt-get install -y --no-install-recommends uuid-dev ninja-build
@@ -48,7 +55,6 @@ function action-generate() {
4855
"-DEMSCRIPTEN_ROOT_PATH=$EMSDK/upstream/emscripten/"
4956
"-DCMAKE_BUILD_WITH_INSTALL_RPATH=ON"
5057
"-DBUILD_SHARED_LIBS=OFF"
51-
"-DURHO3D_SDK=$ci_native_sdk_dir"
5258
"-DCI_WEB_BUILD=ON"
5359
"-DCMAKE_BUILD_TYPE=Release"
5460
)
@@ -63,7 +69,11 @@ function action-generate() {
6369
fi
6470

6571
if [[ $ci_build_mode == "sdk" ]]; then
66-
params+=("-DREBELFORK_SDK=$ci_target_sdk_dir")
72+
params+=("-DCMAKE_PREFIX_PATH=$ci_target_sdk_dir${sep}$ci_native_sdk_dir")
73+
else
74+
# Subdirectory mode: point to engine CMake directory
75+
local engine_path="$ci_source_dir/../rbfx"
76+
params+=("-DCMAKE_PREFIX_PATH=$engine_path/CMake${sep}$ci_native_sdk_dir")
6777
fi
6878

6979
cmake "${params[@]}"

0 commit comments

Comments
 (0)