From 2e3e474c3e8d41c67342ea02edc2c658a7f6d09e Mon Sep 17 00:00:00 2001 From: James Chen Date: Tue, 10 Oct 2017 14:28:51 +0800 Subject: [PATCH] [android] Adds APP_CFLAGS for template projects. --- .../runtime-src/proj.android-studio/app/jni/Application.mk | 2 ++ .../frameworks/runtime-src/proj.android/jni/Application.mk | 2 ++ .../runtime-src/proj.android-studio/app/jni/Application.mk | 2 ++ .../frameworks/runtime-src/proj.android/jni/Application.mk | 2 ++ .../runtime-src/proj.android-studio/app/jni/Application.mk | 2 ++ .../frameworks/runtime-src/proj.android/jni/Application.mk | 2 ++ 6 files changed, 12 insertions(+) diff --git a/native/templates/js-template-binary/frameworks/runtime-src/proj.android-studio/app/jni/Application.mk b/native/templates/js-template-binary/frameworks/runtime-src/proj.android-studio/app/jni/Application.mk index 22933f3d45..3059fd0da8 100755 --- a/native/templates/js-template-binary/frameworks/runtime-src/proj.android-studio/app/jni/Application.mk +++ b/native/templates/js-template-binary/frameworks/runtime-src/proj.android-studio/app/jni/Application.mk @@ -18,9 +18,11 @@ endif ifeq ($(NDK_DEBUG),1) APP_CPPFLAGS += -DCOCOS2D_DEBUG=1 + APP_CFLAGS += -DCOCOS2D_DEBUG=1 APP_OPTIM := debug else APP_CPPFLAGS += -DNDEBUG + APP_CFLAGS += -DNDEBUG APP_OPTIM := release endif diff --git a/native/templates/js-template-binary/frameworks/runtime-src/proj.android/jni/Application.mk b/native/templates/js-template-binary/frameworks/runtime-src/proj.android/jni/Application.mk index 22933f3d45..3059fd0da8 100755 --- a/native/templates/js-template-binary/frameworks/runtime-src/proj.android/jni/Application.mk +++ b/native/templates/js-template-binary/frameworks/runtime-src/proj.android/jni/Application.mk @@ -18,9 +18,11 @@ endif ifeq ($(NDK_DEBUG),1) APP_CPPFLAGS += -DCOCOS2D_DEBUG=1 + APP_CFLAGS += -DCOCOS2D_DEBUG=1 APP_OPTIM := debug else APP_CPPFLAGS += -DNDEBUG + APP_CFLAGS += -DNDEBUG APP_OPTIM := release endif diff --git a/native/templates/js-template-default/frameworks/runtime-src/proj.android-studio/app/jni/Application.mk b/native/templates/js-template-default/frameworks/runtime-src/proj.android-studio/app/jni/Application.mk index 866d525d31..ca7481714b 100755 --- a/native/templates/js-template-default/frameworks/runtime-src/proj.android-studio/app/jni/Application.mk +++ b/native/templates/js-template-default/frameworks/runtime-src/proj.android-studio/app/jni/Application.mk @@ -18,8 +18,10 @@ endif ifeq ($(NDK_DEBUG),1) APP_CPPFLAGS += -DCOCOS2D_DEBUG=1 + APP_CFLAGS += -DCOCOS2D_DEBUG=1 APP_OPTIM := debug else APP_CPPFLAGS += -DNDEBUG + APP_CFLAGS += -DNDEBUG APP_OPTIM := release endif diff --git a/native/templates/js-template-default/frameworks/runtime-src/proj.android/jni/Application.mk b/native/templates/js-template-default/frameworks/runtime-src/proj.android/jni/Application.mk index 866d525d31..ca7481714b 100755 --- a/native/templates/js-template-default/frameworks/runtime-src/proj.android/jni/Application.mk +++ b/native/templates/js-template-default/frameworks/runtime-src/proj.android/jni/Application.mk @@ -18,8 +18,10 @@ endif ifeq ($(NDK_DEBUG),1) APP_CPPFLAGS += -DCOCOS2D_DEBUG=1 + APP_CFLAGS += -DCOCOS2D_DEBUG=1 APP_OPTIM := debug else APP_CPPFLAGS += -DNDEBUG + APP_CFLAGS += -DNDEBUG APP_OPTIM := release endif diff --git a/native/templates/js-template-link/frameworks/runtime-src/proj.android-studio/app/jni/Application.mk b/native/templates/js-template-link/frameworks/runtime-src/proj.android-studio/app/jni/Application.mk index 866d525d31..ca7481714b 100755 --- a/native/templates/js-template-link/frameworks/runtime-src/proj.android-studio/app/jni/Application.mk +++ b/native/templates/js-template-link/frameworks/runtime-src/proj.android-studio/app/jni/Application.mk @@ -18,8 +18,10 @@ endif ifeq ($(NDK_DEBUG),1) APP_CPPFLAGS += -DCOCOS2D_DEBUG=1 + APP_CFLAGS += -DCOCOS2D_DEBUG=1 APP_OPTIM := debug else APP_CPPFLAGS += -DNDEBUG + APP_CFLAGS += -DNDEBUG APP_OPTIM := release endif diff --git a/native/templates/js-template-link/frameworks/runtime-src/proj.android/jni/Application.mk b/native/templates/js-template-link/frameworks/runtime-src/proj.android/jni/Application.mk index 866d525d31..ca7481714b 100755 --- a/native/templates/js-template-link/frameworks/runtime-src/proj.android/jni/Application.mk +++ b/native/templates/js-template-link/frameworks/runtime-src/proj.android/jni/Application.mk @@ -18,8 +18,10 @@ endif ifeq ($(NDK_DEBUG),1) APP_CPPFLAGS += -DCOCOS2D_DEBUG=1 + APP_CFLAGS += -DCOCOS2D_DEBUG=1 APP_OPTIM := debug else APP_CPPFLAGS += -DNDEBUG + APP_CFLAGS += -DNDEBUG APP_OPTIM := release endif