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 c03744b345..26f53a1cfe 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 @@ -6,6 +6,9 @@ APP_ABI := armeabi-v7a APP_CPPFLAGS := -frtti -DCC_ENABLE_CHIPMUNK_INTEGRATION=1 -std=c++11 -fsigned-char -DPACKAGE_AS APP_LDFLAGS := -latomic +# To solve windows commands char length too long +APP_SHORT_COMMANDS := true + USE_ARM_MODE := 1 ifeq ($(NDK_DEBUG),1) 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 c03744b345..26f53a1cfe 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 @@ -6,6 +6,9 @@ APP_ABI := armeabi-v7a APP_CPPFLAGS := -frtti -DCC_ENABLE_CHIPMUNK_INTEGRATION=1 -std=c++11 -fsigned-char -DPACKAGE_AS APP_LDFLAGS := -latomic +# To solve windows commands char length too long +APP_SHORT_COMMANDS := true + USE_ARM_MODE := 1 ifeq ($(NDK_DEBUG),1) 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 70a22606b5..d9892dbbbe 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 @@ -6,6 +6,9 @@ APP_ABI := armeabi-v7a APP_CPPFLAGS := -frtti -DCC_ENABLE_CHIPMUNK_INTEGRATION=1 -DCC_ENABLE_BULLET_INTEGRATION=1 -std=c++11 -fsigned-char -DPACKAGE_AS APP_LDFLAGS := -latomic +# To solve windows commands char length too long +APP_SHORT_COMMANDS := true + USE_ARM_MODE := 1 ifeq ($(NDK_DEBUG),1) 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 70a22606b5..d9892dbbbe 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 @@ -6,6 +6,9 @@ APP_ABI := armeabi-v7a APP_CPPFLAGS := -frtti -DCC_ENABLE_CHIPMUNK_INTEGRATION=1 -DCC_ENABLE_BULLET_INTEGRATION=1 -std=c++11 -fsigned-char -DPACKAGE_AS APP_LDFLAGS := -latomic +# To solve windows commands char length too long +APP_SHORT_COMMANDS := true + USE_ARM_MODE := 1 ifeq ($(NDK_DEBUG),1) 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 70a22606b5..d9892dbbbe 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 @@ -6,6 +6,9 @@ APP_ABI := armeabi-v7a APP_CPPFLAGS := -frtti -DCC_ENABLE_CHIPMUNK_INTEGRATION=1 -DCC_ENABLE_BULLET_INTEGRATION=1 -std=c++11 -fsigned-char -DPACKAGE_AS APP_LDFLAGS := -latomic +# To solve windows commands char length too long +APP_SHORT_COMMANDS := true + USE_ARM_MODE := 1 ifeq ($(NDK_DEBUG),1) 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 70a22606b5..d9892dbbbe 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 @@ -6,6 +6,9 @@ APP_ABI := armeabi-v7a APP_CPPFLAGS := -frtti -DCC_ENABLE_CHIPMUNK_INTEGRATION=1 -DCC_ENABLE_BULLET_INTEGRATION=1 -std=c++11 -fsigned-char -DPACKAGE_AS APP_LDFLAGS := -latomic +# To solve windows commands char length too long +APP_SHORT_COMMANDS := true + USE_ARM_MODE := 1 ifeq ($(NDK_DEBUG),1) diff --git a/native/tools/simulator/frameworks/runtime-src/proj.android-studio/app/jni/Application.mk b/native/tools/simulator/frameworks/runtime-src/proj.android-studio/app/jni/Application.mk index 18cecb0948..6bc8dd13cc 100755 --- a/native/tools/simulator/frameworks/runtime-src/proj.android-studio/app/jni/Application.mk +++ b/native/tools/simulator/frameworks/runtime-src/proj.android-studio/app/jni/Application.mk @@ -1,8 +1,13 @@ APP_STL := gnustl_static +# Uncomment this line to compile to armeabi-v7a, your application will run faster but support less devices +APP_ABI := armeabi-v7a + APP_CPPFLAGS := -frtti -DCC_ENABLE_CHIPMUNK_INTEGRATION=1 -std=c++11 -fsigned-char APP_LDFLAGS := -latomic +# To solve windows commands char length too long +APP_SHORT_COMMANDS := true ifeq ($(NDK_DEBUG),1) APP_CPPFLAGS += -DCOCOS2D_DEBUG=1 diff --git a/native/tools/simulator/frameworks/runtime-src/proj.android/jni/Application.mk b/native/tools/simulator/frameworks/runtime-src/proj.android/jni/Application.mk index 18cecb0948..5b147892ce 100755 --- a/native/tools/simulator/frameworks/runtime-src/proj.android/jni/Application.mk +++ b/native/tools/simulator/frameworks/runtime-src/proj.android/jni/Application.mk @@ -3,6 +3,8 @@ APP_STL := gnustl_static APP_CPPFLAGS := -frtti -DCC_ENABLE_CHIPMUNK_INTEGRATION=1 -std=c++11 -fsigned-char APP_LDFLAGS := -latomic +# To solve windows commands char length too long +APP_SHORT_COMMANDS := true ifeq ($(NDK_DEBUG),1) APP_CPPFLAGS += -DCOCOS2D_DEBUG=1