Skip to content

Commit 9ca9884

Browse files
committed
add submodule sdl3
1 parent 8bec859 commit 9ca9884

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
[submodule "SDL2"]
22
path = SDL2
33
url = https://github.com/libsdl-org/sdl2-compat
4+
[submodule "SDL3"]
5+
path = SDL3
6+
url = https://github.com/libsdl-org/SDL

SDL3

Submodule SDL3 added at b5c3eab

build-cmd.sh

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ case "$AUTOBUILD_PLATFORM" in
5353

5454
mkdir -p "build_debug"
5555
pushd "build_debug"
56-
cmake .. -G "$AUTOBUILD_WIN_CMAKE_GEN" -A "$AUTOBUILD_WIN_VSPLATFORM" -DCMAKE_INSTALL_PREFIX=$(cygpath -m $stage)/debug
56+
cmake .. -G "$AUTOBUILD_WIN_CMAKE_GEN" -A "$AUTOBUILD_WIN_VSPLATFORM" \
57+
-DCMAKE_INSTALL_PREFIX=$(cygpath -m $stage)/debug \
58+
-DSDL3_INCLUDE_DIRS="$stage/SDL3/include"
5759

5860
cmake --build . --config Debug
5961
cmake --install . --config Debug
@@ -69,7 +71,9 @@ case "$AUTOBUILD_PLATFORM" in
6971

7072
mkdir -p "build_release"
7173
pushd "build_release"
72-
cmake .. -G "$AUTOBUILD_WIN_CMAKE_GEN" -A "$AUTOBUILD_WIN_VSPLATFORM" -DCMAKE_INSTALL_PREFIX=$(cygpath -m $stage)/release
74+
cmake .. -G "$AUTOBUILD_WIN_CMAKE_GEN" -A "$AUTOBUILD_WIN_VSPLATFORM" \
75+
-DCMAKE_INSTALL_PREFIX=$(cygpath -m $stage)/release \
76+
-DSDL3_INCLUDE_DIRS="$stage/SDL3/include"
7377

7478
cmake --build . --config Release
7579
cmake --install . --config Release
@@ -105,7 +109,8 @@ case "$AUTOBUILD_PLATFORM" in
105109
-DCMAKE_OSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET} \
106110
-DCMAKE_MACOSX_RPATH=YES \
107111
-DCMAKE_INSTALL_PREFIX="$stage" \
108-
-DCMAKE_INSTALL_LIBDIR="$stage/lib/release/$arch"
112+
-DCMAKE_INSTALL_LIBDIR="$stage/lib/release/$arch" \
113+
-DSDL3_INCLUDE_DIRS="$stage/SDL3/include"
109114

110115
cmake --build . --config Release
111116
cmake --install . --config Release
@@ -139,7 +144,8 @@ case "$AUTOBUILD_PLATFORM" in
139144
cmake .. -GNinja -DCMAKE_BUILD_TYPE="Release" \
140145
-DCMAKE_C_FLAGS="$(remove_cxxstd $opts)" \
141146
-DCMAKE_CXX_FLAGS="$opts" \
142-
-DCMAKE_INSTALL_PREFIX=$PREFIX_RELEASE
147+
-DCMAKE_INSTALL_PREFIX=$PREFIX_RELEASE \
148+
-DSDL3_INCLUDE_DIRS="$stage/SDL3/include"
143149

144150
cmake --build . --config Release
145151
cmake --install . --config Release

0 commit comments

Comments
 (0)