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 9cc304735b4f7251ca54bdabfdc35123bea48723..0652311ffd768d6e7c7dc36fcd5ed4d8150a4e82 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