From c7e9cee8353e3d865da5533578d92c9a3b50a575 Mon Sep 17 00:00:00 2001 From: Dhilan007 Date: Sun, 26 Jan 2014 10:25:49 +0800 Subject: [PATCH] updated vs project[Lua]: 1.add files of socket 2.fixed miss include path 3.fixed miss lib for release --- cocos/scripting/lua/bindings/CCLuaStack.cpp | 4 +- cocos/scripting/lua/bindings/liblua.vcxproj | 33 ++++++- .../lua/bindings/liblua.vcxproj.filters | 96 +++++++++++++++++++ .../Lua/HelloLua/proj.win32/HelloLua.vcxproj | 2 +- 4 files changed, 131 insertions(+), 4 deletions(-) diff --git a/cocos/scripting/lua/bindings/CCLuaStack.cpp b/cocos/scripting/lua/bindings/CCLuaStack.cpp index fedbf3c7d1..e96d0d7d91 100644 --- a/cocos/scripting/lua/bindings/CCLuaStack.cpp +++ b/cocos/scripting/lua/bindings/CCLuaStack.cpp @@ -31,7 +31,7 @@ extern "C" { #include "lualib.h" #include "lauxlib.h" #include "tolua_fix.h" -#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS || CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID) +#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS || CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID || CC_TARGET_PLATFORM == CC_PLATFORM_WIN32) #include "lua_extensions.h" #endif } @@ -149,7 +149,7 @@ bool LuaStack::init(void) {NULL, NULL} }; luaL_register(_state, "_G", global_functions); -#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS || CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID) +#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS || CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID || CC_TARGET_PLATFORM == CC_PLATFORM_WIN32) luaopen_lua_extensions(_state); #endif g_luaType.clear(); diff --git a/cocos/scripting/lua/bindings/liblua.vcxproj b/cocos/scripting/lua/bindings/liblua.vcxproj index c7fcc70043..f00dc2c19f 100644 --- a/cocos/scripting/lua/bindings/liblua.vcxproj +++ b/cocos/scripting/lua/bindings/liblua.vcxproj @@ -96,7 +96,7 @@ xcopy /Y /Q "$(ProjectDir)..\..\..\..\external\lua\luajit\prebuilt\win32\*.*" "$ MaxSpeed true - $(ProjectDir);$(ProjectDir)..\..\..;$(EngineRoot);$(EngineRoot)cocos\editor-support;$(EngineRoot)cocos\editor-support\cocostudio;$(EngineRoot)cocos\editor-support\cocosbuilder;$(EngineRoot)cocos\audio\include;$(EngineRoot)extensions;$(EngineRoot)extensions\network;$(EngineRoot)external;$(EngineRoot)external\libwebsockets\win32\include;$(EngineRoot)external\lua\tolua;$(EngineRoot)external\lua\luajit\include;$(EngineRoot)cocos\scripting\auto-generated\lua-bindings;$(EngineRoot)cocos\gui;%(AdditionalIncludeDirectories) + $(ProjectDir);$(ProjectDir)..\..\..;$(EngineRoot);$(EngineRoot)cocos\editor-support;$(EngineRoot)cocos\editor-support\cocostudio;$(EngineRoot)cocos\editor-support\cocosbuilder;$(EngineRoot)cocos\editor-support\spine;$(EngineRoot)cocos\audio\include;$(EngineRoot)extensions;$(EngineRoot)extensions\network;$(EngineRoot)external;$(EngineRoot)external\libwebsockets\win32\include;$(EngineRoot)external\lua\tolua;$(EngineRoot)external\lua\luajit\include;$(EngineRoot)cocos\scripting\auto-generated\lua-bindings;$(EngineRoot)cocos\gui;%(AdditionalIncludeDirectories) WIN32;NDEBUG;_WINDOWS;LIBLUA_EXPORTS;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) MultiThreadedDLL true @@ -152,8 +152,23 @@ xcopy /Y /Q "$(ProjectDir)..\..\..\..\external\lua\luajit\prebuilt\win32\*.*" "$ + + + + + + + + + + + + + + + @@ -186,8 +201,24 @@ xcopy /Y /Q "$(ProjectDir)..\..\..\..\external\lua\luajit\prebuilt\win32\*.*" "$ + + + + + + + + + + + + + + + + diff --git a/cocos/scripting/lua/bindings/liblua.vcxproj.filters b/cocos/scripting/lua/bindings/liblua.vcxproj.filters index 57c0335ab0..e7190e46e4 100644 --- a/cocos/scripting/lua/bindings/liblua.vcxproj.filters +++ b/cocos/scripting/lua/bindings/liblua.vcxproj.filters @@ -16,6 +16,9 @@ {19f563f0-e0ff-4500-890b-1755841d4ddb} + + {8815bb6e-fc9c-4cbf-b190-8b47169ed71f} + @@ -111,6 +114,51 @@ cocos2dx_support\generated + + cocos2dx_support\socket + + + cocos2dx_support\socket + + + cocos2dx_support\socket + + + cocos2dx_support\socket + + + cocos2dx_support\socket + + + cocos2dx_support\socket + + + cocos2dx_support\socket + + + cocos2dx_support\socket + + + cocos2dx_support\socket + + + cocos2dx_support\socket + + + cocos2dx_support\socket + + + cocos2dx_support\socket + + + cocos2dx_support\socket + + + cocos2dx_support\socket + + + cocos2dx_support + @@ -209,6 +257,54 @@ cocos2dx_support\generated + + cocos2dx_support\socket + + + cocos2dx_support\socket + + + cocos2dx_support\socket + + + cocos2dx_support\socket + + + cocos2dx_support\socket + + + cocos2dx_support\socket + + + cocos2dx_support\socket + + + cocos2dx_support\socket + + + cocos2dx_support\socket + + + cocos2dx_support\socket + + + cocos2dx_support\socket + + + cocos2dx_support\socket + + + cocos2dx_support\socket + + + cocos2dx_support\socket + + + cocos2dx_support\socket + + + cocos2dx_support + diff --git a/samples/Lua/HelloLua/proj.win32/HelloLua.vcxproj b/samples/Lua/HelloLua/proj.win32/HelloLua.vcxproj index dc57ee0d68..0cc2b4270a 100644 --- a/samples/Lua/HelloLua/proj.win32/HelloLua.vcxproj +++ b/samples/Lua/HelloLua/proj.win32/HelloLua.vcxproj @@ -140,7 +140,7 @@ $(MSBuildProgramFiles32)\Microsoft SDKs\Windows\v7.1A\include;$(IntDir);%(AdditionalIncludeDirectories) - lua51.lib;websockets.lib;%(AdditionalDependencies) + libcurl_imp.lib;lua51.lib;websockets.lib;%(AdditionalDependencies) $(OutDir);%(AdditionalLibraryDirectories) Windows MachineX86