Browse Source

Only build necessary things, update comment

This custom build script is a hack which should go away once GameLib
is more customizable in regard to what gets built
master
Macoy Madson 3 years ago
parent
commit
4a519dfe8c
  1. 2
      Android/app/jni/src/Android.mk
  2. 19
      Build.sh

2
Android/app/jni/src/Android.mk

@ -11,7 +11,7 @@ LOCAL_C_INCLUDES := $(LOCAL_PATH)/$(SDL_PATH)/include $(LOCAL_PATH)/../../../../
# Work around "bug" in cakelisp where too many parens
LOCAL_CFLAGS += -Wno-parentheses-equality
# Add your application source files here...
# Note that these generated files are copied into this folder in a Main.cake build step
LOCAL_SRC_FILES := Main.cake.cpp Math.cake.cpp SDL.cake.cpp PuzzleIO.cake.cpp
LOCAL_SHARED_LIBRARIES := SDL2

19
Build.sh

@ -1,9 +1,26 @@
#!/bin/sh
# Note that we everything build relative to GameLib, because GameLib isn't relocatable yet
cd Dependencies/gamelib
# Rather than using the large slow script, write our own which is leaner
# This is risky if GameLib changes how it needs to be built, but we're locked in a version anyways
# cd Dependencies/gamelib && ./Build_Debug.sh || exit $?
cd Dependencies/gamelib && ./Build_FromKitty.sh || exit $?
# cd Dependencies/gamelib && ./Build_FromKitty.sh || exit $?
# Build Cakelisp itself
echo "\n\nCakelisp\n\n"
cd Dependencies/cakelisp
./Build.sh || exit $?
cd ../..
# echo "\n\nAuto Test (Math only)\n\n"
# ./Dependencies/cakelisp/bin/cakelisp --execute test/src/Config_Linux.cake src/AutoTest.cake src/Math.cake || exit $?
echo "\n\nAuto Test\n\n"
./Dependencies/cakelisp/bin/cakelisp test/src/Config_Linux.cake src/AutoTest.cake src/SDL.cake src/Math.cake src/Aubio.cake || exit $?
# ./Dependencies/cakelisp/bin/cakelisp test/src/Config_Linux.cake src/AutoTest.cake src/SDL.cake src/Tracy.cake src/Math.cake src/Aubio.cake || exit $?
echo "\n\nKitty Gridlock\n\n"
CAKELISP=./Dependencies/cakelisp/bin/cakelisp

Loading…
Cancel
Save