mirror of
https://git.sr.ht/~rabbits/uxn
synced 2024-11-04 21:35:04 +00:00
Add --console switch to build with Console support on Windows.
This commit is contained in:
parent
256e597e48
commit
972d2a494b
2 changed files with 8 additions and 1 deletions
|
@ -55,6 +55,8 @@ cd uxn
|
||||||
./build.sh
|
./build.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
|
If you'd like to work with the Console device in `uxnemu.exe`, run `./build.sh --console` instead: this will bring up an extra window for console I/O unless you run `uxnemu.exe` in Command Prompt or PowerShell.
|
||||||
|
|
||||||
## Getting Started
|
## Getting Started
|
||||||
|
|
||||||
### Emulator
|
### Emulator
|
||||||
|
|
5
build.sh
5
build.sh
|
@ -30,7 +30,12 @@ CC="${CC:-cc}"
|
||||||
CFLAGS="${CFLAGS:--std=c89 -Wall -Wno-unknown-pragmas}"
|
CFLAGS="${CFLAGS:--std=c89 -Wall -Wno-unknown-pragmas}"
|
||||||
case "$(uname -s 2>/dev/null)" in
|
case "$(uname -s 2>/dev/null)" in
|
||||||
MSYS_NT*|MINGW*) # MSYS2 on Windows
|
MSYS_NT*|MINGW*) # MSYS2 on Windows
|
||||||
|
if [ "${1}" = '--console' ];
|
||||||
|
then
|
||||||
|
UXNEMU_LDFLAGS="-static $(sdl2-config --cflags --static-libs | sed -e 's/ -mwindows//g')"
|
||||||
|
else
|
||||||
UXNEMU_LDFLAGS="-static $(sdl2-config --cflags --static-libs)"
|
UXNEMU_LDFLAGS="-static $(sdl2-config --cflags --static-libs)"
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
Darwin) # macOS
|
Darwin) # macOS
|
||||||
CFLAGS="${CFLAGS} -Wno-typedef-redefinition"
|
CFLAGS="${CFLAGS} -Wno-typedef-redefinition"
|
||||||
|
|
Loading…
Reference in a new issue