mirror of
https://github.com/ARMSX2/ARMSX1.git
synced 2026-08-24 16:53:35 -07:00
23 lines
801 B
PowerShell
23 lines
801 B
PowerShell
$VERSION_TAG = git describe --always --tags --abbrev=0
|
|
$COMMIT_HASH = git rev-parse --short HEAD
|
|
$OS_INFO = (Get-WMIObject win32_operatingsystem).caption + " " + (Get-WMIObject win32_operatingsystem).version + " " + (Get-WMIObject win32_operatingsystem).OSArchitecture
|
|
|
|
$SDL2_DIR = "SDL2-2.26.5\x86_64-w64-mingw32"
|
|
$PSX_DIR = "."
|
|
|
|
mkdir -Force -Path bin > $null
|
|
|
|
gcc -I"`"$($PSX_DIR)`"" `
|
|
-I"`"$($SDL2_DIR)\include`"" `
|
|
-I"`"$($SDL2_DIR)\include\SDL2`"" `
|
|
"psx\*.c" `
|
|
"psx\dev\*.c" `
|
|
"frontend\*.c" `
|
|
-o "bin\psxe.exe" `
|
|
-DREP_VERSION="`"$($VERSION_TAG)`"" `
|
|
-DREP_COMMIT_HASH="`"$($COMMIT_HASH)`"" `
|
|
-DOS_INFO="`"$($OS_INFO)`"" `
|
|
-L"`"$($SDL2_DIR)\lib`"" `
|
|
-m64 -lSDL2main -lSDL2 -Wno-overflow `
|
|
-Wall -pedantic -DLOG_USE_COLOR `
|
|
-ffast-math -Ofast |