Skip to content

Commit

Permalink
Switch to SCM versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
RyeMutt committed Nov 19, 2024
1 parent 06f9d62 commit 4649f79
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
4 changes: 2 additions & 2 deletions autobuild.xml
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@
<string>windows64</string>
</map>
</map>
<key>version_file</key>
<string>VERSION.txt</string>
<key>use_scm_version</key>
<boolean>true</boolean>
</map>
<key>type</key>
<string>autobuild</string>
Expand Down
9 changes: 1 addition & 8 deletions build-cmd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,6 @@ case "$AUTOBUILD_PLATFORM" in
cp $stage/release/lib/*.lib $stage/lib/release/
cp $stage/release/include/SDL2/*.h $stage/include/SDL2/
popd

SDL_VERSION=$(sed -n -e 's/^Version: //p' "$TOP/$SDL_SOURCE_DIR/build_release/SDL2.spec")
;;
darwin*)
export MACOSX_DEPLOYMENT_TARGET="$LL_BUILD_DARWIN_DEPLOY_TARGET"
Expand Down Expand Up @@ -125,8 +123,6 @@ case "$AUTOBUILD_PLATFORM" in
dsymutil libSDL2.dylib
strip -x -S libSDL2.dylib
popd

SDL_VERSION=$(sed -n -e 's/^Version: //p' "$TOP/$SDL_SOURCE_DIR/build_arm64/SDL2.spec")
;;
linux*)
# Default target per autobuild build --address-size
Expand All @@ -152,8 +148,6 @@ case "$AUTOBUILD_PLATFORM" in
cp -a $PREFIX_RELEASE/include/SDL2/*.* $stage/include/SDL2
cp -a $PREFIX_RELEASE/lib/*.so* $stage/lib/release
cp -a $PREFIX_RELEASE/lib/libSDL2main.a $stage/lib/release

SDL_VERSION=$(sed -n -e 's/^Version: //p' "$TOP/$SDL_SOURCE_DIR/build_release/SDL2.spec")
;;

*)
Expand All @@ -163,5 +157,4 @@ esac
popd

mkdir -p "$stage/LICENSES"
cp "$TOP/$SDL_SOURCE_DIR/LICENSE.txt" "$stage/LICENSES/SDL2.txt"
echo "$SDL_VERSION" > "$stage/VERSION.txt"
cp "$TOP/$SDL_SOURCE_DIR/LICENSE.txt" "$stage/LICENSES/SDL2.txt"

0 comments on commit 4649f79

Please sign in to comment.