Skip to content

Instantly share code, notes, and snippets.

@DevStefIt
Last active February 8, 2025 17:06
Show Gist options
  • Select an option

  • Save DevStefIt/342b3b8b569f11e80ea7e2c10d13ac0d to your computer and use it in GitHub Desktop.

Select an option

Save DevStefIt/342b3b8b569f11e80ea7e2c10d13ac0d to your computer and use it in GitHub Desktop.

Revisions

  1. DevStefIt revised this gist Feb 8, 2025. 2 changed files with 2 additions and 0 deletions.
    1 change: 1 addition & 0 deletions sdl_compile_debug.sh
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,4 @@
    # Make sure you opened the x64 Native Tools Command Prompt for VS 2022 and then opened MSYS2 shell command
    echo Getting SDL...
    git clone https://github.com/libsdl-org/SDL.git -b SDL2
    cd ../build
    1 change: 1 addition & 0 deletions sdl_compile_release.sh
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,4 @@
    # Make sure you opened the x64 Native Tools Command Prompt for VS 2022 and then opened MSYS2 shell command
    echo Getting SDL...
    git clone https://github.com/libsdl-org/SDL.git -b SDL2
    cd ../build
  2. DevStefIt revised this gist Feb 2, 2025. 2 changed files with 2 additions and 4 deletions.
    3 changes: 1 addition & 2 deletions sdl_compile_debug.sh
    Original file line number Diff line number Diff line change
    @@ -4,5 +4,4 @@ cd ../build
    mkdir SDL
    cd SDL
    cmake -G "Visual Studio 17 2022" -A x64 -DCMAKE_INSTALL_PREFIX="../../installed/SDL" -DSDL_STATIC=ON -DSDL_SHARED=OFF ../../sources/SDL
    cmake --build . --config Debug --target install
    cd ../../sources
    cmake --build . --config Debug --target install
    3 changes: 1 addition & 2 deletions sdl_compile_release.sh
    Original file line number Diff line number Diff line change
    @@ -4,5 +4,4 @@ cd ../build
    mkdir SDL
    cd SDL
    cmake -G "Visual Studio 17 2022" -A x64 -DCMAKE_INSTALL_PREFIX="../../installed/SDL" -DSDL_STATIC=ON -DSDL_SHARED=OFF ../../sources/SDL
    cmake --build . --config Release --target install
    cd ../../sources
    cmake --build . --config Release --target install
  3. DevStefIt created this gist Jan 16, 2025.
    8 changes: 8 additions & 0 deletions sdl_compile_debug.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    echo Getting SDL...
    git clone https://github.com/libsdl-org/SDL.git -b SDL2
    cd ../build
    mkdir SDL
    cd SDL
    cmake -G "Visual Studio 17 2022" -A x64 -DCMAKE_INSTALL_PREFIX="../../installed/SDL" -DSDL_STATIC=ON -DSDL_SHARED=OFF ../../sources/SDL
    cmake --build . --config Debug --target install
    cd ../../sources
    8 changes: 8 additions & 0 deletions sdl_compile_release.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    echo Getting SDL...
    git clone https://github.com/libsdl-org/SDL.git -b SDL2
    cd ../build
    mkdir SDL
    cd SDL
    cmake -G "Visual Studio 17 2022" -A x64 -DCMAKE_INSTALL_PREFIX="../../installed/SDL" -DSDL_STATIC=ON -DSDL_SHARED=OFF ../../sources/SDL
    cmake --build . --config Release --target install
    cd ../../sources