changed compiling on Android to use optimization for release builds
authorHolger Schemel <info@artsoft.org>
Fri, 2 Oct 2020 13:09:57 +0000 (15:09 +0200)
committerHolger Schemel <info@artsoft.org>
Fri, 2 Oct 2020 13:09:57 +0000 (15:09 +0200)
src/Android.mk

index 9cc3047..0652311 100644 (file)
@@ -28,9 +28,11 @@ LOCAL_C_INCLUDES :=                          \
 
 DEBUG = -DDEBUG -g
 OPTIONS = $(DEBUG) -Wall                       # only for debugging purposes
-# OPTIONS = -O2 -Wall                          # distribution build
 
-# LOCAL_CFLAGS := -DTARGET_SDL2
+ifdef BUILD_DIST                               # distribution build
+OPTIONS = -O2 -Wall
+endif
+
 LOCAL_CFLAGS := -DTARGET_SDL2 $(OPTIONS)
 
 # application source code files