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

22 lines
581 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/
echo Copied the files to their respective locations
echo "---------------------------------------------------------"