Permalink
Browse files

build scripts actually added

  • Loading branch information...
1 parent 8601658 commit f583195d9053ce84df56fedf89c170ae8484e10d adomurad committed Jul 11, 2012
Showing with 45 additions and 0 deletions.
  1. +4 −0 clean.sh
  2. +9 −0 eclipse-make.sh
  3. +1 −0 fedora-deps.sh
  4. +21 −0 make.sh
  5. +10 −0 run.sh
View
@@ -0,0 +1,4 @@
+if [ -e ../lanarts_build ]; then
+ cd ../lanarts_build
+ make clean
+fi
View
@@ -0,0 +1,9 @@
+mkdir -p ../lanarts-eclipse
+cd ../lanarts-eclipse
+
+# Ccache speeds up compilation, a LOT
+if [ -e /usr/lib/ccache ]; then
+ export PATH=/usr/lib/ccache:$PATH
+fi
+
+cmake -G"Eclipse CDT4 - Unix Makefiles" ../lanarts
View
@@ -0,0 +1 @@
+sudo yum install SDL-static freetype-devel boost-devel cmake
View
21 make.sh
@@ -0,0 +1,21 @@
+mkdir -p ../lanarts_build
+cd ../lanarts_build
+
+# Ccache speeds up compilation, a LOT
+if [ -e /usr/lib/ccache ]; then
+ export PATH=/usr/lib/ccache:$PATH
+fi
+
+cmake ../lanarts
+
+## START TIMER CODE
+T="$(date +%s%N)"
+## START TIMER CODE
+
+##MAKE
+make -j4
+
+## END TIMER CODE
+T="$(($(date +%s%N)-T))"
+echo "Total build time: $((T/1000000))ms"
+## END TIMER CODE
View
10 run.sh
@@ -0,0 +1,10 @@
+if [ ! ./make.sh ]; then
+ echo "Build failed, aborting lanarts run."
+ return -1
+fi
+
+# Run lanarts
+
+cd ../lanarts
+export vblank_mode=0
+../lanarts_build/src/lanarts

0 comments on commit f583195

Please sign in to comment.