scyther/src/subbuild-mac-universal.sh
2007-05-03 13:21:43 +00:00

22 lines
584 B
Bash
Executable File

#!/bin/sh
# Default flags
CMFLAGS="-D CMAKE_BUILD_TYPE:STRING=Release"
# Make for ppc and intel, and combine into universal binary
cmake $CMFLAGS -D TARGETOS=MacPPC . && make
cmake $CMFLAGS -D TARGETOS=MacIntel . && make
cmake $CMFLAGS . && make scyther-mac
echo
echo
echo "---------------------------------------------------------"
echo "Built the Mac universal binary"
# Copy to the correct locations
cp scyther-mac ../gui/Scyther/Bin
echo Copied the files to their respective locations
echo "---------------------------------------------------------"