-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Linux to Windows cross-compilation script.
- Loading branch information
Showing
4 changed files
with
21 additions
and
5 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# #!/bin/bash | ||
# Edit this to match the SDL2 mingw development files you downloaded and extracted somewhere: | ||
MINGW_SDL2_LIB_DIR=" /home/${USER}/lib/SDL2-2.30.5/x86_64-w64-mingw32/lib/" | ||
|
||
# Edit these to match your system's mingw cross-compiler locations: | ||
MINGW_GCC_PATH="/usr/bin/x86_64-w64-mingw32-gcc" | ||
MINGW_AR_PATH="/usr/x86_64-w64-mingw32/bin/ar" | ||
RUSTFLAGS="-L${MINGW_SDL2_LIB_DIR}" CARGO_TARGET_X86_64_PC_WINDOWS_GNU_LINKER="${MINGW_GCC_PATH}" AR="${MINGW_AR_PATH}" cargo build --release --target x86_64-pc-windows-gnu |