From 18537b6a8a6a8d60efab0841b6d517680f9b8e19 Mon Sep 17 00:00:00 2001 From: James Chen Date: Thu, 9 Feb 2017 10:40:19 +0800 Subject: [PATCH] Updates project configuration for win32 and assert logic fix for HttpClient. --- native/cocos/2d/libcocos2d.vcxproj | 4 ++-- native/cocos/network/HttpClient-apple.mm | 2 +- native/cocos/network/HttpClient.cpp | 2 +- .../frameworks/runtime-src/proj.win32/HelloJavascript.vcxproj | 4 ++-- .../frameworks/runtime-src/proj.win32/HelloJavascript.vcxproj | 4 ++-- .../frameworks/runtime-src/proj.win32/HelloJavascript.vcxproj | 4 ++-- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/native/cocos/2d/libcocos2d.vcxproj b/native/cocos/2d/libcocos2d.vcxproj index c8055399b6..b0fb6eca5e 100644 --- a/native/cocos/2d/libcocos2d.vcxproj +++ b/native/cocos/2d/libcocos2d.vcxproj @@ -103,7 +103,7 @@ xcopy /Y /Q "$(ProjectDir)..\..\external\win32\libs\Debug\*.*" "$(OutDir)"$(TargetDir)$(TargetName).lib MachineX86 cocos2d.def - sqlite3.lib;libcurl_imp.lib;websockets.lib;libmpg123.lib;libogg.lib;libvorbis.lib;libvorbisfile.lib;OpenAL32.lib;version.lib;libwebp.lib;%(AdditionalDependencies) + sqlite3.lib;libcrypto.lib;libssl.lib;libcurl.lib;websockets.lib;libmpg123.lib;libogg.lib;libvorbis.lib;libvorbisfile.lib;OpenAL32.lib;version.lib;libwebp.lib;%(AdditionalDependencies) @@ -135,7 +135,7 @@ xcopy /Y /Q "$(ProjectDir)..\..\external\win32\libs\*.*" "$(OutDir)" - sqlite3.lib;libcurl_imp.lib;websockets.lib;libmpg123.lib;libogg.lib;libvorbis.lib;libvorbisfile.lib;OpenAL32.lib;version.lib;libwebp.lib;%(AdditionalDependencies) + sqlite3.lib;libcrypto.lib;libssl.lib;libcurl.lib;websockets.lib;libmpg123.lib;libogg.lib;libvorbis.lib;libvorbisfile.lib;OpenAL32.lib;version.lib;libwebp.lib;%(AdditionalDependencies) $(OutDir)$(ProjectName).dll $(OutDir);%(AdditionalLibraryDirectories) LIBCMTD.lib;%(IgnoreSpecificDefaultLibraries) diff --git a/native/cocos/network/HttpClient-apple.mm b/native/cocos/network/HttpClient-apple.mm index c057509cd3..aa9619a4e5 100644 --- a/native/cocos/network/HttpClient-apple.mm +++ b/native/cocos/network/HttpClient-apple.mm @@ -507,7 +507,7 @@ void HttpClient::processResponse(HttpResponse* response, char* responseMessage) break; default: - CCASSERT(true, "CCHttpClient: unknown request type, only GET and POSt are supported"); + CCASSERT(false , "CCHttpClient: unknown request type, only GET,POST,PUT or DELETE is supported"); break; } diff --git a/native/cocos/network/HttpClient.cpp b/native/cocos/network/HttpClient.cpp index 94921ee21c..b196aa074f 100644 --- a/native/cocos/network/HttpClient.cpp +++ b/native/cocos/network/HttpClient.cpp @@ -558,7 +558,7 @@ void HttpClient::processResponse(HttpResponse* response, char* responseMessage) break; default: - CCASSERT(true, "CCHttpClient: unknown request type, only GET and POSt are supported"); + CCASSERT(false , "CCHttpClient: unknown request type, only GET,POST,PUT or DELETE is supported"); break; } 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 f8078d221f..f552c65c82 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 @@ -112,7 +112,7 @@ xcopy /Y /Q "$(COCOS_X_ROOT)\prebuilt\win32\*.*" "$(OutDir)" - libcurl_imp.lib;mozjs-33.lib;ws2_32.lib;sqlite3.lib;websockets.lib;%(AdditionalDependencies) + mozjs-33.lib;%(AdditionalDependencies) $(OutDir);%(AdditionalLibraryDirectories) libcmt.lib true @@ -183,7 +183,7 @@ xcopy /Y /Q "$(COCOS_X_ROOT)\prebuilt\win32\*.*" "$(OutDir)" - libcurl_imp.lib;mozjs-33.lib;ws2_32.lib;sqlite3.lib;websockets.lib;%(AdditionalDependencies) + mozjs-33.lib;%(AdditionalDependencies) $(OutDir);%(AdditionalLibraryDirectories) libcmt.lib Windows 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 124400545e..3781df0101 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 @@ -103,7 +103,7 @@ - libcurl_imp.lib;mozjs-33.lib;ws2_32.lib;sqlite3.lib;websockets.lib;%(AdditionalDependencies) + mozjs-33.lib;%(AdditionalDependencies) $(OutDir);%(AdditionalLibraryDirectories) true Windows @@ -166,7 +166,7 @@ copy "$(ProjectDir)..\..\..\project.json" "$(OutDir)\" /Y - libcurl_imp.lib;mozjs-33.lib;ws2_32.lib;sqlite3.lib;websockets.lib;%(AdditionalDependencies) + mozjs-33.lib;%(AdditionalDependencies) $(OutDir);%(AdditionalLibraryDirectories) Windows MachineX86 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 c4cd8c7495..14bedcd75c 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 @@ -103,7 +103,7 @@ - libcurl_imp.lib;mozjs-33.lib;ws2_32.lib;sqlite3.lib;websockets.lib;%(AdditionalDependencies) + mozjs-33.lib;%(AdditionalDependencies) $(OutDir);%(AdditionalLibraryDirectories) true Windows @@ -166,7 +166,7 @@ copy "$(ProjectDir)..\..\..\project.json" "$(OutDir)\" /Y - libcurl_imp.lib;mozjs-33.lib;ws2_32.lib;sqlite3.lib;websockets.lib;%(AdditionalDependencies) + mozjs-33.lib;%(AdditionalDependencies) $(OutDir);%(AdditionalLibraryDirectories) Windows MachineX86