Skip to content

Commit

Permalink
Compile SDL2
Browse files Browse the repository at this point in the history
  • Loading branch information
grorp committed Mar 27, 2024
1 parent 17252d9 commit 04d3ad4
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions scripts/SDL2.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash -e
ver=2.30.1

download () {
get_tar_archive sdl2 "https://github.com/libsdl-org/SDL/releases/download/release-${ver}/SDL2-${ver}.tar.gz"
}

build () {
cmake $srcdir/sdl2 "${CMAKE_FLAGS[@]}" \
-DSDL_SHARED=OFF \
-DSDL_STATIC=ON \
-DSDL_TEST=OFF \
-DSDL2_DISABLE_SDL2MAIN=ON
make

make_install_copy
}

0 comments on commit 04d3ad4

Please sign in to comment.