- New build thing
This commit is contained in:
parent
5b528f69ba
commit
71e79b5ed7
@ -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
16
src/build.sh
Executable 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
|
||||||
|
|
@ -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
22
src/subbuild-unix-both.sh
Executable 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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user