- New build thing

This commit is contained in:
ccremers 2007-05-03 12:00:00 +00:00
parent 5b528f69ba
commit 71e79b5ed7
4 changed files with 46 additions and 14 deletions

View File

@ -1,12 +0,0 @@
#!/bin/sh
# Default flags
CMFLAGS="-D CMAKE_BUILD_TYPE:STRING=Release"
# Make for windows and linux
cmake $CMFLAGS -D TARGETOS=Win32 . && make
cmake $CMFLAGS . && make
# Copy to the correct locations
./copy2gui.sh

16
src/build.sh Executable file
View File

@ -0,0 +1,16 @@
#!/bin/sh
PLATFORM=`uname`
echo $PLATFORM
if [ "$PLATFORM" = "Darwin" ]
then
./subbuild-mac-universal.sh
else
if [ "$PLATFORM" = "Linux" ]
then
./subbuild-unix-both.sh
else
echo "I don't know platform $PLATFORM, so I won't do anything"
fi
fi

View File

@ -8,6 +8,12 @@ cmake $CMFLAGS -D TARGETOS=MacPPC . && make
cmake $CMFLAGS -D TARGETOS=MacIntel . && make cmake $CMFLAGS -D TARGETOS=MacIntel . && make
cmake $CMFLAGS . && make scyther-mac cmake $CMFLAGS . && make scyther-mac
# Copy to the correct locations echo
./copy2gui.sh 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

22
src/subbuild-unix-both.sh Executable file
View File

@ -0,0 +1,22 @@
#!/bin/sh
# Default flags
CMFLAGS="-D CMAKE_BUILD_TYPE:STRING=Release"
# Make for windows and linux
cmake $CMFLAGS -D TARGETOS=Win32 . && make
cmake $CMFLAGS . && make
echo
echo
echo "Built the Linux and Windows binaries"
# Copy to the correct locations
cp scyther-linux ../gui/Scyther/Bin
cp scyther-w32.exe ../gui/Scyther/Bin
# bonus...
cp scyther-linux ~/bin
echo Copied the files to their respective locations and ~/bin