From f873d7f7b4031f12e730cc80cb6d03fb728e628f Mon Sep 17 00:00:00 2001 From: 2youyouo2 <501251991@qq.com> Date: Wed, 17 May 2017 17:58:01 +0800 Subject: [PATCH 1/2] update game.rc --- .../frameworks/runtime-src/proj.win32/game.rc | 83 +------------------ .../frameworks/runtime-src/proj.win32/game.rc | 7 +- .../frameworks/runtime-src/proj.win32/game.rc | 7 +- 3 files changed, 10 insertions(+), 87 deletions(-) diff --git a/native/templates/js-template-binary/frameworks/runtime-src/proj.win32/game.rc b/native/templates/js-template-binary/frameworks/runtime-src/proj.win32/game.rc index 65a3d825ec..491e970a7d 100755 --- a/native/templates/js-template-binary/frameworks/runtime-src/proj.win32/game.rc +++ b/native/templates/js-template-binary/frameworks/runtime-src/proj.win32/game.rc @@ -7,7 +7,7 @@ // // Generated from the TEXTINCLUDE 2 resource. // -#include "winres.h" +#include "winresrc.h" ///////////////////////////////////////////////////////////////////////////// #undef APSTUDIO_READONLY_SYMBOLS @@ -27,7 +27,7 @@ LANGUAGE LANG_CHINESE, SUBLANG_CHINESE_SIMPLIFIED 2 TEXTINCLUDE BEGIN - "#include ""winres.h""\r\n" + "#include ""winresrc.h""\r\n" "\0" END @@ -39,84 +39,10 @@ END #endif // APSTUDIO_INVOKED - -///////////////////////////////////////////////////////////////////////////// -// -// Menu -// - -IDR_MENU_COCOS MENU -BEGIN - POPUP "°ïÖú(&H)" - BEGIN - MENUITEM "¹ØÓÚ(&A)", ID_HELP_ABOUT - END -END - - -///////////////////////////////////////////////////////////////////////////// -// -// Dialog -// - -IDD_DIALOG_ABOUT DIALOGEX 0, 0, 243, 134 -STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU -CAPTION "About Simulator" -FONT 8, "MS Shell Dlg", 400, 0, 0x1 -BEGIN - CTEXT "Version 3.10 (20151222)",IDC_ABOUT_VERSION,35,70,173,17 - CTEXT "Cocos Simulator",IDC_ABOUT_TITLE,35,49,173,17 - CTEXT "Copyright (C) 2015. All rights reserved.",IDC_STATIC,35,94,173,17 - ICON "GLFW_ICON",IDC_STATIC,111,15,20,20 -END - - -///////////////////////////////////////////////////////////////////////////// -// -// DESIGNINFO -// - -#ifdef APSTUDIO_INVOKED -GUIDELINES DESIGNINFO -BEGIN - IDD_DIALOG_ABOUT, DIALOG - BEGIN - LEFTMARGIN, 7 - RIGHTMARGIN, 236 - TOPMARGIN, 7 - BOTTOMMARGIN, 127 - END -END -#endif // APSTUDIO_INVOKED - #endif // Chinese (Simplified, PRC) resources ///////////////////////////////////////////////////////////////////////////// -///////////////////////////////////////////////////////////////////////////// -// English resources - -#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) -LANGUAGE LANG_ENGLISH, SUBLANG_NEUTRAL -#pragma code_page(1252) - -///////////////////////////////////////////////////////////////////////////// -// -// Menu -// - -IDR_MENU_COCOS MENU -BEGIN - POPUP "&Help" - BEGIN - MENUITEM "&About ...", ID_HELP_ABOUT - END -END - -#endif // English resources -///////////////////////////////////////////////////////////////////////////// - - ///////////////////////////////////////////////////////////////////////////// // English (United States) resources @@ -167,7 +93,7 @@ VS_VERSION_INFO VERSIONINFO BEGIN BLOCK "StringFileInfo" BEGIN - BLOCK "040904b0" + BLOCK "040904B0" BEGIN VALUE "FileDescription", "game Module" VALUE "FileVersion", "1, 0, 0, 1" @@ -197,5 +123,4 @@ END ///////////////////////////////////////////////////////////////////////////// -#endif // not APSTUDIO_INVOKED - +#endif // not APSTUDIO_INVOKED \ No newline at end of file diff --git a/native/templates/js-template-default/frameworks/runtime-src/proj.win32/game.rc b/native/templates/js-template-default/frameworks/runtime-src/proj.win32/game.rc index e2df7906f7..491e970a7d 100755 --- a/native/templates/js-template-default/frameworks/runtime-src/proj.win32/game.rc +++ b/native/templates/js-template-default/frameworks/runtime-src/proj.win32/game.rc @@ -7,7 +7,7 @@ // // Generated from the TEXTINCLUDE 2 resource. // -#include "afxres.h" +#include "winresrc.h" ///////////////////////////////////////////////////////////////////////////// #undef APSTUDIO_READONLY_SYMBOLS @@ -27,7 +27,7 @@ LANGUAGE LANG_CHINESE, SUBLANG_CHINESE_SIMPLIFIED 2 TEXTINCLUDE BEGIN - "#include ""afxres.h""\r\n" + "#include ""winresrc.h""\r\n" "\0" END @@ -123,5 +123,4 @@ END ///////////////////////////////////////////////////////////////////////////// -#endif // not APSTUDIO_INVOKED - +#endif // not APSTUDIO_INVOKED \ No newline at end of file diff --git a/native/templates/js-template-link/frameworks/runtime-src/proj.win32/game.rc b/native/templates/js-template-link/frameworks/runtime-src/proj.win32/game.rc index e2df7906f7..491e970a7d 100755 --- a/native/templates/js-template-link/frameworks/runtime-src/proj.win32/game.rc +++ b/native/templates/js-template-link/frameworks/runtime-src/proj.win32/game.rc @@ -7,7 +7,7 @@ // // Generated from the TEXTINCLUDE 2 resource. // -#include "afxres.h" +#include "winresrc.h" ///////////////////////////////////////////////////////////////////////////// #undef APSTUDIO_READONLY_SYMBOLS @@ -27,7 +27,7 @@ LANGUAGE LANG_CHINESE, SUBLANG_CHINESE_SIMPLIFIED 2 TEXTINCLUDE BEGIN - "#include ""afxres.h""\r\n" + "#include ""winresrc.h""\r\n" "\0" END @@ -123,5 +123,4 @@ END ///////////////////////////////////////////////////////////////////////////// -#endif // not APSTUDIO_INVOKED - +#endif // not APSTUDIO_INVOKED \ No newline at end of file From 61c76e0d8b20a4048e221f3cb056650bd45bfd11 Mon Sep 17 00:00:00 2001 From: 2youyouo2 <501251991@qq.com> Date: Wed, 17 May 2017 18:02:57 +0800 Subject: [PATCH 2/2] support vs 2017 --- native/cocos/2d/libcocos2d.vcxproj | 4 ++ .../proj.win32/libDragonBones.vcxproj | 4 ++ .../spine/proj.win32/libSpine.vcxproj | 4 ++ .../proj.win32/libjscocos2d.vcxproj | 4 ++ .../proj.win32/HelloJavascript.vcxproj | 4 ++ .../proj.win32/HelloJavascript.vcxproj | 4 ++ .../proj.win32/HelloJavascript.vcxproj | 4 ++ .../runtime-src/proj.win32/simulator.vcxproj | 44 ++++++++++--------- .../proj.win32/libsimulator.vcxproj | 4 ++ 9 files changed, 56 insertions(+), 20 deletions(-) diff --git a/native/cocos/2d/libcocos2d.vcxproj b/native/cocos/2d/libcocos2d.vcxproj index 9a7edab79a..ad20d2bd2d 100644 --- a/native/cocos/2d/libcocos2d.vcxproj +++ b/native/cocos/2d/libcocos2d.vcxproj @@ -24,6 +24,8 @@ v120_xp v140 v140_xp + v141 + v141_xp DynamicLibrary @@ -32,6 +34,8 @@ v120_xp v140 v140_xp + v141 + v141_xp diff --git a/native/cocos/editor-support/dragonbones/proj.win32/libDragonBones.vcxproj b/native/cocos/editor-support/dragonbones/proj.win32/libDragonBones.vcxproj index fdd9a0f9dd..aa483f332b 100644 --- a/native/cocos/editor-support/dragonbones/proj.win32/libDragonBones.vcxproj +++ b/native/cocos/editor-support/dragonbones/proj.win32/libDragonBones.vcxproj @@ -82,6 +82,8 @@ v120_xp v140 v140_xp + v141 + v141_xp Unicode @@ -91,6 +93,8 @@ v120_xp v140 v140_xp + v141 + v141_xp true Unicode diff --git a/native/cocos/editor-support/spine/proj.win32/libSpine.vcxproj b/native/cocos/editor-support/spine/proj.win32/libSpine.vcxproj index 85caff32d6..ecaf78c525 100644 --- a/native/cocos/editor-support/spine/proj.win32/libSpine.vcxproj +++ b/native/cocos/editor-support/spine/proj.win32/libSpine.vcxproj @@ -103,6 +103,8 @@ v120_xp v140 v140_xp + v141 + v141_xp Unicode @@ -112,6 +114,8 @@ v120_xp v140 v140_xp + v141 + v141_xp true Unicode diff --git a/native/cocos/scripting/js-bindings/proj.win32/libjscocos2d.vcxproj b/native/cocos/scripting/js-bindings/proj.win32/libjscocos2d.vcxproj index fbdc25e641..240252deb3 100644 --- a/native/cocos/scripting/js-bindings/proj.win32/libjscocos2d.vcxproj +++ b/native/cocos/scripting/js-bindings/proj.win32/libjscocos2d.vcxproj @@ -132,6 +132,8 @@ v120_xp v140 v140_xp + v141 + v141_xp StaticLibrary @@ -141,6 +143,8 @@ v120_xp v140 v140_xp + v141 + v141_xp diff --git a/native/templates/js-template-binary/frameworks/runtime-src/proj.win32/HelloJavascript.vcxproj b/native/templates/js-template-binary/frameworks/runtime-src/proj.win32/HelloJavascript.vcxproj index f552c65c82..c8c2484c2f 100755 --- a/native/templates/js-template-binary/frameworks/runtime-src/proj.win32/HelloJavascript.vcxproj +++ b/native/templates/js-template-binary/frameworks/runtime-src/proj.win32/HelloJavascript.vcxproj @@ -25,6 +25,8 @@ v120_xp v140 v140_xp + v141 + v141_xp Application @@ -36,6 +38,8 @@ v120_xp v140 v140_xp + v141 + v141_xp diff --git a/native/templates/js-template-default/frameworks/runtime-src/proj.win32/HelloJavascript.vcxproj b/native/templates/js-template-default/frameworks/runtime-src/proj.win32/HelloJavascript.vcxproj index 3781df0101..941d9717a3 100755 --- a/native/templates/js-template-default/frameworks/runtime-src/proj.win32/HelloJavascript.vcxproj +++ b/native/templates/js-template-default/frameworks/runtime-src/proj.win32/HelloJavascript.vcxproj @@ -22,6 +22,8 @@ v120_xp v140 v140_xp + v141 + v141_xp Application @@ -30,6 +32,8 @@ v120_xp v140 v140_xp + v141 + v141_xp diff --git a/native/templates/js-template-link/frameworks/runtime-src/proj.win32/HelloJavascript.vcxproj b/native/templates/js-template-link/frameworks/runtime-src/proj.win32/HelloJavascript.vcxproj index 14bedcd75c..7fddccacdf 100755 --- a/native/templates/js-template-link/frameworks/runtime-src/proj.win32/HelloJavascript.vcxproj +++ b/native/templates/js-template-link/frameworks/runtime-src/proj.win32/HelloJavascript.vcxproj @@ -22,6 +22,8 @@ v120_xp v140 v140_xp + v141 + v141_xp Application @@ -30,6 +32,8 @@ v120_xp v140 v140_xp + v141 + v141_xp diff --git a/native/tools/simulator/frameworks/runtime-src/proj.win32/simulator.vcxproj b/native/tools/simulator/frameworks/runtime-src/proj.win32/simulator.vcxproj index 07232aa74d..99f4830360 100755 --- a/native/tools/simulator/frameworks/runtime-src/proj.win32/simulator.vcxproj +++ b/native/tools/simulator/frameworks/runtime-src/proj.win32/simulator.vcxproj @@ -23,6 +23,8 @@ v120 v140 v140_xp + v141 + v141_xp Application @@ -32,6 +34,8 @@ v120 v140 v140_xp + v141 + v141_xp @@ -111,9 +115,9 @@ - if not exist "$(OutDir)" mkdir "$(OutDir)" - -xcopy /Y /Q "$(ProjectDir)..\Classes\ide-support\lang" "$(OutDir)" + if not exist "$(OutDir)" mkdir "$(OutDir)" + +xcopy /Y /Q "$(ProjectDir)..\Classes\ide-support\lang" "$(OutDir)" @@ -123,13 +127,13 @@ xcopy /Y /Q "$(ProjectDir)..\Classes\ide-support\lang" "$(OutDir)" - if not exist "$(ProjectDir)..\..\..\runtime" mkdir "$(ProjectDir)..\..\..\runtime" - -if not exist "$(ProjectDir)..\..\..\runtime\win32" mkdir "$(ProjectDir)..\..\..\runtime\win32" - -xcopy /Y /Q "$(OutDir)*.dll" "$(ProjectDir)..\..\..\runtime\win32" -xcopy /Y /Q "$(OutDir)*.exe" "$(ProjectDir)..\..\..\runtime\win32" -xcopy /Y /Q "$(OutDir)lang" "$(ProjectDir)..\..\..\runtime\win32" + if not exist "$(ProjectDir)..\..\..\runtime" mkdir "$(ProjectDir)..\..\..\runtime" + +if not exist "$(ProjectDir)..\..\..\runtime\win32" mkdir "$(ProjectDir)..\..\..\runtime\win32" + +xcopy /Y /Q "$(OutDir)*.dll" "$(ProjectDir)..\..\..\runtime\win32" +xcopy /Y /Q "$(OutDir)*.exe" "$(ProjectDir)..\..\..\runtime\win32" +xcopy /Y /Q "$(OutDir)lang" "$(ProjectDir)..\..\..\runtime\win32" @@ -177,9 +181,9 @@ xcopy /Y /Q "$(OutDir)lang" "$(ProjectDir)..\..\..\runtime\win32" - if not exist "$(OutDir)" mkdir "$(OutDir)" - -xcopy /Y /Q "$(ProjectDir)..\Classes\ide-support\lang" "$(OutDir)" + if not exist "$(OutDir)" mkdir "$(OutDir)" + +xcopy /Y /Q "$(ProjectDir)..\Classes\ide-support\lang" "$(OutDir)" @@ -189,13 +193,13 @@ xcopy /Y /Q "$(ProjectDir)..\Classes\ide-support\lang" "$(OutDir)" - if not exist "$(ProjectDir)..\..\..\runtime" mkdir "$(ProjectDir)..\..\..\runtime" - -if not exist "$(ProjectDir)..\..\..\runtime\win32" mkdir "$(ProjectDir)..\..\..\runtime\win32" - -xcopy /Y /Q "$(OutDir)*.dll" "$(ProjectDir)..\..\..\runtime\win32" -xcopy /Y /Q "$(OutDir)*.exe" "$(ProjectDir)..\..\..\runtime\win32" -xcopy /Y /Q "$(OutDir)lang" "$(ProjectDir)..\..\..\runtime\win32" + if not exist "$(ProjectDir)..\..\..\runtime" mkdir "$(ProjectDir)..\..\..\runtime" + +if not exist "$(ProjectDir)..\..\..\runtime\win32" mkdir "$(ProjectDir)..\..\..\runtime\win32" + +xcopy /Y /Q "$(OutDir)*.dll" "$(ProjectDir)..\..\..\runtime\win32" +xcopy /Y /Q "$(OutDir)*.exe" "$(ProjectDir)..\..\..\runtime\win32" +xcopy /Y /Q "$(OutDir)lang" "$(ProjectDir)..\..\..\runtime\win32" diff --git a/native/tools/simulator/libsimulator/proj.win32/libsimulator.vcxproj b/native/tools/simulator/libsimulator/proj.win32/libsimulator.vcxproj index 0f3d47c5e9..b1330850e9 100755 --- a/native/tools/simulator/libsimulator/proj.win32/libsimulator.vcxproj +++ b/native/tools/simulator/libsimulator/proj.win32/libsimulator.vcxproj @@ -23,6 +23,8 @@ v120_xp v140 v140_xp + v141 + v141_xp Unicode @@ -32,6 +34,8 @@ v120_xp v140 v140_xp + v141 + v141_xp true Unicode