Skip to content

Commit 1b69aa8

Browse files
drelaptopminggo
authored andcommitted
fix gen-libs error on android, update version info for vs (#439)
* fix gen-libs error, and update help info for vs * refactor ndk-mode -> mode
1 parent e19b816 commit 1b69aa8

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

bin/strings.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@
142142
"COMPILE_ARG_CPPFLAGS" : "Specify the APP_CPPFLAGS of ndk-build.",
143143
"COMPILE_ARG_NO_APK" : "Not generate the apk file.",
144144
"COMPILE_ARG_GROUP_WIN" : "Windows Options",
145-
"COMPILE_ARG_VS" : "Specify the Visual Studio version will be used. Such as: 2013. Default find available version automatically.",
145+
"COMPILE_ARG_VS" : "Specify the Visual Studio version will be used. Such as: 2015. Default find available version automatically.",
146146
"COMPILE_ARG_GROUP_WEB" : "Web Options",
147147
"COMPILE_ARG_SOURCE_MAP" : "Enable source-map",
148148
"COMPILE_ARG_ADVANCE" : "Compile all source js files using Closure Compiler's advanced mode, bigger compression ratio bug more risk.",
@@ -235,10 +235,10 @@
235235
"GEN_LIBS_ARG_CLEAN" : "Remove the 'prebuilt' folder at first.",
236236
"GEN_LIBS_ARG_ENGINE" : "Specify the engine path. Default is the engine root path of current tools.",
237237
"GEN_LIBS_ARG_PLATFORM" : "Specify the target platform. Can specify multi platform by using '-p' multi times. Default generate all available platforms.",
238-
"GEN_LIBS_ARG_MODE" : "Generate cocos libs for debug or release. Default is release.",
238+
"GEN_LIBS_ARG_MODE" : "Generate cocos libs for debug or release. Default is debug.",
239239
"GEN_LIBS_ARG_DISABLE_STRIP" : "Disable the strip of the generated libs.",
240240
"GEN_LIBS_GROUP_WIN" : "Windows Options",
241-
"GEN_LIBS_ARG_VS" : "Specify the Visual Studio version, such as 2013. Default find available version automatically.",
241+
"GEN_LIBS_ARG_VS" : "Specify the Visual Studio version, such as 2015. Default find available version automatically.",
242242
"GEN_LIBS_GROUP_ANDROID" : "Android Options",
243243
"GEN_LIBS_ARG_ABI" : "Set the APP_ABI of ndk-build. Can be multi value separated with ':'. Sample : --app-abi armeabi:x86:mips. Default value is 'armeabi'.",
244244
"GEN_LIBS_ERROR_WRONG_PATH_FMT" : "%s is not a valid path.",
@@ -255,7 +255,7 @@
255255
"GEN_SIM_ARG_MODE" : "Generate simulator for debug or release. Default is debug.",
256256
"GEN_SIM_ARG_OUTPUT" : "Where to save Cocos Simulator. Default is the 'simulator' folder in the root path of engine.",
257257
"GEN_SIM_ARG_PLATFORM" : "Specify the target platform. Can specify multi platform by using '-p' multi times. Default generate all available platforms.",
258-
"GEN_SIM_ARG_VS" : "Specify the Visual Studio version, such as 2013. Default find available version automatically.",
258+
"GEN_SIM_ARG_VS" : "Specify the Visual Studio version, such as 2015. Default find available version automatically.",
259259
"GEN_SIM_ERROR_WRONG_PATH_FMT" : "%s is not a valid path.",
260260
"GEN_SIM_ERROR_FILE_NOT_FOUND_FMT" : "Can not find %s",
261261
"GEN_SIM_ROLL_BACK_FAIL_FMT" : "Roll back file %s failed.\nPlease rollback %s to %s manually.",
@@ -487,7 +487,7 @@
487487
"COMPILE_ARG_CPPFLAGS" : "指定 ndk-build 的 APP_CPPFLAGS 属性。",
488488
"COMPILE_ARG_NO_APK" : "不生成 apk 文件。",
489489
"COMPILE_ARG_GROUP_WIN" : "Windows 相关参数",
490-
"COMPILE_ARG_VS" : "指定编译所使用的 Visual Studio 版本。如:2013。默认自动查找可用版本。",
490+
"COMPILE_ARG_VS" : "指定编译所使用的 Visual Studio 版本。如:2015。默认自动查找可用版本。",
491491
"COMPILE_ARG_GROUP_WEB" : "Web 相关参数",
492492
"COMPILE_ARG_SOURCE_MAP" : "启用 source-map",
493493
"COMPILE_ARG_ADVANCE" : "使用 closure 编译器的高级模式编译 js 文件,会获得更高的压缩率,但是有出现 bug 的风险。",
@@ -580,10 +580,10 @@
580580
"GEN_LIBS_ARG_CLEAN" : "生成预编译库之前先删除 'prebuilt' 文件夹。",
581581
"GEN_LIBS_ARG_ENGINE" : "指定引擎文件夹。默认值为当前工具所在的引擎根目录。",
582582
"GEN_LIBS_ARG_PLATFORM" : "指定需要编译的目标平台。可以通过多个 '-p' 参数指定编译多个目标平台。\n默认编译所有可用的目标平台。",
583-
"GEN_LIBS_ARG_MODE" : "指定使用 debug 或者 release 模式来生成预编译库。默认值为 release",
583+
"GEN_LIBS_ARG_MODE" : "指定使用 debug 或者 release 模式来生成预编译库。默认值为 debug",
584584
"GEN_LIBS_ARG_DISABLE_STRIP" : "关闭生成预编译库的 strip 功能。",
585585
"GEN_LIBS_GROUP_WIN" : "Windows 相关参数",
586-
"GEN_LIBS_ARG_VS" : "指定使用的 Visual Studio 版本,例如 2013。默认自动查找可用的版本。",
586+
"GEN_LIBS_ARG_VS" : "指定使用的 Visual Studio 版本,例如 2015。默认自动查找可用的版本。",
587587
"GEN_LIBS_GROUP_ANDROID" : "Android 相关参数",
588588
"GEN_LIBS_ARG_ABI" : "设置 ndk-build 的 APP_ABI 属性。可以使用 ':' 分隔多个值。示例:--app-abi armeabi:x86:mips。默认值为 'armeabi'。",
589589
"GEN_LIBS_ERROR_WRONG_PATH_FMT" : "%s 不是有效的路径。",
@@ -600,7 +600,7 @@
600600
"GEN_SIM_ARG_MODE" : "指定使用 debug 或者 release 模式来生成模拟器。默认值为 debug。",
601601
"GEN_SIM_ARG_OUTPUT" : "指定模拟器的输出目录。默认值为引擎根目录下的 'simulator' 文件夹。",
602602
"GEN_SIM_ARG_PLATFORM" : "指定需要编译的目标平台。可以通过多个 '-p' 参数指定编译多个目标平台。\n默认编译所有可用的目标平台。",
603-
"GEN_SIM_ARG_VS" : "指定使用的 Visual Studio 版本,例如 2013。默认自动查找可用的版本。",
603+
"GEN_SIM_ARG_VS" : "指定使用的 Visual Studio 版本,例如 2015。默认自动查找可用的版本。",
604604
"GEN_SIM_ERROR_WRONG_PATH_FMT" : "%s 不是有效的路径。",
605605
"GEN_SIM_ERROR_FILE_NOT_FOUND_FMT" : "无法找到 %s。",
606606
"GEN_SIM_ROLL_BACK_FAIL_FMT" : "回退文件 %s 失败。\n请手动将 %s 文件拷贝到 %s。",
@@ -831,7 +831,7 @@
831831
"COMPILE_ARG_CPPFLAGS" : "指定 ndk-build 的 APP_CPPFLAGS 屬性。",
832832
"COMPILE_ARG_NO_APK" : "不生成 apk 檔。",
833833
"COMPILE_ARG_GROUP_WIN" : "Windows 相關參數",
834-
"COMPILE_ARG_VS" : "編譯所使用的 Visual Studio 版本。如:2013。默認自動查找可用版本。",
834+
"COMPILE_ARG_VS" : "編譯所使用的 Visual Studio 版本。如:2015。默認自動查找可用版本。",
835835
"COMPILE_ARG_GROUP_WEB" : "Web 相關參數",
836836
"COMPILE_ARG_SOURCE_MAP" : "啟用 source-map",
837837
"COMPILE_ARG_ADVANCE" : "使用 closure 編譯器的高級模式編譯 js 檔案,會獲得更高的壓縮率,但是有出現 bug 的風險。",
@@ -924,10 +924,10 @@
924924
"GEN_LIBS_ARG_CLEAN" : "生成預編譯庫之前先刪除 'prebuilt' 檔夾。",
925925
"GEN_LIBS_ARG_ENGINE" : "指定引擎檔夾。默認值為當前工具所在的引擎根目錄。",
926926
"GEN_LIBS_ARG_PLATFORM" : "指定需要編譯的目標平臺。可以通過多個 '-p' 參數指定編譯多個目標平臺。\n默認編譯所有可用的目標平臺。",
927-
"GEN_LIBS_ARG_MODE" : "指定使用 debug 或者 release 模式來生成預編譯庫。默認值為 release",
927+
"GEN_LIBS_ARG_MODE" : "指定使用 debug 或者 release 模式來生成預編譯庫。默認值為 debug",
928928
"GEN_LIBS_ARG_DISABLE_STRIP" : "關閉生成預編譯庫的 strip 功能。",
929929
"GEN_LIBS_GROUP_WIN" : "Windows 相關參數",
930-
"GEN_LIBS_ARG_VS" : "指定使用的 Visual Studio 版本,例如 2013。默認自動查找可用的版本。",
930+
"GEN_LIBS_ARG_VS" : "指定使用的 Visual Studio 版本,例如 2015。默認自動查找可用的版本。",
931931
"GEN_LIBS_GROUP_ANDROID" : "Android 相關參數",
932932
"GEN_LIBS_ARG_ABI" : "設置 ndk-build 的 APP_ABI 屬性。可以使用 ':' 分隔多個值。示例:--app-abi armeabi:x86:mips。默認值為 'armeabi'。",
933933
"GEN_LIBS_ERROR_WRONG_PATH_FMT" : "%s 不是有效的路徑。",
@@ -944,7 +944,7 @@
944944
"GEN_SIM_ARG_MODE" : "指定使用 debug 或者 release 模式來生成模擬器。默認值為 debug。",
945945
"GEN_SIM_ARG_OUTPUT" : "指定模擬器的輸出目錄。默認值為引擎根目錄下的 'simulator' 檔夾。",
946946
"GEN_SIM_ARG_PLATFORM" : "指定需要編譯的目標平臺。可以通過多個 '-p' 參數指定編譯多個目標平臺。\n默認編譯所有可用的目標平臺。",
947-
"GEN_SIM_ARG_VS" : "指定使用的 Visual Studio 版本,例如 2013。默認自動查找可用的版本。",
947+
"GEN_SIM_ARG_VS" : "指定使用的 Visual Studio 版本,例如 2015。默認自動查找可用的版本。",
948948
"GEN_SIM_ERROR_WRONG_PATH_FMT" : "%s 不是有效的路徑。",
949949
"GEN_SIM_ERROR_FILE_NOT_FOUND_FMT" : "無法找到 %s。",
950950
"GEN_SIM_ROLL_BACK_FAIL_FMT" : "回退檔 %s 失敗。\n請手動將 %s 檔拷貝到 %s。",

plugins/plugin_generate/gen_libs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ def compile_android(self):
346346
elif self.language == 'js':
347347
proj_path = os.path.join(engine_dir, 'tests/js-tests')
348348

349-
build_cmd = "%s compile -s %s -p android --ndk-mode %s --app-abi %s" % (cmd_path, proj_path, self.mode, self.app_abi)
349+
build_cmd = "%s compile -s %s -p android --mode %s --app-abi %s" % (cmd_path, proj_path, self.mode, self.app_abi)
350350
if self.android_platform is not None:
351351
build_cmd += ' --ap %s' % self.android_platform
352352
self._run_cmd(build_cmd)

plugins/plugin_generate/gen_simulator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ def compile_for_android(self):
298298
])
299299

300300
command = ' '.join([
301-
" %s compile -p android --ndk-mode %s -o \"%s\" --no-res --compile-script 0" % (self.cocos_bin
301+
" %s compile -p android --mode %s -o \"%s\" --no-res --compile-script 0" % (self.cocos_bin
302302
, "debug" if self.mode == 'debug' else "release"
303303
, os.path.join(self.simulator_output_dir,"android")),
304304
"&& %s" % (rename_command),

0 commit comments

Comments
 (0)