first
Some checks failed
Linux / Build Linux (push) Has been cancelled
Linux / Build Linux-1 (push) Has been cancelled
macOS / Build macOS (push) Has been cancelled
macOS / Build macOS-1 (push) Has been cancelled
Windows (MinGW) / Build MinGW (push) Has been cancelled
Windows (MinGW) / Build MinGW-1 (push) Has been cancelled
Windows (MSVC) / Build Windows (push) Has been cancelled
Windows (MSVC) / Build Windows-1 (push) Has been cancelled
Some checks failed
Linux / Build Linux (push) Has been cancelled
Linux / Build Linux-1 (push) Has been cancelled
macOS / Build macOS (push) Has been cancelled
macOS / Build macOS-1 (push) Has been cancelled
Windows (MinGW) / Build MinGW (push) Has been cancelled
Windows (MinGW) / Build MinGW-1 (push) Has been cancelled
Windows (MSVC) / Build Windows (push) Has been cancelled
Windows (MSVC) / Build Windows-1 (push) Has been cancelled
This commit is contained in:
commit
8269b17aa7
652 changed files with 273930 additions and 0 deletions
57
Quake/build_cross_osx.sh
Executable file
57
Quake/build_cross_osx.sh
Executable file
|
|
@ -0,0 +1,57 @@
|
|||
#!/bin/sh
|
||||
|
||||
rm -f quakespasm.ppc \
|
||||
quakespasm.x86 \
|
||||
quakespasm.x86_64 \
|
||||
QuakeSpasm
|
||||
make clean
|
||||
|
||||
OLDPATH=$PATH
|
||||
MAKE_CMD=make
|
||||
|
||||
OSXBUILD=1
|
||||
export OSXBUILD
|
||||
STRIP=/bin/true
|
||||
export STRIP
|
||||
|
||||
# ppc
|
||||
PATH=/opt/cross_osx-ppc/bin:$OLDPATH
|
||||
CC=powerpc-apple-darwin9-gcc
|
||||
AS=powerpc-apple-darwin9-as
|
||||
AR=powerpc-apple-darwin9-ar
|
||||
RANLIB=powerpc-apple-darwin9-ranlib
|
||||
LIPO=powerpc-apple-darwin9-lipo
|
||||
export PATH CC AS AR RANLIB LIPO
|
||||
$MAKE_CMD MACH_TYPE=ppc -f Makefile.darwin $* || exit 1
|
||||
powerpc-apple-darwin9-strip -S quakespasm || exit 1
|
||||
mv quakespasm quakespasm.ppc || exit 1
|
||||
$MAKE_CMD clean
|
||||
|
||||
# x86
|
||||
PATH=/opt/cross_osx-x86/bin:$OLDPATH
|
||||
CC=i686-apple-darwin9-gcc
|
||||
AS=i686-apple-darwin9-as
|
||||
AR=i686-apple-darwin9-ar
|
||||
RANLIB=i686-apple-darwin9-ranlib
|
||||
LIPO=i686-apple-darwin9-lipo
|
||||
export PATH CC AS AR RANLIB LIPO
|
||||
$MAKE_CMD MACH_TYPE=x86 -f Makefile.darwin $* || exit 1
|
||||
i686-apple-darwin9-strip -S quakespasm || exit 1
|
||||
mv quakespasm quakespasm.x86 || exit 1
|
||||
$MAKE_CMD clean
|
||||
|
||||
# x86_64
|
||||
PATH=/opt/cross_osx-x86_64/usr/bin:$OLDPATH
|
||||
CC=x86_64-apple-darwin9-gcc
|
||||
AS=x86_64-apple-darwin9-as
|
||||
AR=x86_64-apple-darwin9-ar
|
||||
RANLIB=x86_64-apple-darwin9-ranlib
|
||||
LIPO=x86_64-apple-darwin9-lipo
|
||||
export PATH CC AS AR RANLIB LIPO
|
||||
$MAKE_CMD MACH_TYPE=x86_64 -f Makefile.darwin $* || exit 1
|
||||
x86_64-apple-darwin9-strip -S quakespasm || exit 1
|
||||
mv quakespasm quakespasm.x86_64 || exit 1
|
||||
$MAKE_CMD clean
|
||||
|
||||
$LIPO -create -o QuakeSpasm quakespasm.ppc quakespasm.x86 quakespasm.x86_64 || exit 1
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue