From d7b3bc096b766f166680665dd2c2822d4391fd19 Mon Sep 17 00:00:00 2001 From: 2youyouo2 <501251991@qq.com> Date: Thu, 27 Apr 2017 17:31:32 +0800 Subject: [PATCH] fixed windows commands char length too long --- .../runtime-src/proj.android-studio/app/jni/Application.mk | 3 +++ .../frameworks/runtime-src/proj.android/jni/Application.mk | 3 +++ .../runtime-src/proj.android-studio/app/jni/Application.mk | 3 +++ .../frameworks/runtime-src/proj.android/jni/Application.mk | 3 +++ .../runtime-src/proj.android-studio/app/jni/Application.mk | 3 +++ .../frameworks/runtime-src/proj.android/jni/Application.mk | 3 +++ .../runtime-src/proj.android-studio/app/jni/Application.mk | 5 +++++ .../frameworks/runtime-src/proj.android/jni/Application.mk | 2 ++ 8 files changed, 25 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 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