From 5872745593cb8b379b923c2d3cdb01e286f0fbbf Mon Sep 17 00:00:00 2001 From: GuoLunHao Date: Thu, 10 Dec 2015 16:43:01 +0800 Subject: [PATCH] fix compile error and link error on ios/Mac platform --- .../cocos2d_js_bindings.xcodeproj/project.pbxproj | 13 +++++++++++++ .../cocos2d_lua_bindings.xcodeproj/project.pbxproj | 13 +++++++++++++ .../libsimulator.xcodeproj/project.pbxproj | 4 ++++ 3 files changed, 30 insertions(+) diff --git a/cocos/scripting/js-bindings/proj.ios_mac/cocos2d_js_bindings.xcodeproj/project.pbxproj b/cocos/scripting/js-bindings/proj.ios_mac/cocos2d_js_bindings.xcodeproj/project.pbxproj index ab0bc1f418..a79e70371b 100644 --- a/cocos/scripting/js-bindings/proj.ios_mac/cocos2d_js_bindings.xcodeproj/project.pbxproj +++ b/cocos/scripting/js-bindings/proj.ios_mac/cocos2d_js_bindings.xcodeproj/project.pbxproj @@ -164,6 +164,9 @@ 83A5661A18DA878400FC31A0 /* jsb_socketio.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 83A5661718DA878400FC31A0 /* jsb_socketio.cpp */; }; 83A5661B18DA878400FC31A0 /* jsb_socketio.h in Headers */ = {isa = PBXBuildFile; fileRef = 83A5661818DA878400FC31A0 /* jsb_socketio.h */; }; 83A5661C18DA878400FC31A0 /* jsb_socketio.h in Headers */ = {isa = PBXBuildFile; fileRef = 83A5661818DA878400FC31A0 /* jsb_socketio.h */; }; + ADD1C0DC1C196BDF00733781 /* js_module_register.cpp in Sources */ = {isa = PBXBuildFile; fileRef = ADD1C0D91C196BDF00733781 /* js_module_register.cpp */; }; + ADD1C0DD1C196BDF00733781 /* js_module_register.h in Headers */ = {isa = PBXBuildFile; fileRef = ADD1C0DA1C196BDF00733781 /* js_module_register.h */; }; + ADD1C0DE1C196BDF00733781 /* js-BindingsExport.h in Headers */ = {isa = PBXBuildFile; fileRef = ADD1C0DB1C196BDF00733781 /* js-BindingsExport.h */; }; B38AD56A1B1D384A0057DD7F /* jsb_cocos2dx_experimental_video_manual.cpp in Sources */ = {isa = PBXBuildFile; fileRef = B38AD5681B1D384A0057DD7F /* jsb_cocos2dx_experimental_video_manual.cpp */; }; B38AD56B1B1D384A0057DD7F /* jsb_cocos2dx_experimental_video_manual.h in Headers */ = {isa = PBXBuildFile; fileRef = B38AD5691B1D384A0057DD7F /* jsb_cocos2dx_experimental_video_manual.h */; }; B38AD56E1B1D38700057DD7F /* jsb_cocos2dx_experimental_video_auto.cpp in Sources */ = {isa = PBXBuildFile; fileRef = B38AD56C1B1D38700057DD7F /* jsb_cocos2dx_experimental_video_auto.cpp */; }; @@ -287,6 +290,9 @@ 4BE089EA1ADF967400D65D4B /* jsb_cocos2dx_experimental_webView_manual.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = jsb_cocos2dx_experimental_webView_manual.h; sourceTree = ""; }; 83A5661718DA878400FC31A0 /* jsb_socketio.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = jsb_socketio.cpp; sourceTree = ""; }; 83A5661818DA878400FC31A0 /* jsb_socketio.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = jsb_socketio.h; sourceTree = ""; }; + ADD1C0D91C196BDF00733781 /* js_module_register.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = js_module_register.cpp; sourceTree = ""; }; + ADD1C0DA1C196BDF00733781 /* js_module_register.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = js_module_register.h; sourceTree = ""; }; + ADD1C0DB1C196BDF00733781 /* js-BindingsExport.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "js-BindingsExport.h"; sourceTree = ""; }; B38AD5681B1D384A0057DD7F /* jsb_cocos2dx_experimental_video_manual.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = jsb_cocos2dx_experimental_video_manual.cpp; path = experimental/jsb_cocos2dx_experimental_video_manual.cpp; sourceTree = ""; }; B38AD5691B1D384A0057DD7F /* jsb_cocos2dx_experimental_video_manual.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = jsb_cocos2dx_experimental_video_manual.h; path = experimental/jsb_cocos2dx_experimental_video_manual.h; sourceTree = ""; }; B38AD56C1B1D38700057DD7F /* jsb_cocos2dx_experimental_video_auto.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = jsb_cocos2dx_experimental_video_auto.cpp; sourceTree = ""; }; @@ -397,6 +403,9 @@ 1A119E5018BDF19200352BAA /* cocosbuilder */, 1A119E5518BDF19200352BAA /* cocostudio */, 1A119E5918BDF19200352BAA /* extension */, + ADD1C0D91C196BDF00733781 /* js_module_register.cpp */, + ADD1C0DA1C196BDF00733781 /* js_module_register.h */, + ADD1C0DB1C196BDF00733781 /* js-BindingsExport.h */, 1A119E6118BDF19200352BAA /* js_bindings_config.h */, 1A119E6218BDF19200352BAA /* js_bindings_core.cpp */, 1A119E6318BDF19200352BAA /* js_bindings_core.h */, @@ -629,6 +638,7 @@ 1A119F0318BDF19200352BAA /* spidermonkey_specifics.h in Headers */, 1A119EE718BDF19200352BAA /* jsb_opengl_manual.h in Headers */, 1A119ED518BDF19200352BAA /* js_bindings_core.h in Headers */, + ADD1C0DE1C196BDF00733781 /* js-BindingsExport.h in Headers */, 1A119EC318BDF19200352BAA /* js_bindings_ccbreader.h in Headers */, 1A119EDF18BDF19200352BAA /* jsb_helper.h in Headers */, 1A119ECB18BDF19200352BAA /* jsb_cocos2dx_extension_manual.h in Headers */, @@ -642,6 +652,7 @@ 42638FFF1B0EC1B7004C53A2 /* jsb_cocos2dx_physics3d_auto.hpp in Headers */, 0541A74F1973876100E45470 /* JavaScriptObjCBridge.h in Headers */, 426390061B0EC1C6004C53A2 /* jsb_cocos2dx_physics3d_manual.h in Headers */, + ADD1C0DD1C196BDF00733781 /* js_module_register.h in Headers */, 1AB5E62D18D05BC80088DAA4 /* jsb_cocos2dx_ui_auto.hpp in Headers */, 420BBCF91AA48EE900493976 /* jsb_cocos2dx_3d_manual.h in Headers */, 1A119ED918BDF19200352BAA /* js_bindings_opengl.h in Headers */, @@ -803,6 +814,7 @@ BAEE4D711AC3FFAD003BEB0F /* jsb_cocos2dx_3d_extension_auto.cpp in Sources */, 1A119EC518BDF19200352BAA /* jsb_cocos2dx_studio_manual.cpp in Sources */, 1A119E8F18BDF19200352BAA /* jsb_cocos2dx_extension_auto.cpp in Sources */, + ADD1C0DC1C196BDF00733781 /* js_module_register.cpp in Sources */, 1A119ED718BDF19200352BAA /* js_bindings_opengl.cpp in Sources */, 1AB5E62B18D05BC80088DAA4 /* jsb_cocos2dx_ui_auto.cpp in Sources */, 1A119E9B18BDF19200352BAA /* jsb_cocos2dx_spine_auto.cpp in Sources */, @@ -836,6 +848,7 @@ isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( + ADD1C0DF1C196BFC00733781 /* js_module_register.cpp in Sources */, 0541A75B19738AD200E45470 /* JavaScriptObjCBridge.mm in Sources */, 420BBCF81AA48EE900493976 /* jsb_cocos2dx_3d_manual.cpp in Sources */, 1A119E8A18BDF19200352BAA /* jsb_cocos2dx_builder_auto.cpp in Sources */, diff --git a/cocos/scripting/lua-bindings/proj.ios_mac/cocos2d_lua_bindings.xcodeproj/project.pbxproj b/cocos/scripting/lua-bindings/proj.ios_mac/cocos2d_lua_bindings.xcodeproj/project.pbxproj index 6ad467fe05..9320ffdca5 100644 --- a/cocos/scripting/lua-bindings/proj.ios_mac/cocos2d_lua_bindings.xcodeproj/project.pbxproj +++ b/cocos/scripting/lua-bindings/proj.ios_mac/cocos2d_lua_bindings.xcodeproj/project.pbxproj @@ -287,6 +287,9 @@ BA0CBB5F1BB0756F00003364 /* CCComponentLua.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BA0CBB5C1BB0756F00003364 /* CCComponentLua.cpp */; settings = {ASSET_TAGS = (); }; }; BA0CBB601BB0756F00003364 /* CCComponentLua.h in Headers */ = {isa = PBXBuildFile; fileRef = BA0CBB5D1BB0756F00003364 /* CCComponentLua.h */; settings = {ASSET_TAGS = (); }; }; BA0CBB611BB0756F00003364 /* CCComponentLua.h in Headers */ = {isa = PBXBuildFile; fileRef = BA0CBB5D1BB0756F00003364 /* CCComponentLua.h */; settings = {ASSET_TAGS = (); }; }; + ADD1C0D51C196B9500733781 /* lua_module_register.cpp in Sources */ = {isa = PBXBuildFile; fileRef = ADD1C0D21C196B9500733781 /* lua_module_register.cpp */; }; + ADD1C0D61C196B9500733781 /* lua_module_register.h in Headers */ = {isa = PBXBuildFile; fileRef = ADD1C0D31C196B9500733781 /* lua_module_register.h */; }; + ADD1C0D71C196B9500733781 /* Lua-BindingsExport.h in Headers */ = {isa = PBXBuildFile; fileRef = ADD1C0D41C196B9500733781 /* Lua-BindingsExport.h */; }; F4FE0D5719ECD00100B8B12B /* luasocket_scripts.c in Sources */ = {isa = PBXBuildFile; fileRef = F4FE0D5519ECD00100B8B12B /* luasocket_scripts.c */; }; F4FE0D5819ECD00100B8B12B /* luasocket_scripts.c in Sources */ = {isa = PBXBuildFile; fileRef = F4FE0D5519ECD00100B8B12B /* luasocket_scripts.c */; }; F4FE0D5919ECD00100B8B12B /* luasocket_scripts.h in Headers */ = {isa = PBXBuildFile; fileRef = F4FE0D5619ECD00100B8B12B /* luasocket_scripts.h */; }; @@ -445,6 +448,9 @@ 3E2BDB0919C5E6100055CDCD /* lua_cocos2dx_audioengine_manual.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = lua_cocos2dx_audioengine_manual.h; sourceTree = ""; }; 566F015D19B5EB0F00FCA620 /* CustomGUIReader.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = CustomGUIReader.cpp; sourceTree = ""; }; 566F015E19B5EB0F00FCA620 /* CustomGUIReader.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CustomGUIReader.h; sourceTree = ""; }; + ADD1C0D21C196B9500733781 /* lua_module_register.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = lua_module_register.cpp; sourceTree = ""; }; + ADD1C0D31C196B9500733781 /* lua_module_register.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = lua_module_register.h; sourceTree = ""; }; + ADD1C0D41C196B9500733781 /* Lua-BindingsExport.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "Lua-BindingsExport.h"; sourceTree = ""; }; BA0CBB5C1BB0756F00003364 /* CCComponentLua.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = CCComponentLua.cpp; sourceTree = ""; }; BA0CBB5D1BB0756F00003364 /* CCComponentLua.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CCComponentLua.h; sourceTree = ""; }; C0D9BAFA1974D30000EC35BB /* liblua.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = liblua.a; path = ../../../../external/lua/lua/prebuilt/ios/liblua.a; sourceTree = ""; }; @@ -680,6 +686,9 @@ 15C1BD141986526C00A46ACC /* spine */, 15C1BD191986526C00A46ACC /* ui */, 15C1BCD21986525900A46ACC /* cocos2d */, + ADD1C0D21C196B9500733781 /* lua_module_register.cpp */, + ADD1C0D31C196B9500733781 /* lua_module_register.h */, + ADD1C0D41C196B9500733781 /* Lua-BindingsExport.h */, 1AACE76018BC45C200215002 /* CCLuaBridge.cpp */, 1AACE76118BC45C200215002 /* CCLuaBridge.h */, 1AACE76218BC45C200215002 /* CCLuaEngine.cpp */, @@ -857,6 +866,7 @@ 15415AAB19A71A53004F1E71 /* buffer.h in Headers */, 15AC69DE1987711400D17520 /* lauxlib.h in Headers */, 155C7E1419A71CA800F08B25 /* Lua_web_socket.h in Headers */, + ADD1C0D61C196B9500733781 /* lua_module_register.h in Headers */, 15AC69DF1987711400D17520 /* lua.h in Headers */, 15AC69E01987711400D17520 /* luaconf.h in Headers */, 155C7DF819A71C4400F08B25 /* lua_cocos2dx_cocosdenshion_manual.h in Headers */, @@ -888,6 +898,7 @@ 15415AD319A71A53004F1E71 /* timeout.h in Headers */, 15C1C2D5198749BC00A46ACC /* LuaOpengl.h in Headers */, 15A561EE1B00A3F1005D4720 /* lua_cocos2dx_physics3d_manual.h in Headers */, + ADD1C0D71C196B9500733781 /* Lua-BindingsExport.h in Headers */, 155C7E2819A71CE600F08B25 /* lua_cocos2dx_ui_manual.hpp in Headers */, 15C1C2D6198749BC00A46ACC /* lua_cocos2dx_deprecated.h in Headers */, 15C1C2D7198749BC00A46ACC /* lua_cocos2dx_experimental_manual.hpp in Headers */, @@ -1068,6 +1079,7 @@ 15AC69DA1987710400D17520 /* tolua_is.c in Sources */, 15415ACD19A71A53004F1E71 /* tcp.c in Sources */, 15AC69DB1987710400D17520 /* tolua_map.c in Sources */, + ADD1C0D51C196B9500733781 /* lua_module_register.cpp in Sources */, 15415AD519A71A53004F1E71 /* udp.c in Sources */, 150983D01B1C0554007F3818 /* lua_cocos2dx_navmesh_auto.cpp in Sources */, 15415ADD19A71A53004F1E71 /* usocket.c in Sources */, @@ -1133,6 +1145,7 @@ isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( + ADD1C0D81C196BBF00733781 /* lua_module_register.cpp in Sources */, 15415AC619A71A53004F1E71 /* select.c in Sources */, 15A561ED1B00A3F1005D4720 /* lua_cocos2dx_physics3d_manual.cpp in Sources */, 15EFA646198B3311000C57D3 /* tolua_event.c in Sources */, diff --git a/tools/simulator/libsimulator/proj.ios_mac/libsimulator.xcodeproj/project.pbxproj b/tools/simulator/libsimulator/proj.ios_mac/libsimulator.xcodeproj/project.pbxproj index d92ef78d6d..dc5d90a573 100644 --- a/tools/simulator/libsimulator/proj.ios_mac/libsimulator.xcodeproj/project.pbxproj +++ b/tools/simulator/libsimulator/proj.ios_mac/libsimulator.xcodeproj/project.pbxproj @@ -147,6 +147,7 @@ 9FF504BF1A5EA75D00AFDA55 /* PlayerTaskServiceProtocol.h in Headers */ = {isa = PBXBuildFile; fileRef = 9FF504AA1A5EA75D00AFDA55 /* PlayerTaskServiceProtocol.h */; }; 9FF504C01A5EA75D00AFDA55 /* PlayerUtils.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9FF504AB1A5EA75D00AFDA55 /* PlayerUtils.cpp */; }; 9FF504C11A5EA75D00AFDA55 /* PlayerUtils.h in Headers */ = {isa = PBXBuildFile; fileRef = 9FF504AC1A5EA75D00AFDA55 /* PlayerUtils.h */; }; + ADD1C0E11C196C2500733781 /* SimulatorExport.h in Headers */ = {isa = PBXBuildFile; fileRef = ADD1C0E01C196C2500733781 /* SimulatorExport.h */; }; /* End PBXBuildFile section */ /* Begin PBXCopyFilesBuildPhase section */ @@ -274,6 +275,7 @@ 9FF504AA1A5EA75D00AFDA55 /* PlayerTaskServiceProtocol.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PlayerTaskServiceProtocol.h; sourceTree = ""; }; 9FF504AB1A5EA75D00AFDA55 /* PlayerUtils.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = PlayerUtils.cpp; sourceTree = ""; }; 9FF504AC1A5EA75D00AFDA55 /* PlayerUtils.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PlayerUtils.h; sourceTree = ""; }; + ADD1C0E01C196C2500733781 /* SimulatorExport.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SimulatorExport.h; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -449,6 +451,7 @@ 9FF504AB1A5EA75D00AFDA55 /* PlayerUtils.cpp */, 9FF504AC1A5EA75D00AFDA55 /* PlayerUtils.h */, 9FD6FC0E1A5D281D0028EDC6 /* cocos2dx_extra.h */, + ADD1C0E01C196C2500733781 /* SimulatorExport.h */, 9FD6FC0F1A5D281D0028EDC6 /* network */, 9FD6FC131A5D281D0028EDC6 /* platform */, 9FD6FC161A5D281D0028EDC6 /* ProjectConfig */, @@ -565,6 +568,7 @@ 9FB638931A635BA300AAEC43 /* stringprintf.h in Headers */, 9FB6388E1A635BA300AAEC43 /* once.h in Headers */, 9FD6FC671A5D2A380028EDC6 /* PlayerMac.h in Headers */, + ADD1C0E11C196C2500733781 /* SimulatorExport.h in Headers */, 9FB6386E1A635BA300AAEC43 /* coded_stream_inl.h in Headers */, 9F2F21BF1A635F1C006B8BF1 /* RuntimeCCSImpl.h in Headers */, 9FD6FC311A5D281D0028EDC6 /* cocos2dx_extra.h in Headers */,