diff --git a/AUTHORS b/AUTHORS
index 71cba826b3..4dff8c12b5 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -622,7 +622,11 @@ Developers:
lettas
A fix for multi-platform template.
-
+
+ HoGarfield (garfield_ho)
+ Fixed a bug that CCBReader can't play sequence automatically in JSB.
+ Could not set next animation in CCBAnimationCompleted callback.
+
Retired Core Developers:
WenSheng Yang
Author of windows port, CCTextField,
diff --git a/CHANGELOG b/CHANGELOG
index 62169acdf3..7b81c3c5f9 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -7,6 +7,7 @@ cocos2d-x-3.0alpha1 @??? 2013
[FIX] removeSpriteFramesFromFile() crashes if file doesn't exist.
[FIX] Avoid unnecessary object duplication for Scale9Sprite.
[FIX] create_project.py does not rename/replace template projects completely.
+ [FIX] Could not set next animation in CCBAnimationCompleted callback.
[Android]
[FIX] Added EGL_RENDERABLE_TYPE to OpenGL attributes
[NEW] Added Cocos2dxHelper.runOnGLThread(Runnable) again
@@ -19,6 +20,7 @@ cocos2d-x-3.0alpha1 @??? 2013
[FIX] Fixed a memory leak in ScriptingCore::runScript()
[FIX] sys.localStorage.getItem() does not support non-ascii string.
[FIX] cc.Scheduler.schedule(target, func) without repeat argument couldn't repeat schedule forever on device.
+ [FIX] CCBReader can't play sequence automatically in JSB.
[Lua Binding]
[NEW] Added Armature lua binding and added test samples.
diff --git a/build/Makefile b/build/Makefile
index fbea65f3cd..761855d264 100644
--- a/build/Makefile
+++ b/build/Makefile
@@ -3,68 +3,89 @@ PLATFORM ?= linux
all:
chipmunk:
- $(MAKE) -C external/chipmunk/proj.$(PLATFORM)
+ $(MAKE) -C ../external/chipmunk/proj.$(PLATFORM)
chipmunk-clean:
- $(MAKE) -C external/chipmunk/proj.$(PLATFORM) clean
+ $(MAKE) -C ../external/chipmunk/proj.$(PLATFORM) clean
box2d:
- $(MAKE) -C external/Box2D/proj.$(PLATFORM)
+ $(MAKE) -C ../external/Box2D/proj.$(PLATFORM)
box2d-clean:
- $(MAKE) -C external/Box2D/proj.$(PLATFORM) clean
+ $(MAKE) -C ../external/Box2D/proj.$(PLATFORM) clean
-libextensions: chipmunk cocosdenshion box2d
- $(MAKE) -C extensions/proj.$(PLATFORM)
-libextensions-clean:
- $(MAKE) -C extensions/proj.$(PLATFORM) clean
+cocos2dx: chipmunk
+ $(MAKE) -C ../cocos/2d
+cocos2dx-clean:
+ $(MAKE) -C ../cocos/2d clean
-libcocos2dx: libextensions
- $(MAKE) -C cocos2dx/proj.$(PLATFORM)
-libcocos2dx-clean:
- $(MAKE) -C cocos2dx/proj.$(PLATFORM) clean
+audio: cocos2dx
+ $(MAKE) -C ../cocos/audio/proj.$(PLATFORM)
+audio-clean:
+ $(MAKE) -C ../cocos/audio/proj.$(PLATFORM) clean
-cocosdenshion: libcocos2dx
- $(MAKE) -C audio/proj.$(PLATFORM)
-cocosdenshion-clean:
- $(MAKE) -C audio/proj.$(PLATFORM) clean
+gui:
+ $(MAKE) -C ../cocos/gui
+gui-clean:
+ $(MAKE) -C ../cocos/gui clean
-lua: libextensions
- $(MAKE) -C scripting/lua/proj.$(PLATFORM)
+network: cocos2dx
+ $(MAKE) -C ../cocos/network
+network-clean:
+ $(MAKE) -C ../cocos/network clean
+
+cocosbuilder:
+ $(MAKE) -C ../cocos/editor-support/cocosbuilder
+cocosbuilder-clean:
+ $(MAKE) -C ../cocos/editor-support/cocosbuilder clean
+
+spine:
+ $(MAKE) -C ../cocos/editor-support/spine
+spine-clean:
+ $(MAKE) -C ../cocos/editor-support/spine clean
+
+cocostudio:
+ $(MAKE) -C ../cocos/editor-support/cocostudio
+cocostudio-clean:
+ $(MAKE) -C ../cocos/editor-support/cocostudio clean
+
+extensions: chipmunk audio box2d
+ $(MAKE) -C ../extensions/proj.$(PLATFORM)
+extensions-clean:
+ $(MAKE) -C ../extensions/proj.$(PLATFORM) clean
+
+lua: extensions cocosbuilder cocostudio
+ $(MAKE) -C ../cocos/scripting/lua/bindings
lua-clean:
- $(MAKE) -C scripting/lua/proj.$(PLATFORM) clean
+ $(MAKE) -C ../cocos/scripting/lua/bindings clean
-hellocpp: libcocos2dx
- $(MAKE) -C samples/Cpp/HelloCpp/proj.$(PLATFORM)
+hellocpp: cocos2dx
+ $(MAKE) -C ../samples/Cpp/HelloCpp/proj.$(PLATFORM)
hellocpp-clean:
- $(MAKE) -C samples/Cpp/HelloCpp/proj.$(PLATFORM) clean
+ $(MAKE) -C ../samples/Cpp/HelloCpp/proj.$(PLATFORM) clean
-testcpp: libcocos2dx libextensions
- $(MAKE) -C samples/Cpp/TestCpp/proj.$(PLATFORM)
+testcpp: cocos2dx audio extensions cocostudio gui cocosbuilder spine network
+ $(MAKE) -C ../samples/Cpp/TestCpp/proj.$(PLATFORM)
testcpp-clean:
- $(MAKE) -C samples/Cpp/TestCpp/proj.$(PLATFORM) clean
+ $(MAKE) -C ../samples/Cpp/TestCpp/proj.$(PLATFORM) clean
-simplegame: libcocos2dx
- $(MAKE) -C samples/Cpp/SimpleGame/proj.$(PLATFORM)
+simplegame: cocos2dx audio
+ $(MAKE) -C ../samples/Cpp/SimpleGame/proj.$(PLATFORM)
simplegame-clean:
- $(MAKE) -C samples/Cpp/SimpleGame/proj.$(PLATFORM) clean
+ $(MAKE) -C ../samples/Cpp/SimpleGame/proj.$(PLATFORM) clean
-all: chipmunk cocosdenshion libextensions libcocos2dx lua hellocpp testcpp simplegame
-clean: libcocos2dx-clean box2d-clean chipmunk-clean cocosdenshion-clean libextensions-clean lua-clean hellocpp-clean testcpp-clean simplegame-clean
+all: chipmunk audio extensions cocos2dx lua hellocpp testcpp simplegame
+clean: cocos2dx-clean box2d-clean chipmunk-clean audio-clean extensions-clean lua-clean hellocpp-clean testcpp-clean simplegame-clean
-# Haven't yet got the lua projects working with emscripten
-ifneq ($(PLATFORM),emscripten)
-
-hellolua: libcocos2dx lua
- $(MAKE) -C samples/Lua/HelloLua/proj.$(PLATFORM)
+hellolua: cocos2dx lua
+ $(MAKE) -C ../samples/Lua/HelloLua/proj.$(PLATFORM)
hellolua-clean:
- $(MAKE) -C samples/Lua/HelloLua/proj.$(PLATFORM) clean
+ $(MAKE) -C ../samples/Lua/HelloLua/proj.$(PLATFORM) clean
-testlua: libcocos2dx lua
- $(MAKE) -C samples/Lua/TestLua/proj.$(PLATFORM)
+testlua: cocos2dx lua
+ $(MAKE) -C ../samples/Lua/TestLua/proj.$(PLATFORM)
testlua-clean:
- $(MAKE) -C samples/Lua/TestLua/proj.$(PLATFORM) clean
+ $(MAKE) -C ../samples/Lua/TestLua/proj.$(PLATFORM) clean
all: hellolua testlua
clean: hellolua-clean testlua-clean
-endif
.PHONY: all clean
diff --git a/build/cocos2d-win32.vc2012.sln b/build/cocos2d-win32.vc2012.sln
index 497a1d991c..c1f930fa51 100644
--- a/build/cocos2d-win32.vc2012.sln
+++ b/build/cocos2d-win32.vc2012.sln
@@ -1,98 +1,67 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2012
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libBox2D", "external\Box2D\proj.win32\Box2D.vcxproj", "{929480E7-23C0-4DF6-8456-096D71547116}"
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libAudio", "..\cocos\audio\proj.win32\CocosDenshion.vcxproj", "{F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6}"
EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libchipmunk", "external\chipmunk\proj.win32\chipmunk.vcxproj", "{207BC7A9-CCF1-4F2F-A04D-45F72242AE25}"
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libcocos2d", "..\cocos\2d\cocos2d.vcxproj", "{98A51BA8-FC3A-415B-AC8F-8C7BD464E93E}"
EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "audio", "audio\proj.win32\CocosDenshion.vcxproj", "{F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6}"
- ProjectSection(ProjectDependencies) = postProject
- {98A51BA8-FC3A-415B-AC8F-8C7BD464E93E} = {98A51BA8-FC3A-415B-AC8F-8C7BD464E93E}
- EndProjectSection
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "HelloCpp", "..\samples\Cpp\HelloCpp\proj.win32\HelloCpp.vcxproj", "{B8BF9E81-35FD-4582-BA1C-B85FA365BABB}"
EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libcocos2d", "cocos2dx\proj.win32\cocos2d.vcxproj", "{98A51BA8-FC3A-415B-AC8F-8C7BD464E93E}"
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libBox2D", "..\external\Box2D\proj.win32\Box2D.vcxproj", "{929480E7-23C0-4DF6-8456-096D71547116}"
EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "liblua", "scripting\lua\proj.win32\liblua.vcxproj", "{DDC3E27F-004D-4DD4-9DD3-931A013D2159}"
- ProjectSection(ProjectDependencies) = postProject
- {21B2C324-891F-48EA-AD1A-5AE13DE12E28} = {21B2C324-891F-48EA-AD1A-5AE13DE12E28}
- {98A51BA8-FC3A-415B-AC8F-8C7BD464E93E} = {98A51BA8-FC3A-415B-AC8F-8C7BD464E93E}
- {F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6} = {F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6}
- EndProjectSection
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libchipmunk", "..\external\chipmunk\proj.win32\chipmunk.vcxproj", "{207BC7A9-CCF1-4F2F-A04D-45F72242AE25}"
EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libExtensions", "extensions\proj.win32\libExtensions.vcxproj", "{21B2C324-891F-48EA-AD1A-5AE13DE12E28}"
- ProjectSection(ProjectDependencies) = postProject
- {98A51BA8-FC3A-415B-AC8F-8C7BD464E93E} = {98A51BA8-FC3A-415B-AC8F-8C7BD464E93E}
- {207BC7A9-CCF1-4F2F-A04D-45F72242AE25} = {207BC7A9-CCF1-4F2F-A04D-45F72242AE25}
- {F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6} = {F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6}
- EndProjectSection
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libExtensions", "..\extensions\proj.win32\libExtensions.vcxproj", "{21B2C324-891F-48EA-AD1A-5AE13DE12E28}"
EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "HelloCpp", "samples\Cpp\HelloCpp\proj.win32\HelloCpp.vcxproj", "{B8BF9E81-35FD-4582-BA1C-B85FA365BABB}"
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "TestCpp", "..\samples\Cpp\TestCpp\proj.win32\TestCpp.vcxproj", "{76A39BB2-9B84-4C65-98A5-654D86B86F2A}"
EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "TestCpp", "samples\Cpp\TestCpp\proj.win32\TestCpp.vcxproj", "{76A39BB2-9B84-4C65-98A5-654D86B86F2A}"
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libCocosBuilder", "..\cocos\editor-support\cocosbuilder\proj.win32\libCocosBuilder.vcxproj", "{811C0DAB-7B96-4BD3-A154-B7572B58E4AB}"
EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "CocosDragonJS", "samples\Javascript\CocosDragonJS\proj.win32\CocosDragonJS.vcxproj", "{68ED0B4E-2BCA-45D2-9648-CEABEBD3B9D7}"
- ProjectSection(ProjectDependencies) = postProject
- {21B2C324-891F-48EA-AD1A-5AE13DE12E28} = {21B2C324-891F-48EA-AD1A-5AE13DE12E28}
- {39379840-825A-45A0-B363-C09FFEF864BD} = {39379840-825A-45A0-B363-C09FFEF864BD}
- {207BC7A9-CCF1-4F2F-A04D-45F72242AE25} = {207BC7A9-CCF1-4F2F-A04D-45F72242AE25}
- {929480E7-23C0-4DF6-8456-096D71547116} = {929480E7-23C0-4DF6-8456-096D71547116}
- EndProjectSection
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libCocosStudio", "..\cocos\editor-support\cocostudio\proj.win32\libCocosStudio.vcxproj", "{B57CF53F-2E49-4031-9822-047CC0E6BDE2}"
EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "MoonWarriors", "samples\Javascript\MoonWarriors\proj.win32\MoonWarriors.vcxproj", "{1DB7C0FC-46FF-4A1B-82E0-C6244EEEC4C2}"
- ProjectSection(ProjectDependencies) = postProject
- {21B2C324-891F-48EA-AD1A-5AE13DE12E28} = {21B2C324-891F-48EA-AD1A-5AE13DE12E28}
- {39379840-825A-45A0-B363-C09FFEF864BD} = {39379840-825A-45A0-B363-C09FFEF864BD}
- {207BC7A9-CCF1-4F2F-A04D-45F72242AE25} = {207BC7A9-CCF1-4F2F-A04D-45F72242AE25}
- {929480E7-23C0-4DF6-8456-096D71547116} = {929480E7-23C0-4DF6-8456-096D71547116}
- EndProjectSection
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libGUI", "..\cocos\gui\proj.win32\libGUI.vcxproj", "{7E06E92C-537A-442B-9E4A-4761C84F8A1A}"
EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "TestJavascript", "samples\Javascript\TestJavascript\proj.win32\TestJavascript.vcxproj", "{D0F06A44-A245-4D13-A498-0120C203B539}"
- ProjectSection(ProjectDependencies) = postProject
- {21B2C324-891F-48EA-AD1A-5AE13DE12E28} = {21B2C324-891F-48EA-AD1A-5AE13DE12E28}
- {39379840-825A-45A0-B363-C09FFEF864BD} = {39379840-825A-45A0-B363-C09FFEF864BD}
- {207BC7A9-CCF1-4F2F-A04D-45F72242AE25} = {207BC7A9-CCF1-4F2F-A04D-45F72242AE25}
- {929480E7-23C0-4DF6-8456-096D71547116} = {929480E7-23C0-4DF6-8456-096D71547116}
- EndProjectSection
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libNetwork", "..\cocos\network\proj.win32\libNetwork.vcxproj", "{DF2638C0-8128-4847-867C-6EAFE3DEE7B5}"
EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "WatermelonWithMe", "samples\Javascript\WatermelonWithMe\proj.win32\WatermelonWithMe.vcxproj", "{BE092D9E-95AE-4F86-84CE-F4519E4F3F15}"
- ProjectSection(ProjectDependencies) = postProject
- {21B2C324-891F-48EA-AD1A-5AE13DE12E28} = {21B2C324-891F-48EA-AD1A-5AE13DE12E28}
- {39379840-825A-45A0-B363-C09FFEF864BD} = {39379840-825A-45A0-B363-C09FFEF864BD}
- {207BC7A9-CCF1-4F2F-A04D-45F72242AE25} = {207BC7A9-CCF1-4F2F-A04D-45F72242AE25}
- {929480E7-23C0-4DF6-8456-096D71547116} = {929480E7-23C0-4DF6-8456-096D71547116}
- EndProjectSection
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libSpine", "..\cocos\editor-support\spine\proj.win32\libSpine.vcxproj", "{B7C2A162-DEC9-4418-972E-240AB3CBFCAE}"
EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "HelloLua", "samples\Lua\HelloLua\proj.win32\HelloLua.vcxproj", "{13E55395-94A2-4CD9-BFC2-1A051F80C17D}"
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "AssetsManagerTest", "..\samples\Cpp\AssetsManagerTest\proj.win32\AssetsManagerTest.vcxproj", "{6D37505F-A890-441D-BD3F-A61E2C0469CE}"
EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "TestLua", "samples\Lua\TestLua\proj.win32\TestLua.win32.vcxproj", "{4E6A7A0E-DDD8-4BAA-8B22-C964069364ED}"
- ProjectSection(ProjectDependencies) = postProject
- {21B2C324-891F-48EA-AD1A-5AE13DE12E28} = {21B2C324-891F-48EA-AD1A-5AE13DE12E28}
- {DDC3E27F-004D-4DD4-9DD3-931A013D2159} = {DDC3E27F-004D-4DD4-9DD3-931A013D2159}
- {98A51BA8-FC3A-415B-AC8F-8C7BD464E93E} = {98A51BA8-FC3A-415B-AC8F-8C7BD464E93E}
- {207BC7A9-CCF1-4F2F-A04D-45F72242AE25} = {207BC7A9-CCF1-4F2F-A04D-45F72242AE25}
- {929480E7-23C0-4DF6-8456-096D71547116} = {929480E7-23C0-4DF6-8456-096D71547116}
- {F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6} = {F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6}
- EndProjectSection
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libJSBinding", "..\cocos\scripting\javascript\bindings\proj.win32\libJSBinding.vcxproj", "{39379840-825A-45A0-B363-C09FFEF864BD}"
EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libJSBinding", "scripting\javascript\bindings\proj.win32\libJSBinding.vcxproj", "{39379840-825A-45A0-B363-C09FFEF864BD}"
- ProjectSection(ProjectDependencies) = postProject
- {21B2C324-891F-48EA-AD1A-5AE13DE12E28} = {21B2C324-891F-48EA-AD1A-5AE13DE12E28}
- {98A51BA8-FC3A-415B-AC8F-8C7BD464E93E} = {98A51BA8-FC3A-415B-AC8F-8C7BD464E93E}
- {F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6} = {F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6}
- EndProjectSection
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "TestJavascript", "..\samples\Javascript\TestJavascript\proj.win32\TestJavascript.vcxproj", "{D0F06A44-A245-4D13-A498-0120C203B539}"
EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "CrystalCraze", "samples\Javascript\CrystalCraze\proj.win32\CrystalCraze.vcxproj", "{9A17D9A4-4B11-4E32-94F6-895FF4909EC5}"
- ProjectSection(ProjectDependencies) = postProject
- {21B2C324-891F-48EA-AD1A-5AE13DE12E28} = {21B2C324-891F-48EA-AD1A-5AE13DE12E28}
- {39379840-825A-45A0-B363-C09FFEF864BD} = {39379840-825A-45A0-B363-C09FFEF864BD}
- EndProjectSection
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libLocalStorage", "..\cocos\storage\local-storage\proj.win32\libLocalStorage.vcxproj", "{632A8F38-D0F0-4D22-86B3-D69F5E6BF63A}"
EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "AssetsManagerTest", "samples\Cpp\AssetsManagerTest\proj.win32\AssetsManagerTest.vcxproj", "{6D37505F-A890-441D-BD3F-A61E2C0469CE}"
- ProjectSection(ProjectDependencies) = postProject
- {21B2C324-891F-48EA-AD1A-5AE13DE12E28} = {21B2C324-891F-48EA-AD1A-5AE13DE12E28}
- {39379840-825A-45A0-B363-C09FFEF864BD} = {39379840-825A-45A0-B363-C09FFEF864BD}
- {207BC7A9-CCF1-4F2F-A04D-45F72242AE25} = {207BC7A9-CCF1-4F2F-A04D-45F72242AE25}
- EndProjectSection
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "CocosDragonJS", "..\samples\Javascript\CocosDragonJS\proj.win32\CocosDragonJS.vcxproj", "{68ED0B4E-2BCA-45D2-9648-CEABEBD3B9D7}"
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "CrystalCraze", "..\samples\Javascript\CrystalCraze\proj.win32\CrystalCraze.vcxproj", "{9A17D9A4-4B11-4E32-94F6-895FF4909EC5}"
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "MoonWarriors", "..\samples\Javascript\MoonWarriors\proj.win32\MoonWarriors.vcxproj", "{1DB7C0FC-46FF-4A1B-82E0-C6244EEEC4C2}"
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "WatermelonWithMe", "..\samples\Javascript\WatermelonWithMe\proj.win32\WatermelonWithMe.vcxproj", "{BE092D9E-95AE-4F86-84CE-F4519E4F3F15}"
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "liblua", "..\cocos\scripting\lua\bindings\liblua.vcxproj", "{DDC3E27F-004D-4DD4-9DD3-931A013D2159}"
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "HelloLua", "..\samples\Lua\HelloLua\proj.win32\HelloLua.vcxproj", "{13E55395-94A2-4CD9-BFC2-1A051F80C17D}"
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "TestLua", "..\samples\Lua\TestLua\proj.win32\TestLua.win32.vcxproj", "{4E6A7A0E-DDD8-4BAA-8B22-C964069364ED}"
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "SimpleGame", "..\samples\Cpp\SimpleGame\proj.win32\SimpleGame.vcxproj", "{E0E282F4-8487-452C-BFAB-CB960EB4D22F}"
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libJSBindingForBuilder", "..\cocos\scripting\javascript\bindings\cocosbuilder\libJSBindingForBuilder.vcxproj", "{F9DA0FC1-651B-457B-962E-A4D61CEBF5FD}"
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libJSBindingForStudio", "..\cocos\scripting\javascript\bindings\cocostudio\libJSBindingForStudio.vcxproj", "{79D34511-E54E-410A-8BBA-EF175AD6C695}"
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libJSBindingForNetwork", "..\cocos\scripting\javascript\bindings\network\libJSBindingForNetwork.vcxproj", "{3BEC13F5-E227-4D80-BC77-1C857F83BCFC}"
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libJSBindingForExtension", "..\cocos\scripting\javascript\bindings\extension\libJSBindingForExtension.vcxproj", "{625F7391-9A91-48A1-8CFC-79508C822637}"
+EndProject
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "libJSBinding", "libJSBinding", "{10F98A57-B9A1-47DA-9FBA-12D328E72ED1}"
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libJSBindingForChipmunk", "..\cocos\scripting\javascript\bindings\chipmunk\libJSBindingForChipmunk.vcxproj", "{21070E58-EEC6-4E16-8B4F-6D083DF55790}"
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libJSBindingForLocalStorage", "..\cocos\scripting\javascript\bindings\localstorage\libJSBindingForLocalStorage.vcxproj", "{68F5F371-BD7B-4C30-AE5B-0B08F22E0CDE}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -100,14 +69,6 @@ Global
Release|Win32 = Release|Win32
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {929480E7-23C0-4DF6-8456-096D71547116}.Debug|Win32.ActiveCfg = Debug|Win32
- {929480E7-23C0-4DF6-8456-096D71547116}.Debug|Win32.Build.0 = Debug|Win32
- {929480E7-23C0-4DF6-8456-096D71547116}.Release|Win32.ActiveCfg = Release|Win32
- {929480E7-23C0-4DF6-8456-096D71547116}.Release|Win32.Build.0 = Release|Win32
- {207BC7A9-CCF1-4F2F-A04D-45F72242AE25}.Debug|Win32.ActiveCfg = Debug|Win32
- {207BC7A9-CCF1-4F2F-A04D-45F72242AE25}.Debug|Win32.Build.0 = Debug|Win32
- {207BC7A9-CCF1-4F2F-A04D-45F72242AE25}.Release|Win32.ActiveCfg = Release|Win32
- {207BC7A9-CCF1-4F2F-A04D-45F72242AE25}.Release|Win32.Build.0 = Release|Win32
{F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6}.Debug|Win32.ActiveCfg = Debug|Win32
{F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6}.Debug|Win32.Build.0 = Debug|Win32
{F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6}.Release|Win32.ActiveCfg = Release|Win32
@@ -116,38 +77,82 @@ Global
{98A51BA8-FC3A-415B-AC8F-8C7BD464E93E}.Debug|Win32.Build.0 = Debug|Win32
{98A51BA8-FC3A-415B-AC8F-8C7BD464E93E}.Release|Win32.ActiveCfg = Release|Win32
{98A51BA8-FC3A-415B-AC8F-8C7BD464E93E}.Release|Win32.Build.0 = Release|Win32
- {DDC3E27F-004D-4DD4-9DD3-931A013D2159}.Debug|Win32.ActiveCfg = Debug|Win32
- {DDC3E27F-004D-4DD4-9DD3-931A013D2159}.Debug|Win32.Build.0 = Debug|Win32
- {DDC3E27F-004D-4DD4-9DD3-931A013D2159}.Release|Win32.ActiveCfg = Release|Win32
- {DDC3E27F-004D-4DD4-9DD3-931A013D2159}.Release|Win32.Build.0 = Release|Win32
- {21B2C324-891F-48EA-AD1A-5AE13DE12E28}.Debug|Win32.ActiveCfg = Debug|Win32
- {21B2C324-891F-48EA-AD1A-5AE13DE12E28}.Debug|Win32.Build.0 = Debug|Win32
- {21B2C324-891F-48EA-AD1A-5AE13DE12E28}.Release|Win32.ActiveCfg = Release|Win32
- {21B2C324-891F-48EA-AD1A-5AE13DE12E28}.Release|Win32.Build.0 = Release|Win32
{B8BF9E81-35FD-4582-BA1C-B85FA365BABB}.Debug|Win32.ActiveCfg = Debug|Win32
{B8BF9E81-35FD-4582-BA1C-B85FA365BABB}.Debug|Win32.Build.0 = Debug|Win32
{B8BF9E81-35FD-4582-BA1C-B85FA365BABB}.Release|Win32.ActiveCfg = Release|Win32
{B8BF9E81-35FD-4582-BA1C-B85FA365BABB}.Release|Win32.Build.0 = Release|Win32
+ {929480E7-23C0-4DF6-8456-096D71547116}.Debug|Win32.ActiveCfg = Debug|Win32
+ {929480E7-23C0-4DF6-8456-096D71547116}.Debug|Win32.Build.0 = Debug|Win32
+ {929480E7-23C0-4DF6-8456-096D71547116}.Release|Win32.ActiveCfg = Release|Win32
+ {929480E7-23C0-4DF6-8456-096D71547116}.Release|Win32.Build.0 = Release|Win32
+ {207BC7A9-CCF1-4F2F-A04D-45F72242AE25}.Debug|Win32.ActiveCfg = Debug|Win32
+ {207BC7A9-CCF1-4F2F-A04D-45F72242AE25}.Debug|Win32.Build.0 = Debug|Win32
+ {207BC7A9-CCF1-4F2F-A04D-45F72242AE25}.Release|Win32.ActiveCfg = Release|Win32
+ {207BC7A9-CCF1-4F2F-A04D-45F72242AE25}.Release|Win32.Build.0 = Release|Win32
+ {21B2C324-891F-48EA-AD1A-5AE13DE12E28}.Debug|Win32.ActiveCfg = Debug|Win32
+ {21B2C324-891F-48EA-AD1A-5AE13DE12E28}.Debug|Win32.Build.0 = Debug|Win32
+ {21B2C324-891F-48EA-AD1A-5AE13DE12E28}.Release|Win32.ActiveCfg = Release|Win32
+ {21B2C324-891F-48EA-AD1A-5AE13DE12E28}.Release|Win32.Build.0 = Release|Win32
{76A39BB2-9B84-4C65-98A5-654D86B86F2A}.Debug|Win32.ActiveCfg = Debug|Win32
{76A39BB2-9B84-4C65-98A5-654D86B86F2A}.Debug|Win32.Build.0 = Debug|Win32
{76A39BB2-9B84-4C65-98A5-654D86B86F2A}.Release|Win32.ActiveCfg = Release|Win32
{76A39BB2-9B84-4C65-98A5-654D86B86F2A}.Release|Win32.Build.0 = Release|Win32
- {68ED0B4E-2BCA-45D2-9648-CEABEBD3B9D7}.Debug|Win32.ActiveCfg = Debug|Win32
- {68ED0B4E-2BCA-45D2-9648-CEABEBD3B9D7}.Debug|Win32.Build.0 = Debug|Win32
- {68ED0B4E-2BCA-45D2-9648-CEABEBD3B9D7}.Release|Win32.ActiveCfg = Release|Win32
- {68ED0B4E-2BCA-45D2-9648-CEABEBD3B9D7}.Release|Win32.Build.0 = Release|Win32
- {1DB7C0FC-46FF-4A1B-82E0-C6244EEEC4C2}.Debug|Win32.ActiveCfg = Debug|Win32
- {1DB7C0FC-46FF-4A1B-82E0-C6244EEEC4C2}.Debug|Win32.Build.0 = Debug|Win32
- {1DB7C0FC-46FF-4A1B-82E0-C6244EEEC4C2}.Release|Win32.ActiveCfg = Release|Win32
- {1DB7C0FC-46FF-4A1B-82E0-C6244EEEC4C2}.Release|Win32.Build.0 = Release|Win32
+ {811C0DAB-7B96-4BD3-A154-B7572B58E4AB}.Debug|Win32.ActiveCfg = Debug|Win32
+ {811C0DAB-7B96-4BD3-A154-B7572B58E4AB}.Debug|Win32.Build.0 = Debug|Win32
+ {811C0DAB-7B96-4BD3-A154-B7572B58E4AB}.Release|Win32.ActiveCfg = Release|Win32
+ {811C0DAB-7B96-4BD3-A154-B7572B58E4AB}.Release|Win32.Build.0 = Release|Win32
+ {B57CF53F-2E49-4031-9822-047CC0E6BDE2}.Debug|Win32.ActiveCfg = Debug|Win32
+ {B57CF53F-2E49-4031-9822-047CC0E6BDE2}.Debug|Win32.Build.0 = Debug|Win32
+ {B57CF53F-2E49-4031-9822-047CC0E6BDE2}.Release|Win32.ActiveCfg = Release|Win32
+ {B57CF53F-2E49-4031-9822-047CC0E6BDE2}.Release|Win32.Build.0 = Release|Win32
+ {7E06E92C-537A-442B-9E4A-4761C84F8A1A}.Debug|Win32.ActiveCfg = Debug|Win32
+ {7E06E92C-537A-442B-9E4A-4761C84F8A1A}.Debug|Win32.Build.0 = Debug|Win32
+ {7E06E92C-537A-442B-9E4A-4761C84F8A1A}.Release|Win32.ActiveCfg = Release|Win32
+ {7E06E92C-537A-442B-9E4A-4761C84F8A1A}.Release|Win32.Build.0 = Release|Win32
+ {DF2638C0-8128-4847-867C-6EAFE3DEE7B5}.Debug|Win32.ActiveCfg = Debug|Win32
+ {DF2638C0-8128-4847-867C-6EAFE3DEE7B5}.Debug|Win32.Build.0 = Debug|Win32
+ {DF2638C0-8128-4847-867C-6EAFE3DEE7B5}.Release|Win32.ActiveCfg = Release|Win32
+ {DF2638C0-8128-4847-867C-6EAFE3DEE7B5}.Release|Win32.Build.0 = Release|Win32
+ {B7C2A162-DEC9-4418-972E-240AB3CBFCAE}.Debug|Win32.ActiveCfg = Debug|Win32
+ {B7C2A162-DEC9-4418-972E-240AB3CBFCAE}.Debug|Win32.Build.0 = Debug|Win32
+ {B7C2A162-DEC9-4418-972E-240AB3CBFCAE}.Release|Win32.ActiveCfg = Release|Win32
+ {B7C2A162-DEC9-4418-972E-240AB3CBFCAE}.Release|Win32.Build.0 = Release|Win32
+ {6D37505F-A890-441D-BD3F-A61E2C0469CE}.Debug|Win32.ActiveCfg = Debug|Win32
+ {6D37505F-A890-441D-BD3F-A61E2C0469CE}.Debug|Win32.Build.0 = Debug|Win32
+ {6D37505F-A890-441D-BD3F-A61E2C0469CE}.Release|Win32.ActiveCfg = Release|Win32
+ {6D37505F-A890-441D-BD3F-A61E2C0469CE}.Release|Win32.Build.0 = Release|Win32
+ {39379840-825A-45A0-B363-C09FFEF864BD}.Debug|Win32.ActiveCfg = Debug|Win32
+ {39379840-825A-45A0-B363-C09FFEF864BD}.Debug|Win32.Build.0 = Debug|Win32
+ {39379840-825A-45A0-B363-C09FFEF864BD}.Release|Win32.ActiveCfg = Release|Win32
+ {39379840-825A-45A0-B363-C09FFEF864BD}.Release|Win32.Build.0 = Release|Win32
{D0F06A44-A245-4D13-A498-0120C203B539}.Debug|Win32.ActiveCfg = Debug|Win32
{D0F06A44-A245-4D13-A498-0120C203B539}.Debug|Win32.Build.0 = Debug|Win32
{D0F06A44-A245-4D13-A498-0120C203B539}.Release|Win32.ActiveCfg = Release|Win32
{D0F06A44-A245-4D13-A498-0120C203B539}.Release|Win32.Build.0 = Release|Win32
+ {632A8F38-D0F0-4D22-86B3-D69F5E6BF63A}.Debug|Win32.ActiveCfg = Debug|Win32
+ {632A8F38-D0F0-4D22-86B3-D69F5E6BF63A}.Debug|Win32.Build.0 = Debug|Win32
+ {632A8F38-D0F0-4D22-86B3-D69F5E6BF63A}.Release|Win32.ActiveCfg = Release|Win32
+ {632A8F38-D0F0-4D22-86B3-D69F5E6BF63A}.Release|Win32.Build.0 = Release|Win32
+ {68ED0B4E-2BCA-45D2-9648-CEABEBD3B9D7}.Debug|Win32.ActiveCfg = Debug|Win32
+ {68ED0B4E-2BCA-45D2-9648-CEABEBD3B9D7}.Debug|Win32.Build.0 = Debug|Win32
+ {68ED0B4E-2BCA-45D2-9648-CEABEBD3B9D7}.Release|Win32.ActiveCfg = Release|Win32
+ {68ED0B4E-2BCA-45D2-9648-CEABEBD3B9D7}.Release|Win32.Build.0 = Release|Win32
+ {9A17D9A4-4B11-4E32-94F6-895FF4909EC5}.Debug|Win32.ActiveCfg = Debug|Win32
+ {9A17D9A4-4B11-4E32-94F6-895FF4909EC5}.Debug|Win32.Build.0 = Debug|Win32
+ {9A17D9A4-4B11-4E32-94F6-895FF4909EC5}.Release|Win32.ActiveCfg = Release|Win32
+ {9A17D9A4-4B11-4E32-94F6-895FF4909EC5}.Release|Win32.Build.0 = Release|Win32
+ {1DB7C0FC-46FF-4A1B-82E0-C6244EEEC4C2}.Debug|Win32.ActiveCfg = Debug|Win32
+ {1DB7C0FC-46FF-4A1B-82E0-C6244EEEC4C2}.Debug|Win32.Build.0 = Debug|Win32
+ {1DB7C0FC-46FF-4A1B-82E0-C6244EEEC4C2}.Release|Win32.ActiveCfg = Release|Win32
+ {1DB7C0FC-46FF-4A1B-82E0-C6244EEEC4C2}.Release|Win32.Build.0 = Release|Win32
{BE092D9E-95AE-4F86-84CE-F4519E4F3F15}.Debug|Win32.ActiveCfg = Debug|Win32
{BE092D9E-95AE-4F86-84CE-F4519E4F3F15}.Debug|Win32.Build.0 = Debug|Win32
{BE092D9E-95AE-4F86-84CE-F4519E4F3F15}.Release|Win32.ActiveCfg = Release|Win32
{BE092D9E-95AE-4F86-84CE-F4519E4F3F15}.Release|Win32.Build.0 = Release|Win32
+ {DDC3E27F-004D-4DD4-9DD3-931A013D2159}.Debug|Win32.ActiveCfg = Debug|Win32
+ {DDC3E27F-004D-4DD4-9DD3-931A013D2159}.Debug|Win32.Build.0 = Debug|Win32
+ {DDC3E27F-004D-4DD4-9DD3-931A013D2159}.Release|Win32.ActiveCfg = Release|Win32
+ {DDC3E27F-004D-4DD4-9DD3-931A013D2159}.Release|Win32.Build.0 = Release|Win32
{13E55395-94A2-4CD9-BFC2-1A051F80C17D}.Debug|Win32.ActiveCfg = Debug|Win32
{13E55395-94A2-4CD9-BFC2-1A051F80C17D}.Debug|Win32.Build.0 = Debug|Win32
{13E55395-94A2-4CD9-BFC2-1A051F80C17D}.Release|Win32.ActiveCfg = Release|Win32
@@ -156,40 +161,46 @@ Global
{4E6A7A0E-DDD8-4BAA-8B22-C964069364ED}.Debug|Win32.Build.0 = Debug|Win32
{4E6A7A0E-DDD8-4BAA-8B22-C964069364ED}.Release|Win32.ActiveCfg = Release|Win32
{4E6A7A0E-DDD8-4BAA-8B22-C964069364ED}.Release|Win32.Build.0 = Release|Win32
- {39379840-825A-45A0-B363-C09FFEF864BD}.Debug|Win32.ActiveCfg = Debug|Win32
- {39379840-825A-45A0-B363-C09FFEF864BD}.Debug|Win32.Build.0 = Debug|Win32
- {39379840-825A-45A0-B363-C09FFEF864BD}.Release|Win32.ActiveCfg = Release|Win32
- {39379840-825A-45A0-B363-C09FFEF864BD}.Release|Win32.Build.0 = Release|Win32
- {9A17D9A4-4B11-4E32-94F6-895FF4909EC5}.Debug|Win32.ActiveCfg = Debug|Win32
- {9A17D9A4-4B11-4E32-94F6-895FF4909EC5}.Debug|Win32.Build.0 = Debug|Win32
- {9A17D9A4-4B11-4E32-94F6-895FF4909EC5}.Release|Win32.ActiveCfg = Release|Win32
- {9A17D9A4-4B11-4E32-94F6-895FF4909EC5}.Release|Win32.Build.0 = Release|Win32
- {6D37505F-A890-441D-BD3F-A61E2C0469CE}.Debug|Win32.ActiveCfg = Debug|Win32
- {6D37505F-A890-441D-BD3F-A61E2C0469CE}.Debug|Win32.Build.0 = Debug|Win32
- {6D37505F-A890-441D-BD3F-A61E2C0469CE}.Release|Win32.ActiveCfg = Release|Win32
- {6D37505F-A890-441D-BD3F-A61E2C0469CE}.Release|Win32.Build.0 = Release|Win32
+ {E0E282F4-8487-452C-BFAB-CB960EB4D22F}.Debug|Win32.ActiveCfg = Debug|Win32
+ {E0E282F4-8487-452C-BFAB-CB960EB4D22F}.Debug|Win32.Build.0 = Debug|Win32
+ {E0E282F4-8487-452C-BFAB-CB960EB4D22F}.Release|Win32.ActiveCfg = Release|Win32
+ {E0E282F4-8487-452C-BFAB-CB960EB4D22F}.Release|Win32.Build.0 = Release|Win32
+ {F9DA0FC1-651B-457B-962E-A4D61CEBF5FD}.Debug|Win32.ActiveCfg = Debug|Win32
+ {F9DA0FC1-651B-457B-962E-A4D61CEBF5FD}.Debug|Win32.Build.0 = Debug|Win32
+ {F9DA0FC1-651B-457B-962E-A4D61CEBF5FD}.Release|Win32.ActiveCfg = Release|Win32
+ {F9DA0FC1-651B-457B-962E-A4D61CEBF5FD}.Release|Win32.Build.0 = Release|Win32
+ {79D34511-E54E-410A-8BBA-EF175AD6C695}.Debug|Win32.ActiveCfg = Debug|Win32
+ {79D34511-E54E-410A-8BBA-EF175AD6C695}.Debug|Win32.Build.0 = Debug|Win32
+ {79D34511-E54E-410A-8BBA-EF175AD6C695}.Release|Win32.ActiveCfg = Release|Win32
+ {79D34511-E54E-410A-8BBA-EF175AD6C695}.Release|Win32.Build.0 = Release|Win32
+ {3BEC13F5-E227-4D80-BC77-1C857F83BCFC}.Debug|Win32.ActiveCfg = Debug|Win32
+ {3BEC13F5-E227-4D80-BC77-1C857F83BCFC}.Debug|Win32.Build.0 = Debug|Win32
+ {3BEC13F5-E227-4D80-BC77-1C857F83BCFC}.Release|Win32.ActiveCfg = Release|Win32
+ {3BEC13F5-E227-4D80-BC77-1C857F83BCFC}.Release|Win32.Build.0 = Release|Win32
+ {625F7391-9A91-48A1-8CFC-79508C822637}.Debug|Win32.ActiveCfg = Debug|Win32
+ {625F7391-9A91-48A1-8CFC-79508C822637}.Debug|Win32.Build.0 = Debug|Win32
+ {625F7391-9A91-48A1-8CFC-79508C822637}.Release|Win32.ActiveCfg = Release|Win32
+ {625F7391-9A91-48A1-8CFC-79508C822637}.Release|Win32.Build.0 = Release|Win32
+ {21070E58-EEC6-4E16-8B4F-6D083DF55790}.Debug|Win32.ActiveCfg = Debug|Win32
+ {21070E58-EEC6-4E16-8B4F-6D083DF55790}.Debug|Win32.Build.0 = Debug|Win32
+ {21070E58-EEC6-4E16-8B4F-6D083DF55790}.Release|Win32.ActiveCfg = Release|Win32
+ {21070E58-EEC6-4E16-8B4F-6D083DF55790}.Release|Win32.Build.0 = Release|Win32
+ {68F5F371-BD7B-4C30-AE5B-0B08F22E0CDE}.Debug|Win32.ActiveCfg = Debug|Win32
+ {68F5F371-BD7B-4C30-AE5B-0B08F22E0CDE}.Debug|Win32.Build.0 = Debug|Win32
+ {68F5F371-BD7B-4C30-AE5B-0B08F22E0CDE}.Release|Win32.ActiveCfg = Release|Win32
+ {68F5F371-BD7B-4C30-AE5B-0B08F22E0CDE}.Release|Win32.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
- {207BC7A9-CCF1-4F2F-A04D-45F72242AE25} = {F51B8DCB-62CD-441F-B85D-43BD8EA432F1}
- {F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6} = {F51B8DCB-62CD-441F-B85D-43BD8EA432F1}
- {98A51BA8-FC3A-415B-AC8F-8C7BD464E93E} = {F51B8DCB-62CD-441F-B85D-43BD8EA432F1}
- {21B2C324-891F-48EA-AD1A-5AE13DE12E28} = {F51B8DCB-62CD-441F-B85D-43BD8EA432F1}
- {929480E7-23C0-4DF6-8456-096D71547116} = {F51B8DCB-62CD-441F-B85D-43BD8EA432F1}
- {13E55395-94A2-4CD9-BFC2-1A051F80C17D} = {69C8AC8E-8B5C-474C-950D-1DB7F367E22C}
- {4E6A7A0E-DDD8-4BAA-8B22-C964069364ED} = {69C8AC8E-8B5C-474C-950D-1DB7F367E22C}
- {DDC3E27F-004D-4DD4-9DD3-931A013D2159} = {69C8AC8E-8B5C-474C-950D-1DB7F367E22C}
- {76A39BB2-9B84-4C65-98A5-654D86B86F2A} = {8DFE8821-1A1A-4894-9EA1-2A211F8CEDEA}
- {B8BF9E81-35FD-4582-BA1C-B85FA365BABB} = {8DFE8821-1A1A-4894-9EA1-2A211F8CEDEA}
- {6D37505F-A890-441D-BD3F-A61E2C0469CE} = {8DFE8821-1A1A-4894-9EA1-2A211F8CEDEA}
- {1DB7C0FC-46FF-4A1B-82E0-C6244EEEC4C2} = {42FCBD79-852E-4A68-9C3F-51200BAF5732}
- {D0F06A44-A245-4D13-A498-0120C203B539} = {42FCBD79-852E-4A68-9C3F-51200BAF5732}
- {BE092D9E-95AE-4F86-84CE-F4519E4F3F15} = {42FCBD79-852E-4A68-9C3F-51200BAF5732}
- {68ED0B4E-2BCA-45D2-9648-CEABEBD3B9D7} = {42FCBD79-852E-4A68-9C3F-51200BAF5732}
- {39379840-825A-45A0-B363-C09FFEF864BD} = {42FCBD79-852E-4A68-9C3F-51200BAF5732}
- {9A17D9A4-4B11-4E32-94F6-895FF4909EC5} = {42FCBD79-852E-4A68-9C3F-51200BAF5732}
+ {39379840-825A-45A0-B363-C09FFEF864BD} = {10F98A57-B9A1-47DA-9FBA-12D328E72ED1}
+ {F9DA0FC1-651B-457B-962E-A4D61CEBF5FD} = {10F98A57-B9A1-47DA-9FBA-12D328E72ED1}
+ {625F7391-9A91-48A1-8CFC-79508C822637} = {10F98A57-B9A1-47DA-9FBA-12D328E72ED1}
+ {3BEC13F5-E227-4D80-BC77-1C857F83BCFC} = {10F98A57-B9A1-47DA-9FBA-12D328E72ED1}
+ {79D34511-E54E-410A-8BBA-EF175AD6C695} = {10F98A57-B9A1-47DA-9FBA-12D328E72ED1}
+ {21070E58-EEC6-4E16-8B4F-6D083DF55790} = {10F98A57-B9A1-47DA-9FBA-12D328E72ED1}
+ {68F5F371-BD7B-4C30-AE5B-0B08F22E0CDE} = {10F98A57-B9A1-47DA-9FBA-12D328E72ED1}
EndGlobalSection
GlobalSection(DPCodeReviewSolutionGUID) = preSolution
DPCodeReviewSolutionGUID = {00000000-0000-0000-0000-000000000000}
diff --git a/build/cocos2d_libs.xcodeproj/project.pbxproj.REMOVED.git-id b/build/cocos2d_libs.xcodeproj/project.pbxproj.REMOVED.git-id
index abe193af68..18265b616b 100644
--- a/build/cocos2d_libs.xcodeproj/project.pbxproj.REMOVED.git-id
+++ b/build/cocos2d_libs.xcodeproj/project.pbxproj.REMOVED.git-id
@@ -1 +1 @@
-a791b9789e080d3e7530890cfbaa966fffef5f9e
\ No newline at end of file
+1c487d29bdc2d80516e86e2ee93b1664e9f7df2f
\ No newline at end of file
diff --git a/build/install-deps-linux.sh b/build/install-deps-linux.sh
index f62c78a3e8..687b51926b 100755
--- a/build/install-deps-linux.sh
+++ b/build/install-deps-linux.sh
@@ -32,5 +32,5 @@ if [ -n "$MISSING" ]; then
fi
# install glfw
-tools/travis-scripts/install_glfw.sh
+../tools/travis-scripts/install_glfw.sh
diff --git a/cocos/2d/Makefile b/cocos/2d/Makefile
index fa3d1cb659..d88604b130 100644
--- a/cocos/2d/Makefile
+++ b/cocos/2d/Makefile
@@ -1,93 +1,83 @@
TARGET = libcocos2d.so
-INCLUDES += \
- -I../platform/third_party/linux/libfreetype2 \
- -I../platform/third_party/common/etc \
- -I../platform/third_party/common/s3tc \
- -I../platform/third_party/common/atitc \
- -I../../extensions \
- -I../../extensions/CCBReader \
- -I../../extensions/GUI/CCControlExtension \
- -I../../extensions/GUI/CCControlExtension \
- -I../../external/chipmunk/include/chipmunk \
- -I../../extensions/network \
- -I../../extensions/Components
+INCLUDES =
-SOURCES = ../actions/CCAction.cpp \
-../actions/CCActionCamera.cpp \
-../actions/CCActionEase.cpp \
-../actions/CCActionGrid.cpp \
-../actions/CCActionGrid3D.cpp \
-../actions/CCActionInstant.cpp \
-../actions/CCActionInterval.cpp \
-../actions/CCActionManager.cpp \
-../actions/CCActionPageTurn3D.cpp \
-../actions/CCActionProgressTimer.cpp \
-../actions/CCActionTiledGrid.cpp \
-../actions/CCActionCatmullRom.cpp \
-../actions/CCActionTween.cpp \
-../base_nodes/CCAtlasNode.cpp \
-../base_nodes/CCNode.cpp \
-../cocoa/CCAffineTransform.cpp \
-../cocoa/CCAutoreleasePool.cpp \
-../cocoa/CCGeometry.cpp \
-../cocoa/CCNS.cpp \
-../cocoa/CCObject.cpp \
-../cocoa/CCSet.cpp \
-../cocoa/CCArray.cpp \
-../cocoa/CCDictionary.cpp \
-../cocoa/CCString.cpp \
-../cocoa/CCDataVisitor.cpp \
-../cocoa/CCData.cpp \
-../event_dispatcher/CCEventAcceleration.cpp \
-../event_dispatcher/CCEventListenerAcceleration.cpp \
-../event_dispatcher/CCEvent.cpp \
-../event_dispatcher/CCEventDispatcher.cpp \
-../event_dispatcher/CCEventListener.cpp \
-../event_dispatcher/CCEventKeyboard.cpp \
-../event_dispatcher/CCEventListenerKeyboard.cpp \
-../event_dispatcher/CCTouch.cpp \
-../event_dispatcher/CCEventTouch.cpp \
-../event_dispatcher/CCEventListenerTouch.cpp \
-../event_dispatcher/CCEventCustom.cpp \
-../event_dispatcher/CCEventListenerCustom.cpp \
-../draw_nodes/CCDrawingPrimitives.cpp \
-../draw_nodes/CCDrawNode.cpp \
-../effects/CCGrabber.cpp \
-../effects/CCGrid.cpp \
-../label_nodes/CCFont.cpp \
-../label_nodes/CCFontAtlas.cpp \
-../label_nodes/CCFontAtlasCache.cpp \
-../label_nodes/CCFontAtlasFactory.cpp \
-../label_nodes/CCFontDefinition.cpp \
-../label_nodes/CCFontFNT.cpp \
-../label_nodes/CCFontFreeType.cpp \
-../label_nodes/CCLabel.cpp \
-../label_nodes/CCLabelAtlas.cpp \
-../label_nodes/CCLabelBMFont.cpp \
-../label_nodes/CCLabelTTF.cpp \
-../label_nodes/CCLabelTextFormatter.cpp \
-../label_nodes/CCTextImage.cpp \
-../layers_scenes_transitions_nodes/CCLayer.cpp \
-../layers_scenes_transitions_nodes/CCScene.cpp \
-../layers_scenes_transitions_nodes/CCTransition.cpp \
-../layers_scenes_transitions_nodes/CCTransitionPageTurn.cpp \
-../layers_scenes_transitions_nodes/CCTransitionProgress.cpp \
-../menu_nodes/CCMenu.cpp \
-../menu_nodes/CCMenuItem.cpp \
-../misc_nodes/CCMotionStreak.cpp \
-../misc_nodes/CCProgressTimer.cpp \
-../misc_nodes/CCClippingNode.cpp \
-../misc_nodes/CCRenderTexture.cpp \
-../particle_nodes/CCParticleExamples.cpp \
-../particle_nodes/CCParticleSystem.cpp \
-../particle_nodes/CCParticleSystemQuad.cpp \
-../particle_nodes/CCParticleBatchNode.cpp \
-../physics/Box2D/CCPhysicsContactInfo.cpp \
-../physics/Box2D/CCPhysicsJointInfo.cpp \
-../physics/Box2D/CCPhysicsShapeInfo.cpp \
-../physics/Box2D/CCPhysicsBodyInfo.cpp \
-../physics/Box2D/CCPhysicsWorldInfo.cpp \
+SOURCES = \
+CCAction.cpp \
+CCActionCamera.cpp \
+CCActionEase.cpp \
+CCActionGrid.cpp \
+CCActionGrid3D.cpp \
+CCActionInstant.cpp \
+CCActionInterval.cpp \
+CCActionManager.cpp \
+CCActionPageTurn3D.cpp \
+CCActionProgressTimer.cpp \
+CCActionTiledGrid.cpp \
+CCActionCatmullRom.cpp \
+CCActionTween.cpp \
+CCAtlasNode.cpp \
+CCNode.cpp \
+../base/CCAffineTransform.cpp \
+../base/CCAutoreleasePool.cpp \
+../base/CCGeometry.cpp \
+../base/CCNS.cpp \
+../base/CCObject.cpp \
+../base/CCSet.cpp \
+../base/CCArray.cpp \
+../base/CCDictionary.cpp \
+../base/CCString.cpp \
+../base/CCDataVisitor.cpp \
+../base/CCData.cpp \
+CCEventAcceleration.cpp \
+CCEventListenerAcceleration.cpp \
+CCEvent.cpp \
+CCEventDispatcher.cpp \
+CCEventListener.cpp \
+CCEventKeyboard.cpp \
+CCEventListenerKeyboard.cpp \
+CCTouch.cpp \
+CCEventTouch.cpp \
+CCEventListenerTouch.cpp \
+CCEventCustom.cpp \
+CCEventListenerCustom.cpp \
+CCDrawingPrimitives.cpp \
+CCDrawNode.cpp \
+CCGrabber.cpp \
+CCGrid.cpp \
+CCFont.cpp \
+CCFontAtlas.cpp \
+CCFontAtlasCache.cpp \
+CCFontAtlasFactory.cpp \
+CCFontDefinition.cpp \
+CCFontFNT.cpp \
+CCFontFreeType.cpp \
+CCLabel.cpp \
+CCLabelAtlas.cpp \
+CCLabelBMFont.cpp \
+CCLabelTTF.cpp \
+CCLabelTextFormatter.cpp \
+CCTextImage.cpp \
+CCLayer.cpp \
+CCScene.cpp \
+CCTransition.cpp \
+CCTransitionPageTurn.cpp \
+CCTransitionProgress.cpp \
+CCMenu.cpp \
+CCMenuItem.cpp \
+CCMotionStreak.cpp \
+CCProgressTimer.cpp \
+CCClippingNode.cpp \
+CCRenderTexture.cpp \
+CCParticleExamples.cpp \
+CCParticleSystem.cpp \
+CCParticleSystemQuad.cpp \
+CCParticleBatchNode.cpp \
+../physics/box2d/CCPhysicsContactInfo.cpp \
+../physics/box2d/CCPhysicsJointInfo.cpp \
+../physics/box2d/CCPhysicsShapeInfo.cpp \
+../physics/box2d/CCPhysicsBodyInfo.cpp \
+../physics/box2d/CCPhysicsWorldInfo.cpp \
../physics/chipmunk/CCPhysicsContactInfo.cpp \
../physics/chipmunk/CCPhysicsJointInfo.cpp \
../physics/chipmunk/CCPhysicsShapeInfo.cpp \
@@ -109,68 +99,68 @@ SOURCES = ../actions/CCAction.cpp \
../platform/linux/CCEGLView.cpp \
../platform/linux/CCImage.cpp \
../platform/linux/CCDevice.cpp \
-../platform/third_party/common/etc/etc1.cpp \
-../platform/third_party/common/s3tc/s3tc.cpp \
-../platform/third_party/common/atitc/atitc.cpp \
-../script_support/CCScriptSupport.cpp \
-../sprite_nodes/CCAnimation.cpp \
-../sprite_nodes/CCAnimationCache.cpp \
-../sprite_nodes/CCSprite.cpp \
-../sprite_nodes/CCSpriteBatchNode.cpp \
-../sprite_nodes/CCSpriteFrame.cpp \
-../sprite_nodes/CCSpriteFrameCache.cpp \
-../support/ccUTF8.cpp \
-../support/CCProfiling.cpp \
-../support/user_default/CCUserDefault.cpp \
-../support/TransformUtils.cpp \
-../support/base64.cpp \
-../support/ccUtils.cpp \
-../support/CCVertex.cpp \
-../support/CCNotificationCenter.cpp \
-../support/image_support/TGAlib.cpp \
-../support/tinyxml2/tinyxml2.cpp \
-../support/zip_support/ZipUtils.cpp \
-../support/zip_support/ioapi.cpp \
-../support/zip_support/unzip.cpp \
-../support/data_support/ccCArray.cpp \
-../support/component/CCComponent.cpp \
-../support/component/CCComponentContainer.cpp \
-../text_input_node/CCIMEDispatcher.cpp \
-../text_input_node/CCTextFieldTTF.cpp \
-../textures/CCTexture2D.cpp \
-../textures/CCTextureAtlas.cpp \
-../textures/CCTextureCache.cpp \
-../tilemap_parallax_nodes/CCParallaxNode.cpp \
-../tilemap_parallax_nodes/CCTMXLayer.cpp \
-../tilemap_parallax_nodes/CCTMXObjectGroup.cpp \
-../tilemap_parallax_nodes/CCTMXTiledMap.cpp \
-../tilemap_parallax_nodes/CCTMXXMLParser.cpp \
-../tilemap_parallax_nodes/CCTileMapAtlas.cpp \
-../shaders/CCGLProgram.cpp \
-../shaders/ccGLStateCache.cpp \
-../shaders/CCShaderCache.cpp \
-../shaders/ccShaders.cpp \
-../kazmath/src/aabb.c \
-../kazmath/src/plane.c \
-../kazmath/src/vec2.c \
-../kazmath/src/mat3.c \
-../kazmath/src/quaternion.c \
-../kazmath/src/vec3.c \
-../kazmath/src/mat4.c \
-../kazmath/src/ray2.c \
-../kazmath/src/vec4.c \
-../kazmath/src/neon_matrix_impl.c \
-../kazmath/src/utility.c \
-../kazmath/src/GL/mat4stack.c \
-../kazmath/src/GL/matrix.c \
-../CCCamera.cpp \
-../CCConfiguration.cpp \
-../CCDirector.cpp \
-../CCScheduler.cpp \
-../ccFPSImages.c \
-../ccTypes.cpp \
-../cocos2d.cpp \
-../CCDeprecated.cpp
+../base/etc1.cpp \
+../base/s3tc.cpp \
+../base/atitc.cpp \
+CCScriptSupport.cpp \
+CCAnimation.cpp \
+CCAnimationCache.cpp \
+CCSprite.cpp \
+CCSpriteBatchNode.cpp \
+CCSpriteFrame.cpp \
+CCSpriteFrameCache.cpp \
+ccUTF8.cpp \
+CCProfiling.cpp \
+CCUserDefault.cpp \
+TransformUtils.cpp \
+base64.cpp \
+ccUtils.cpp \
+CCVertex.cpp \
+CCNotificationCenter.cpp \
+TGAlib.cpp \
+../../external/tinyxml2/tinyxml2.cpp \
+ZipUtils.cpp \
+../../external/unzip/ioapi.cpp \
+../../external/unzip/unzip.cpp \
+ccCArray.cpp \
+CCComponent.cpp \
+CCComponentContainer.cpp \
+CCIMEDispatcher.cpp \
+CCTextFieldTTF.cpp \
+CCTexture2D.cpp \
+CCTextureAtlas.cpp \
+CCTextureCache.cpp \
+CCParallaxNode.cpp \
+CCTMXLayer.cpp \
+CCTMXObjectGroup.cpp \
+CCTMXTiledMap.cpp \
+CCTMXXMLParser.cpp \
+CCTileMapAtlas.cpp \
+CCGLProgram.cpp \
+ccGLStateCache.cpp \
+CCShaderCache.cpp \
+ccShaders.cpp \
+../math/kazmath/src/aabb.c \
+../math/kazmath/src/plane.c \
+../math/kazmath/src/vec2.c \
+../math/kazmath/src/mat3.c \
+../math/kazmath/src/quaternion.c \
+../math/kazmath/src/vec3.c \
+../math/kazmath/src/mat4.c \
+../math/kazmath/src/ray2.c \
+../math/kazmath/src/vec4.c \
+../math/kazmath/src/neon_matrix_impl.c \
+../math/kazmath/src/utility.c \
+../math/kazmath/src/GL/mat4stack.c \
+../math/kazmath/src/GL/matrix.c \
+CCCamera.cpp \
+CCConfiguration.cpp \
+CCDirector.cpp \
+CCScheduler.cpp \
+ccFPSImages.c \
+ccTypes.cpp \
+cocos2d.cpp \
+CCDeprecated.cpp
COCOS_ROOT = ../..
@@ -189,10 +179,24 @@ $(TARGET): $(OBJECTS) $(CORE_MAKEFILE_LIST)
@mkdir -p $(@D)
$(LOG_LINK)$(CXX) $(CXXFLAGS) $(OBJECTS) -shared -o $@ $(SHAREDLIBS) $(STATICLIBS) $(LIBS)
+$(OBJ_DIR)/%.o: %.cpp $(CORE_MAKEFILE_LIST)
+ @mkdir -p $(@D)
+ $(LOG_CXX)$(CXX) $(CXXFLAGS) $(INCLUDES) $(DEFINES) -c $< -o $@
+
$(OBJ_DIR)/%.o: ../%.cpp $(CORE_MAKEFILE_LIST)
@mkdir -p $(@D)
$(LOG_CXX)$(CXX) $(CXXFLAGS) $(INCLUDES) $(DEFINES) -c $< -o $@
+$(OBJ_DIR)/%.o: ../../%.cpp $(CORE_MAKEFILE_LIST)
+ @mkdir -p $(@D)
+ $(LOG_CXX)$(CXX) $(CXXFLAGS) $(INCLUDES) $(DEFINES) -c $< -o $@
+
+$(OBJ_DIR)/%.o: %.c $(CORE_MAKEFILE_LIST)
+ @mkdir -p $(@D)
+ $(LOG_CC)$(CC) $(CCFLAGS) $(INCLUDES) $(DEFINES) -c $< -o $@
+
$(OBJ_DIR)/%.o: ../%.c $(CORE_MAKEFILE_LIST)
@mkdir -p $(@D)
$(LOG_CC)$(CC) $(CCFLAGS) $(INCLUDES) $(DEFINES) -c $< -o $@
+
+
diff --git a/cocos/2d/cocos2d.vcxproj b/cocos/2d/cocos2d.vcxproj
index 46a695d1e2..a7f030bb9f 100644
--- a/cocos/2d/cocos2d.vcxproj
+++ b/cocos/2d/cocos2d.vcxproj
@@ -36,9 +36,13 @@
+
+
+
+
@@ -69,7 +73,7 @@
Disabled
- $(MSBuildProgramFiles32)\Microsoft SDKs\Windows\v7.1A\include;$(ProjectDir)..;$(ProjectDir)..\platform\win32;$(ProjectDir)..\platform\third_party\win32\iconv;$(ProjectDir)..\platform\third_party\win32\zlib;$(ProjectDir)..\platform\third_party\win32\libpng;$(ProjectDir)..\platform\third_party\win32\libjpeg;$(ProjectDir)..\platform\third_party\win32\libtiff;$(ProjectDir)..\platform\third_party\win32\libwebp;$(ProjectDir)..\platform\third_party\win32\libfreetype2;$(ProjectDir)..\platform\third_party\win32\OGLES;..\include;$(ProjectDir)..\kazmath\include;$(ProjectDir)..\platform\third_party\common\etc;$(ProjectDir)..\..\external\chipmunk\include\chipmunk;%(AdditionalIncludeDirectories)
+ $(MSBuildProgramFiles32)\Microsoft SDKs\Windows\v7.1A\include;$(EngineRoot)external\sqlite3\include;$(EngineRoot)external\unzip;$(EngineRoot)external\tinyxml2;$(EngineRoot)external\png\include\win32;$(EngineRoot)external\jpeg\include\win32;$(EngineRoot)external\tiff\include\win32;$(EngineRoot)external\webp\include\win32;$(EngineRoot)external\freetype2\include\win32;$(EngineRoot)external\win32-specific\icon\include;$(EngineRoot)external\win32-specific\zlib\include;$(EngineRoot)external\chipmunk\include\chipmunk;%(AdditionalIncludeDirectories)
WIN32;_DEBUG;_WINDOWS;_LIB;COCOS2DXWIN32_EXPORTS;GL_GLEXT_PROTOTYPES;COCOS2D_DEBUG=1;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)
false
EnableFastChecks
@@ -83,7 +87,16 @@
if not exist "$(OutDir)" mkdir "$(OutDir)"
-xcopy /Y /Q "$(ProjectDir)..\platform\third_party\win32\libraries\*.*" "$(OutDir)"
+xcopy /Y /Q "$(ProjectDir)..\..\external\freetype2\prebuilt\win32\*.*" "$(OutDir)"
+xcopy /Y /Q "$(ProjectDir)..\..\external\glfw3\prebuilt\win32\*.*" "$(OutDir)"
+xcopy /Y /Q "$(ProjectDir)..\..\external\curl\prebuilt\win32\*.*" "$(OutDir)"
+xcopy /Y /Q "$(ProjectDir)..\..\external\jpeg\prebuilt\win32\*.*" "$(OutDir)"
+xcopy /Y /Q "$(ProjectDir)..\..\external\png\prebuilt\win32\*.*" "$(OutDir)"
+xcopy /Y /Q "$(ProjectDir)..\..\external\tiff\prebuilt\win32\*.*" "$(OutDir)"
+xcopy /Y /Q "$(ProjectDir)..\..\external\webp\prebuilt\win32\*.*" "$(OutDir)"
+xcopy /Y /Q "$(ProjectDir)..\..\external\win32-specific\zlib\prebuilt\*.*" "$(OutDir)"
+xcopy /Y /Q "$(ProjectDir)..\..\external\win32-specific\icon\prebuilt\*.*" "$(OutDir)"
+xcopy /Y /Q "$(ProjectDir)..\..\external\win32-specific\gles\prebuilt\*.*" "$(OutDir)"
@@ -107,7 +120,7 @@ xcopy /Y /Q "$(ProjectDir)..\platform\third_party\win32\libraries\*.*" "$(OutDir
- $(MSBuildProgramFiles32)\Microsoft SDKs\Windows\v7.1A\include;$(ProjectDir)..;$(ProjectDir)..\platform\win32;$(ProjectDir)..\platform\third_party\win32\iconv;$(ProjectDir)..\platform\third_party\win32\zlib;$(ProjectDir)..\platform\third_party\win32\libpng;$(ProjectDir)..\platform\third_party\win32\libjpeg;$(ProjectDir)..\platform\third_party\win32\libtiff;$(ProjectDir)..\platform\third_party\win32\libwebp;$(ProjectDir)..\platform\third_party\win32\libfreetype2;$(ProjectDir)..\platform\third_party\win32\OGLES;..\include;$(ProjectDir)..\kazmath\include;$(ProjectDir)..\platform\third_party\common\etc;%(AdditionalIncludeDirectories)
+ $(MSBuildProgramFiles32)\Microsoft SDKs\Windows\v7.1A\include;$(EngineRoot)external\sqlite3\include;$(EngineRoot)external\unzip;$(EngineRoot)external\tinyxml2;$(EngineRoot)external\png\include\win32;$(EngineRoot)external\jpeg\include\win32;$(EngineRoot)external\tiff\include\win32;$(EngineRoot)external\webp\include\win32;$(EngineRoot)external\freetype2\include\win32;$(EngineRoot)external\win32-specific\icon\include;$(EngineRoot)external\win32-specific\zlib\include;$(EngineRoot)external\chipmunk\include\chipmunk;%(AdditionalIncludeDirectories)
WIN32;NDEBUG;_WINDOWS;_LIB;COCOS2DXWIN32_EXPORTS;GL_GLEXT_PROTOTYPES;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)
MultiThreadedDLL
@@ -119,7 +132,16 @@ xcopy /Y /Q "$(ProjectDir)..\platform\third_party\win32\libraries\*.*" "$(OutDir
if not exist "$(OutDir)" mkdir "$(OutDir)"
-xcopy /Y /Q "$(ProjectDir)..\platform\third_party\win32\libraries\*.*" "$(OutDir)"
+xcopy /Y /Q "$(ProjectDir)..\..\external\freetype2\prebuilt\win32\*.*" "$(OutDir)"
+xcopy /Y /Q "$(ProjectDir)..\..\external\glfw3\prebuilt\win32\*.*" "$(OutDir)"
+xcopy /Y /Q "$(ProjectDir)..\..\external\curl\prebuilt\win32\*.*" "$(OutDir)"
+xcopy /Y /Q "$(ProjectDir)..\..\external\jpeg\prebuilt\win32\*.*" "$(OutDir)"
+xcopy /Y /Q "$(ProjectDir)..\..\external\png\prebuilt\win32\*.*" "$(OutDir)"
+xcopy /Y /Q "$(ProjectDir)..\..\external\tiff\prebuilt\win32\*.*" "$(OutDir)"
+xcopy /Y /Q "$(ProjectDir)..\..\external\webp\prebuilt\win32\*.*" "$(OutDir)"
+xcopy /Y /Q "$(ProjectDir)..\..\external\win32-specific\zlib\prebuilt\*.*" "$(OutDir)"
+xcopy /Y /Q "$(ProjectDir)..\..\external\win32-specific\icon\prebuilt\*.*" "$(OutDir)"
+xcopy /Y /Q "$(ProjectDir)..\..\external\win32-specific\gles\prebuilt\*.*" "$(OutDir)"
@@ -140,79 +162,36 @@ xcopy /Y /Q "$(ProjectDir)..\platform\third_party\win32\libraries\*.*" "$(OutDir
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -228,162 +207,158 @@ xcopy /Y /Q "$(ProjectDir)..\platform\third_party\win32\libraries\*.*" "$(OutDir
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -402,101 +377,147 @@ xcopy /Y /Q "$(ProjectDir)..\platform\third_party\win32\libraries\*.*" "$(OutDir
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/cocos/2d/cocos2d.vcxproj.filters b/cocos/2d/cocos2d.vcxproj.filters
index 391517347c..2028e708c8 100644
--- a/cocos/2d/cocos2d.vcxproj.filters
+++ b/cocos/2d/cocos2d.vcxproj.filters
@@ -4,9 +4,6 @@
{cc64f5ad-2234-494c-9c51-b7a20c8887aa}
-
- {aec8225f-81a7-4213-b97b-7004d5535398}
-
{736cf4ab-e0d6-40ba-912a-b062d28d318a}
@@ -67,21 +64,6 @@
{7751500e-ac9e-4604-a96d-670b30b7d8bd}
-
- {b38113b1-3d59-4f6e-ac5a-f43921f6ed09}
-
-
- {569c49c9-27eb-456e-a3f4-9f403e28a3a1}
-
-
- {191b3e94-47dc-4054-b1cb-bf145d281521}
-
-
- {a91a4cc0-41e6-43e9-80c0-2c9101924386}
-
-
- {e278b354-1e41-4e92-95b3-7f661ba67140}
-
{163895ae-8a8e-46bf-bdf2-98bb2c1347fc}
@@ -112,397 +94,26 @@
{b9880458-36e5-4f28-a34b-d01d9512a395}
+
+ {05e27e68-7574-4a8b-af68-553dd3bafdfa}
+
+
+ {b797075f-7437-46d5-b4ee-2aa2c108e98f}
+
+
+ {c755509d-1610-4e6c-b01b-e01d4d0de46e}
+
+
+ {e1b64497-c099-4f06-8d61-9d4c6b7a215a}
+
+
+ {7c71abeb-8b4b-4be8-a23c-e32fedc65fc9}
+
+
+ {aec8225f-81a7-4213-b97b-7004d5535398}
+
-
- base_nodes
-
-
- base_nodes
-
-
- cocoa
-
-
- cocoa
-
-
- cocoa
-
-
- cocoa
-
-
- cocoa
-
-
- cocoa
-
-
- cocoa
-
-
- cocoa
-
-
- cocoa
-
-
- cocoa
-
-
- effects
-
-
- effects
-
-
- actions
-
-
- actions
-
-
- actions
-
-
- actions
-
-
- actions
-
-
- actions
-
-
- actions
-
-
- actions
-
-
- actions
-
-
- actions
-
-
- actions
-
-
- actions
-
-
- actions
-
-
- label_nodes
-
-
- label_nodes
-
-
- label_nodes
-
-
- layers_scenes_transitions_nodes
-
-
- layers_scenes_transitions_nodes
-
-
- layers_scenes_transitions_nodes
-
-
- layers_scenes_transitions_nodes
-
-
- layers_scenes_transitions_nodes
-
-
- menu_nodes
-
-
- menu_nodes
-
-
- misc_nodes
-
-
- misc_nodes
-
-
- misc_nodes
-
-
- particle_nodes
-
-
- particle_nodes
-
-
- particle_nodes
-
-
- particle_nodes
-
-
- platform
-
-
- platform
-
-
- platform
-
-
- platform\win32
-
-
- platform\win32
-
-
- platform\win32
-
-
- platform\win32
-
-
- platform\win32
-
-
- sprite_nodes
-
-
- sprite_nodes
-
-
- sprite_nodes
-
-
- sprite_nodes
-
-
- sprite_nodes
-
-
- sprite_nodes
-
-
- support
-
-
- support
-
-
- support
-
-
- support
-
-
- support
-
-
- support
-
-
- support\data_support
-
-
- support\image_support
-
-
- support\zip_support
-
-
- support\zip_support
-
-
- support\zip_support
-
-
- textures
-
-
- textures
-
-
- textures
-
-
- tilemap_parallax_nodes
-
-
- tilemap_parallax_nodes
-
-
- tilemap_parallax_nodes
-
-
- tilemap_parallax_nodes
-
-
- tilemap_parallax_nodes
-
-
- tilemap_parallax_nodes
-
-
- text_input_node
-
-
- text_input_node
-
-
- script_support
-
-
- kazmath\src
-
-
- kazmath\src
-
-
- kazmath\src
-
-
- kazmath\src
-
-
- kazmath\src
-
-
- kazmath\src
-
-
- kazmath\src
-
-
- kazmath\src
-
-
- kazmath\src
-
-
- kazmath\src
-
-
- kazmath\src
-
-
- kazmath\src\GL
-
-
- kazmath\src\GL
-
-
-
-
-
-
-
- draw_nodes
-
-
- draw_nodes
-
-
- misc_nodes
-
-
- shaders
-
-
- shaders
-
-
- shaders
-
-
- shaders
-
-
- platform\win32
-
-
- platform
-
-
- platform\win32
-
-
- support
-
-
- support\user_default
-
-
- support\tinyxml2
-
-
- cocoa
-
-
-
- support\component
-
-
- support\component
-
-
-
- platform\etc
-
-
-
- label_nodes
-
-
- label_nodes
-
-
- label_nodes
-
-
- label_nodes
-
-
- label_nodes
-
-
- label_nodes
-
-
- label_nodes
-
-
- label_nodes
-
-
- label_nodes
-
-
- label_nodes
-
-
- platform
-
-
- platform
-
-
- event_dispatcher
-
-
- event_dispatcher
-
-
- event_dispatcher
-
-
- event_dispatcher
-
physics
@@ -548,535 +159,421 @@
physics\Box2D
-
+
+ base_nodes
+
+
+ base_nodes
+
+
+ effects
+
+
+ effects
+
+
event_dispatcher
-
+
event_dispatcher
-
+
event_dispatcher
-
+
event_dispatcher
-
+
event_dispatcher
-
+
event_dispatcher
-
+
event_dispatcher
-
+
event_dispatcher
+
+ event_dispatcher
+
+
+ event_dispatcher
+
+
+ event_dispatcher
+
+
+ event_dispatcher
+
+
+ kazmath\src\GL
+
+
+ kazmath\src\GL
+
+
+ kazmath\src
+
+
+ kazmath\src
+
+
+ kazmath\src
+
+
+ kazmath\src
+
+
+ kazmath\src
+
+
+ kazmath\src
+
+
+ kazmath\src
+
+
+ kazmath\src
+
+
+ kazmath\src
+
+
+ kazmath\src
+
+
+ kazmath\src
+
+
+ layers_scenes_transitions_nodes
+
+
+ layers_scenes_transitions_nodes
+
+
+ layers_scenes_transitions_nodes
+
+
+ layers_scenes_transitions_nodes
+
+
+ layers_scenes_transitions_nodes
+
+
+ menu_nodes
+
+
+ menu_nodes
+
+
+ misc_nodes
+
+
+ misc_nodes
+
+
+ misc_nodes
+
+
+ misc_nodes
+
+
+ particle_nodes
+
+
+ particle_nodes
+
+
+ particle_nodes
+
+
+ particle_nodes
+
+
+ script_support
+
+
+ actions
+
+
+ actions
+
+
+ actions
+
+
+ actions
+
+
+ actions
+
+
+ actions
+
+
+ actions
+
+
+ actions
+
+
+ actions
+
+
+ actions
+
+
+ actions
+
+
+ actions
+
+
+ actions
+
+
+ draw_nodes
+
+
+ draw_nodes
+
+
+ label_nodes
+
+
+ label_nodes
+
+
+ label_nodes
+
+
+ label_nodes
+
+
+ label_nodes
+
+
+ label_nodes
+
+
+ label_nodes
+
+
+ label_nodes
+
+
+ label_nodes
+
+
+ label_nodes
+
+
+ label_nodes
+
+
+ label_nodes
+
+
+ label_nodes
+
+
+ platform\etc
+
+
+ platform\win32
+
+
+ platform\win32
+
+
+ platform\win32
+
+
+ platform\win32
+
+
+ platform\win32
+
+
+ platform\win32
+
+
+ platform\win32
+
+
+ platform
+
+
+ platform
+
+
+ platform
+
+
+ platform
+
+
+ platform
+
+
+ platform
+
+
+ shaders
+
+
+ shaders
+
+
+ shaders
+
+
+ shaders
+
+
+ sprite_nodes
+
+
+ sprite_nodes
+
+
+ sprite_nodes
+
+
+ sprite_nodes
+
+
+ sprite_nodes
+
+
+ sprite_nodes
+
+
+ text_input_node
+
+
+ text_input_node
+
+
+ textures
+
+
+ textures
+
+
+ textures
+
+
+ tilemap_parallax_nodes
+
+
+ tilemap_parallax_nodes
+
+
+ tilemap_parallax_nodes
+
+
+ tilemap_parallax_nodes
+
+
+ tilemap_parallax_nodes
+
+
+ tilemap_parallax_nodes
+
+
+
+
+
+
+
+
+
+
+ support
+
+
+ support
+
+
+ support
+
+
+ support
+
+
+ support
+
+
+ support
+
+
+ support\component
+
+
+ support\component
+
+
+ support\data_support
+
+
+ support\image_support
+
+
+ support\tinyxml2
+
+
+ support\user_default
+
+
+ support\zip_support
+
+
+ support\zip_support
+
+
+ support\zip_support
+
+
+ base
+
+
+ base
+
+
+ base
+
+
+ base
+
+
+ base
+
+
+ base
+
+
+ base
+
+
+ base
+
+
+ base
+
+
+ base
+
+
+ base
+
+
+ support
+
-
- base_nodes
-
-
- base_nodes
-
-
- cocoa
-
-
- cocoa
-
-
- cocoa
-
-
- cocoa
-
-
- cocoa
-
-
- cocoa
-
-
- cocoa
-
-
- cocoa
-
-
- cocoa
-
-
- cocoa
-
-
- cocoa
-
-
- effects
-
-
- effects
-
-
- actions
-
-
- actions
-
-
- actions
-
-
- actions
-
-
- actions
-
-
- actions
-
-
- actions
-
-
- actions
-
-
- actions
-
-
- actions
-
-
- actions
-
-
- actions
-
-
- actions
-
-
- include
-
-
- include
-
-
- include
-
-
- include
-
-
- include
-
-
- include
-
-
- label_nodes
-
-
- label_nodes
-
-
- label_nodes
-
-
- layers_scenes_transitions_nodes
-
-
- layers_scenes_transitions_nodes
-
-
- layers_scenes_transitions_nodes
-
-
- layers_scenes_transitions_nodes
-
-
- layers_scenes_transitions_nodes
-
-
- menu_nodes
-
-
- menu_nodes
-
-
- misc_nodes
-
-
- misc_nodes
-
-
- misc_nodes
-
-
- particle_nodes
-
-
- particle_nodes
-
-
- particle_nodes
-
-
- particle_nodes
-
-
- platform
-
-
- platform
-
-
- platform
-
-
- platform
-
-
- platform
-
-
- platform
-
-
- platform
-
-
- platform
-
-
- platform
-
-
- platform
-
-
- platform\win32
-
-
- platform\win32
-
-
- platform\win32
-
-
- platform\win32
-
-
- platform\win32
-
-
- sprite_nodes
-
-
- sprite_nodes
-
-
- sprite_nodes
-
-
- sprite_nodes
-
-
- sprite_nodes
-
-
- sprite_nodes
-
-
- support
-
-
- support
-
-
- support
-
-
- support
-
-
- support
-
-
- support
-
-
- support\data_support
-
-
- support\data_support
-
-
- support\data_support
-
-
- support\image_support
-
-
- support\zip_support
-
-
- support\zip_support
-
-
- support\zip_support
-
-
- textures
-
-
- textures
-
-
- textures
-
-
- tilemap_parallax_nodes
-
-
- tilemap_parallax_nodes
-
-
- tilemap_parallax_nodes
-
-
- tilemap_parallax_nodes
-
-
- tilemap_parallax_nodes
-
-
- tilemap_parallax_nodes
-
-
- text_input_node
-
-
- text_input_node
-
-
- text_input_node
-
-
- script_support
-
-
- kazmath\include\kazmath
-
-
- kazmath\include\kazmath
-
-
- kazmath\include\kazmath
-
-
- kazmath\include\kazmath
-
-
- kazmath\include\kazmath
-
-
- kazmath\include\kazmath
-
-
- kazmath\include\kazmath
-
-
- kazmath\include\kazmath
-
-
- kazmath\include\kazmath
-
-
- kazmath\include\kazmath
-
-
- kazmath\include\kazmath
-
-
- kazmath\include\kazmath
-
-
- kazmath\include\kazmath\GL
-
-
- kazmath\include\kazmath\GL
-
-
-
-
-
-
- draw_nodes
-
-
- draw_nodes
-
-
- misc_nodes
-
-
- shaders
-
-
- shaders
-
-
- shaders
-
-
- shaders
-
-
- shaders
-
-
- shaders
-
-
- shaders
-
-
- shaders
-
-
- shaders
-
-
- shaders
-
-
- shaders
-
-
- shaders
-
-
- shaders
-
-
- shaders
-
-
- shaders
-
-
- shaders
-
-
- shaders
-
-
- shaders
-
-
- shaders
-
-
- shaders
-
-
- platform\win32
-
-
- support
-
-
- support\user_default
-
-
- support\tinyxml2
-
-
- cocoa
-
-
- cocoa
-
-
- cocoa
-
-
- cocoa
-
-
-
- support\component
-
-
- support\component
-
-
- include
-
-
- platform\etc
-
-
- label_nodes
-
-
- label_nodes
-
-
- label_nodes
-
-
- label_nodes
-
-
- label_nodes
-
-
- label_nodes
-
-
- label_nodes
-
-
- label_nodes
-
-
- label_nodes
-
-
- label_nodes
-
-
- label_nodes
-
-
- label_nodes
-
-
- platform
-
-
- platform
-
-
- platform
-
-
- event_dispatcher
-
-
- event_dispatcher
-
-
- event_dispatcher
-
-
- event_dispatcher
-
physics
@@ -1131,29 +628,529 @@
physics\Box2D
-
+
+ base_nodes
+
+
+ base_nodes
+
+
+ effects
+
+
+ effects
+
+
event_dispatcher
-
+
event_dispatcher
-
+
event_dispatcher
-
+
event_dispatcher
-
+
event_dispatcher
-
+
event_dispatcher
-
+
event_dispatcher
-
+
event_dispatcher
+
+ event_dispatcher
+
+
+ event_dispatcher
+
+
+ event_dispatcher
+
+
+ event_dispatcher
+
+
+ include
+
+
+ include
+
+
+ include
+
+
+ include
+
+
+ include
+
+
+ include
+
+
+ include
+
+
+ kazmath\include\kazmath
+
+
+ kazmath\include\kazmath
+
+
+ kazmath\include\kazmath
+
+
+ kazmath\include\kazmath
+
+
+ kazmath\include\kazmath
+
+
+ kazmath\include\kazmath
+
+
+ kazmath\include\kazmath
+
+
+ kazmath\include\kazmath
+
+
+ kazmath\include\kazmath
+
+
+ kazmath\include\kazmath
+
+
+ kazmath\include\kazmath
+
+
+ kazmath\include\kazmath
+
+
+ kazmath\include\kazmath\GL
+
+
+ kazmath\include\kazmath\GL
+
+
+ layers_scenes_transitions_nodes
+
+
+ layers_scenes_transitions_nodes
+
+
+ layers_scenes_transitions_nodes
+
+
+ layers_scenes_transitions_nodes
+
+
+ layers_scenes_transitions_nodes
+
+
+ menu_nodes
+
+
+ menu_nodes
+
+
+ misc_nodes
+
+
+ misc_nodes
+
+
+ misc_nodes
+
+
+ misc_nodes
+
+
+ particle_nodes
+
+
+ particle_nodes
+
+
+ particle_nodes
+
+
+ particle_nodes
+
+
+ script_support
+
+
+ actions
+
+
+ actions
+
+
+ actions
+
+
+ actions
+
+
+ actions
+
+
+ actions
+
+
+ actions
+
+
+ actions
+
+
+ actions
+
+
+ actions
+
+
+ actions
+
+
+ actions
+
+
+ actions
+
+
+ draw_nodes
+
+
+ draw_nodes
+
+
+ label_nodes
+
+
+ label_nodes
+
+
+ label_nodes
+
+
+ label_nodes
+
+
+ label_nodes
+
+
+ label_nodes
+
+
+ label_nodes
+
+
+ label_nodes
+
+
+ label_nodes
+
+
+ label_nodes
+
+
+ label_nodes
+
+
+ label_nodes
+
+
+ label_nodes
+
+
+ label_nodes
+
+
+ platform\etc
+
+
+ platform\win32
+
+
+ platform\win32
+
+
+ platform\win32
+
+
+ platform\win32
+
+
+ platform\win32
+
+
+ platform\win32
+
+
+ platform
+
+
+ platform
+
+
+ platform
+
+
+ platform
+
+
+ platform
+
+
+ platform
+
+
+ platform
+
+
+ platform
+
+
+ platform
+
+
+ platform
+
+
+ platform
+
+
+ platform
+
+
+ platform
+
+
+ shaders
+
+
+ shaders
+
+
+ shaders
+
+
+ shaders
+
+
+ shaders
+
+
+ shaders
+
+
+ shaders
+
+
+ shaders
+
+
+ shaders
+
+
+ shaders
+
+
+ shaders
+
+
+ shaders
+
+
+ shaders
+
+
+ shaders
+
+
+ shaders
+
+
+ shaders
+
+
+ shaders
+
+
+ shaders
+
+
+ shaders
+
+
+ shaders
+
+
+ sprite_nodes
+
+
+ sprite_nodes
+
+
+ sprite_nodes
+
+
+ sprite_nodes
+
+
+ sprite_nodes
+
+
+ sprite_nodes
+
+
+ text_input_node
+
+
+ text_input_node
+
+
+ text_input_node
+
+
+ textures
+
+
+ textures
+
+
+ textures
+
+
+ tilemap_parallax_nodes
+
+
+ tilemap_parallax_nodes
+
+
+ tilemap_parallax_nodes
+
+
+ tilemap_parallax_nodes
+
+
+ tilemap_parallax_nodes
+
+
+ tilemap_parallax_nodes
+
+
+
+
+
+
+
+ support
+
+
+ support
+
+
+ support
+
+
+ support
+
+
+ support
+
+
+ support
+
+
+ support
+
+
+ support\component
+
+
+ support\component
+
+
+ support\data_support
+
+
+ support\data_support
+
+
+ support\data_support
+
+
+ support\image_support
+
+
+ support\tinyxml2
+
+
+ support\user_default
+
+
+ support\zip_support
+
+
+ support\zip_support
+
+
+ support\zip_support
+
+
+ base
+
+
+ base
+
+
+ base
+
+
+ base
+
+
+ base
+
+
+ base
+
+
+ base
+
+
+ base
+
+
+ base
+
+
+ base
+
+
+ base
+
+
+ base
+
+
+ base
+
+
+ base
+
+
+ base
+
\ No newline at end of file
diff --git a/cocos/2d/cocos2d_headers.props b/cocos/2d/cocos2d_headers.props
new file mode 100644
index 0000000000..020fd07d2f
--- /dev/null
+++ b/cocos/2d/cocos2d_headers.props
@@ -0,0 +1,20 @@
+
+
+
+
+ $(MSBuildThisFileDirectory)..\..\
+
+
+
+
+ $(EngineRoot)cocos\2d;$(EngineRoot)cocos\base;$(EngineRoot)cocos\physics;$(EngineRoot)cocos\math\kazmath\include;$(EngineRoot)cocos\2d\platform\win32;$(EngineRoot)external\glfw3\include\win32;$(EngineRoot)external\win32-specific\gles\include\OGLES;
+ _VARIADIC_MAX=10;%(PreprocessorDefinitions)
+
+
+
+
+ $(EngineRoot)
+ true
+
+
+
\ No newline at end of file
diff --git a/cocos/2d/cocos2dx.mk b/cocos/2d/cocos2dx.mk
index 0058e43bac..41ef87b631 100644
--- a/cocos/2d/cocos2dx.mk
+++ b/cocos/2d/cocos2dx.mk
@@ -45,28 +45,30 @@ THIS_MAKEFILE := $(CURDIR)/$(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST))
ifndef COCOS_ROOT
COCOS_ROOT := $(realpath $(dir $(THIS_MAKEFILE))/../..)
endif
-COCOS_SRC = $(COCOS_ROOT)/cocos2dx
+COCOS_SRC = $(COCOS_ROOT)/cocos/2d
OBJ_DIR ?= obj
LIB_DIR = $(COCOS_ROOT)/lib/linux
BIN_DIR = bin
INCLUDES += \
- -I$(COCOS_SRC) \
- -I$(COCOS_SRC)/cocoa \
- -I$(COCOS_SRC)/include \
- -I$(COCOS_SRC)/kazmath/include \
+ -I$(COCOS_SRC)/ \
+ -I$(COCOS_SRC)/../math/kazmath/include \
-I$(COCOS_SRC)/platform/linux \
- -I$(COCOS_SRC)/platform/third_party/linux/libjpeg \
- -I$(COCOS_SRC)/platform/third_party/linux/libtiff \
- -I$(COCOS_SRC)/platform/third_party/linux/libwebp
+ -I$(COCOS_SRC)/../../external/jpeg/include/linux \
+ -I$(COCOS_SRC)/../../external/tiff/include/linux \
+ -I$(COCOS_SRC)/../../external/webp/include/linux \
+ -I$(COCOS_SRC)/../../external/tinyxml2 \
+ -I$(COCOS_SRC)/../../external/unzip \
+ -I$(COCOS_SRC)/../../external/glfw3/include/linux \
+ -I$(COCOS_SRC)/../physics \
+ -I$(COCOS_SRC)/../base \
+ -I$(COCOS_SRC)/../../external/chipmunk/include/chipmunk \
+ -I$(COCOS_SRC)/../../external/freetype2/include/linux \
+ -I$(COCOS_SRC)/../.. \
+ -I$(COCOS_SRC)/../audio/include
LBITS := $(shell getconf LONG_BIT)
-ifeq ($(LBITS),64)
-INCLUDES += -I$(COCOS_SRC)/platform/third_party/linux/include64
-else
-INCLUDES += -I$(COCOS_SRC)/platform/third_party/linux
-endif
ifeq ($(DEBUG), 1)
CCFLAGS += -g3 -O0
@@ -100,22 +102,23 @@ DEPS = $(OBJECTS:.o=.d)
CORE_MAKEFILE_LIST := $(MAKEFILE_LIST)
-include $(DEPS)
+STATICLIBS_DIR = $(COCOS_ROOT)/external
ifeq ($(LBITS),64)
-STATICLIBS_DIR = $(COCOS_SRC)/platform/third_party/linux/libraries/lib64
+POSTFIX = 64-bit
else
-STATICLIBS_DIR = $(COCOS_SRC)/platform/third_party/linux/libraries
+POSTFIX = 32-bit
endif
-STATICLIBS = $(STATICLIBS_DIR)/libfreetype.a \
- $(STATICLIBS_DIR)/libjpeg.a \
- $(STATICLIBS_DIR)/libtiff.a \
- $(STATICLIBS_DIR)/libwebp.a
+STATICLIBS = $(STATICLIBS_DIR)/freetype2/prebuilt/linux/$(POSTFIX)/libfreetype.a \
+ $(STATICLIBS_DIR)/jpeg/prebuilt/linux/$(POSTFIX)/libjpeg.a \
+ $(STATICLIBS_DIR)/tiff/prebuilt/linux/$(POSTFIX)/libtiff.a \
+ $(STATICLIBS_DIR)/webp/prebuilt/linux/$(POSTFIX)/libwebp.a
ifneq ($(OPENAL),1)
ifeq ($(LBITS),64)
-FMOD_LIBDIR = $(COCOS_ROOT)/audio/third_party/fmod/lib64/api/lib
+FMOD_LIBDIR = $(COCOS_ROOT)/cocos/audio/third-party/fmod/lib64/api/lib
SHAREDLIBS += -lfmodex64
else
-FMOD_LIBDIR = $(COCOS_ROOT)/audio/third_party/fmod/api/lib
+FMOD_LIBDIR = $(COCOS_ROOT)/cocos/audio/third-party/fmod/api/lib
SHAREDLIBS += -lfmodex
endif
endif
diff --git a/cocos/2d/platform/linux/CCEGLView.cpp b/cocos/2d/platform/linux/CCEGLView.cpp
index 452d5738a3..561fedcca8 100644
--- a/cocos/2d/platform/linux/CCEGLView.cpp
+++ b/cocos/2d/platform/linux/CCEGLView.cpp
@@ -10,7 +10,7 @@
#include "ccMacros.h"
#include "CCDirector.h"
#include "CCTouch.h"
-#include "/CCIMEDispatcher.h"
+#include "CCIMEDispatcher.h"
#include "CCEventDispatcher.h"
#include "CCEventKeyboard.h"
#include
diff --git a/cocos/2d/platform/linux/CCEGLView.h b/cocos/2d/platform/linux/CCEGLView.h
index 9d29d9c188..ed4fc18245 100644
--- a/cocos/2d/platform/linux/CCEGLView.h
+++ b/cocos/2d/platform/linux/CCEGLView.h
@@ -11,7 +11,7 @@
#include "platform/CCCommon.h"
#include "CCGeometry.h"
#include "platform/CCEGLViewProtocol.h"
-#include "platform/third_party/linux/glfw/glfw3.h"
+#include "glfw3.h"
#include
bool initExtensions();
diff --git a/cocos/2d/platform/win32/CCEGLView.cpp b/cocos/2d/platform/win32/CCEGLView.cpp
index 4099331cf9..d5b2ba0202 100644
--- a/cocos/2d/platform/win32/CCEGLView.cpp
+++ b/cocos/2d/platform/win32/CCEGLView.cpp
@@ -26,7 +26,7 @@ THE SOFTWARE.
#include "CCSet.h"
#include "ccMacros.h"
#include "CCDirector.h"
-#include "/CCIMEDispatcher.h"
+#include "CCIMEDispatcher.h"
#include "CCApplication.h"
#include "CCTouch.h"
#include "CCEventDispatcher.h"
diff --git a/cocos/2d/platform/win32/CCEGLView.h b/cocos/2d/platform/win32/CCEGLView.h
index 643b500c66..59432e27ba 100644
--- a/cocos/2d/platform/win32/CCEGLView.h
+++ b/cocos/2d/platform/win32/CCEGLView.h
@@ -30,7 +30,7 @@ THE SOFTWARE.
#include "CCGeometry.h"
#include "platform/CCEGLViewProtocol.h"
-#include "platform/third_party/win32/GLFW/glfw3.h"
+#include "glfw3.h"
NS_CC_BEGIN
diff --git a/cocos/audio/proj.linux/Makefile b/cocos/audio/proj.linux/Makefile
index 82dc89a6d6..e8b18e3972 100644
--- a/cocos/audio/proj.linux/Makefile
+++ b/cocos/audio/proj.linux/Makefile
@@ -1,6 +1,6 @@
TARGET = libcocosdenshion.so
-INCLUDES += -I.. -I../include
+INCLUDES = -I.. -I../include
##Using OpenAL
ifeq ($(OPENAL),1)
@@ -26,15 +26,15 @@ SOURCES = \
../linux/FmodAudioPlayer.cpp
ifeq ($(LBITS),64)
-INCLUDES += -I../third_party/fmod/lib64/api/inc
+INCLUDES += -I../third-party/fmod/lib64/api/inc
else
-INCLUDES += -I../third_party/fmod/api/inc
+INCLUDES += -I../third-party/fmod/api/inc
endif
endif
-COCOS_ROOT = ../..
-include $(COCOS_ROOT)/cocos2dx/proj.linux/cocos2dx.mk
+COCOS_ROOT = ../../..
+include $(COCOS_ROOT)/cocos/2d/cocos2dx.mk
TARGET := $(LIB_DIR)/$(TARGET)
diff --git a/cocos/audio/proj.win32/CocosDenshion.vcxproj b/cocos/audio/proj.win32/CocosDenshion.vcxproj
index d5a959c878..ecde64b8c3 100644
--- a/cocos/audio/proj.win32/CocosDenshion.vcxproj
+++ b/cocos/audio/proj.win32/CocosDenshion.vcxproj
@@ -11,7 +11,7 @@
- libCocosDenshion
+ libAudio
{F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6}
CocosDenshion.win32
Win32Proj
@@ -36,9 +36,13 @@
+
+
+
+
@@ -65,7 +69,7 @@
Disabled
- $(MSBuildProgramFiles32)\Microsoft SDKs\Windows\v7.1A\include;..\Include;$(ProjectDir)..\..\cocos2dx;$(ProjectDir)..\..\cocos2dx\include;$(ProjectDir)..\..\cocos2dx\kazmath\include;$(ProjectDir)..\..\cocos2dx\platform\win32;$(ProjectDir)..\..\cocos2dx\platform\third_party\win32\OGLES;$(ProjectDir)..\..\external\chipmunk\include\chipmunk;%(AdditionalIncludeDirectories)
+ $(MSBuildProgramFiles32)\Microsoft SDKs\Windows\v7.1A\include;..\Include;%(AdditionalIncludeDirectories)
WIN32;_DEBUG;_WINDOWS;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)
false
EnableFastChecks
@@ -89,7 +93,7 @@
- $(MSBuildProgramFiles32)\Microsoft SDKs\Windows\v7.1A\include;..\Include;"$(ProjectDir)..\..\cocos2dx";"$(ProjectDir)..\..\cocos2dx\include";"$(ProjectDir)..\..\cocos2dx\kazmath\include";"$(ProjectDir)..\..\cocos2dx\platform\win32";"$(ProjectDir)..\..\cocos2dx\platform\third_party\win32\OGLES";%(AdditionalIncludeDirectories)
+ $(MSBuildProgramFiles32)\Microsoft SDKs\Windows\v7.1A\include;..\Include;%(AdditionalIncludeDirectories)
WIN32;NDEBUG;_WINDOWS;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)
MultiThreadedDLL
diff --git a/cocos/editor-support/cocosbuilder/CCBAnimationManager.cpp b/cocos/editor-support/cocosbuilder/CCBAnimationManager.cpp
index 13b039dcac..0ca75e25ce 100644
--- a/cocos/editor-support/cocosbuilder/CCBAnimationManager.cpp
+++ b/cocos/editor-support/cocosbuilder/CCBAnimationManager.cpp
@@ -910,6 +910,11 @@ void CCBAnimationManager::sequenceCompleted()
_lastCompletedSequenceName = runningSequenceName;
}
+ if (nextSeqId != -1)
+ {
+ runAnimationsForSequenceIdTweenDuration(nextSeqId, 0);
+ }
+
if (_delegate)
{
// There may be another runAnimation() call in this delegate method
@@ -920,11 +925,6 @@ void CCBAnimationManager::sequenceCompleted()
if (_target && _animationCompleteCallbackFunc) {
(_target->*_animationCompleteCallbackFunc)();
}
-
- if (nextSeqId != -1)
- {
- runAnimationsForSequenceIdTweenDuration(nextSeqId, 0);
- }
}
// Custom actions
diff --git a/cocos/editor-support/cocosbuilder/CCBReader.cpp b/cocos/editor-support/cocosbuilder/CCBReader.cpp
index d2f57ecf88..938c595f46 100644
--- a/cocos/editor-support/cocosbuilder/CCBReader.cpp
+++ b/cocos/editor-support/cocosbuilder/CCBReader.cpp
@@ -273,7 +273,7 @@ Node* CCBReader::readNodeGraphFromData(Data *pData, Object *pOwner, const Size &
Dictionary* animationManagers = Dictionary::create();
Node *pNodeGraph = readFileWithCleanUp(true, animationManagers);
- if (pNodeGraph && _actionManager->getAutoPlaySequenceId() != -1 && !_jsControlled)
+ if (pNodeGraph && _actionManager->getAutoPlaySequenceId() != -1)
{
// Auto play animations
_actionManager->runAnimationsForSequenceIdTweenDuration(_actionManager->getAutoPlaySequenceId(), 0);
diff --git a/cocos/editor-support/cocosbuilder/Makefile b/cocos/editor-support/cocosbuilder/Makefile
new file mode 100644
index 0000000000..688c5d49d5
--- /dev/null
+++ b/cocos/editor-support/cocosbuilder/Makefile
@@ -0,0 +1,44 @@
+TARGET = libcocosbuilder.a
+
+INCLUDES =
+
+SOURCES = CCBFileLoader.cpp \
+CCMenuItemImageLoader.cpp \
+CCBReader.cpp \
+CCMenuItemLoader.cpp \
+CCControlButtonLoader.cpp \
+CCNodeLoader.cpp \
+CCControlLoader.cpp \
+CCNodeLoaderLibrary.cpp \
+CCLabelBMFontLoader.cpp \
+CCParticleSystemQuadLoader.cpp \
+CCLabelTTFLoader.cpp \
+CCScale9SpriteLoader.cpp \
+CCLayerColorLoader.cpp \
+CCScrollViewLoader.cpp \
+CCLayerGradientLoader.cpp \
+CCSpriteLoader.cpp \
+CCLayerLoader.cpp \
+CCBAnimationManager.cpp \
+CCBKeyframe.cpp \
+CCBSequence.cpp \
+CCBSequenceProperty.cpp \
+CCBValue.cpp \
+CCNode+CCBRelativePositioning.cpp
+
+include ../../2d/cocos2dx.mk
+
+CXXFLAGS += -Wno-multichar
+
+TARGET := $(LIB_DIR)/$(TARGET)
+
+all: $(TARGET)
+
+$(TARGET): $(OBJECTS) $(CORE_MAKEFILE_LIST)
+ @mkdir -p $(@D)
+ $(LOG_AR)$(AR) $(ARFLAGS) $@ $(OBJECTS)
+
+$(OBJ_DIR)/%.o: %.cpp $(CORE_MAKEFILE_LIST)
+ @mkdir -p $(@D)
+ $(LOG_CXX)$(CXX) $(CXXFLAGS) $(INCLUDES) $(DEFINES) -c $< -o $@
+
diff --git a/cocos/editor-support/cocosbuilder/proj.win32/libCocosBuilder.vcxproj b/cocos/editor-support/cocosbuilder/proj.win32/libCocosBuilder.vcxproj
new file mode 100644
index 0000000000..2b44d72452
--- /dev/null
+++ b/cocos/editor-support/cocosbuilder/proj.win32/libCocosBuilder.vcxproj
@@ -0,0 +1,142 @@
+
+
+
+
+ Debug
+ Win32
+
+
+ Release
+ Win32
+
+
+
+ {811C0DAB-7B96-4BD3-A154-B7572B58E4AB}
+ libCocosBuilder
+
+
+
+ StaticLibrary
+ true
+ v110_xp
+ Unicode
+
+
+ StaticLibrary
+ false
+ v110_xp
+ true
+ Unicode
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ $(SolutionDir)$(Configuration).win32\
+ $(Configuration).win32\
+
+
+ $(SolutionDir)$(Configuration).win32\
+ $(Configuration).win32\
+
+
+
+ Level3
+ Disabled
+
+
+ $(EngineRoot);$(EngineRoot)extensions;$(EngineRoot)cocos\audio\include;%(AdditionalIncludeDirectories)
+ WIN32;_DEBUG;_WINDOWS;_LIB;COCOS2DXWIN32_EXPORTS;GL_GLEXT_PROTOTYPES;COCOS2D_DEBUG=1;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)
+ true
+ 4267;4251;4244;%(DisableSpecificWarnings)
+ false
+
+
+ true
+
+
+
+
+ Level3
+ MaxSpeed
+ true
+ true
+
+
+ $(EngineRoot);$(EngineRoot)extensions;$(EngineRoot)cocos\audio\include;%(AdditionalIncludeDirectories)
+ WIN32;_WINDOWS;_LIB;COCOS2DXWIN32_EXPORTS;GL_GLEXT_PROTOTYPES;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)
+
+
+ true
+ true
+ true
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/cocos/editor-support/cocosbuilder/proj.win32/libCocosBuilder.vcxproj.filters b/cocos/editor-support/cocosbuilder/proj.win32/libCocosBuilder.vcxproj.filters
new file mode 100644
index 0000000000..8dfedcc4bf
--- /dev/null
+++ b/cocos/editor-support/cocosbuilder/proj.win32/libCocosBuilder.vcxproj.filters
@@ -0,0 +1,170 @@
+
+
+
+
+ {67DA6AB6-F800-4c08-8B7A-83BB121AAD01}
+ rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms
+
+
+ {4FC737F1-C7A5-4376-A066-2A32D752A2FF}
+ cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx
+
+
+
+
+ Source Files
+
+
+ Source Files
+
+
+ Source Files
+
+
+ Source Files
+
+
+ Source Files
+
+
+ Source Files
+
+
+ Source Files
+
+
+ Source Files
+
+
+ Source Files
+
+
+ Source Files
+
+
+ Source Files
+
+
+ Source Files
+
+
+ Source Files
+
+
+ Source Files
+
+
+ Source Files
+
+
+ Source Files
+
+
+ Source Files
+
+
+ Source Files
+
+
+ Source Files
+
+
+ Source Files
+
+
+ Source Files
+
+
+ Source Files
+
+
+ Source Files
+
+
+
+
+ Header Files
+
+
+ Header Files
+
+
+ Header Files
+
+
+ Header Files
+
+
+ Header Files
+
+
+ Header Files
+
+
+ Header Files
+
+
+ Header Files
+
+
+ Header Files
+
+
+ Header Files
+
+
+ Header Files
+
+
+ Header Files
+
+
+ Header Files
+
+
+ Header Files
+
+
+ Header Files
+
+
+ Header Files
+
+
+ Header Files
+
+
+ Header Files
+
+
+ Header Files
+
+
+ Header Files
+
+
+ Header Files
+
+
+ Header Files
+
+
+ Header Files
+
+
+ Header Files
+
+
+ Header Files
+
+
+ Header Files
+
+
+ Header Files
+
+
+ Header Files
+
+
+
\ No newline at end of file
diff --git a/cocos/editor-support/cocosbuilder/proj.win32/libCocosBuilder.vcxproj.user b/cocos/editor-support/cocosbuilder/proj.win32/libCocosBuilder.vcxproj.user
new file mode 100644
index 0000000000..a375ae3527
--- /dev/null
+++ b/cocos/editor-support/cocosbuilder/proj.win32/libCocosBuilder.vcxproj.user
@@ -0,0 +1,4 @@
+
+
+
+
\ No newline at end of file
diff --git a/cocos/editor-support/cocostudio/Makefile b/cocos/editor-support/cocostudio/Makefile
new file mode 100644
index 0000000000..810c28372e
--- /dev/null
+++ b/cocos/editor-support/cocostudio/Makefile
@@ -0,0 +1,69 @@
+TARGET = libcocostudio.a
+
+COCOS_ROOT=../../..
+
+INCLUDES = -I../../2d \
+-I../../../external \
+-I.. \
+-I../.. \
+
+SOURCES = CCActionFrame.cpp \
+CCActionFrameEasing.cpp \
+CCActionManagerEx.cpp \
+CCActionNode.cpp \
+CCActionObject.cpp \
+CCArmature.cpp \
+CCBone.cpp \
+CCArmatureAnimation.cpp \
+CCProcessBase.cpp \
+CCTween.cpp \
+CCDatas.cpp \
+CCBatchNode.cpp \
+CCDecorativeDisplay.cpp \
+CCDisplayFactory.cpp \
+CCDisplayManager.cpp \
+CCSkin.cpp \
+CCColliderDetector.cpp \
+CCArmatureDataManager.cpp \
+CCArmatureDefine.cpp \
+CCDataReaderHelper.cpp \
+CCSpriteFrameCacheHelper.cpp \
+CCTransformHelp.cpp \
+CCTweenFunction.cpp \
+CCUtilMath.cpp \
+CCComAttribute.cpp \
+CCComAudio.cpp \
+CCComController.cpp \
+CCComRender.cpp \
+CCInputDelegate.cpp \
+CSContentJsonDictionary.cpp \
+DictionaryHelper.cpp \
+CCSGUIReader.cpp \
+CCSSceneReader.cpp \
+../../../external/json/json_reader.cpp \
+../../../external/json/json_value.cpp \
+../../../external/json/json_writer.cpp
+
+include ../../2d/cocos2dx.mk
+
+CXXFLAGS += -Wno-multichar
+
+TARGET := $(LIB_DIR)/$(TARGET)
+
+all: $(TARGET)
+
+$(TARGET): $(OBJECTS) $(CORE_MAKEFILE_LIST)
+ @mkdir -p $(@D)
+ $(LOG_AR)$(AR) $(ARFLAGS) $@ $(OBJECTS)
+
+$(OBJ_DIR)/%.o: %.cpp $(CORE_MAKEFILE_LIST)
+ @mkdir -p $(@D)
+ $(LOG_CXX)$(CXX) $(CXXFLAGS) $(INCLUDES) $(DEFINES) -c $< -o $@
+
+$(OBJ_DIR)/%.o: ../../../%.cpp $(CORE_MAKEFILE_LIST)
+ @mkdir -p $(@D)
+ $(LOG_CXX)$(CXX) $(CXXFLAGS) $(INCLUDES) $(DEFINES) -c $< -o $@
+
+$(OBJ_DIR)/%.o: %.c $(CORE_MAKEFILE_LIST)
+ @mkdir -p $(@D)
+ $(LOG_CC)$(CC) $(CCFLAGS) $(INCLUDES) $(DEFINES) -c $< -o $@
diff --git a/cocos/editor-support/cocostudio/proj.win32/libCocosStudio.vcxproj b/cocos/editor-support/cocostudio/proj.win32/libCocosStudio.vcxproj
new file mode 100644
index 0000000000..d52ce8d931
--- /dev/null
+++ b/cocos/editor-support/cocostudio/proj.win32/libCocosStudio.vcxproj
@@ -0,0 +1,174 @@
+
+
+
+
+ Debug
+ Win32
+
+
+ Release
+ Win32
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {B57CF53F-2E49-4031-9822-047CC0E6BDE2}
+ libCocosStudio
+
+
+
+ StaticLibrary
+ true
+ v110_xp
+ Unicode
+
+
+ StaticLibrary
+ false
+ v110_xp
+ true
+ Unicode
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ $(SolutionDir)$(Configuration).win32\
+ $(Configuration).win32\
+
+
+ $(SolutionDir)$(Configuration).win32\
+ $(Configuration).win32\
+
+
+
+ Level3
+ Disabled
+
+
+ $(EngineRoot);$(EngineRoot)cocos;$(EngineRoot)cocos\audio\include;$(EngineRoot)cocos\editor-support;$(EngineRoot)external;$(EngineRoot)external\tinyxml2;$(EngineRoot)external\chipmunk\include\chipmunk;$(EngineRoot)extensions;%(AdditionalIncludeDirectories)
+ WIN32;_DEBUG;_WINDOWS;_LIB;COCOS2DXWIN32_EXPORTS;GL_GLEXT_PROTOTYPES;COCOS2D_DEBUG=1;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)
+ true
+ 4267;4251;4244;%(DisableSpecificWarnings)
+ false
+
+
+ true
+
+
+
+
+ Level3
+ MaxSpeed
+ true
+ true
+ true
+ WIN32;_WINDOWS;_LIB;COCOS2DXWIN32_EXPORTS;GL_GLEXT_PROTOTYPES;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)
+ $(EngineRoot);$(EngineRoot)cocos;$(EngineRoot)cocos\audio\include;$(EngineRoot)cocos\editor-support;$(EngineRoot)external;$(EngineRoot)external\tinyxml2;$(EngineRoot)external\chipmunk\include\chipmunk;$(EngineRoot)extensions;%(AdditionalIncludeDirectories)
+
+
+ true
+ true
+ true
+
+
+
+
+
+
\ No newline at end of file
diff --git a/cocos/editor-support/cocostudio/proj.win32/libCocosStudio.vcxproj.filters b/cocos/editor-support/cocostudio/proj.win32/libCocosStudio.vcxproj.filters
new file mode 100644
index 0000000000..10053f03e2
--- /dev/null
+++ b/cocos/editor-support/cocostudio/proj.win32/libCocosStudio.vcxproj.filters
@@ -0,0 +1,290 @@
+
+
+
+
+ {d793b86c-0905-4c9b-b6bc-161e351c9eb2}
+
+
+ {855f2366-3429-4f77-a080-a41a39c99270}
+
+
+ {1a8c6b14-fb28-4485-8417-9b6838fbc4ef}
+
+
+ {42f1ce3f-46ab-4a16-a96e-9eb076c873f7}
+
+
+ {f8271f80-1663-4425-91c8-7365ec3af017}
+
+
+ {48f28446-ffe4-4aa1-a34c-8968c3367ae6}
+
+
+ {ad9b4fd1-dc17-4704-9c60-7709eb916f13}
+
+
+ {55c682b3-7a48-4fab-ad5a-eb979f3c305e}
+
+
+ {c6464479-e0ab-4afc-96fc-1ffc73e40232}
+
+
+ {023e3440-1259-4981-ba54-24390d1df447}
+
+
+ {e8d09ad5-8816-4724-a10b-04263868ed7c}
+
+
+
+
+ action
+
+
+ action
+
+
+ action
+
+
+ action
+
+
+ action
+
+
+ components
+
+
+ components
+
+
+ components
+
+
+ components
+
+
+ components
+
+
+ json
+
+
+ json
+
+
+ reader
+
+
+ reader
+
+
+ armature\animation
+
+
+ armature\animation
+
+
+ armature\animation
+
+
+ armature\datas
+
+
+ armature\display
+
+
+ armature\display
+
+
+ armature\display
+
+
+ armature\display
+
+
+ armature\display
+
+
+ armature\utils
+
+
+ armature\utils
+
+
+ armature\utils
+
+
+ armature\utils
+
+
+ armature\utils
+
+
+ armature\utils
+
+
+ armature\utils
+
+
+ armature\physics
+
+
+ armature
+
+
+ armature
+
+
+ json\libjson
+
+
+ json\libjson
+
+
+ json\libjson
+
+
+
+
+ action
+
+
+ action
+
+
+ action
+
+
+ action
+
+
+ action
+
+
+ components
+
+
+ components
+
+
+ components
+
+
+ components
+
+
+ components
+
+
+ json
+
+
+ json
+
+
+ reader
+
+
+ reader
+
+
+ armature\animation
+
+
+ armature\animation
+
+
+ armature\animation
+
+
+ armature\datas
+
+
+ armature\display
+
+
+ armature\display
+
+
+ armature\display
+
+
+ armature\display
+
+
+ armature\display
+
+
+ armature\utils
+
+
+ armature\utils
+
+
+ armature\utils
+
+
+ armature\utils
+
+
+ armature\utils
+
+
+ armature\utils
+
+
+ armature\utils
+
+
+ armature\physics
+
+
+ armature
+
+
+ armature
+
+
+ json\libjson
+
+
+ json\libjson
+
+
+ json\libjson
+
+
+ json\libjson
+
+
+ json\libjson
+
+
+ json\libjson
+
+
+ json\libjson
+
+
+ json\libjson
+
+
+ json\libjson
+
+
+
+
+ json\libjson
+
+
+ json\libjson
+
+
+ json\libjson
+
+
+ json\libjson
+
+
+
\ No newline at end of file
diff --git a/cocos/editor-support/cocostudio/proj.win32/libCocosStudio.vcxproj.user b/cocos/editor-support/cocostudio/proj.win32/libCocosStudio.vcxproj.user
new file mode 100644
index 0000000000..a375ae3527
--- /dev/null
+++ b/cocos/editor-support/cocostudio/proj.win32/libCocosStudio.vcxproj.user
@@ -0,0 +1,4 @@
+
+
+
+
\ No newline at end of file
diff --git a/cocos/editor-support/spine/Makefile b/cocos/editor-support/spine/Makefile
new file mode 100644
index 0000000000..88514a824e
--- /dev/null
+++ b/cocos/editor-support/spine/Makefile
@@ -0,0 +1,42 @@
+TARGET = libspine.a
+
+INCLUDES = -I..
+
+SOURCES = Animation.cpp \
+AnimationState.cpp \
+AnimationStateData.cpp \
+Atlas.cpp \
+AtlasAttachmentLoader.cpp \
+Attachment.cpp \
+AttachmentLoader.cpp \
+Bone.cpp \
+BoneData.cpp \
+Json.cpp \
+RegionAttachment.cpp \
+Skeleton.cpp \
+SkeletonData.cpp \
+SkeletonJson.cpp \
+Skin.cpp \
+Slot.cpp \
+SlotData.cpp \
+extension.cpp \
+spine-cocos2dx.cpp \
+CCSkeleton.cpp \
+CCSkeletonAnimation.cpp
+
+include ../../2d/cocos2dx.mk
+
+CXXFLAGS += -Wno-multichar
+
+TARGET := $(LIB_DIR)/$(TARGET)
+
+all: $(TARGET)
+
+$(TARGET): $(OBJECTS) $(CORE_MAKEFILE_LIST)
+ @mkdir -p $(@D)
+ $(LOG_AR)$(AR) $(ARFLAGS) $@ $(OBJECTS)
+
+$(OBJ_DIR)/%.o: %.cpp $(CORE_MAKEFILE_LIST)
+ @mkdir -p $(@D)
+ $(LOG_CXX)$(CXX) $(CXXFLAGS) $(INCLUDES) $(DEFINES) -c $< -o $@
+
diff --git a/cocos/editor-support/spine/proj.win32/libSpine.vcxproj b/cocos/editor-support/spine/proj.win32/libSpine.vcxproj
new file mode 100644
index 0000000000..b4fc436abf
--- /dev/null
+++ b/cocos/editor-support/spine/proj.win32/libSpine.vcxproj
@@ -0,0 +1,134 @@
+
+
+
+
+ Debug
+ Win32
+
+
+ Release
+ Win32
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {B7C2A162-DEC9-4418-972E-240AB3CBFCAE}
+ libSpine
+
+
+
+ StaticLibrary
+ true
+ v110_xp
+ Unicode
+
+
+ StaticLibrary
+ false
+ v110_xp
+ true
+ Unicode
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ $(SolutionDir)$(Configuration).win32\
+ $(Configuration).win32\
+
+
+ $(SolutionDir)$(Configuration).win32\
+ $(Configuration).win32\
+
+
+
+ Level3
+ Disabled
+
+
+ $(EngineRoot);$(EngineRoot)cocos\audio\include;$(EngineRoot)cocos\editor-support;$(EngineRoot)extensions;%(AdditionalIncludeDirectories)
+ WIN32;_DEBUG;_WINDOWS;_LIB;COCOS2DXWIN32_EXPORTS;GL_GLEXT_PROTOTYPES;COCOS2D_DEBUG=1;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)
+ true
+ 4267;4251;4244;%(DisableSpecificWarnings)
+ false
+
+
+ true
+
+
+
+
+ Level3
+ MaxSpeed
+ true
+ true
+
+
+ WIN32;_WINDOWS;_LIB;COCOS2DXWIN32_EXPORTS;GL_GLEXT_PROTOTYPES;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)
+ $(EngineRoot);$(EngineRoot)cocos\audio\include;$(EngineRoot)cocos\editor-support;$(EngineRoot)extensions;%(AdditionalIncludeDirectories)
+
+
+ true
+ true
+ true
+
+
+
+
+
+
\ No newline at end of file
diff --git a/cocos/editor-support/spine/proj.win32/libSpine.vcxproj.filters b/cocos/editor-support/spine/proj.win32/libSpine.vcxproj.filters
new file mode 100644
index 0000000000..d6ed5b1506
--- /dev/null
+++ b/cocos/editor-support/spine/proj.win32/libSpine.vcxproj.filters
@@ -0,0 +1,146 @@
+
+
+
+
+ {67DA6AB6-F800-4c08-8B7A-83BB121AAD01}
+ rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms
+
+
+ {4FC737F1-C7A5-4376-A066-2A32D752A2FF}
+ cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx
+
+
+
+
+ Header Files
+
+
+ Header Files
+
+
+ Header Files
+
+
+ Header Files
+
+
+ Header Files
+
+
+ Header Files
+
+
+ Header Files
+
+
+ Header Files
+
+
+ Header Files
+
+
+ Header Files
+
+
+ Header Files
+
+
+ Header Files
+
+
+ Header Files
+
+
+ Header Files
+
+
+ Header Files
+
+
+ Header Files
+
+
+ Header Files
+
+
+ Header Files
+
+
+ Header Files
+
+
+ Header Files
+
+
+ Header Files
+
+
+ Header Files
+
+
+
+
+ Source Files
+
+
+ Source Files
+
+
+ Source Files
+
+
+ Source Files
+
+
+ Source Files
+
+
+ Source Files
+
+
+ Source Files
+
+
+ Source Files
+
+
+ Source Files
+
+
+ Source Files
+
+
+ Source Files
+
+
+ Source Files
+
+
+ Source Files
+
+
+ Source Files
+
+
+ Source Files
+
+
+ Source Files
+
+
+ Source Files
+
+
+ Source Files
+
+
+ Source Files
+
+
+ Source Files
+
+
+ Source Files
+
+
+
\ No newline at end of file
diff --git a/cocos/editor-support/spine/proj.win32/libSpine.vcxproj.user b/cocos/editor-support/spine/proj.win32/libSpine.vcxproj.user
new file mode 100644
index 0000000000..a375ae3527
--- /dev/null
+++ b/cocos/editor-support/spine/proj.win32/libSpine.vcxproj.user
@@ -0,0 +1,4 @@
+
+
+
+
\ No newline at end of file
diff --git a/cocos/gui/Layout.cpp b/cocos/gui/Layout.cpp
index b7014ac1ed..a9e4f75a30 100644
--- a/cocos/gui/Layout.cpp
+++ b/cocos/gui/Layout.cpp
@@ -22,7 +22,7 @@
THE SOFTWARE.
****************************************************************************/
-#include "gui/layout.h"
+#include "gui/Layout.h"
#include "gui/UILayer.h"
#include "gui/UIHelper.h"
#include "extensions/GUI/CCControlExtension/CCScale9Sprite.h"
@@ -782,4 +782,4 @@ bool RectClippingNode::isEnabled() const
return _enabled;
}
-}
\ No newline at end of file
+}
diff --git a/cocos/gui/Makefile b/cocos/gui/Makefile
new file mode 100644
index 0000000000..0e8501cc63
--- /dev/null
+++ b/cocos/gui/Makefile
@@ -0,0 +1,44 @@
+TARGET = libgui.a
+
+INCLUDES = -I../ \
+-I../editor-support \
+-I../../external
+
+SOURCES = UIRootWidget.cpp \
+UIWidget.cpp \
+Layout.cpp \
+LayoutParameter.cpp \
+UILayoutDefine.cpp \
+CocosGUI.cpp \
+UIHelper.cpp \
+UIInputManager.cpp \
+UILayer.cpp \
+UIDragPanel.cpp \
+UIListView.cpp \
+UIPageView.cpp \
+UIScrollView.cpp \
+UIButton.cpp \
+UICheckBox.cpp \
+UIImageView.cpp \
+UILabel.cpp \
+UILabelAtlas.cpp \
+UILabelBMFont.cpp \
+UILoadingBar.cpp \
+UISlider.cpp \
+UITextField.cpp
+
+include ../2d/cocos2dx.mk
+
+CXXFLAGS += -Wno-multichar
+
+TARGET := $(LIB_DIR)/$(TARGET)
+
+all: $(TARGET)
+
+$(TARGET): $(OBJECTS) $(CORE_MAKEFILE_LIST)
+ @mkdir -p $(@D)
+ $(LOG_AR)$(AR) $(ARFLAGS) $@ $(OBJECTS)
+
+$(OBJ_DIR)/%.o: %.cpp $(CORE_MAKEFILE_LIST)
+ @mkdir -p $(@D)
+ $(LOG_CXX)$(CXX) $(CXXFLAGS) $(INCLUDES) $(DEFINES) -c $< -o $@
diff --git a/cocos/gui/proj.win32/libGUI.vcxproj b/cocos/gui/proj.win32/libGUI.vcxproj
new file mode 100644
index 0000000000..1e483d4b85
--- /dev/null
+++ b/cocos/gui/proj.win32/libGUI.vcxproj
@@ -0,0 +1,136 @@
+
+
+
+
+ Debug
+ Win32
+
+
+ Release
+ Win32
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {7E06E92C-537A-442B-9E4A-4761C84F8A1A}
+ libGUI
+
+
+
+ StaticLibrary
+ true
+ v110_xp
+ Unicode
+
+
+ StaticLibrary
+ false
+ v110_xp
+ true
+ Unicode
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ $(SolutionDir)$(Configuration).win32\
+ $(Configuration).win32\
+
+
+ $(SolutionDir)$(Configuration).win32\
+ $(Configuration).win32\
+
+
+
+ Level3
+ Disabled
+
+
+ $(EngineRoot);$(EngineRoot)cocos;$(EngineRoot)cocos\audio\include;$(EngineRoot)cocos\editor-support;$(EngineRoot)external;$(EngineRoot)extensions;%(AdditionalIncludeDirectories)
+ WIN32;_DEBUG;_WINDOWS;_LIB;COCOS2DXWIN32_EXPORTS;GL_GLEXT_PROTOTYPES;COCOS2D_DEBUG=1;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)
+ true
+ 4267;4251;4244;%(DisableSpecificWarnings)
+ false
+
+
+ true
+
+
+
+
+ Level3
+ MaxSpeed
+ true
+ true
+
+
+ WIN32;_WINDOWS;_LIB;COCOS2DXWIN32_EXPORTS;GL_GLEXT_PROTOTYPES;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)
+ $(EngineRoot);$(EngineRoot)cocos;$(EngineRoot)cocos\audio\include;$(EngineRoot)cocos\editor-support;$(EngineRoot)external;$(EngineRoot)extensions;%(AdditionalIncludeDirectories)
+
+
+ true
+ true
+ true
+
+
+
+
+
+
\ No newline at end of file
diff --git a/cocos/gui/proj.win32/libGUI.vcxproj.filters b/cocos/gui/proj.win32/libGUI.vcxproj.filters
new file mode 100644
index 0000000000..12f0d385ab
--- /dev/null
+++ b/cocos/gui/proj.win32/libGUI.vcxproj.filters
@@ -0,0 +1,159 @@
+
+
+
+
+ {e31ab7d3-b8b2-467f-9e08-fd5fe168b491}
+
+
+ {f9d13563-9e5e-4b35-b0e7-d41f587efa42}
+
+
+ {ed8a2ae0-5690-4d0d-829b-7c07164c0597}
+
+
+ {5f6e9e52-fbe7-4073-ac71-98632f9e6781}
+
+
+ {b59b178a-b7e0-4826-ba07-44c46cd29a10}
+
+
+
+
+ UIWidgets\ScrollWidget
+
+
+ UIWidgets\ScrollWidget
+
+
+ UIWidgets\ScrollWidget
+
+
+ UIWidgets\ScrollWidget
+
+
+ UIWidgets\ScrollWidget
+
+
+ UIWidgets
+
+
+ UIWidgets
+
+
+ UIWidgets
+
+
+ UIWidgets
+
+
+ UIWidgets
+
+
+ UIWidgets
+
+
+ UIWidgets
+
+
+ UIWidgets
+
+
+ UIWidgets
+
+
+ System
+
+
+ System
+
+
+ System
+
+
+ System
+
+
+ Layouts
+
+
+ Layouts
+
+
+ Layouts
+
+
+ BaseClasses
+
+
+ BaseClasses
+
+
+
+
+ UIWidgets\ScrollWidget
+
+
+ UIWidgets\ScrollWidget
+
+
+ UIWidgets\ScrollWidget
+
+
+ UIWidgets\ScrollWidget
+
+
+ UIWidgets
+
+
+ UIWidgets
+
+
+ UIWidgets
+
+
+ UIWidgets
+
+
+ UIWidgets
+
+
+ UIWidgets
+
+
+ UIWidgets
+
+
+ UIWidgets
+
+
+ UIWidgets
+
+
+ System
+
+
+ System
+
+
+ System
+
+
+ System
+
+
+ Layouts
+
+
+ Layouts
+
+
+ Layouts
+
+
+ BaseClasses
+
+
+ BaseClasses
+
+
+
\ No newline at end of file
diff --git a/cocos/gui/proj.win32/libGUI.vcxproj.user b/cocos/gui/proj.win32/libGUI.vcxproj.user
new file mode 100644
index 0000000000..a375ae3527
--- /dev/null
+++ b/cocos/gui/proj.win32/libGUI.vcxproj.user
@@ -0,0 +1,4 @@
+
+
+
+
\ No newline at end of file
diff --git a/cocos/network/Makefile b/cocos/network/Makefile
new file mode 100644
index 0000000000..029078722d
--- /dev/null
+++ b/cocos/network/Makefile
@@ -0,0 +1,22 @@
+TARGET = libnetwork.a
+
+INCLUDES = -I..
+
+SOURCES = HttpClient.cpp \
+SocketIO.cpp
+
+include ../2d/cocos2dx.mk
+
+CXXFLAGS += -Wno-multichar
+
+TARGET := $(LIB_DIR)/$(TARGET)
+
+all: $(TARGET)
+
+$(TARGET): $(OBJECTS) $(CORE_MAKEFILE_LIST)
+ @mkdir -p $(@D)
+ $(LOG_AR)$(AR) $(ARFLAGS) $@ $(OBJECTS)
+
+$(OBJ_DIR)/%.o: %.cpp $(CORE_MAKEFILE_LIST)
+ @mkdir -p $(@D)
+ $(LOG_CXX)$(CXX) $(CXXFLAGS) $(INCLUDES) $(DEFINES) -c $< -o $@
diff --git a/cocos/network/proj.win32/libNetwork.vcxproj b/cocos/network/proj.win32/libNetwork.vcxproj
new file mode 100644
index 0000000000..088538dfed
--- /dev/null
+++ b/cocos/network/proj.win32/libNetwork.vcxproj
@@ -0,0 +1,131 @@
+
+
+
+
+ Debug
+ Win32
+
+
+ Release
+ Win32
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ libNetwork
+ {DF2638C0-8128-4847-867C-6EAFE3DEE7B5}
+ network.win32
+ Win32Proj
+
+
+
+ StaticLibrary
+ Unicode
+ v100
+ v110
+ v110_xp
+
+
+ StaticLibrary
+ NotSet
+ v100
+ v110
+ v110_xp
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <_ProjectFileVersion>10.0.40219.1
+ $(SolutionDir)$(Configuration).win32\
+ $(Configuration).win32\
+ false
+ $(SolutionDir)$(Configuration).win32\
+ $(Configuration).win32\
+ false
+ AllRules.ruleset
+
+
+ AllRules.ruleset
+
+
+
+
+ $(MSBuildProgramFiles32)\Microsoft SDKs\Windows\v7.1A\lib;$(LibraryPath)
+
+
+ $(MSBuildProgramFiles32)\Microsoft SDKs\Windows\v7.1A\lib;$(LibraryPath)
+
+
+
+ Disabled
+ $(MSBuildProgramFiles32)\Microsoft SDKs\Windows\v7.1A\include;..\Include;$(EngineRoot)cocos;$(EngineRoot)external\websockets\include\win32;$(EngineRoot)external\curl\include\win32;%(AdditionalIncludeDirectories)
+ WIN32;_DEBUG;_WINDOWS;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)
+ false
+ EnableFastChecks
+ MultiThreadedDebugDLL
+
+
+ Level3
+ EditAndContinue
+ 4251
+ true
+
+
+ winmm.lib;libcocos2d.lib;%(AdditionalDependencies)
+ $(OutDir)$(ProjectName).dll
+ true
+ Windows
+ $(TargetDir)$(TargetName).lib
+ MachineX86
+ $(OutDir)
+
+
+
+
+ $(MSBuildProgramFiles32)\Microsoft SDKs\Windows\v7.1A\include;..\Include;$(EngineRoot)cocos;$(EngineRoot)external\websockets\include\win32;$(EngineRoot)external\curl\include\win32;%(AdditionalIncludeDirectories)
+ WIN32;NDEBUG;_WINDOWS;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)
+ MultiThreadedDLL
+
+
+ Level3
+ ProgramDatabase
+ 4251
+ true
+
+
+ winmm.lib;libcocos2d.lib;%(AdditionalDependencies)
+ $(OutDir)$(ProjectName).dll
+ true
+ Windows
+ true
+ true
+ $(TargetDir)$(TargetName).lib
+ MachineX86
+ $(OutDir)
+
+
+
+
+
+
\ No newline at end of file
diff --git a/cocos/network/proj.win32/libNetwork.vcxproj.filters b/cocos/network/proj.win32/libNetwork.vcxproj.filters
new file mode 100644
index 0000000000..bbfe567f42
--- /dev/null
+++ b/cocos/network/proj.win32/libNetwork.vcxproj.filters
@@ -0,0 +1,45 @@
+
+
+
+
+ {93995380-89BD-4b04-88EB-625FBE52EBFB}
+ h;hpp;hxx;hm;inl;inc;xsd
+
+
+ {67DA6AB6-F800-4c08-8B7A-83BB121AAD01}
+ rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx
+
+
+ {4FC737F1-C7A5-4376-A066-2A32D752A2FF}
+ cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx
+
+
+
+
+ Header Files
+
+
+ Header Files
+
+
+ Header Files
+
+
+ Header Files
+
+
+ Header Files
+
+
+
+
+ Source Files
+
+
+ Source Files
+
+
+ Source Files
+
+
+
\ No newline at end of file
diff --git a/cocos/network/proj.win32/libNetwork.vcxproj.user b/cocos/network/proj.win32/libNetwork.vcxproj.user
new file mode 100644
index 0000000000..ace9a86acb
--- /dev/null
+++ b/cocos/network/proj.win32/libNetwork.vcxproj.user
@@ -0,0 +1,3 @@
+
+
+
\ No newline at end of file
diff --git a/cocos/physics/CCPhysicsBody.cpp b/cocos/physics/CCPhysicsBody.cpp
index 22a0010cbe..109fac9d6f 100644
--- a/cocos/physics/CCPhysicsBody.cpp
+++ b/cocos/physics/CCPhysicsBody.cpp
@@ -37,16 +37,16 @@
#include "CCPhysicsWorld.h"
#include "chipmunk/CCPhysicsBodyInfo.h"
-#include "Box2D/CCPhysicsBodyInfo.h"
+#include "box2d/CCPhysicsBodyInfo.h"
#include "chipmunk/CCPhysicsJointInfo.h"
-#include "Box2D/CCPhysicsJointInfo.h"
+#include "box2d/CCPhysicsJointInfo.h"
#include "chipmunk/CCPhysicsWorldInfo.h"
-#include "Box2D/CCPhysicsWorldInfo.h"
+#include "box2d/CCPhysicsWorldInfo.h"
#include "chipmunk/CCPhysicsShapeInfo.h"
-#include "Box2D/CCPhysicsShapeInfo.h"
+#include "box2d/CCPhysicsShapeInfo.h"
#include "chipmunk/CCPhysicsHelper.h"
-#include "Box2D/CCPhysicsHelper.h"
+#include "box2d/CCPhysicsHelper.h"
NS_CC_BEGIN
diff --git a/cocos/physics/CCPhysicsContact.cpp b/cocos/physics/CCPhysicsContact.cpp
index 928c8c9e59..1ec9667d6f 100644
--- a/cocos/physics/CCPhysicsContact.cpp
+++ b/cocos/physics/CCPhysicsContact.cpp
@@ -31,7 +31,7 @@
#endif
#include "chipmunk/CCPhysicsContactInfo.h"
-#include "Box2D/CCPhysicsContactInfo.h"
+#include "box2d/CCPhysicsContactInfo.h"
NS_CC_BEGIN
diff --git a/cocos/physics/CCPhysicsJoint.cpp b/cocos/physics/CCPhysicsJoint.cpp
index 6631599f71..6cca90dd5b 100644
--- a/cocos/physics/CCPhysicsJoint.cpp
+++ b/cocos/physics/CCPhysicsJoint.cpp
@@ -34,13 +34,13 @@
#include "CCPhysicsBody.h"
#include "chipmunk/CCPhysicsJointInfo.h"
-#include "Box2D/CCPhysicsJointInfo.h"
+#include "box2d/CCPhysicsJointInfo.h"
#include "chipmunk/CCPhysicsBodyInfo.h"
-#include "Box2D/CCPhysicsBodyInfo.h"
+#include "box2d/CCPhysicsBodyInfo.h"
#include "chipmunk/CCPhysicsShapeInfo.h"
-#include "Box2D/CCPhysicsShapeInfo.h"
+#include "box2d/CCPhysicsShapeInfo.h"
#include "chipmunk/CCPhysicsHelper.h"
-#include "Box2D/CCPhysicsHelper.h"
+#include "box2d/CCPhysicsHelper.h"
NS_CC_BEGIN
diff --git a/cocos/physics/CCPhysicsShape.cpp b/cocos/physics/CCPhysicsShape.cpp
index 1b5ec5ab0c..6ffd7d86aa 100644
--- a/cocos/physics/CCPhysicsShape.cpp
+++ b/cocos/physics/CCPhysicsShape.cpp
@@ -35,9 +35,9 @@
#include "CCPhysicsWorld.h"
#include "chipmunk/CCPhysicsBodyInfo.h"
-#include "Box2D/CCPhysicsBodyInfo.h"
+#include "box2d/CCPhysicsBodyInfo.h"
#include "chipmunk/CCPhysicsShapeInfo.h"
-#include "Box2D/CCPhysicsShapeInfo.h"
+#include "box2d/CCPhysicsShapeInfo.h"
#include "chipmunk/CCPhysicsHelper.h"
NS_CC_BEGIN
@@ -783,4 +783,4 @@ int PhysicsShapeEdgeChain::getPointsCount()
NS_CC_END
-#endif // CC_USE_PHYSICS
\ No newline at end of file
+#endif // CC_USE_PHYSICS
diff --git a/cocos/physics/CCPhysicsWorld.cpp b/cocos/physics/CCPhysicsWorld.cpp
index 44d0fc1f96..9085805e1d 100644
--- a/cocos/physics/CCPhysicsWorld.cpp
+++ b/cocos/physics/CCPhysicsWorld.cpp
@@ -38,15 +38,15 @@
#include "CCPhysicsContact.h"
#include "chipmunk/CCPhysicsWorldInfo.h"
-#include "Box2D/CCPhysicsWorldInfo.h"
+#include "box2d/CCPhysicsWorldInfo.h"
#include "chipmunk/CCPhysicsBodyInfo.h"
-#include "Box2D/CCPhysicsBodyInfo.h"
+#include "box2d/CCPhysicsBodyInfo.h"
#include "chipmunk/CCPhysicsShapeInfo.h"
-#include "Box2D/CCPhysicsShapeInfo.h"
+#include "box2d/CCPhysicsShapeInfo.h"
#include "chipmunk/CCPhysicsContactInfo.h"
-#include "Box2D/CCPhysicsContactInfo.h"
+#include "box2d/CCPhysicsContactInfo.h"
#include "chipmunk/CCPhysicsJointInfo.h"
-#include "Box2D/CCPhysicsJointInfo.h"
+#include "box2d/CCPhysicsJointInfo.h"
#include "chipmunk/CCPhysicsHelper.h"
#include "CCDrawNode.h"
diff --git a/cocos/scripting/javascript/bindings/js_bindings_chipmunk_auto_classes.cpp.REMOVED.git-id b/cocos/scripting/javascript/bindings/chipmunk/js_bindings_chipmunk_auto_classes.cpp.REMOVED.git-id
similarity index 100%
rename from cocos/scripting/javascript/bindings/js_bindings_chipmunk_auto_classes.cpp.REMOVED.git-id
rename to cocos/scripting/javascript/bindings/chipmunk/js_bindings_chipmunk_auto_classes.cpp.REMOVED.git-id
diff --git a/cocos/scripting/javascript/bindings/js_bindings_chipmunk_auto_classes.h b/cocos/scripting/javascript/bindings/chipmunk/js_bindings_chipmunk_auto_classes.h
similarity index 100%
rename from cocos/scripting/javascript/bindings/js_bindings_chipmunk_auto_classes.h
rename to cocos/scripting/javascript/bindings/chipmunk/js_bindings_chipmunk_auto_classes.h
diff --git a/cocos/scripting/javascript/bindings/js_bindings_chipmunk_auto_classes_registration.h b/cocos/scripting/javascript/bindings/chipmunk/js_bindings_chipmunk_auto_classes_registration.h
similarity index 100%
rename from cocos/scripting/javascript/bindings/js_bindings_chipmunk_auto_classes_registration.h
rename to cocos/scripting/javascript/bindings/chipmunk/js_bindings_chipmunk_auto_classes_registration.h
diff --git a/cocos/scripting/javascript/bindings/js_bindings_chipmunk_functions.cpp.REMOVED.git-id b/cocos/scripting/javascript/bindings/chipmunk/js_bindings_chipmunk_functions.cpp.REMOVED.git-id
similarity index 100%
rename from cocos/scripting/javascript/bindings/js_bindings_chipmunk_functions.cpp.REMOVED.git-id
rename to cocos/scripting/javascript/bindings/chipmunk/js_bindings_chipmunk_functions.cpp.REMOVED.git-id
diff --git a/cocos/scripting/javascript/bindings/js_bindings_chipmunk_functions.h b/cocos/scripting/javascript/bindings/chipmunk/js_bindings_chipmunk_functions.h
similarity index 100%
rename from cocos/scripting/javascript/bindings/js_bindings_chipmunk_functions.h
rename to cocos/scripting/javascript/bindings/chipmunk/js_bindings_chipmunk_functions.h
diff --git a/cocos/scripting/javascript/bindings/js_bindings_chipmunk_functions_registration.h b/cocos/scripting/javascript/bindings/chipmunk/js_bindings_chipmunk_functions_registration.h
similarity index 100%
rename from cocos/scripting/javascript/bindings/js_bindings_chipmunk_functions_registration.h
rename to cocos/scripting/javascript/bindings/chipmunk/js_bindings_chipmunk_functions_registration.h
diff --git a/cocos/scripting/javascript/bindings/js_bindings_chipmunk_manual.cpp b/cocos/scripting/javascript/bindings/chipmunk/js_bindings_chipmunk_manual.cpp
similarity index 100%
rename from cocos/scripting/javascript/bindings/js_bindings_chipmunk_manual.cpp
rename to cocos/scripting/javascript/bindings/chipmunk/js_bindings_chipmunk_manual.cpp
diff --git a/cocos/scripting/javascript/bindings/js_bindings_chipmunk_manual.h b/cocos/scripting/javascript/bindings/chipmunk/js_bindings_chipmunk_manual.h
similarity index 100%
rename from cocos/scripting/javascript/bindings/js_bindings_chipmunk_manual.h
rename to cocos/scripting/javascript/bindings/chipmunk/js_bindings_chipmunk_manual.h
diff --git a/cocos/scripting/javascript/bindings/js_bindings_chipmunk_registration.cpp b/cocos/scripting/javascript/bindings/chipmunk/js_bindings_chipmunk_registration.cpp
similarity index 100%
rename from cocos/scripting/javascript/bindings/js_bindings_chipmunk_registration.cpp
rename to cocos/scripting/javascript/bindings/chipmunk/js_bindings_chipmunk_registration.cpp
diff --git a/cocos/scripting/javascript/bindings/js_bindings_chipmunk_registration.h b/cocos/scripting/javascript/bindings/chipmunk/js_bindings_chipmunk_registration.h
similarity index 100%
rename from cocos/scripting/javascript/bindings/js_bindings_chipmunk_registration.h
rename to cocos/scripting/javascript/bindings/chipmunk/js_bindings_chipmunk_registration.h
diff --git a/cocos/scripting/javascript/bindings/chipmunk/libJSBindingForChipmunk.vcxproj b/cocos/scripting/javascript/bindings/chipmunk/libJSBindingForChipmunk.vcxproj
new file mode 100644
index 0000000000..9148f9376f
--- /dev/null
+++ b/cocos/scripting/javascript/bindings/chipmunk/libJSBindingForChipmunk.vcxproj
@@ -0,0 +1,121 @@
+
+
+
+
+ Debug
+ Win32
+
+
+ Release
+ Win32
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {21070E58-EEC6-4E16-8B4F-6D083DF55790}
+ Win32Proj
+ libJSBindingForChipmunk
+
+
+
+ StaticLibrary
+ true
+ Unicode
+ v100
+ v110
+ v110_xp
+
+
+ StaticLibrary
+ false
+ Unicode
+ v100
+ v110
+ v110_xp
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ $(SolutionDir)$(Configuration).win32\
+
+
+ $(Configuration).win32\
+
+
+ $(SolutionDir)$(Configuration).win32\
+
+
+ $(Configuration).win32\
+
+
+
+
+
+ Level3
+ Disabled
+ WIN32;_WINDOWS;_DEBUG;_LIB;DEBUG;COCOS2D_DEBUG=1;XP_WIN;JS_HAVE___INTN;JS_INTPTR_TYPE=int;COCOS2D_JAVASCRIPT=1;CC_ENABLE_CHIPMUNK_INTEGRATION=1;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)
+ $(ProjectDir)..;$(EngineRoot);$(EngineRoot)cocos\audio\include;$(EngineRoot)cocos\scripting\auto-generated\js-bindings;$(EngineRoot)external\spidermonkey\include\win32;$(EngineRoot)external\chipmunk\include\chipmunk;%(AdditionalIncludeDirectories)
+ 4068;4101;4800;4251;4244;%(DisableSpecificWarnings)
+ true
+ false
+
+
+ Windows
+ true
+
+
+ if not exist "$(OutDir)" mkdir "$(OutDir)"
+xcopy /Y /Q "$(ProjectDir)..\..\..\..\..\external\sqlite3\libraries\win32\*.*" "$(OutDir)"
+
+
+
+
+ Level3
+
+
+ MaxSpeed
+ true
+ true
+ WIN32;_WINDOWS;NDEBUG;_LIB;XP_WIN;JS_HAVE___INTN;JS_INTPTR_TYPE=int;COCOS2D_JAVASCRIPT=1;CC_ENABLE_CHIPMUNK_INTEGRATION=1;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)
+ $(ProjectDir)..;$(EngineRoot);$(EngineRoot)cocos\audio\include;$(EngineRoot)cocos\scripting\auto-generated\js-bindings;$(EngineRoot)external\spidermonkey\include\win32;$(EngineRoot)external\chipmunk\include\chipmunk;%(AdditionalIncludeDirectories)
+ 4068;4101;4800;4251;4244;%(DisableSpecificWarnings)
+ true
+
+
+ Windows
+ true
+ true
+ true
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/cocos/scripting/javascript/bindings/chipmunk/libJSBindingForChipmunk.vcxproj.filters b/cocos/scripting/javascript/bindings/chipmunk/libJSBindingForChipmunk.vcxproj.filters
new file mode 100644
index 0000000000..43253970bc
--- /dev/null
+++ b/cocos/scripting/javascript/bindings/chipmunk/libJSBindingForChipmunk.vcxproj.filters
@@ -0,0 +1,47 @@
+
+
+
+
+ {93995380-89BD-4b04-88EB-625FBE52EBFB}
+ h;hpp;hxx;hm;inl;inc;xsd
+
+
+ {4FC737F1-C7A5-4376-A066-2A32D752A2FF}
+ cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx
+
+
+
+
+ manual
+
+
+ manual
+
+
+ manual
+
+
+ manual
+
+
+ manual
+
+
+ manual
+
+
+
+
+ manual
+
+
+ manual
+
+
+ manual
+
+
+ manual
+
+
+
\ No newline at end of file
diff --git a/cocos/scripting/javascript/bindings/chipmunk/libJSBindingForChipmunk.vcxproj.user b/cocos/scripting/javascript/bindings/chipmunk/libJSBindingForChipmunk.vcxproj.user
new file mode 100644
index 0000000000..3f03091124
--- /dev/null
+++ b/cocos/scripting/javascript/bindings/chipmunk/libJSBindingForChipmunk.vcxproj.user
@@ -0,0 +1,6 @@
+
+
+
+ false
+
+
\ No newline at end of file
diff --git a/cocos/scripting/javascript/bindings/cocos2d_specifics.cpp.REMOVED.git-id b/cocos/scripting/javascript/bindings/cocos2d_specifics.cpp.REMOVED.git-id
index b8cda9a498..082d55b8bd 100644
--- a/cocos/scripting/javascript/bindings/cocos2d_specifics.cpp.REMOVED.git-id
+++ b/cocos/scripting/javascript/bindings/cocos2d_specifics.cpp.REMOVED.git-id
@@ -1 +1 @@
-bf994ad1fc8ac1044957d83708f7848e99ca59e6
\ No newline at end of file
+33fef8c7bc7006ad55c27fd0ed9c9dd2c8064079
\ No newline at end of file
diff --git a/cocos/scripting/javascript/bindings/cocos2d_specifics.hpp b/cocos/scripting/javascript/bindings/cocos2d_specifics.hpp
index 1072cc8064..2981a726a8 100644
--- a/cocos/scripting/javascript/bindings/cocos2d_specifics.hpp
+++ b/cocos/scripting/javascript/bindings/cocos2d_specifics.hpp
@@ -101,25 +101,6 @@ protected:
jsval _extraData;
};
-
-class JSCCBAnimationWrapper: public JSCallbackWrapper {
-public:
- JSCCBAnimationWrapper() {}
- virtual ~JSCCBAnimationWrapper() {}
-
- void animationCompleteCallback() {
-
- JSContext *cx = ScriptingCore::getInstance()->getGlobalContext();
- jsval retval = JSVAL_NULL;
-
- if(!JSVAL_IS_VOID(_jsCallback) && !JSVAL_IS_VOID(_jsThisObj)) {
- JS_CallFunctionValue(cx, JSVAL_TO_OBJECT(_jsThisObj), _jsCallback, 0, NULL, &retval);
- }
- }
-
-};
-
-
class JSCallFuncWrapper: public JSCallbackWrapper {
public:
JSCallFuncWrapper() {}
diff --git a/cocos/scripting/javascript/bindings/cocosbuilder/cocosbuilder_specifics.hpp b/cocos/scripting/javascript/bindings/cocosbuilder/cocosbuilder_specifics.hpp
new file mode 100644
index 0000000000..f6b3252c57
--- /dev/null
+++ b/cocos/scripting/javascript/bindings/cocosbuilder/cocosbuilder_specifics.hpp
@@ -0,0 +1,23 @@
+#ifndef __JS_COCOSBUILDER_SPECIFICS_H__
+#define __JS_COCOSBUILDER_SPECIFICS_H__
+
+#include "../cocos2d_specifics.hpp"
+
+class JSCCBAnimationWrapper: public JSCallbackWrapper {
+public:
+ JSCCBAnimationWrapper() {}
+ virtual ~JSCCBAnimationWrapper() {}
+
+ void animationCompleteCallback() {
+
+ JSContext *cx = ScriptingCore::getInstance()->getGlobalContext();
+ jsval retval = JSVAL_NULL;
+
+ if(!JSVAL_IS_VOID(_jsCallback) && !JSVAL_IS_VOID(_jsThisObj)) {
+ JS_CallFunctionValue(cx, JSVAL_TO_OBJECT(_jsThisObj), _jsCallback, 0, NULL, &retval);
+ }
+ }
+
+};
+
+#endif
diff --git a/cocos/scripting/javascript/bindings/js_bindings_ccbreader.cpp b/cocos/scripting/javascript/bindings/cocosbuilder/js_bindings_ccbreader.cpp
similarity index 100%
rename from cocos/scripting/javascript/bindings/js_bindings_ccbreader.cpp
rename to cocos/scripting/javascript/bindings/cocosbuilder/js_bindings_ccbreader.cpp
diff --git a/cocos/scripting/javascript/bindings/js_bindings_ccbreader.h b/cocos/scripting/javascript/bindings/cocosbuilder/js_bindings_ccbreader.h
similarity index 98%
rename from cocos/scripting/javascript/bindings/js_bindings_ccbreader.h
rename to cocos/scripting/javascript/bindings/cocosbuilder/js_bindings_ccbreader.h
index 8bcdabd044..b1b3b187cc 100644
--- a/cocos/scripting/javascript/bindings/js_bindings_ccbreader.h
+++ b/cocos/scripting/javascript/bindings/cocosbuilder/js_bindings_ccbreader.h
@@ -9,7 +9,7 @@
#define __JS_BINDINGS_CCBREADER_H__
#include "jsapi.h"
-#include "cocos2d_specifics.hpp"
+#include "cocosbuilder_specifics.hpp"
#include "cocosbuilder/CocosBuilder.h"
class CCBScriptCallbackProxy: public cocos2d::Layer
diff --git a/cocos/scripting/javascript/bindings/cocosbuilder/libJSBindingForBuilder.vcxproj b/cocos/scripting/javascript/bindings/cocosbuilder/libJSBindingForBuilder.vcxproj
new file mode 100644
index 0000000000..d6f2eb8d12
--- /dev/null
+++ b/cocos/scripting/javascript/bindings/cocosbuilder/libJSBindingForBuilder.vcxproj
@@ -0,0 +1,119 @@
+
+
+
+
+ Debug
+ Win32
+
+
+ Release
+ Win32
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {F9DA0FC1-651B-457B-962E-A4D61CEBF5FD}
+ Win32Proj
+ libJSBindingForBuilder
+
+
+
+ StaticLibrary
+ true
+ Unicode
+ v100
+ v110
+ v110_xp
+
+
+ StaticLibrary
+ false
+ Unicode
+ v100
+ v110
+ v110_xp
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ $(SolutionDir)$(Configuration).win32\
+
+
+ $(Configuration).win32\
+
+
+ $(SolutionDir)$(Configuration).win32\
+
+
+ $(Configuration).win32\
+
+
+
+
+
+ Level3
+ Disabled
+ WIN32;_WINDOWS;_DEBUG;_LIB;DEBUG;COCOS2D_DEBUG=1;XP_WIN;JS_HAVE___INTN;JS_INTPTR_TYPE=int;COCOS2D_JAVASCRIPT=1;CC_ENABLE_CHIPMUNK_INTEGRATION=1;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)
+ $(ProjectDir)..;$(EngineRoot);$(EngineRoot)cocos;$(EngineRoot)cocos\editor-support;$(EngineRoot)cocos\editor-support\cocosbuilder;$(EngineRoot)cocos\audio\include;$(EngineRoot)cocos\scripting\auto-generated\js-bindings;$(EngineRoot)external\spidermonkey\include\win32;$(EngineRoot)external\chipmunk\include\chipmunk;%(AdditionalIncludeDirectories)
+ 4068;4101;4800;4251;4244;%(DisableSpecificWarnings)
+ true
+ false
+
+
+ Windows
+ true
+
+
+ if not exist "$(OutDir)" mkdir "$(OutDir)"
+xcopy /Y /Q "$(ProjectDir)..\..\..\..\..\external\sqlite3\libraries\win32\*.*" "$(OutDir)"
+
+
+
+
+ Level3
+
+
+ MaxSpeed
+ true
+ true
+ WIN32;_WINDOWS;NDEBUG;_LIB;XP_WIN;JS_HAVE___INTN;JS_INTPTR_TYPE=int;COCOS2D_JAVASCRIPT=1;CC_ENABLE_CHIPMUNK_INTEGRATION=1;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)
+ $(ProjectDir)..;$(EngineRoot);$(EngineRoot)cocos;$(EngineRoot)cocos\editor-support;$(EngineRoot)cocos\editor-support\cocosbuilder;$(EngineRoot)cocos\audio\include;$(EngineRoot)cocos\scripting\auto-generated\js-bindings;$(EngineRoot)external\spidermonkey\include\win32;$(EngineRoot)external\chipmunk\include\chipmunk;%(AdditionalIncludeDirectories)
+ 4068;4101;4800;4251;4244;%(DisableSpecificWarnings)
+ true
+
+
+ Windows
+ true
+ true
+ true
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/cocos/scripting/javascript/bindings/cocosbuilder/libJSBindingForBuilder.vcxproj.filters b/cocos/scripting/javascript/bindings/cocosbuilder/libJSBindingForBuilder.vcxproj.filters
new file mode 100644
index 0000000000..6746ab6be9
--- /dev/null
+++ b/cocos/scripting/javascript/bindings/cocosbuilder/libJSBindingForBuilder.vcxproj.filters
@@ -0,0 +1,37 @@
+
+
+
+
+ {93995380-89BD-4b04-88EB-625FBE52EBFB}
+ h;hpp;hxx;hm;inl;inc;xsd
+
+
+ {4FC737F1-C7A5-4376-A066-2A32D752A2FF}
+ cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx
+
+
+
+
+ generated
+
+
+ manual
+
+
+
+
+ generated
+
+
+ manual
+
+
+ manual
+
+
+
+
+ generated
+
+
+
\ No newline at end of file
diff --git a/cocos/scripting/javascript/bindings/cocosbuilder/libJSBindingForBuilder.vcxproj.user b/cocos/scripting/javascript/bindings/cocosbuilder/libJSBindingForBuilder.vcxproj.user
new file mode 100644
index 0000000000..3f03091124
--- /dev/null
+++ b/cocos/scripting/javascript/bindings/cocosbuilder/libJSBindingForBuilder.vcxproj.user
@@ -0,0 +1,6 @@
+
+
+
+ false
+
+
\ No newline at end of file
diff --git a/cocos/scripting/javascript/bindings/cocostudio/jsb_cocos2dx_studio_manual.cpp b/cocos/scripting/javascript/bindings/cocostudio/jsb_cocos2dx_studio_manual.cpp
new file mode 100644
index 0000000000..34ecbca985
--- /dev/null
+++ b/cocos/scripting/javascript/bindings/cocostudio/jsb_cocos2dx_studio_manual.cpp
@@ -0,0 +1,229 @@
+//
+// jsb_cocos2dx_studio_manual.h
+//
+// Created by LinWenhai on 20/10/13.
+//
+//
+#include "jsb_cocos2dx_studio_manual.h"
+#include "ScriptingCore.h"
+#include "cocos2d_specifics.hpp"
+#include "cocostudio/CocoStudio.h"
+
+class JSArmatureWrapper: public JSCallbackWrapper {
+public:
+ JSArmatureWrapper();
+ virtual ~JSArmatureWrapper();
+
+ virtual void setJSCallbackThis(jsval thisObj);
+
+ void movementCallbackFunc(cocostudio::Armature * pArmature, cocostudio::MovementEventType pMovementEventType, const char *pMovementId);
+ void frameCallbackFunc(cocostudio::Bone *pBone, const char *frameEventName, int originFrameIndex, int currentFrameIndex);
+ void addArmatureFileInfoAsyncCallbackFunc(float percent);
+
+private:
+ bool m_bNeedUnroot;
+};
+
+JSArmatureWrapper::JSArmatureWrapper()
+ : m_bNeedUnroot(false)
+{
+
+}
+
+JSArmatureWrapper::~JSArmatureWrapper()
+{
+ if (m_bNeedUnroot)
+ {
+ JSObject *thisObj = JSVAL_TO_OBJECT(_jsThisObj);
+ JSContext *cx = ScriptingCore::getInstance()->getGlobalContext();
+ JS_RemoveObjectRoot(cx, &thisObj);
+ }
+}
+
+void JSArmatureWrapper::setJSCallbackThis(jsval _jsThisObj)
+{
+ JSCallbackWrapper::setJSCallbackThis(_jsThisObj);
+
+ JSObject *thisObj = JSVAL_TO_OBJECT(_jsThisObj);
+ js_proxy *p = jsb_get_js_proxy(thisObj);
+ if (!p)
+ {
+ JSContext *cx = ScriptingCore::getInstance()->getGlobalContext();
+ JS_AddObjectRoot(cx, &thisObj);
+ m_bNeedUnroot = true;
+ }
+}
+
+void JSArmatureWrapper::movementCallbackFunc(cocostudio::Armature *pArmature, cocostudio::MovementEventType pMovementEventType, const char *pMovementId)
+{
+ JSContext *cx = ScriptingCore::getInstance()->getGlobalContext();
+ JSObject *thisObj = JSVAL_IS_VOID(_jsThisObj) ? NULL : JSVAL_TO_OBJECT(_jsThisObj);
+ js_proxy_t *proxy = js_get_or_create_proxy(cx, pArmature);
+ jsval retval;
+ if (_jsCallback != JSVAL_VOID)
+ {
+ int movementEventType = (int)pMovementEventType;
+ jsval movementVal = INT_TO_JSVAL(movementEventType);
+
+ jsval idVal = c_string_to_jsval(cx, pMovementId);
+
+ jsval valArr[3];
+ valArr[0] = OBJECT_TO_JSVAL(proxy->obj);
+ valArr[1] = movementVal;
+ valArr[2] = idVal;
+
+ JS_AddValueRoot(cx, valArr);
+ JS_CallFunctionValue(cx, thisObj, _jsCallback, 3, valArr, &retval);
+ JS_RemoveValueRoot(cx, valArr);
+ }
+}
+
+void JSArmatureWrapper::addArmatureFileInfoAsyncCallbackFunc(float percent)
+{
+ JSContext *cx = ScriptingCore::getInstance()->getGlobalContext();
+ JSObject *thisObj = JSVAL_IS_VOID(_jsThisObj) ? NULL : JSVAL_TO_OBJECT(_jsThisObj);
+ jsval retval;
+ if (_jsCallback != JSVAL_VOID)
+ {
+ jsval percentVal = DOUBLE_TO_JSVAL(percent);
+
+ JS_AddValueRoot(cx, &percentVal);
+ JS_CallFunctionValue(cx, thisObj, _jsCallback, 1, &percentVal, &retval);
+ JS_RemoveValueRoot(cx, &percentVal);
+ }
+}
+
+
+void JSArmatureWrapper::frameCallbackFunc(cocostudio::Bone *pBone, const char *frameEventName, int originFrameIndex, int currentFrameIndex)
+{
+ JSContext *cx = ScriptingCore::getInstance()->getGlobalContext();
+ JSObject *thisObj = JSVAL_IS_VOID(_jsThisObj) ? NULL : JSVAL_TO_OBJECT(_jsThisObj);
+ js_proxy_t *proxy = js_get_or_create_proxy(cx, pBone);
+ jsval retval;
+ if (_jsCallback != JSVAL_VOID)
+ {
+ jsval nameVal = c_string_to_jsval(cx, frameEventName);
+ jsval originIndexVal = INT_TO_JSVAL(originFrameIndex);
+ jsval currentIndexVal = INT_TO_JSVAL(currentFrameIndex);
+
+ jsval valArr[4];
+ valArr[0] = OBJECT_TO_JSVAL(proxy->obj);
+ valArr[1] = nameVal;
+ valArr[2] = originIndexVal;
+ valArr[3] = currentIndexVal;
+
+ JS_AddValueRoot(cx, valArr);
+ JS_CallFunctionValue(cx, thisObj, _jsCallback, 4, valArr, &retval);
+ JS_RemoveValueRoot(cx, valArr);
+ }
+}
+
+static JSBool js_cocos2dx_ArmatureAnimation_setMovementEventCallFunc(JSContext *cx, uint32_t argc, jsval *vp)
+{
+ JSObject *obj = JS_THIS_OBJECT(cx, vp);
+ js_proxy_t *proxy = jsb_get_js_proxy(obj);
+ cocostudio::ArmatureAnimation* cobj = (cocostudio::ArmatureAnimation *)(proxy ? proxy->ptr : NULL);
+ JSB_PRECONDITION2( cobj, cx, JS_FALSE, "Invalid Native Object");
+
+ if (argc == 2) {
+ jsval *argv = JS_ARGV(cx, vp);
+
+ JSArmatureWrapper *tmpObj = new JSArmatureWrapper();
+ tmpObj->autorelease();
+
+ tmpObj->setJSCallbackFunc(argv[0]);
+ tmpObj->setJSCallbackThis(argv[1]);
+
+ cobj->setMovementEventCallFunc(tmpObj, movementEvent_selector(JSArmatureWrapper::movementCallbackFunc));
+
+ return JS_TRUE;
+ }
+ JS_ReportError(cx, "Invalid number of arguments");
+ return JS_FALSE;
+}
+
+static JSBool js_cocos2dx_ArmatureAnimation_setFrameEventCallFunc(JSContext *cx, uint32_t argc, jsval *vp)
+{
+ JSObject *obj = JS_THIS_OBJECT(cx, vp);
+ js_proxy_t *proxy = jsb_get_js_proxy(obj);
+ cocostudio::ArmatureAnimation* cobj = (cocostudio::ArmatureAnimation *)(proxy ? proxy->ptr : NULL);
+ JSB_PRECONDITION2( cobj, cx, JS_FALSE, "Invalid Native Object");
+
+ if (argc == 2) {
+ jsval *argv = JS_ARGV(cx, vp);
+
+ JSArmatureWrapper *tmpObj = new JSArmatureWrapper();
+ tmpObj->autorelease();
+
+ tmpObj->setJSCallbackFunc(argv[0]);
+ tmpObj->setJSCallbackThis(argv[1]);
+
+ cobj->setFrameEventCallFunc(tmpObj, frameEvent_selector(JSArmatureWrapper::frameCallbackFunc));
+
+ return JS_TRUE;
+ }
+ JS_ReportError(cx, "Invalid number of arguments");
+ return JS_FALSE;
+}
+
+static JSBool jsb_Animation_addArmatureFileInfoAsyncCallFunc(JSContext *cx, uint32_t argc, jsval *vp)
+{
+ JSObject *obj = JS_THIS_OBJECT(cx, vp);
+ js_proxy_t *proxy = jsb_get_js_proxy(obj);
+ cocostudio::ArmatureDataManager* cobj = (cocostudio::ArmatureDataManager *)(proxy ? proxy->ptr : NULL);
+ JSB_PRECONDITION2( cobj, cx, JS_FALSE, "Invalid Native Object");
+
+ if (argc == 3) {
+ jsval *argv = JS_ARGV(cx, vp);
+
+ JSArmatureWrapper *tmpObj = new JSArmatureWrapper();
+ tmpObj->autorelease();
+
+ tmpObj->setJSCallbackFunc(argv[2]);
+ tmpObj->setJSCallbackThis(argv[1]);
+
+ std::string ret;
+ jsval_to_std_string(cx, argv[0], &ret);
+
+ cobj->addArmatureFileInfoAsync(ret.c_str(), tmpObj, schedule_selector(JSArmatureWrapper::addArmatureFileInfoAsyncCallbackFunc));
+
+ return JS_TRUE;
+ }
+
+ if(argc == 5){
+ jsval *argv = JS_ARGV(cx, vp);
+
+ JSArmatureWrapper *tmpObj = new JSArmatureWrapper();
+ tmpObj->autorelease();
+
+ tmpObj->setJSCallbackFunc(argv[4]);
+ tmpObj->setJSCallbackThis(argv[3]);
+
+ std::string imagePath;
+ jsval_to_std_string(cx ,argv[0] , &imagePath);
+
+ std::string plistPath;
+ jsval_to_std_string(cx ,argv[1] , &plistPath);
+
+ std::string configFilePath;
+ jsval_to_std_string(cx ,argv[2] , &configFilePath);
+
+ cobj->addArmatureFileInfoAsync(imagePath.c_str(), plistPath.c_str(), configFilePath.c_str(), tmpObj, schedule_selector(JSArmatureWrapper::addArmatureFileInfoAsyncCallbackFunc));
+
+ return JS_TRUE;
+ }
+ JS_ReportError(cx, "Invalid number of arguments");
+ return JS_FALSE;
+}
+
+extern JSObject* jsb_ArmatureAnimation_prototype;
+extern JSObject* jsb_ArmatureDataManager_prototype;
+
+void register_all_cocos2dx_studio_manual(JSContext* cx, JSObject* global)
+{
+ JS_DefineFunction(cx, jsb_ArmatureAnimation_prototype, "setMovementEventCallFunc", js_cocos2dx_ArmatureAnimation_setMovementEventCallFunc, 2, JSPROP_READONLY | JSPROP_PERMANENT);
+
+ JS_DefineFunction(cx, jsb_ArmatureAnimation_prototype, "setFrameEventCallFunc", js_cocos2dx_ArmatureAnimation_setFrameEventCallFunc, 2, JSPROP_READONLY | JSPROP_PERMANENT);
+
+ JS_DefineFunction(cx, jsb_ArmatureDataManager_prototype, "addArmatureFileInfoAsync", jsb_Animation_addArmatureFileInfoAsyncCallFunc, 3, JSPROP_READONLY | JSPROP_PERMANENT);
+}
\ No newline at end of file
diff --git a/cocos/scripting/javascript/bindings/cocostudio/jsb_cocos2dx_studio_manual.h b/cocos/scripting/javascript/bindings/cocostudio/jsb_cocos2dx_studio_manual.h
new file mode 100644
index 0000000000..35ebd55755
--- /dev/null
+++ b/cocos/scripting/javascript/bindings/cocostudio/jsb_cocos2dx_studio_manual.h
@@ -0,0 +1,16 @@
+//
+// jsb_cocos2dx_studio_manual.h
+//
+// Created by LinWenhai on 20/10/13.
+//
+//
+
+#ifndef __jsb_cocos2dx_studio_manual__
+#define __jsb_cocos2dx_studio_manual__
+
+#include "jsapi.h"
+#include "jsfriendapi.h"
+
+void register_all_cocos2dx_studio_manual(JSContext* cx, JSObject* global);
+
+#endif /* defined(__jsb_cocos2dx_studio_manual__) */
diff --git a/cocos/scripting/javascript/bindings/cocostudio/libJSBindingForStudio.vcxproj b/cocos/scripting/javascript/bindings/cocostudio/libJSBindingForStudio.vcxproj
new file mode 100644
index 0000000000..2212730521
--- /dev/null
+++ b/cocos/scripting/javascript/bindings/cocostudio/libJSBindingForStudio.vcxproj
@@ -0,0 +1,118 @@
+
+
+
+
+ Debug
+ Win32
+
+
+ Release
+ Win32
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {79D34511-E54E-410A-8BBA-EF175AD6C695}
+ Win32Proj
+ libJSBindingForStudio
+
+
+
+ StaticLibrary
+ true
+ Unicode
+ v100
+ v110
+ v110_xp
+
+
+ StaticLibrary
+ false
+ Unicode
+ v100
+ v110
+ v110_xp
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ $(SolutionDir)$(Configuration).win32\
+
+
+ $(Configuration).win32\
+
+
+ $(SolutionDir)$(Configuration).win32\
+
+
+ $(Configuration).win32\
+
+
+
+
+
+ Level3
+ Disabled
+ WIN32;_WINDOWS;_DEBUG;_LIB;DEBUG;COCOS2D_DEBUG=1;XP_WIN;JS_HAVE___INTN;JS_INTPTR_TYPE=int;COCOS2D_JAVASCRIPT=1;CC_ENABLE_CHIPMUNK_INTEGRATION=1;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)
+ $(ProjectDir)..;$(EngineRoot);$(EngineRoot)cocos;$(EngineRoot)cocos\editor-support;$(EngineRoot)cocos\editor-support\cocostudio;$(EngineRoot)cocos\audio\include;$(EngineRoot)cocos\scripting\auto-generated\js-bindings;$(EngineRoot)external;$(EngineRoot)external\spidermonkey\include\win32;$(EngineRoot)external\chipmunk\include\chipmunk;%(AdditionalIncludeDirectories)
+ 4068;4101;4800;4251;4244;%(DisableSpecificWarnings)
+ true
+ false
+
+
+ Windows
+ true
+
+
+ if not exist "$(OutDir)" mkdir "$(OutDir)"
+xcopy /Y /Q "$(ProjectDir)..\..\..\..\..\external\sqlite3\libraries\win32\*.*" "$(OutDir)"
+
+
+
+
+ Level3
+
+
+ MaxSpeed
+ true
+ true
+ WIN32;_WINDOWS;NDEBUG;_LIB;XP_WIN;JS_HAVE___INTN;JS_INTPTR_TYPE=int;COCOS2D_JAVASCRIPT=1;CC_ENABLE_CHIPMUNK_INTEGRATION=1;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)
+ $(ProjectDir)..;$(EngineRoot);$(EngineRoot)cocos;$(EngineRoot)cocos\editor-support;$(EngineRoot)cocos\editor-support\cocostudio;$(EngineRoot)cocos\audio\include;$(EngineRoot)cocos\scripting\auto-generated\js-bindings;$(EngineRoot)external;$(EngineRoot)external\spidermonkey\include\win32;$(EngineRoot)external\chipmunk\include\chipmunk;%(AdditionalIncludeDirectories)
+ 4068;4101;4800;4251;4244;%(DisableSpecificWarnings)
+ true
+
+
+ Windows
+ true
+ true
+ true
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/cocos/scripting/javascript/bindings/cocostudio/libJSBindingForStudio.vcxproj.filters b/cocos/scripting/javascript/bindings/cocostudio/libJSBindingForStudio.vcxproj.filters
new file mode 100644
index 0000000000..16be2bb316
--- /dev/null
+++ b/cocos/scripting/javascript/bindings/cocostudio/libJSBindingForStudio.vcxproj.filters
@@ -0,0 +1,34 @@
+
+
+
+
+ {93995380-89BD-4b04-88EB-625FBE52EBFB}
+ h;hpp;hxx;hm;inl;inc;xsd
+
+
+ {4FC737F1-C7A5-4376-A066-2A32D752A2FF}
+ cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx
+
+
+
+
+ generated
+
+
+ manual
+
+
+
+
+ generated
+
+
+ manual
+
+
+
+
+ generated
+
+
+
\ No newline at end of file
diff --git a/cocos/scripting/javascript/bindings/cocostudio/libJSBindingForStudio.vcxproj.user b/cocos/scripting/javascript/bindings/cocostudio/libJSBindingForStudio.vcxproj.user
new file mode 100644
index 0000000000..3f03091124
--- /dev/null
+++ b/cocos/scripting/javascript/bindings/cocostudio/libJSBindingForStudio.vcxproj.user
@@ -0,0 +1,6 @@
+
+
+
+ false
+
+
\ No newline at end of file
diff --git a/cocos/scripting/javascript/bindings/jsb_cocos2dx_extension_manual.cpp b/cocos/scripting/javascript/bindings/extension/jsb_cocos2dx_extension_manual.cpp
similarity index 77%
rename from cocos/scripting/javascript/bindings/jsb_cocos2dx_extension_manual.cpp
rename to cocos/scripting/javascript/bindings/extension/jsb_cocos2dx_extension_manual.cpp
index 413f941bca..9f2ab82470 100644
--- a/cocos/scripting/javascript/bindings/jsb_cocos2dx_extension_manual.cpp
+++ b/cocos/scripting/javascript/bindings/extension/jsb_cocos2dx_extension_manual.cpp
@@ -9,7 +9,6 @@
#include "extensions/cocos-ext.h"
#include "ScriptingCore.h"
#include "cocos2d_specifics.hpp"
-#include "cocostudio/CocoStudio.h"
USING_NS_CC;
USING_NS_CC_EXT;
@@ -781,218 +780,9 @@ static JSBool js_cocos2dx_CCControl_removeTargetWithActionForControlEvents(JSCon
return JS_FALSE;
}
-class JSArmatureWrapper: public JSCallbackWrapper {
-public:
- JSArmatureWrapper();
- virtual ~JSArmatureWrapper();
-
- virtual void setJSCallbackThis(jsval thisObj);
-
- void movementCallbackFunc(cocostudio::Armature * pArmature, cocostudio::MovementEventType pMovementEventType, const char *pMovementId);
- void frameCallbackFunc(cocostudio::Bone *pBone, const char *frameEventName, int originFrameIndex, int currentFrameIndex);
- void addArmatureFileInfoAsyncCallbackFunc(float percent);
-
-private:
- bool m_bNeedUnroot;
-};
-
-JSArmatureWrapper::JSArmatureWrapper()
- : m_bNeedUnroot(false)
-{
-
-}
-
-JSArmatureWrapper::~JSArmatureWrapper()
-{
- if (m_bNeedUnroot)
- {
- JSObject *thisObj = JSVAL_TO_OBJECT(_jsThisObj);
- JSContext *cx = ScriptingCore::getInstance()->getGlobalContext();
- JS_RemoveObjectRoot(cx, &thisObj);
- }
-}
-
-void JSArmatureWrapper::setJSCallbackThis(jsval _jsThisObj)
-{
- JSCallbackWrapper::setJSCallbackThis(_jsThisObj);
-
- JSObject *thisObj = JSVAL_TO_OBJECT(_jsThisObj);
- js_proxy *p = jsb_get_js_proxy(thisObj);
- if (!p)
- {
- JSContext *cx = ScriptingCore::getInstance()->getGlobalContext();
- JS_AddObjectRoot(cx, &thisObj);
- m_bNeedUnroot = true;
- }
-}
-
-void JSArmatureWrapper::movementCallbackFunc(cocostudio::Armature *pArmature, cocostudio::MovementEventType pMovementEventType, const char *pMovementId)
-{
- JSContext *cx = ScriptingCore::getInstance()->getGlobalContext();
- JSObject *thisObj = JSVAL_IS_VOID(_jsThisObj) ? NULL : JSVAL_TO_OBJECT(_jsThisObj);
- js_proxy_t *proxy = js_get_or_create_proxy(cx, pArmature);
- jsval retval;
- if (_jsCallback != JSVAL_VOID)
- {
- int movementEventType = (int)pMovementEventType;
- jsval movementVal = INT_TO_JSVAL(movementEventType);
-
- jsval idVal = c_string_to_jsval(cx, pMovementId);
-
- jsval valArr[3];
- valArr[0] = OBJECT_TO_JSVAL(proxy->obj);
- valArr[1] = movementVal;
- valArr[2] = idVal;
-
- JS_AddValueRoot(cx, valArr);
- JS_CallFunctionValue(cx, thisObj, _jsCallback, 3, valArr, &retval);
- JS_RemoveValueRoot(cx, valArr);
- }
-}
-
-void JSArmatureWrapper::addArmatureFileInfoAsyncCallbackFunc(float percent)
-{
- JSContext *cx = ScriptingCore::getInstance()->getGlobalContext();
- JSObject *thisObj = JSVAL_IS_VOID(_jsThisObj) ? NULL : JSVAL_TO_OBJECT(_jsThisObj);
- jsval retval;
- if (_jsCallback != JSVAL_VOID)
- {
- jsval percentVal = DOUBLE_TO_JSVAL(percent);
-
- JS_AddValueRoot(cx, &percentVal);
- JS_CallFunctionValue(cx, thisObj, _jsCallback, 1, &percentVal, &retval);
- JS_RemoveValueRoot(cx, &percentVal);
- }
-}
-
-
-void JSArmatureWrapper::frameCallbackFunc(cocostudio::Bone *pBone, const char *frameEventName, int originFrameIndex, int currentFrameIndex)
-{
- JSContext *cx = ScriptingCore::getInstance()->getGlobalContext();
- JSObject *thisObj = JSVAL_IS_VOID(_jsThisObj) ? NULL : JSVAL_TO_OBJECT(_jsThisObj);
- js_proxy_t *proxy = js_get_or_create_proxy(cx, pBone);
- jsval retval;
- if (_jsCallback != JSVAL_VOID)
- {
- jsval nameVal = c_string_to_jsval(cx, frameEventName);
- jsval originIndexVal = INT_TO_JSVAL(originFrameIndex);
- jsval currentIndexVal = INT_TO_JSVAL(currentFrameIndex);
-
- jsval valArr[4];
- valArr[0] = OBJECT_TO_JSVAL(proxy->obj);
- valArr[1] = nameVal;
- valArr[2] = originIndexVal;
- valArr[3] = currentIndexVal;
-
- JS_AddValueRoot(cx, valArr);
- JS_CallFunctionValue(cx, thisObj, _jsCallback, 4, valArr, &retval);
- JS_RemoveValueRoot(cx, valArr);
- }
-}
-
-static JSBool js_cocos2dx_ArmatureAnimation_setMovementEventCallFunc(JSContext *cx, uint32_t argc, jsval *vp)
-{
- JSObject *obj = JS_THIS_OBJECT(cx, vp);
- js_proxy_t *proxy = jsb_get_js_proxy(obj);
- cocostudio::ArmatureAnimation* cobj = (cocostudio::ArmatureAnimation *)(proxy ? proxy->ptr : NULL);
- JSB_PRECONDITION2( cobj, cx, JS_FALSE, "Invalid Native Object");
-
- if (argc == 2) {
- jsval *argv = JS_ARGV(cx, vp);
-
- JSArmatureWrapper *tmpObj = new JSArmatureWrapper();
- tmpObj->autorelease();
-
- tmpObj->setJSCallbackFunc(argv[0]);
- tmpObj->setJSCallbackThis(argv[1]);
-
- cobj->setMovementEventCallFunc(tmpObj, movementEvent_selector(JSArmatureWrapper::movementCallbackFunc));
-
- return JS_TRUE;
- }
- JS_ReportError(cx, "Invalid number of arguments");
- return JS_FALSE;
-}
-
-static JSBool js_cocos2dx_ArmatureAnimation_setFrameEventCallFunc(JSContext *cx, uint32_t argc, jsval *vp)
-{
- JSObject *obj = JS_THIS_OBJECT(cx, vp);
- js_proxy_t *proxy = jsb_get_js_proxy(obj);
- cocostudio::ArmatureAnimation* cobj = (cocostudio::ArmatureAnimation *)(proxy ? proxy->ptr : NULL);
- JSB_PRECONDITION2( cobj, cx, JS_FALSE, "Invalid Native Object");
-
- if (argc == 2) {
- jsval *argv = JS_ARGV(cx, vp);
-
- JSArmatureWrapper *tmpObj = new JSArmatureWrapper();
- tmpObj->autorelease();
-
- tmpObj->setJSCallbackFunc(argv[0]);
- tmpObj->setJSCallbackThis(argv[1]);
-
- cobj->setFrameEventCallFunc(tmpObj, frameEvent_selector(JSArmatureWrapper::frameCallbackFunc));
-
- return JS_TRUE;
- }
- JS_ReportError(cx, "Invalid number of arguments");
- return JS_FALSE;
-}
-
-static JSBool jsb_Animation_addArmatureFileInfoAsyncCallFunc(JSContext *cx, uint32_t argc, jsval *vp)
-{
- JSObject *obj = JS_THIS_OBJECT(cx, vp);
- js_proxy_t *proxy = jsb_get_js_proxy(obj);
- cocostudio::ArmatureDataManager* cobj = (cocostudio::ArmatureDataManager *)(proxy ? proxy->ptr : NULL);
- JSB_PRECONDITION2( cobj, cx, JS_FALSE, "Invalid Native Object");
-
- if (argc == 3) {
- jsval *argv = JS_ARGV(cx, vp);
-
- JSArmatureWrapper *tmpObj = new JSArmatureWrapper();
- tmpObj->autorelease();
-
- tmpObj->setJSCallbackFunc(argv[2]);
- tmpObj->setJSCallbackThis(argv[1]);
-
- std::string ret;
- jsval_to_std_string(cx, argv[0], &ret);
-
- cobj->addArmatureFileInfoAsync(ret.c_str(), tmpObj, schedule_selector(JSArmatureWrapper::addArmatureFileInfoAsyncCallbackFunc));
-
- return JS_TRUE;
- }
-
- if(argc == 5){
- jsval *argv = JS_ARGV(cx, vp);
-
- JSArmatureWrapper *tmpObj = new JSArmatureWrapper();
- tmpObj->autorelease();
-
- tmpObj->setJSCallbackFunc(argv[4]);
- tmpObj->setJSCallbackThis(argv[3]);
-
- std::string imagePath;
- jsval_to_std_string(cx ,argv[0] , &imagePath);
-
- std::string plistPath;
- jsval_to_std_string(cx ,argv[1] , &plistPath);
-
- std::string configFilePath;
- jsval_to_std_string(cx ,argv[2] , &configFilePath);
-
- cobj->addArmatureFileInfoAsync(imagePath.c_str(), plistPath.c_str(), configFilePath.c_str(), tmpObj, schedule_selector(JSArmatureWrapper::addArmatureFileInfoAsyncCallbackFunc));
-
- return JS_TRUE;
- }
- JS_ReportError(cx, "Invalid number of arguments");
- return JS_FALSE;
-}
-
extern JSObject* jsb_ScrollView_prototype;
extern JSObject* jsb_TableView_prototype;
extern JSObject* jsb_EditBox_prototype;
-extern JSObject* jsb_ArmatureAnimation_prototype;
-extern JSObject* jsb_ArmatureDataManager_prototype;
extern JSObject* jsb_Control_prototype;
void register_all_cocos2dx_extension_manual(JSContext* cx, JSObject* global)
@@ -1004,12 +794,6 @@ void register_all_cocos2dx_extension_manual(JSContext* cx, JSObject* global)
JS_DefineFunction(cx, jsb_Control_prototype, "addTargetWithActionForControlEvents", js_cocos2dx_CCControl_addTargetWithActionForControlEvents, 3, JSPROP_READONLY | JSPROP_PERMANENT);
JS_DefineFunction(cx, jsb_Control_prototype, "removeTargetWithActionForControlEvents", js_cocos2dx_CCControl_removeTargetWithActionForControlEvents, 3, JSPROP_READONLY | JSPROP_PERMANENT);
- JS_DefineFunction(cx, jsb_ArmatureAnimation_prototype, "setMovementEventCallFunc", js_cocos2dx_ArmatureAnimation_setMovementEventCallFunc, 2, JSPROP_READONLY | JSPROP_PERMANENT);
-
- JS_DefineFunction(cx, jsb_ArmatureAnimation_prototype, "setFrameEventCallFunc", js_cocos2dx_ArmatureAnimation_setFrameEventCallFunc, 2, JSPROP_READONLY | JSPROP_PERMANENT);
-
- JS_DefineFunction(cx, jsb_ArmatureDataManager_prototype, "addArmatureFileInfoAsync", jsb_Animation_addArmatureFileInfoAsyncCallFunc, 3, JSPROP_READONLY | JSPROP_PERMANENT);
-
JSObject *tmpObj = JSVAL_TO_OBJECT(anonEvaluate(cx, global, "(function () { return cc.TableView; })()"));
JS_DefineFunction(cx, tmpObj, "create", js_cocos2dx_CCTableView_create, 3, JSPROP_READONLY | JSPROP_PERMANENT);
}
\ No newline at end of file
diff --git a/cocos/scripting/javascript/bindings/jsb_cocos2dx_extension_manual.h b/cocos/scripting/javascript/bindings/extension/jsb_cocos2dx_extension_manual.h
similarity index 100%
rename from cocos/scripting/javascript/bindings/jsb_cocos2dx_extension_manual.h
rename to cocos/scripting/javascript/bindings/extension/jsb_cocos2dx_extension_manual.h
diff --git a/cocos/scripting/javascript/bindings/extension/libJSBindingForExtension.vcxproj b/cocos/scripting/javascript/bindings/extension/libJSBindingForExtension.vcxproj
new file mode 100644
index 0000000000..b9ea3695d9
--- /dev/null
+++ b/cocos/scripting/javascript/bindings/extension/libJSBindingForExtension.vcxproj
@@ -0,0 +1,118 @@
+
+
+
+
+ Debug
+ Win32
+
+
+ Release
+ Win32
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {625F7391-9A91-48A1-8CFC-79508C822637}
+ Win32Proj
+ libJSBindingForExtension
+
+
+
+ StaticLibrary
+ true
+ Unicode
+ v100
+ v110
+ v110_xp
+
+
+ StaticLibrary
+ false
+ Unicode
+ v100
+ v110
+ v110_xp
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ $(SolutionDir)$(Configuration).win32\
+
+
+ $(Configuration).win32\
+
+
+ $(SolutionDir)$(Configuration).win32\
+
+
+ $(Configuration).win32\
+
+
+
+
+
+ Level3
+ Disabled
+ WIN32;_WINDOWS;_DEBUG;_LIB;DEBUG;COCOS2D_DEBUG=1;XP_WIN;JS_HAVE___INTN;JS_INTPTR_TYPE=int;COCOS2D_JAVASCRIPT=1;CC_ENABLE_CHIPMUNK_INTEGRATION=1;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)
+ $(ProjectDir)..;$(EngineRoot);$(EngineRoot)cocos;$(EngineRoot)cocos\network;$(EngineRoot)cocos\audio\include;$(EngineRoot)cocos\scripting\auto-generated\js-bindings;$(EngineRoot)external\spidermonkey\include\win32;$(EngineRoot)external\chipmunk\include\chipmunk;$(EngineRoot)extensions;%(AdditionalIncludeDirectories)
+ 4068;4101;4800;4251;4244;%(DisableSpecificWarnings)
+ true
+ false
+
+
+ Windows
+ true
+
+
+ if not exist "$(OutDir)" mkdir "$(OutDir)"
+xcopy /Y /Q "$(ProjectDir)..\..\..\..\..\external\sqlite3\libraries\win32\*.*" "$(OutDir)"
+
+
+
+
+ Level3
+
+
+ MaxSpeed
+ true
+ true
+ WIN32;_WINDOWS;NDEBUG;_LIB;XP_WIN;JS_HAVE___INTN;JS_INTPTR_TYPE=int;COCOS2D_JAVASCRIPT=1;CC_ENABLE_CHIPMUNK_INTEGRATION=1;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)
+ $(ProjectDir)..;$(EngineRoot);$(EngineRoot)cocos;$(EngineRoot)cocos\network;$(EngineRoot)cocos\audio\include;$(EngineRoot)cocos\scripting\auto-generated\js-bindings;$(EngineRoot)external\spidermonkey\include\win32;$(EngineRoot)external\chipmunk\include\chipmunk;$(EngineRoot)extensions;%(AdditionalIncludeDirectories)
+ 4068;4101;4800;4251;4244;%(DisableSpecificWarnings)
+ true
+
+
+ Windows
+ true
+ true
+ true
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/cocos/scripting/javascript/bindings/extension/libJSBindingForExtension.vcxproj.filters b/cocos/scripting/javascript/bindings/extension/libJSBindingForExtension.vcxproj.filters
new file mode 100644
index 0000000000..805e94fc71
--- /dev/null
+++ b/cocos/scripting/javascript/bindings/extension/libJSBindingForExtension.vcxproj.filters
@@ -0,0 +1,34 @@
+
+
+
+
+ {93995380-89BD-4b04-88EB-625FBE52EBFB}
+ h;hpp;hxx;hm;inl;inc;xsd
+
+
+ {4FC737F1-C7A5-4376-A066-2A32D752A2FF}
+ cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx
+
+
+
+
+ generated
+
+
+ manual
+
+
+
+
+ generated
+
+
+ manual
+
+
+
+
+ generated
+
+
+
\ No newline at end of file
diff --git a/cocos/scripting/javascript/bindings/extension/libJSBindingForExtension.vcxproj.user b/cocos/scripting/javascript/bindings/extension/libJSBindingForExtension.vcxproj.user
new file mode 100644
index 0000000000..3f03091124
--- /dev/null
+++ b/cocos/scripting/javascript/bindings/extension/libJSBindingForExtension.vcxproj.user
@@ -0,0 +1,6 @@
+
+
+
+ false
+
+
\ No newline at end of file
diff --git a/cocos/scripting/javascript/bindings/js_bindings_core.cpp b/cocos/scripting/javascript/bindings/js_bindings_core.cpp
index 295184cbb8..fbb6e808fb 100644
--- a/cocos/scripting/javascript/bindings/js_bindings_core.cpp
+++ b/cocos/scripting/javascript/bindings/js_bindings_core.cpp
@@ -26,7 +26,7 @@
// cocos2d + chipmunk registration files
-#include "js_bindings_chipmunk_registration.h"
+#include "chipmunk/js_bindings_chipmunk_registration.h"
//#pragma mark - Hash
diff --git a/cocos/scripting/javascript/bindings/js_bindings_system_functions.cpp b/cocos/scripting/javascript/bindings/localstorage/js_bindings_system_functions.cpp
similarity index 100%
rename from cocos/scripting/javascript/bindings/js_bindings_system_functions.cpp
rename to cocos/scripting/javascript/bindings/localstorage/js_bindings_system_functions.cpp
diff --git a/cocos/scripting/javascript/bindings/js_bindings_system_functions.h b/cocos/scripting/javascript/bindings/localstorage/js_bindings_system_functions.h
similarity index 100%
rename from cocos/scripting/javascript/bindings/js_bindings_system_functions.h
rename to cocos/scripting/javascript/bindings/localstorage/js_bindings_system_functions.h
diff --git a/cocos/scripting/javascript/bindings/js_bindings_system_functions_registration.h b/cocos/scripting/javascript/bindings/localstorage/js_bindings_system_functions_registration.h
similarity index 94%
rename from cocos/scripting/javascript/bindings/js_bindings_system_functions_registration.h
rename to cocos/scripting/javascript/bindings/localstorage/js_bindings_system_functions_registration.h
index 5bce81d241..5774403878 100644
--- a/cocos/scripting/javascript/bindings/js_bindings_system_functions_registration.h
+++ b/cocos/scripting/javascript/bindings/localstorage/js_bindings_system_functions_registration.h
@@ -3,7 +3,7 @@
* Generated by "generate_js_bindings.py -c system_jsb.ini" on 2012-12-17
* Script version: v0.5
*/
-#include "js_bindings_config.h"
+#include "../js_bindings_config.h"
//#ifdef JSB_INCLUDE_SYSTEM
//#include "LocalStorage.h"
diff --git a/cocos/scripting/javascript/bindings/js_bindings_system_registration.cpp b/cocos/scripting/javascript/bindings/localstorage/js_bindings_system_registration.cpp
similarity index 100%
rename from cocos/scripting/javascript/bindings/js_bindings_system_registration.cpp
rename to cocos/scripting/javascript/bindings/localstorage/js_bindings_system_registration.cpp
diff --git a/cocos/scripting/javascript/bindings/js_bindings_system_registration.h b/cocos/scripting/javascript/bindings/localstorage/js_bindings_system_registration.h
similarity index 100%
rename from cocos/scripting/javascript/bindings/js_bindings_system_registration.h
rename to cocos/scripting/javascript/bindings/localstorage/js_bindings_system_registration.h
diff --git a/cocos/scripting/javascript/bindings/localstorage/libJSBindingForLocalStorage.vcxproj b/cocos/scripting/javascript/bindings/localstorage/libJSBindingForLocalStorage.vcxproj
new file mode 100644
index 0000000000..2f074d6c17
--- /dev/null
+++ b/cocos/scripting/javascript/bindings/localstorage/libJSBindingForLocalStorage.vcxproj
@@ -0,0 +1,116 @@
+
+
+
+
+ Debug
+ Win32
+
+
+ Release
+ Win32
+
+
+
+
+
+
+
+
+
+
+
+
+ {68F5F371-BD7B-4C30-AE5B-0B08F22E0CDE}
+ Win32Proj
+ libJSBindingForLocalStorage
+
+
+
+ StaticLibrary
+ true
+ Unicode
+ v100
+ v110
+ v110_xp
+
+
+ StaticLibrary
+ false
+ Unicode
+ v100
+ v110
+ v110_xp
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ $(SolutionDir)$(Configuration).win32\
+
+
+ $(Configuration).win32\
+
+
+ $(SolutionDir)$(Configuration).win32\
+
+
+ $(Configuration).win32\
+
+
+
+
+
+ Level3
+ Disabled
+ WIN32;_WINDOWS;_DEBUG;_LIB;DEBUG;COCOS2D_DEBUG=1;XP_WIN;JS_HAVE___INTN;JS_INTPTR_TYPE=int;COCOS2D_JAVASCRIPT=1;CC_ENABLE_CHIPMUNK_INTEGRATION=1;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)
+ $(ProjectDir)..;$(EngineRoot);$(EngineRoot)cocos;$(EngineRoot)cocos\storage;$(EngineRoot)cocos\audio\include;$(EngineRoot)cocos\scripting\auto-generated\js-bindings;$(EngineRoot)external;$(EngineRoot)external\chipmunk\include\chipmunk;$(EngineRoot)external\spidermonkey\include\win32;%(AdditionalIncludeDirectories)
+ 4068;4101;4800;4251;4244;%(DisableSpecificWarnings)
+ true
+ false
+
+
+ Windows
+ true
+
+
+ if not exist "$(OutDir)" mkdir "$(OutDir)"
+xcopy /Y /Q "$(ProjectDir)..\..\..\..\..\external\sqlite3\libraries\win32\*.*" "$(OutDir)"
+
+
+
+
+ Level3
+
+
+ MaxSpeed
+ true
+ true
+ WIN32;_WINDOWS;NDEBUG;_LIB;XP_WIN;JS_HAVE___INTN;JS_INTPTR_TYPE=int;COCOS2D_JAVASCRIPT=1;CC_ENABLE_CHIPMUNK_INTEGRATION=1;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)
+ $(ProjectDir)..;$(EngineRoot);$(EngineRoot)cocos;$(EngineRoot)cocos\storage;$(EngineRoot)cocos\audio\include;$(EngineRoot)cocos\scripting\auto-generated\js-bindings;$(EngineRoot)external;$(EngineRoot)external\chipmunk\include\chipmunk;$(EngineRoot)external\spidermonkey\include\win32;%(AdditionalIncludeDirectories)
+ 4068;4101;4800;4251;4244;%(DisableSpecificWarnings)
+ true
+
+
+ Windows
+ true
+ true
+ true
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/cocos/scripting/javascript/bindings/localstorage/libJSBindingForLocalStorage.vcxproj.filters b/cocos/scripting/javascript/bindings/localstorage/libJSBindingForLocalStorage.vcxproj.filters
new file mode 100644
index 0000000000..9fc0ee4734
--- /dev/null
+++ b/cocos/scripting/javascript/bindings/localstorage/libJSBindingForLocalStorage.vcxproj.filters
@@ -0,0 +1,32 @@
+
+
+
+
+ {93995380-89BD-4b04-88EB-625FBE52EBFB}
+ h;hpp;hxx;hm;inl;inc;xsd
+
+
+ {4FC737F1-C7A5-4376-A066-2A32D752A2FF}
+ cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx
+
+
+
+
+ manual
+
+
+ manual
+
+
+
+
+ manual
+
+
+ manual
+
+
+ manual
+
+
+
\ No newline at end of file
diff --git a/cocos/scripting/javascript/bindings/localstorage/libJSBindingForLocalStorage.vcxproj.user b/cocos/scripting/javascript/bindings/localstorage/libJSBindingForLocalStorage.vcxproj.user
new file mode 100644
index 0000000000..3f03091124
--- /dev/null
+++ b/cocos/scripting/javascript/bindings/localstorage/libJSBindingForLocalStorage.vcxproj.user
@@ -0,0 +1,6 @@
+
+
+
+ false
+
+
\ No newline at end of file
diff --git a/cocos/scripting/javascript/bindings/XMLHTTPRequest.cpp b/cocos/scripting/javascript/bindings/network/XMLHTTPRequest.cpp
similarity index 100%
rename from cocos/scripting/javascript/bindings/XMLHTTPRequest.cpp
rename to cocos/scripting/javascript/bindings/network/XMLHTTPRequest.cpp
diff --git a/cocos/scripting/javascript/bindings/XMLHTTPRequest.h b/cocos/scripting/javascript/bindings/network/XMLHTTPRequest.h
similarity index 100%
rename from cocos/scripting/javascript/bindings/XMLHTTPRequest.h
rename to cocos/scripting/javascript/bindings/network/XMLHTTPRequest.h
diff --git a/cocos/scripting/javascript/bindings/jsb_websocket.cpp b/cocos/scripting/javascript/bindings/network/jsb_websocket.cpp
similarity index 100%
rename from cocos/scripting/javascript/bindings/jsb_websocket.cpp
rename to cocos/scripting/javascript/bindings/network/jsb_websocket.cpp
diff --git a/cocos/scripting/javascript/bindings/jsb_websocket.h b/cocos/scripting/javascript/bindings/network/jsb_websocket.h
similarity index 100%
rename from cocos/scripting/javascript/bindings/jsb_websocket.h
rename to cocos/scripting/javascript/bindings/network/jsb_websocket.h
diff --git a/cocos/scripting/javascript/bindings/network/libJSBindingForNetwork.vcxproj b/cocos/scripting/javascript/bindings/network/libJSBindingForNetwork.vcxproj
new file mode 100644
index 0000000000..e4ff3eed4b
--- /dev/null
+++ b/cocos/scripting/javascript/bindings/network/libJSBindingForNetwork.vcxproj
@@ -0,0 +1,115 @@
+
+
+
+
+ Debug
+ Win32
+
+
+ Release
+ Win32
+
+
+
+
+
+
+
+
+
+
+
+ {3BEC13F5-E227-4D80-BC77-1C857F83BCFC}
+ Win32Proj
+ libJSBindingForNetwork
+
+
+
+ StaticLibrary
+ true
+ Unicode
+ v100
+ v110
+ v110_xp
+
+
+ StaticLibrary
+ false
+ Unicode
+ v100
+ v110
+ v110_xp
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ $(SolutionDir)$(Configuration).win32\
+
+
+ $(Configuration).win32\
+
+
+ $(SolutionDir)$(Configuration).win32\
+
+
+ $(Configuration).win32\
+
+
+
+
+
+ Level3
+ Disabled
+ WIN32;_WINDOWS;_DEBUG;_LIB;DEBUG;COCOS2D_DEBUG=1;XP_WIN;JS_HAVE___INTN;JS_INTPTR_TYPE=int;COCOS2D_JAVASCRIPT=1;CC_ENABLE_CHIPMUNK_INTEGRATION=1;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)
+ $(ProjectDir)..;$(EngineRoot);$(EngineRoot)cocos;$(EngineRoot)cocos\network;$(EngineRoot)cocos\audio\include;$(EngineRoot)cocos\scripting\auto-generated\js-bindings;$(EngineRoot)external\spidermonkey\include\win32;$(EngineRoot)external\chipmunk\include\chipmunk;$(EngineRoot)external\websockets\include\win32;%(AdditionalIncludeDirectories)
+ 4068;4101;4800;4251;4244;%(DisableSpecificWarnings)
+ true
+ false
+
+
+ Windows
+ true
+
+
+ if not exist "$(OutDir)" mkdir "$(OutDir)"
+xcopy /Y /Q "$(ProjectDir)..\..\..\..\..\external\sqlite3\libraries\win32\*.*" "$(OutDir)"
+
+
+
+
+ Level3
+
+
+ MaxSpeed
+ true
+ true
+ WIN32;_WINDOWS;NDEBUG;_LIB;XP_WIN;JS_HAVE___INTN;JS_INTPTR_TYPE=int;COCOS2D_JAVASCRIPT=1;CC_ENABLE_CHIPMUNK_INTEGRATION=1;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)
+ $(ProjectDir)..;$(EngineRoot);$(EngineRoot)cocos;$(EngineRoot)cocos\network;$(EngineRoot)cocos\audio\include;$(EngineRoot)cocos\scripting\auto-generated\js-bindings;$(EngineRoot)external\spidermonkey\include\win32;$(EngineRoot)external\chipmunk\include\chipmunk;$(EngineRoot)external\websockets\include\win32;%(AdditionalIncludeDirectories)
+ 4068;4101;4800;4251;4244;%(DisableSpecificWarnings)
+ true
+
+
+ Windows
+ true
+ true
+ true
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/cocos/scripting/javascript/bindings/network/libJSBindingForNetwork.vcxproj.filters b/cocos/scripting/javascript/bindings/network/libJSBindingForNetwork.vcxproj.filters
new file mode 100644
index 0000000000..3fd3c5a5d1
--- /dev/null
+++ b/cocos/scripting/javascript/bindings/network/libJSBindingForNetwork.vcxproj.filters
@@ -0,0 +1,29 @@
+
+
+
+
+ {93995380-89BD-4b04-88EB-625FBE52EBFB}
+ h;hpp;hxx;hm;inl;inc;xsd
+
+
+ {4FC737F1-C7A5-4376-A066-2A32D752A2FF}
+ cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx
+
+
+
+
+ manual
+
+
+ manual
+
+
+
+
+ manual
+
+
+ manual
+
+
+
\ No newline at end of file
diff --git a/cocos/scripting/javascript/bindings/network/libJSBindingForNetwork.vcxproj.user b/cocos/scripting/javascript/bindings/network/libJSBindingForNetwork.vcxproj.user
new file mode 100644
index 0000000000..3f03091124
--- /dev/null
+++ b/cocos/scripting/javascript/bindings/network/libJSBindingForNetwork.vcxproj.user
@@ -0,0 +1,6 @@
+
+
+
+ false
+
+
\ No newline at end of file
diff --git a/cocos/scripting/javascript/bindings/proj.win32/libJSBinding.vcxproj b/cocos/scripting/javascript/bindings/proj.win32/libJSBinding.vcxproj
index df73497bd8..11085f336c 100644
--- a/cocos/scripting/javascript/bindings/proj.win32/libJSBinding.vcxproj
+++ b/cocos/scripting/javascript/bindings/proj.win32/libJSBinding.vcxproj
@@ -12,68 +12,41 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
{39379840-825A-45A0-B363-C09FFEF864BD}
@@ -102,9 +75,11 @@
+
+
@@ -126,7 +101,7 @@
Level3
Disabled
WIN32;_WINDOWS;_DEBUG;_LIB;DEBUG;COCOS2D_DEBUG=1;XP_WIN;JS_HAVE___INTN;JS_INTPTR_TYPE=int;COCOS2D_JAVASCRIPT=1;CC_ENABLE_CHIPMUNK_INTEGRATION=1;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)
- $(ProjectDir)..\..\..\..\cocos2dx;$(ProjectDir)..\..\..\..\cocos2dx\include;$(ProjectDir)..\..\..\..\cocos2dx\kazmath\include;$(ProjectDir)..\..\..\..\cocos2dx\platform\win32;$(ProjectDir)..\..\..\..\cocos2dx\platform\third_party\win32;$(ProjectDir)..\..\..\..\cocos2dx\platform\third_party\win32\pthread;$(ProjectDir)..\..\..\..\cocos2dx\platform\third_party\win32\OGLES;$(ProjectDir)..\..\..\..\audio\include;$(ProjectDir)..;$(ProjectDir)..\..\spidermonkey-win32\include;$(ProjectDir)..\..\..\auto-generated\js-bindings;$(ProjectDir)..\..\..\..\external\chipmunk\include\chipmunk;$(ProjectDir)..\..\..\..\external\libwebsockets\win32\include;$(ProjectDir)..\..\..\..\extensions;$(ProjectDir)..\..\..\..\extensions\LocalStorage;$(ProjectDir)..\..\..\..\extensions\network;%(AdditionalIncludeDirectories)
+ $(ProjectDir)..;$(EngineRoot);$(EngineRoot)cocos;$(EngineRoot)cocos\storage;$(EngineRoot)cocos\audio\include;$(EngineRoot)cocos\scripting\auto-generated\js-bindings;$(EngineRoot)external\spidermonkey\include\win32;$(EngineRoot)external\chipmunk\include\chipmunk;%(AdditionalIncludeDirectories)
4068;4101;4800;4251;4244;%(DisableSpecificWarnings)
true
false
@@ -137,7 +112,7 @@
if not exist "$(OutDir)" mkdir "$(OutDir)"
-xcopy /Y /Q "$(ProjectDir)..\..\..\..\external\sqlite3\libraries\win32\*.*" "$(OutDir)"
+xcopy /Y /Q "$(ProjectDir)..\..\..\..\..\external\sqlite3\libraries\win32\*.*" "$(OutDir)"
@@ -149,7 +124,7 @@ xcopy /Y /Q "$(ProjectDir)..\..\..\..\external\sqlite3\libraries\win32\*.*" "$(O
true
true
WIN32;_WINDOWS;NDEBUG;_LIB;XP_WIN;JS_HAVE___INTN;JS_INTPTR_TYPE=int;COCOS2D_JAVASCRIPT=1;CC_ENABLE_CHIPMUNK_INTEGRATION=1;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)
- $(ProjectDir)..\..\..\..\cocos2dx;$(ProjectDir)..\..\..\..\cocos2dx\include;$(ProjectDir)..\..\..\..\cocos2dx\kazmath\include;$(ProjectDir)..\..\..\..\cocos2dx\platform\win32;$(ProjectDir)..\..\..\..\cocos2dx\platform\third_party\win32;$(ProjectDir)..\..\..\..\cocos2dx\platform\third_party\win32\pthread;$(ProjectDir)..\..\..\..\cocos2dx\platform\third_party\win32\OGLES;$(ProjectDir)..\..\..\..\audio\include;$(ProjectDir)..;$(ProjectDir)..\..\spidermonkey-win32\include;$(ProjectDir)..\..\..\auto-generated\js-bindings;$(ProjectDir)..\..\..\..\external\chipmunk\include\chipmunk;$(ProjectDir)..\..\..\..\external\libwebsockets\win32\include;$(ProjectDir)..\..\..\..\extensions;$(ProjectDir)..\..\..\..\extensions\LocalStorage;$(ProjectDir)..\..\..\..\extensions\network;%(AdditionalIncludeDirectories)
+ $(ProjectDir)..;$(EngineRoot);$(EngineRoot)cocos;$(EngineRoot)cocos\storage;$(EngineRoot)cocos\audio\include;$(EngineRoot)cocos\scripting\auto-generated\js-bindings;$(EngineRoot)external\spidermonkey\include\win32;$(EngineRoot)external\chipmunk\include\chipmunk;%(AdditionalIncludeDirectories)
4068;4101;4800;4251;4244;%(DisableSpecificWarnings)
true
@@ -161,7 +136,7 @@ xcopy /Y /Q "$(ProjectDir)..\..\..\..\external\sqlite3\libraries\win32\*.*" "$(O
if not exist "$(OutDir)" mkdir "$(OutDir)"
-xcopy /Y /Q "$(ProjectDir)..\..\..\..\external\sqlite3\libraries\win32\*.*" "$(OutDir)"
+xcopy /Y /Q "$(ProjectDir)..\..\..\..\..\external\sqlite3\libraries\win32\*.*" "$(OutDir)"
diff --git a/cocos/scripting/javascript/bindings/proj.win32/libJSBinding.vcxproj.filters b/cocos/scripting/javascript/bindings/proj.win32/libJSBinding.vcxproj.filters
index 4fdf5413d2..1d1e1d400a 100644
--- a/cocos/scripting/javascript/bindings/proj.win32/libJSBinding.vcxproj.filters
+++ b/cocos/scripting/javascript/bindings/proj.win32/libJSBinding.vcxproj.filters
@@ -20,21 +20,6 @@
manual
-
- manual
-
-
- manual
-
-
- manual
-
-
- manual
-
-
- manual
-
manual
@@ -44,15 +29,6 @@
manual
-
- manual
-
-
- manual
-
-
- manual
-
manual
@@ -65,18 +41,9 @@
manual
-
- manual
-
-
- manual
-
generated
-
- generated
-
@@ -85,27 +52,6 @@
manual
-
- manual
-
-
- manual
-
-
- manual
-
-
- manual
-
-
- manual
-
-
- manual
-
-
- manual
-
manual
@@ -121,18 +67,6 @@
manual
-
- manual
-
-
- manual
-
-
- manual
-
-
- manual
-
manual
@@ -145,55 +79,40 @@
manual
-
- manual
-
-
- manual
-
manual
generated
-
- generated
-
-
- js
-
-
- js
-
-
- js
-
-
- js
-
-
- js
-
-
- js
-
-
- js
-
-
- js
-
-
- js
-
generated
-
- generated
+
+ js
+
+
+ js
+
+
+ js
+
+
+ js
+
+
+ js
+
+
+ js
+
+
+ js
+
+
+ js
\ No newline at end of file
diff --git a/cocos/scripting/javascript/script/jsb_cocos2d.js b/cocos/scripting/javascript/script/jsb_cocos2d.js
index 80ddb0a066..684eb386d9 100644
--- a/cocos/scripting/javascript/script/jsb_cocos2d.js
+++ b/cocos/scripting/javascript/script/jsb_cocos2d.js
@@ -4,6 +4,30 @@
var cc = cc || {};
+cc.RESOLUTION_POLICY = {
+ // The entire application is visible in the specified area without trying to preserve the original aspect ratio.
+ // Distortion can occur, and the application may appear stretched or compressed.
+EXACT_FIT:0,
+ // The entire application fills the specified area, without distortion but possibly with some cropping,
+ // while maintaining the original aspect ratio of the application.
+NO_BORDER:1,
+ // The entire application is visible in the specified area without distortion while maintaining the original
+ // aspect ratio of the application. Borders can appear on two sides of the application.
+SHOW_ALL:2,
+ // The application takes the height of the design resolution size and modifies the width of the internal
+ // canvas so that it fits the aspect ratio of the device
+ // no distortion will occur however you must make sure your application works on different
+ // aspect ratios
+FIXED_HEIGHT:3,
+ // The application takes the width of the design resolution size and modifies the height of the internal
+ // canvas so that it fits the aspect ratio of the device
+ // no distortion will occur however you must make sure your application works on different
+ // aspect ratios
+FIXED_WIDTH:4,
+
+UNKNOWN:5
+};
+
cc.LANGUAGE_ENGLISH = 0;
cc.LANGUAGE_CHINESE = 1;
cc.LANGUAGE_FRENCH = 2;
diff --git a/cocos/scripting/lua/bindings/Makefile b/cocos/scripting/lua/bindings/Makefile
index 1aaa6c897e..95145d5fbc 100644
--- a/cocos/scripting/lua/bindings/Makefile
+++ b/cocos/scripting/lua/bindings/Makefile
@@ -1,64 +1,72 @@
TARGET = liblua.so
-INCLUDES += -I.. -I../lua -I../tolua -I../cocos2dx_support -I../../auto-generated/lua-bindings \
- -I../Classes -I../../../audio/include -I../../../extensions -I../../../external/chipmunk/include/chipmunk
+INCLUDES += -I../../../../external/lua/tolua \
+-I../../../../external/lua/lua \
+-I../../auto-generated/lua-bindings \
+-I../../../../extensions \
+-I../../../editor-support \
+-I. \
+-I../../../editor-support/cocosbuilder \
+-I../../../editor-support/cocostudio \
+-I../../../../external \
+-I../../../
-SOURCES = ../lua/lapi.c \
- ../lua/lauxlib.c \
- ../lua/lbaselib.c \
- ../lua/lcode.c \
- ../lua/ldblib.c \
- ../lua/ldebug.c \
- ../lua/ldo.c \
- ../lua/ldump.c \
- ../lua/lfunc.c \
- ../lua/lgc.c \
- ../lua/linit.c \
- ../lua/liolib.c \
- ../lua/llex.c \
- ../lua/lmathlib.c \
- ../lua/lmem.c \
- ../lua/loadlib.c \
- ../lua/lobject.c \
- ../lua/lopcodes.c \
- ../lua/loslib.c \
- ../lua/lparser.c \
- ../lua/lstate.c \
- ../lua/lstring.c \
- ../lua/lstrlib.c \
- ../lua/ltable.c \
- ../lua/ltablib.c \
- ../lua/ltm.c \
- ../lua/lundump.c \
- ../lua/lvm.c \
- ../lua/lzio.c \
- ../lua/print.c \
- ../tolua/tolua_event.c \
- ../tolua/tolua_is.c \
- ../tolua/tolua_map.c \
- ../tolua/tolua_push.c \
- ../tolua/tolua_to.c \
- ../cocos2dx_support/tolua_fix.c \
+SOURCES = ../../../../external/lua/lua/lapi.c \
+ ../../../../external/lua/lua/lauxlib.c \
+ ../../../../external/lua/lua/lbaselib.c \
+ ../../../../external/lua/lua/lcode.c \
+ ../../../../external/lua/lua/ldblib.c \
+ ../../../../external/lua/lua/ldebug.c \
+ ../../../../external/lua/lua/ldo.c \
+ ../../../../external/lua/lua/ldump.c \
+ ../../../../external/lua/lua/lfunc.c \
+ ../../../../external/lua/lua/lgc.c \
+ ../../../../external/lua/lua/linit.c \
+ ../../../../external/lua/lua/liolib.c \
+ ../../../../external/lua/lua/llex.c \
+ ../../../../external/lua/lua/lmathlib.c \
+ ../../../../external/lua/lua/lmem.c \
+ ../../../../external/lua/lua/loadlib.c \
+ ../../../../external/lua/lua/lobject.c \
+ ../../../../external/lua/lua/lopcodes.c \
+ ../../../../external/lua/lua/loslib.c \
+ ../../../../external/lua/lua/lparser.c \
+ ../../../../external/lua/lua/lstate.c \
+ ../../../../external/lua/lua/lstring.c \
+ ../../../../external/lua/lua/lstrlib.c \
+ ../../../../external/lua/lua/ltable.c \
+ ../../../../external/lua/lua/ltablib.c \
+ ../../../../external/lua/lua/ltm.c \
+ ../../../../external/lua/lua/lundump.c \
+ ../../../../external/lua/lua/lvm.c \
+ ../../../../external/lua/lua/lzio.c \
+ ../../../../external/lua/lua/print.c \
+ ../../../../external/lua/tolua/tolua_event.c \
+ ../../../../external/lua/tolua/tolua_is.c \
+ ../../../../external/lua/tolua/tolua_map.c \
+ ../../../../external/lua/tolua/tolua_push.c \
+ ../../../../external/lua/tolua/tolua_to.c \
+ tolua_fix.c \
../../auto-generated/lua-bindings/lua_cocos2dx_auto.cpp \
../../auto-generated/lua-bindings/lua_cocos2dx_extension_auto.cpp \
- ../cocos2dx_support/CCLuaBridge.cpp \
- ../cocos2dx_support/CCLuaEngine.cpp \
- ../cocos2dx_support/CCLuaStack.cpp \
- ../cocos2dx_support/CCLuaValue.cpp \
- ../cocos2dx_support/Cocos2dxLuaLoader.cpp \
- ../cocos2dx_support/CCBProxy.cpp \
- ../cocos2dx_support/LuaOpengl.cpp \
- ../cocos2dx_support/LuaScriptHandlerMgr.cpp \
- ../cocos2dx_support/LuaBasicConversions.cpp \
- ../cocos2dx_support/lua_cocos2dx_manual.cpp \
- ../cocos2dx_support/lua_cocos2dx_extension_manual.cpp \
- ../cocos2dx_support/lua_cocos2dx_deprecated.cpp
+ CCLuaBridge.cpp \
+ CCLuaEngine.cpp \
+ CCLuaStack.cpp \
+ CCLuaValue.cpp \
+ Cocos2dxLuaLoader.cpp \
+ CCBProxy.cpp \
+ LuaOpengl.cpp \
+ LuaScriptHandlerMgr.cpp \
+ LuaBasicConversions.cpp \
+ lua_cocos2dx_manual.cpp \
+ lua_cocos2dx_extension_manual.cpp \
+ lua_cocos2dx_deprecated.cpp
-include ../../../cocos2dx/proj.linux/cocos2dx.mk
+include ../../../2d/cocos2dx.mk
TARGET := $(LIB_DIR)/$(TARGET)
-SHAREDLIBS += -lextension
+SHAREDLIBS += -lextension -lcocostudio -lcocosbuilder
STATICLIBS += $(LIB_DIR)/libbox2d.a
all: $(TARGET)
@@ -67,14 +75,18 @@ $(TARGET): $(OBJECTS) $(CORE_MAKEFILE_LIST)
@mkdir -p $(@D)
$(LOG_LINK)$(CXX) $(CXXFLAGS) $(OBJECTS) -shared -o $@ $(SHAREDLIBS) $(STATICLIBS)
+$(OBJ_DIR)/%.o: %.cpp $(CORE_MAKEFILE_LIST)
+ @mkdir -p $(@D)
+ $(LOG_CXX)$(CXX) $(CXXFLAGS) $(INCLUDES) $(DEFINES) -c $< -o $@
+
$(OBJ_DIR)/%.o: ../../%.cpp $(CORE_MAKEFILE_LIST)
@mkdir -p $(@D)
$(LOG_CXX)$(CXX) $(CXXFLAGS) $(INCLUDES) $(DEFINES) -c $< -o $@
-$(OBJ_DIR)/%.o: ../%.cpp $(CORE_MAKEFILE_LIST)
- @mkdir -p $(@D)
- $(LOG_CXX)$(CXX) $(CXXFLAGS) $(INCLUDES) $(DEFINES) -c $< -o $@
-
-$(OBJ_DIR)/%.o: ../%.c $(CORE_MAKEFILE_LIST)
+$(OBJ_DIR)/%.o: ../../../../%.c $(CORE_MAKEFILE_LIST)
+ @mkdir -p $(@D)
+ $(LOG_CC)$(CC) $(CCFLAGS) $(INCLUDES) $(DEFINES) -c $< -o $@
+
+$(OBJ_DIR)/%.o: %.c $(CORE_MAKEFILE_LIST)
@mkdir -p $(@D)
$(LOG_CC)$(CC) $(CCFLAGS) $(INCLUDES) $(DEFINES) -c $< -o $@
diff --git a/cocos/scripting/lua/bindings/liblua.vcxproj b/cocos/scripting/lua/bindings/liblua.vcxproj
index 84026e44fd..ed1ef534ed 100644
--- a/cocos/scripting/lua/bindings/liblua.vcxproj
+++ b/cocos/scripting/lua/bindings/liblua.vcxproj
@@ -35,9 +35,11 @@
+
+
@@ -62,7 +64,7 @@
Disabled
- $(ProjectDir)..\..\..\cocos2dx;$(ProjectDir)..\..\..\cocos2dx\include;$(ProjectDir)..\..\..\cocos2dx\kazmath\include;$(ProjectDir)..\..\..\cocos2dx\platform\win32;$(ProjectDir)..\..\..\cocos2dx\platform\third_party\win32\OGLES;$(ProjectDir)..\..\..\cocos2dx\platform\third_party\win32\pthread;$(ProjectDir)..\..\..\audio\include;$(ProjectDir)..\..\..\extensions;$(ProjectDir)..\..\..\extensions\network;$(ProjectDir)..\..\..\external\libwebsockets\win32\include;$(ProjectDir)..\tolua;$(ProjectDir)..\luajit\include;$(ProjectDir)..\..\auto-generated\lua-bindings;$(ProjectDir)..\cocos2dx_support;$(ProjectDir)..\..\..\external\chipmunk\include\chipmunk;%(AdditionalIncludeDirectories)
+ $(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;%(AdditionalIncludeDirectories)
WIN32;_WINDOWS;_DEBUG;COCOS2D_DEBUG=1;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)
false
EnableFastChecks
@@ -87,14 +89,14 @@
if not exist "$(OutDir)" mkdir "$(OutDir)"
-xcopy /Y /Q "$(ProjectDir)..\luajit\win32\*.*" "$(OutDir)"
+xcopy /Y /Q "$(ProjectDir)..\..\..\..\external\lua\luajit\prebuilt\win32\*.*" "$(OutDir)"
MaxSpeed
true
- $(ProjectDir)..\..\..\cocos2dx;$(ProjectDir)..\..\..\cocos2dx\include;$(ProjectDir)..\..\..\cocos2dx\kazmath\include;$(ProjectDir)..\..\..\cocos2dx\platform\win32;$(ProjectDir)..\..\..\cocos2dx\platform\third_party\win32\OGLES;$(ProjectDir)..\..\..\cocos2dx\platform\third_party\win32\pthread;$(ProjectDir)..\..\..\audio\include;$(ProjectDir)..\..\..\extensions;$(ProjectDir)..\..\..\extensions\network;$(ProjectDir)..\..\..\external\libwebsockets\win32\include;$(ProjectDir)..\tolua;$(ProjectDir)..\luajit\include;$(ProjectDir)..\..\auto-generated\lua-bindings;$(ProjectDir)..\cocos2dx_support;%(AdditionalIncludeDirectories)
+ $(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;%(AdditionalIncludeDirectories)
WIN32;NDEBUG;_WINDOWS;LIBLUA_EXPORTS;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)
MultiThreadedDLL
true
@@ -118,55 +120,55 @@ xcopy /Y /Q "$(ProjectDir)..\luajit\win32\*.*" "$(OutDir)"
if not exist "$(OutDir)" mkdir "$(OutDir)"
-xcopy /Y /Q "$(ProjectDir)..\luajit\win32\*.*" "$(OutDir)"
+xcopy /Y /Q "$(ProjectDir)..\..\..\..\external\lua\luajit\prebuilt\win32\*.*" "$(OutDir)"
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/cocos/scripting/lua/bindings/liblua.vcxproj.filters b/cocos/scripting/lua/bindings/liblua.vcxproj.filters
index a65b18d1ac..56f49872c4 100644
--- a/cocos/scripting/lua/bindings/liblua.vcxproj.filters
+++ b/cocos/scripting/lua/bindings/liblua.vcxproj.filters
@@ -18,135 +18,135 @@
-
- tolua
-
-
- tolua
-
-
- tolua
-
-
- tolua
-
-
- tolua
-
-
- cocos2dx_support
-
-
- cocos2dx_support
-
-
- cocos2dx_support
-
-
- cocos2dx_support
-
-
- cocos2dx_support
-
-
- cocos2dx_support
-
-
- cocos2dx_support
-
-
- cocos2dx_support
-
-
- cocos2dx_support
-
-
- cocos2dx_support
-
-
- cocos2dx_support
-
-
- cocos2dx_support
-
-
- cocos2dx_support
-
cocos2dx_support\generated
cocos2dx_support\generated
-
+
+ tolua
+
+
+ tolua
+
+
+ tolua
+
+
+ tolua
+
+
+ tolua
+
+
+ cocos2dx_support
+
+
+ cocos2dx_support
+
+
+ cocos2dx_support
+
+
+ cocos2dx_support
+
+
+ cocos2dx_support
+
+
+ cocos2dx_support
+
+
+ cocos2dx_support
+
+
+ cocos2dx_support
+
+
+ cocos2dx_support
+
+
+ cocos2dx_support
+
+
+ cocos2dx_support
+
+
+ cocos2dx_support
+
+
+ cocos2dx_support
+
+
cocos2dx_support
-
- tolua
-
-
- tolua
-
-
- cocos2dx_support
-
-
- cocos2dx_support
-
-
- cocos2dx_support
-
-
- cocos2dx_support
-
-
- cocos2dx_support
-
-
- cocos2dx_support
-
-
- luajit\include
-
-
- luajit\include
-
-
- luajit\include
-
-
- luajit\include
-
-
- cocos2dx_support
-
-
- cocos2dx_support
-
-
- cocos2dx_support
-
-
- cocos2dx_support
-
-
- cocos2dx_support
-
-
- cocos2dx_support
-
-
- cocos2dx_support
-
cocos2dx_support\generated
cocos2dx_support\generated
-
+
+ luajit\include
+
+
+ luajit\include
+
+
+ luajit\include
+
+
+ luajit\include
+
+
+ tolua
+
+
+ tolua
+
+
+ cocos2dx_support
+
+
+ cocos2dx_support
+
+
+ cocos2dx_support
+
+
+ cocos2dx_support
+
+
+ cocos2dx_support
+
+
+ cocos2dx_support
+
+
+ cocos2dx_support
+
+
+ cocos2dx_support
+
+
+ cocos2dx_support
+
+
+ cocos2dx_support
+
+
+ cocos2dx_support
+
+
+ cocos2dx_support
+
+
+ cocos2dx_support
+
+
cocos2dx_support
diff --git a/cocos/storage/local-storage/proj.win32/libLocalStorage.vcxproj b/cocos/storage/local-storage/proj.win32/libLocalStorage.vcxproj
new file mode 100644
index 0000000000..d79eb7ce1c
--- /dev/null
+++ b/cocos/storage/local-storage/proj.win32/libLocalStorage.vcxproj
@@ -0,0 +1,93 @@
+
+
+
+
+ Debug
+ Win32
+
+
+ Release
+ Win32
+
+
+
+
+
+
+
+
+
+ {632A8F38-D0F0-4D22-86B3-D69F5E6BF63A}
+ libLocalStorage
+
+
+
+ StaticLibrary
+ true
+ v110_xp
+ Unicode
+
+
+ StaticLibrary
+ false
+ v110_xp
+ true
+ Unicode
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ $(SolutionDir)$(Configuration).win32\
+ $(Configuration).win32\
+
+
+ $(SolutionDir)$(Configuration).win32\
+ $(Configuration).win32\
+
+
+
+ Level3
+ Disabled
+
+
+ $(EngineRoot)external\sqlite3\include;%(AdditionalIncludeDirectories)
+ WIN32;_DEBUG;_WINDOWS;_LIB;COCOS2DXWIN32_EXPORTS;GL_GLEXT_PROTOTYPES;COCOS2D_DEBUG=1;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)
+ true
+ 4267;4251;4244;%(DisableSpecificWarnings)
+ false
+
+
+ true
+
+
+
+
+ Level3
+ MaxSpeed
+ true
+ true
+
+
+ $(EngineRoot)external\sqlite3\include;%(AdditionalIncludeDirectories)
+ WIN32;_WINDOWS;_LIB;COCOS2DXWIN32_EXPORTS;GL_GLEXT_PROTOTYPES;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)
+
+
+ true
+ true
+ true
+
+
+
+
+
+
\ No newline at end of file
diff --git a/cocos/storage/local-storage/proj.win32/libLocalStorage.vcxproj.filters b/cocos/storage/local-storage/proj.win32/libLocalStorage.vcxproj.filters
new file mode 100644
index 0000000000..b23d606b74
--- /dev/null
+++ b/cocos/storage/local-storage/proj.win32/libLocalStorage.vcxproj.filters
@@ -0,0 +1,21 @@
+
+
+
+
+ {0310200c-b520-4f77-85f6-46f568b10f4d}
+
+
+ {69cfa37c-4b20-409e-ad74-a26314878d8a}
+
+
+
+
+ Source Files
+
+
+
+
+ Header Files
+
+
+
\ No newline at end of file
diff --git a/cocos/storage/local-storage/proj.win32/libLocalStorage.vcxproj.user b/cocos/storage/local-storage/proj.win32/libLocalStorage.vcxproj.user
new file mode 100644
index 0000000000..a375ae3527
--- /dev/null
+++ b/cocos/storage/local-storage/proj.win32/libLocalStorage.vcxproj.user
@@ -0,0 +1,4 @@
+
+
+
+
\ No newline at end of file
diff --git a/extensions/proj.linux/Makefile b/extensions/proj.linux/Makefile
index 6565ee9b94..fe07e988e5 100644
--- a/extensions/proj.linux/Makefile
+++ b/extensions/proj.linux/Makefile
@@ -1,146 +1,36 @@
TARGET = libextension.a
-COCOS_ROOT=../..
+INCLUDES = -I..
-INCLUDES = -I$(COCOS_ROOT)/external \
- -I$(COCOS_ROOT)/external/chipmunk/include/chipmunk \
- -I$(COCOS_ROOT)/audio/include \
- -I.. \
- -I../CCBReader \
- -I../GUI/CCControlExtension \
- -I../GUI/CCEditBox \
- -I../network \
- -I../CocoStudio/Components \
- -I../CocoStudio/Armature
+SOURCES = \
+assets-manager/AssetsManager.cpp \
+GUI/CCControlExtension/CCControl.cpp \
+GUI/CCControlExtension/CCControlButton.cpp \
+GUI/CCControlExtension/CCControlColourPicker.cpp \
+GUI/CCControlExtension/CCControlHuePicker.cpp \
+GUI/CCControlExtension/CCControlPotentiometer.cpp \
+GUI/CCControlExtension/CCControlSaturationBrightnessPicker.cpp \
+GUI/CCControlExtension/CCControlSlider.cpp \
+GUI/CCControlExtension/CCControlStepper.cpp \
+GUI/CCControlExtension/CCControlSwitch.cpp \
+GUI/CCControlExtension/CCControlUtils.cpp \
+GUI/CCControlExtension/CCInvocation.cpp \
+GUI/CCControlExtension/CCScale9Sprite.cpp \
+GUI/CCEditBox/CCEditBox.cpp \
+GUI/CCEditBox/CCEditBoxImplAndroid.cpp \
+GUI/CCEditBox/CCEditBoxImplNone.cpp \
+GUI/CCEditBox/CCEditBoxImplTizen.cpp \
+GUI/CCEditBox/CCEditBoxImplWin.cpp \
+GUI/CCScrollView/CCScrollView.cpp \
+GUI/CCScrollView/CCSorting.cpp \
+GUI/CCScrollView/CCTableView.cpp \
+GUI/CCScrollView/CCTableViewCell.cpp \
+physics-nodes/CCPhysicsDebugNode.cpp \
+physics-nodes/CCPhysicsSprite.cpp
-SOURCES = ../CCBReader/CCBFileLoader.cpp \
-../CCBReader/CCMenuItemImageLoader.cpp \
-../CCBReader/CCBReader.cpp \
-../CCBReader/CCMenuItemLoader.cpp \
-../CCBReader/CCControlButtonLoader.cpp \
-../CCBReader/CCNodeLoader.cpp \
-../CCBReader/CCControlLoader.cpp \
-../CCBReader/CCNodeLoaderLibrary.cpp \
-../CCBReader/CCLabelBMFontLoader.cpp \
-../CCBReader/CCParticleSystemQuadLoader.cpp \
-../CCBReader/CCLabelTTFLoader.cpp \
-../CCBReader/CCScale9SpriteLoader.cpp \
-../CCBReader/CCLayerColorLoader.cpp \
-../CCBReader/CCScrollViewLoader.cpp \
-../CCBReader/CCLayerGradientLoader.cpp \
-../CCBReader/CCSpriteLoader.cpp \
-../CCBReader/CCLayerLoader.cpp \
-../CCBReader/CCBAnimationManager.cpp \
-../CCBReader/CCBKeyframe.cpp \
-../CCBReader/CCBSequence.cpp \
-../CCBReader/CCBSequenceProperty.cpp \
-../CCBReader/CCBValue.cpp \
-../CCBReader/CCNode+CCBRelativePositioning.cpp \
-../GUI/CCScrollView/CCScrollView.cpp \
-../GUI/CCScrollView/CCSorting.cpp \
-../GUI/CCScrollView/CCTableView.cpp \
-../GUI/CCScrollView/CCTableViewCell.cpp \
-../GUI/CCControlExtension/CCControlButton.cpp \
-../GUI/CCControlExtension/CCControlColourPicker.cpp \
-../GUI/CCControlExtension/CCControl.cpp \
-../GUI/CCControlExtension/CCControlHuePicker.cpp \
-../GUI/CCControlExtension/CCControlSaturationBrightnessPicker.cpp \
-../GUI/CCControlExtension/CCControlSlider.cpp \
-../GUI/CCControlExtension/CCControlSwitch.cpp \
-../GUI/CCControlExtension/CCControlUtils.cpp \
-../GUI/CCControlExtension/CCInvocation.cpp \
-../GUI/CCControlExtension/CCScale9Sprite.cpp \
-../GUI/CCControlExtension/CCControlPotentiometer.cpp \
-../GUI/CCControlExtension/CCControlStepper.cpp \
-../GUI/CCEditBox/CCEditBox.cpp \
-../GUI/CCEditBox/CCEditBoxImplNone.cpp \
-../network/HttpClient.cpp \
-../physics_nodes/CCPhysicsDebugNode.cpp \
-../physics_nodes/CCPhysicsSprite.cpp \
-../CocoStudio/Armature/CCArmature.cpp \
-../CocoStudio/Armature/CCBone.cpp \
-../CocoStudio/Armature/animation/CCArmatureAnimation.cpp \
-../CocoStudio/Armature/animation/CCProcessBase.cpp \
-../CocoStudio/Armature/animation/CCTween.cpp \
-../CocoStudio/Armature/datas/CCDatas.cpp \
-../CocoStudio/Armature/display/CCBatchNode.cpp \
-../CocoStudio/Armature/display/CCDecorativeDisplay.cpp \
-../CocoStudio/Armature/display/CCDisplayFactory.cpp \
-../CocoStudio/Armature/display/CCDisplayManager.cpp \
-../CocoStudio/Armature/display/CCSkin.cpp \
-../CocoStudio/Armature/physics/CCColliderDetector.cpp \
-../CocoStudio/Armature/utils/CCArmatureDefine.cpp \
-../CocoStudio/Armature/utils/CCArmatureDataManager.cpp \
-../CocoStudio/Armature/utils/CCDataReaderHelper.cpp \
-../CocoStudio/Armature/utils/CCSpriteFrameCacheHelper.cpp \
-../CocoStudio/Armature/utils/CCTransformHelp.cpp \
-../CocoStudio/Armature/utils/CCTweenFunction.cpp \
-../CocoStudio/Armature/utils/CCUtilMath.cpp \
-../CocoStudio/Components/CCComAttribute.cpp \
-../CocoStudio/Components/CCComAudio.cpp \
-../CocoStudio/Components/CCComController.cpp \
-../CocoStudio/Components/CCComRender.cpp \
-../CocoStudio/Components/CCInputDelegate.cpp \
-../CocoStudio/GUI/BaseClasses/UIRootWidget.cpp \
-../CocoStudio/GUI/BaseClasses/UIWidget.cpp \
-../CocoStudio/GUI/Layouts/Layout.cpp \
-../CocoStudio/GUI/Layouts/LayoutParameter.cpp \
-../CocoStudio/GUI/Layouts/UILayoutDefine.cpp \
-../CocoStudio/GUI/System/CocosGUI.cpp \
-../CocoStudio/GUI/System/UIHelper.cpp \
-../CocoStudio/GUI/System/UIInputManager.cpp \
-../CocoStudio/GUI/System/UILayer.cpp \
-../CocoStudio/GUI/UIWidgets/UIButton.cpp \
-../CocoStudio/GUI/UIWidgets/UICheckBox.cpp \
-../CocoStudio/GUI/UIWidgets/UIImageView.cpp \
-../CocoStudio/GUI/UIWidgets/UILabel.cpp \
-../CocoStudio/GUI/UIWidgets/UILabelAtlas.cpp \
-../CocoStudio/GUI/UIWidgets/UILabelBMFont.cpp \
-../CocoStudio/GUI/UIWidgets/UILoadingBar.cpp \
-../CocoStudio/GUI/UIWidgets/UISlider.cpp \
-../CocoStudio/GUI/UIWidgets/UITextField.cpp \
-../CocoStudio/GUI/UIWidgets/ScrollWidget/UIDragPanel.cpp \
-../CocoStudio/GUI/UIWidgets/ScrollWidget/UIListView.cpp \
-../CocoStudio/GUI/UIWidgets/ScrollWidget/UIPageView.cpp \
-../CocoStudio/GUI/UIWidgets/ScrollWidget/UIScrollView.cpp \
-../CocoStudio/Json/CSContentJsonDictionary.cpp \
-../CocoStudio/Json/DictionaryHelper.cpp \
-../CocoStudio/Json/lib_json/json_reader.cpp \
-../CocoStudio/Json/lib_json/json_value.cpp \
-../CocoStudio/Json/lib_json/json_writer.cpp \
-../CocoStudio/Reader/CCSGUIReader.cpp \
-../CocoStudio/Reader/CCSSceneReader.cpp \
-../CocoStudio/Action/CCActionFrame.cpp \
-../CocoStudio/Action/CCActionFrameEasing.cpp \
-../CocoStudio/Action/CCActionManagerEx.cpp \
-../CocoStudio/Action/CCActionNode.cpp \
-../CocoStudio/Action/CCActionObject.cpp \
-../spine/Animation.cpp \
-../spine/AnimationState.cpp \
-../spine/AnimationStateData.cpp \
-../spine/Atlas.cpp \
-../spine/AtlasAttachmentLoader.cpp \
-../spine/Attachment.cpp \
-../spine/AttachmentLoader.cpp \
-../spine/Bone.cpp \
-../spine/BoneData.cpp \
-../spine/Json.cpp \
-../spine/RegionAttachment.cpp \
-../spine/Skeleton.cpp \
-../spine/SkeletonData.cpp \
-../spine/SkeletonJson.cpp \
-../spine/Skin.cpp \
-../spine/Slot.cpp \
-../spine/SlotData.cpp \
-../spine/extension.cpp \
-../spine/spine-cocos2dx.cpp \
-../spine/CCSkeleton.cpp \
-../spine/CCSkeletonAnimation.cpp \
-../CCDeprecated-ext.cpp
+include ../../cocos/2d/cocos2dx.mk
-include $(COCOS_ROOT)/cocos2dx/proj.linux/cocos2dx.mk
-
-CXXFLAGS += -Wno-multichar
+CXXFLAGS += -Wno-multichar -Wno-unused-result
TARGET := $(LIB_DIR)/$(TARGET)
diff --git a/extensions/proj.linux/extensions.prf b/extensions/proj.linux/extensions.prf
deleted file mode 100644
index d399b91272..0000000000
--- a/extensions/proj.linux/extensions.prf
+++ /dev/null
@@ -1,20 +0,0 @@
-################################################################################
-# Do not include this file in your project: see cocos2dx.pri.
-################################################################################
-
-linux {
- # We will compile extensions on demand using Makefile.
- build_extension.name = Build extension static library
- build_extension.input = $$PWD/Makefile
- build_extension.output = $$CC_LIBRARY_DIR/libextension.a
- build_extension.target = $$CC_LIBRARY_DIR/libextension.a
- build_extension.CONFIG = no_link target_predeps
- build_extension.commands = cd $$PWD && make $$CC_MAKE_FLAGS
-
- QMAKE_EXTRA_COMPILERS += build_extension
- QMAKE_EXTRA_TARGETS += build_extension
-
- PRE_TARGETDEPS += $$CC_LIBRARY_DIR/libextension.a
- LIBS += -Wl,-Bstatic -lextension -Wl,-Bdynamic
-}
-
diff --git a/extensions/proj.win32/libExtensions.vcxproj b/extensions/proj.win32/libExtensions.vcxproj
index e1c2ea14a1..7a3615643f 100644
--- a/extensions/proj.win32/libExtensions.vcxproj
+++ b/extensions/proj.win32/libExtensions.vcxproj
@@ -35,9 +35,11 @@
+
+
@@ -62,7 +64,7 @@
Disabled
- $(MSBuildProgramFiles32)\Microsoft SDKs\Windows\v7.1A\include;$(ProjectDir)..\..\external\chipmunk\include\chipmunk;$(ProjectDir)..\..\external\sqlite3\include;$(ProjectDir)..\..\external;$(ProjectDir)..\..\external\libwebsockets\win32\include;$(ProjectDir)..\..\cocos2dx;$(ProjectDir)..\..\cocos2dx\include;$(ProjectDir)..\..\cocos2dx\kazmath\include;$(ProjectDir)..\..\cocos2dx\platform\win32;$(ProjectDir)..\..\cocos2dx\platform\third_party\win32;$(ProjectDir)..\..\cocos2dx\platform\third_party\win32\pthread;$(ProjectDir)..\..\cocos2dx\platform\third_party\win32\OGLES;$(ProjectDir)..\..\cocos2dx\platform\third_party\win32\zlib;$(ProjectDir)..\..\audio\include;..\;%(AdditionalIncludeDirectories)
+ $(MSBuildProgramFiles32)\Microsoft SDKs\Windows\v7.1A\include;$(EngineRoot);$(EngineRoot)cocos\audio\include;$(EngineRoot)external;$(EngineRoot)external\unzip;$(EngineRoot)external\chipmunk\include\chipmunk;$(EngineRoot)external\curl\include\win32;$(EngineRoot)external\sqlite3\include;$(EngineRoot)external\libwebsockets\win32\include;$(EngineRoot)external\win32-specific\zlib\include;..\;%(AdditionalIncludeDirectories)
WIN32;_WINDOWS;_DEBUG;_LIB;COCOS2D_DEBUG=1;CC_ENABLE_CHIPMUNK_INTEGRATION=1;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)
false
EnableFastChecks
@@ -79,7 +81,7 @@
MaxSpeed
true
- $(MSBuildProgramFiles32)\Microsoft SDKs\Windows\v7.1A\include;$(ProjectDir)..\..\external\chipmunk\include\chipmunk;$(ProjectDir)..\..\external\sqlite3\include;$(ProjectDir)..\..\external;$(ProjectDir)..\..\external\libwebsockets\win32\include;$(ProjectDir)..\..\cocos2dx;$(ProjectDir)..\..\cocos2dx\include;$(ProjectDir)..\..\cocos2dx\kazmath\include;$(ProjectDir)..\..\cocos2dx\platform\win32;$(ProjectDir)..\..\cocos2dx\platform\third_party\win32;$(ProjectDir)..\..\cocos2dx\platform\third_party\win32\pthread;$(ProjectDir)..\..\cocos2dx\platform\third_party\win32\OGLES;$(ProjectDir)..\..\cocos2dx\platform\third_party\win32\zlib;$(ProjectDir)..\..\audio\include;..\;%(AdditionalIncludeDirectories)
+ $(MSBuildProgramFiles32)\Microsoft SDKs\Windows\v7.1A\include;$(EngineRoot);$(EngineRoot)cocos\audio\include;$(EngineRoot)external;$(EngineRoot)external\unzip;$(EngineRoot)external\chipmunk\include\chipmunk;$(EngineRoot)external\curl\include\win32;$(EngineRoot)external\sqlite3\include;$(EngineRoot)external\libwebsockets\win32\include;$(EngineRoot)external\win32-specific\zlib\include;..\;%(AdditionalIncludeDirectories)
WIN32;_WINDOWS;NDEBUG;_LIB;CC_ENABLE_CHIPMUNK_INTEGRATION=1;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)
MultiThreadedDLL
true
@@ -92,89 +94,7 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
@@ -193,130 +113,12 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
@@ -339,44 +141,10 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
-
-
-
-
-
-
diff --git a/extensions/proj.win32/libExtensions.vcxproj.filters b/extensions/proj.win32/libExtensions.vcxproj.filters
index e6d6f2354c..d43ac6197c 100644
--- a/extensions/proj.win32/libExtensions.vcxproj.filters
+++ b/extensions/proj.win32/libExtensions.vcxproj.filters
@@ -1,9 +1,6 @@
-
- {d37545ef-285b-4315-9fca-40da6fc2a6c9}
-
{202b519b-b5e0-499f-b3b8-ed5da144b248}
@@ -16,83 +13,17 @@
{d5806151-7ae1-4fef-af5a-2fa1d1c7377b}
-
- {4da8061d-80f3-45fd-aa7e-2c0a96701b79}
-
{5d186e3d-0aaf-4904-a5d8-e5cb0f35f4cc}
{49487dbe-5758-436a-b014-8e2edc6b33ae}
-
- {ff4b5934-99d4-4ea7-9f50-a774192d9ca9}
-
-
- {2a7741ff-87a5-41c8-8e51-d7a1cf0c8e4d}
-
-
- {87250d95-2afd-45e7-bc9d-760478c4e709}
-
-
- {5258a1e1-5d50-4fee-9216-da08d2ec19de}
-
-
- {cf3469d5-421b-4990-a9be-4cd95129fb73}
-
-
- {f48d1291-33fe-49a1-8f9f-4d203e782d4a}
-
-
- {043f8489-822e-43c8-8d9d-5d171a701663}
-
-
- {b8c65820-b5c9-4bd6-83c8-180fdc6100fb}
-
-
- {fa9a165e-cc7c-45e9-ae4f-cae3c2f16e6a}
-
-
- {5e5b3d7d-62a7-493e-a130-ed72ee7c65f2}
-
-
- {d797adcd-2e59-4486-944e-b3e7f3a954b8}
-
-
- {a824cea6-86d7-4230-8738-513a869a1882}
-
-
- {d305abea-33cc-4ae8-b78d-b5fb59927e59}
-
-
- {9af947f9-84cd-4051-953e-67291da6528c}
-
-
- {9713ac75-d9ba-494a-8dcf-03e30f8ee2b2}
-
-
- {2d6f3e38-bb46-4bec-9ec1-73d90cefb3ba}
-
-
- {7556b22b-b7ca-4f3b-938d-0f9c8047892c}
-
-
- {f66c34f1-f75a-4f06-9788-c48972bc0ff2}
-
-
- {1c44450b-d06e-4638-9f0c-1ff62e67ec84}
-
-
- {bec3cdd7-e05b-42d3-97b1-86e26a528a2d}
-
GUI\CCScrollView
-
- network
-
GUI\CCScrollView
@@ -102,75 +33,6 @@
GUI\CCScrollView
-
- CCBReader
-
-
- CCBReader
-
-
- CCBReader
-
-
- CCBReader
-
-
- CCBReader
-
-
- CCBReader
-
-
- CCBReader
-
-
- CCBReader
-
-
- CCBReader
-
-
- CCBReader
-
-
- CCBReader
-
-
- CCBReader
-
-
- CCBReader
-
-
- CCBReader
-
-
- CCBReader
-
-
- CCBReader
-
-
- CCBReader
-
-
- CCBReader
-
-
- CCBReader
-
-
- CCBReader
-
-
- CCBReader
-
-
- CCBReader
-
-
- CCBReader
-
GUI\CCControlExtension
@@ -207,15 +69,6 @@
GUI\CCControlExtension
-
- physics_nodes
-
-
- physics_nodes
-
-
- LocalStorage
-
GUI\CCEditBox
@@ -225,324 +78,14 @@
GUI\CCEditBox
-
+
AssetsManager
-
- spine
+
+ physics_nodes
-
- spine
-
-
- spine
-
-
- spine
-
-
- spine
-
-
- spine
-
-
- spine
-
-
- spine
-
-
- spine
-
-
- spine
-
-
- spine
-
-
- spine
-
-
- spine
-
-
- spine
-
-
- spine
-
-
- spine
-
-
- spine
-
-
- spine
-
-
- spine
-
-
- spine
-
-
- spine
-
-
- network
-
-
- network
-
-
-
- CocoStudio\Components
-
-
- CocoStudio\Components
-
-
- CocoStudio\Components
-
-
- CocoStudio\Components
-
-
- CocoStudio\Armature\animation
-
-
- CocoStudio\Armature\animation
-
-
- CocoStudio\Armature\animation
-
-
- CocoStudio\Armature\datas
-
-
- CocoStudio\Armature\display
-
-
- CocoStudio\Armature\display
-
-
- CocoStudio\Armature\display
-
-
- CocoStudio\Armature\display
-
-
- CocoStudio\Armature\display
-
-
- CocoStudio\Armature\physics
-
-
- CocoStudio\Armature\utils
-
-
- CocoStudio\Armature\utils
-
-
- CocoStudio\Armature\utils
-
-
- CocoStudio\Armature\utils
-
-
- CocoStudio\Armature\utils
-
-
- CocoStudio\Armature\utils
-
-
- CocoStudio\Armature
-
-
- CocoStudio\Armature
-
-
- CocoStudio\Json
-
-
- CocoStudio\Json
-
-
- CocoStudio\Json\lib_json
-
-
- CocoStudio\Json\lib_json
-
-
- CocoStudio\Json\lib_json
-
-
- CocoStudio\Reader
-
-
- CocoStudio\Components
-
-
- CocoStudio\Armature\utils
-
-
- CocoStudio\GUI\UIWidgets\ScrollWidget
-
-
- CocoStudio\GUI\UIWidgets\ScrollWidget
-
-
- CocoStudio\GUI\UIWidgets\ScrollWidget
-
-
- CocoStudio\GUI\UIWidgets\ScrollWidget
-
-
- CocoStudio\GUI\UIWidgets
-
-
- CocoStudio\GUI\UIWidgets
-
-
- CocoStudio\GUI\UIWidgets
-
-
- CocoStudio\GUI\UIWidgets
-
-
- CocoStudio\GUI\UIWidgets
-
-
- CocoStudio\GUI\UIWidgets
-
-
- CocoStudio\GUI\UIWidgets
-
-
- CocoStudio\GUI\UIWidgets
-
-
- CocoStudio\GUI\UIWidgets
-
-
- CocoStudio\GUI\BaseClasses
-
-
- CocoStudio\GUI\BaseClasses
-
-
- CocoStudio\GUI\Layouts
-
-
- CocoStudio\GUI\Layouts
-
-
- CocoStudio\GUI\Layouts
-
-
- CocoStudio\GUI\System
-
-
- CocoStudio\GUI\System
-
-
- CocoStudio\GUI\System
-
-
- CocoStudio\GUI\System
-
-
- CocoStudio\Reader
-
-
- CocoStudio\GUI\UIWidgets\ScrollWidget
-
-
- CocoStudio\GUI\UIWidgets\ScrollWidget
-
-
- CocoStudio\GUI\UIWidgets\ScrollWidget
-
-
- CocoStudio\GUI\UIWidgets\ScrollWidget
-
-
- CocoStudio\GUI\UIWidgets
-
-
- CocoStudio\GUI\UIWidgets
-
-
- CocoStudio\GUI\UIWidgets
-
-
- CocoStudio\GUI\UIWidgets
-
-
- CocoStudio\GUI\UIWidgets
-
-
- CocoStudio\GUI\UIWidgets
-
-
- CocoStudio\GUI\UIWidgets
-
-
- CocoStudio\GUI\UIWidgets
-
-
- CocoStudio\GUI\UIWidgets
-
-
- CocoStudio\GUI\BaseClasses
-
-
- CocoStudio\GUI\BaseClasses
-
-
- CocoStudio\GUI\Layouts
-
-
- CocoStudio\GUI\Layouts
-
-
- CocoStudio\GUI\Layouts
-
-
- CocoStudio\GUI\Layouts
-
-
- CocoStudio\GUI\System
-
-
- CocoStudio\GUI\System
-
-
- CocoStudio\GUI\System
-
-
- CocoStudio\GUI\System
-
-
- CocoStudio\Reader
-
-
- CocoStudio\Action
-
-
- CocoStudio\Action
-
-
- CocoStudio\Action
-
-
- CocoStudio\Action
-
-
- CocoStudio\Action
+
+ physics_nodes
@@ -551,15 +94,6 @@
-
- network
-
-
- network
-
-
- network
-
GUI\CCScrollView
@@ -569,87 +103,6 @@
GUI\CCScrollView
-
- CCBReader
-
-
- CCBReader
-
-
- CCBReader
-
-
- CCBReader
-
-
- CCBReader
-
-
- CCBReader
-
-
- CCBReader
-
-
- CCBReader
-
-
- CCBReader
-
-
- CCBReader
-
-
- CCBReader
-
-
- CCBReader
-
-
- CCBReader
-
-
- CCBReader
-
-
- CCBReader
-
-
- CCBReader
-
-
- CCBReader
-
-
- CCBReader
-
-
- CCBReader
-
-
- CCBReader
-
-
- CCBReader
-
-
- CCBReader
-
-
- CCBReader
-
-
- CCBReader
-
-
- CCBReader
-
-
- CCBReader
-
-
- CCBReader
-
GUI\CCControlExtension
@@ -689,15 +142,6 @@
GUI\CCControlExtension
-
- physics_nodes
-
-
- physics_nodes
-
-
- LocalStorage
-
GUI\CCEditBox
@@ -710,292 +154,14 @@
GUI\CCEditBox
-
+
AssetsManager
-
- spine
+
+ physics_nodes
-
- spine
+
+ physics_nodes
-
- spine
-
-
- spine
-
-
- spine
-
-
- spine
-
-
- spine
-
-
- spine
-
-
- spine
-
-
- spine
-
-
- spine
-
-
- spine
-
-
- spine
-
-
- spine
-
-
- spine
-
-
- spine
-
-
- spine
-
-
- spine
-
-
- spine
-
-
- spine
-
-
- spine
-
-
- spine
-
-
- network
-
-
- network
-
-
- CocoStudio\Components
-
-
- CocoStudio\Components
-
-
- CocoStudio\Components
-
-
- CocoStudio\Components
-
-
- CocoStudio\Armature\animation
-
-
- CocoStudio\Armature\animation
-
-
- CocoStudio\Armature\animation
-
-
- CocoStudio\Armature\datas
-
-
- CocoStudio\Armature\display
-
-
- CocoStudio\Armature\display
-
-
- CocoStudio\Armature\display
-
-
- CocoStudio\Armature\display
-
-
- CocoStudio\Armature\display
-
-
- CocoStudio\Armature\physics
-
-
- CocoStudio\Armature\utils
-
-
- CocoStudio\Armature\utils
-
-
- CocoStudio\Armature\utils
-
-
- CocoStudio\Armature\utils
-
-
- CocoStudio\Armature\utils
-
-
- CocoStudio\Armature\utils
-
-
- CocoStudio\Armature\utils
-
-
- CocoStudio\Armature
-
-
- CocoStudio\Armature
-
-
- CocoStudio\Json
-
-
- CocoStudio\Json
-
-
- CocoStudio\Json\lib_json
-
-
- CocoStudio\Json\lib_json
-
-
- CocoStudio\Json\lib_json
-
-
- CocoStudio\Json\lib_json
-
-
- CocoStudio\Json\lib_json
-
-
- CocoStudio\Json\lib_json
-
-
- CocoStudio\Json\lib_json
-
-
- CocoStudio\Json\lib_json
-
-
- CocoStudio\Json\lib_json
-
-
- CocoStudio\Json\lib_json
-
-
- CocoStudio\Reader
-
-
- CocoStudio\Components
-
-
- CocoStudio\GUI\UIWidgets\ScrollWidget
-
-
- CocoStudio\GUI\UIWidgets\ScrollWidget
-
-
- CocoStudio\GUI\UIWidgets\ScrollWidget
-
-
- CocoStudio\GUI\UIWidgets\ScrollWidget
-
-
- CocoStudio\GUI\UIWidgets\ScrollWidget
-
-
- CocoStudio\GUI\UIWidgets
-
-
- CocoStudio\GUI\UIWidgets
-
-
- CocoStudio\GUI\UIWidgets
-
-
- CocoStudio\GUI\UIWidgets
-
-
- CocoStudio\GUI\UIWidgets
-
-
- CocoStudio\GUI\UIWidgets
-
-
- CocoStudio\GUI\UIWidgets
-
-
- CocoStudio\GUI\UIWidgets
-
-
- CocoStudio\GUI\UIWidgets
-
-
- CocoStudio\GUI\BaseClasses
-
-
- CocoStudio\GUI\BaseClasses
-
-
- CocoStudio\GUI\Layouts
-
-
- CocoStudio\GUI\Layouts
-
-
- CocoStudio\GUI\Layouts
-
-
- CocoStudio\GUI\System
-
-
- CocoStudio\GUI\System
-
-
- CocoStudio\GUI\System
-
-
- CocoStudio\GUI\System
-
-
- CocoStudio\Reader
-
-
- CocoStudio\Action
-
-
- CocoStudio\Action
-
-
- CocoStudio\Action
-
-
- CocoStudio\Action
-
-
- CocoStudio\Action
-
-
-
-
- CocoStudio\Json\lib_json
-
-
- CocoStudio\Json\lib_json
-
-
- CocoStudio\Json\lib_json
-
-
- CocoStudio\Json\lib_json
-
\ No newline at end of file
diff --git a/external/Box2D/proj.linux/Makefile b/external/Box2D/proj.linux/Makefile
index e430bc9883..b43814ccef 100644
--- a/external/Box2D/proj.linux/Makefile
+++ b/external/Box2D/proj.linux/Makefile
@@ -46,7 +46,7 @@ SOURCES = ../Collision/Shapes/b2ChainShape.cpp \
../Dynamics/b2WorldCallbacks.cpp \
../Rope/b2Rope.cpp
-include ../../../cocos2dx/proj.linux/cocos2dx.mk
+include ../../../cocos/2d/cocos2dx.mk
INCLUDES = -I../..
diff --git a/external/chipmunk/proj.linux/Makefile b/external/chipmunk/proj.linux/Makefile
index b0e5d1f572..a2cb985b7c 100644
--- a/external/chipmunk/proj.linux/Makefile
+++ b/external/chipmunk/proj.linux/Makefile
@@ -28,7 +28,7 @@ SOURCES = ../src/chipmunk.c \
../src/constraints/cpSlideJoint.c \
../src/constraints/cpPinJoint.c \
-include ../../../cocos2dx/proj.linux/cocos2dx.mk
+include ../../../cocos/2d/cocos2dx.mk
TARGET = $(LIB_DIR)/libchipmunk.a
INCLUDES = -I../include/chipmunk
diff --git a/samples/Cpp/AssetsManagerTest/Classes/AppDelegate.cpp b/samples/Cpp/AssetsManagerTest/Classes/AppDelegate.cpp
index 8dadda36ac..31808c17b0 100644
--- a/samples/Cpp/AssetsManagerTest/Classes/AppDelegate.cpp
+++ b/samples/Cpp/AssetsManagerTest/Classes/AppDelegate.cpp
@@ -45,6 +45,7 @@ bool AppDelegate::applicationDidFinishLaunching()
sc->addRegisterCallback(register_all_cocos2dx);
sc->addRegisterCallback(register_cocos2dx_js_extensions);
+
sc->start();
auto scene = Scene::create();
diff --git a/samples/Cpp/AssetsManagerTest/proj.android/build_native.cmd b/samples/Cpp/AssetsManagerTest/proj.android/build_native.cmd
index 253059b2f8..d397bbc901 100644
--- a/samples/Cpp/AssetsManagerTest/proj.android/build_native.cmd
+++ b/samples/Cpp/AssetsManagerTest/proj.android/build_native.cmd
@@ -54,7 +54,7 @@ exit /b 1
set COCOS2DX_ROOT=%~dp0..\..\..\..
set APP_ROOT=%~dp0..
set APP_ANDROID_ROOT=%~dp0
-set BINDINGS_JS_ROOT=%APP_ROOT%\..\..\scripting\javascript\bindings\js
+set BINDINGS_JS_ROOT=%COCOS2DX_ROOT%\cocos\scripting\javascript\script
if "%buildexternalsfromsource%"=="1" (goto :MODULE1) else (goto :MODULE2)
:MODULE1
@@ -63,7 +63,7 @@ if "%buildexternalsfromsource%"=="1" (goto :MODULE1) else (goto :MODULE2)
goto :COPY_RES
:MODULE2
echo "Using prebuilt externals"
- set NDK_MODULE_PATH=%COCOS2DX_ROOT%;%COCOS2DX_ROOT%\cocos2dx\platform\third_party\android\prebuilt
+ set NDK_MODULE_PATH=%COCOS2DX_ROOT%;%COCOS2DX_ROOT%\cocos;%COCOS2DX_ROOT%\external
:COPY_RES
echo NDK_ROOT = %NDK_ROOT%
@@ -76,7 +76,6 @@ rem make sure assets is exist
if exist %APP_ANDROID_ROOT%\assets rd /q /s %APP_ANDROID_ROOT%\assets
mkdir %APP_ANDROID_ROOT%\assets
-mkdir %APP_ANDROID_ROOT%\assets\res
rem copy Resources/* into assets' root
xcopy /e /q /r /y %APP_ROOT%\Resources\* %APP_ANDROID_ROOT%\assets
@@ -84,5 +83,5 @@ xcopy /e /q /r /y %APP_ROOT%\Resources\* %APP_ANDROID_ROOT%\assets
rem copy bindings/*.js into assets' root
xcopy /e /q /r /y %BINDINGS_JS_ROOT%\* %APP_ANDROID_ROOT%\assets
-call %NDK_ROOT%\ndk-build.cmd NDK_LOG=0 V=0
+call %NDK_ROOT%\ndk-build.cmd NDK_LOG=0 V=0 %*
pause
\ No newline at end of file
diff --git a/samples/Cpp/AssetsManagerTest/proj.android/project.properties b/samples/Cpp/AssetsManagerTest/proj.android/project.properties
index 5c08afb38c..f7e62936d0 100644
--- a/samples/Cpp/AssetsManagerTest/proj.android/project.properties
+++ b/samples/Cpp/AssetsManagerTest/proj.android/project.properties
@@ -11,5 +11,5 @@
#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
# Project target.
-target=android-13
-android.library.reference.1=../../../../cocos2dx/platform/android/java
+target=android-10
+android.library.reference.1=../../../../cocos/2d/platform/android/java
diff --git a/samples/Cpp/AssetsManagerTest/proj.win32/AssetsManagerTest.vcxproj b/samples/Cpp/AssetsManagerTest/proj.win32/AssetsManagerTest.vcxproj
index 9fdc714c49..b46bf264ae 100644
--- a/samples/Cpp/AssetsManagerTest/proj.win32/AssetsManagerTest.vcxproj
+++ b/samples/Cpp/AssetsManagerTest/proj.win32/AssetsManagerTest.vcxproj
@@ -34,11 +34,13 @@
-
+
+
-
+
+
@@ -77,7 +79,7 @@
Disabled
- $(ProjectDir)..\Classes;$(ProjectDir)..\..\..\..\scripting\javascript\spidermonkey-win32\include;$(ProjectDir)..\..\..\..\external\chipmunk\include\chipmunk;$(ProjectDir)..\..\..\..\extensions;$(ProjectDir)..\..\..\..\scripting\auto-generated\js-bindings;$(ProjectDir)..\..\..\..\scripting\javascript\bindings;$(ProjectDir)..\..\..\..\cocos2dx;$(ProjectDir)..\..\..\..\cocos2dx\include;$(ProjectDir)..\..\..\..\cocos2dx\kazmath\include;$(ProjectDir)..\..\..\..\cocos2dx\platform\win32;$(ProjectDir)..\..\..\..\cocos2dx\platform\third_party\win32;$(ProjectDir)..\..\..\..\cocos2dx\platform\third_party\win32\OGLES;$(ProjectDir)..\..\..\..\cocos2dx\platform\third_party\win32\pthread;$(ProjectDir)..\..\..\..\audio\include;%(AdditionalIncludeDirectories)
+ $(ProjectDir)..\Classes;$(EngineRoot);$(EngineRoot)external\spidermonkey\include\win32;$(EngineRoot)external\chipmunk\include\chipmunk;$(EngineRoot)extensions;$(EngineRoot)cocos\scripting\javascript\bindings;$(EngineRoot)cocos\scripting\auto-generated\js-bindings;$(EngineRoot)cocos\audio\include;%(AdditionalIncludeDirectories)
WIN32;_WINDOWS;STRICT;DEBUG;_DEBUG;XP_WIN;JS_HAVE___INTN;JS_INTPTR_TYPE=int;COCOS2D_DEBUG=1;COCOS2D_JAVASCRIPT=1;CC_ENABLE_CHIPMUNK_INTEGRATION=1;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)
false
EnableFastChecks
@@ -96,11 +98,11 @@
if not exist "$(OutDir)" mkdir "$(OutDir)"
-xcopy /Y /Q "$(ProjectDir)..\..\..\..\scripting\javascript\spidermonkey-win32\lib\*.*" "$(OutDir)"
+xcopy /Y /Q "$(ProjectDir)..\..\..\..\external\spidermonkey\prebuilt\win32\*.*" "$(OutDir)"
- libcocos2d.lib;libExtensions.lib;libCocosDenshion.lib;libchipmunk.lib;libJSBinding.lib;mozjs-23.0.lib;ws2_32.lib;sqlite3.lib;libcurl_imp.lib;%(AdditionalDependencies)
+ mozjs-23.0.lib;ws2_32.lib;sqlite3.lib;libcurl_imp.lib;%(AdditionalDependencies)
$(OutDir);%(AdditionalLibraryDirectories)
true
Windows
@@ -110,7 +112,7 @@ xcopy /Y /Q "$(ProjectDir)..\..\..\..\scripting\javascript\spidermonkey-win32\li
if not exist "$(OutDir)" mkdir "$(OutDir)"
if exist "$(OutDir)\AssetsManagerTestRes" rd /s /q "$(OutDir)\AssetsManagerTestRes"
mkdir "$(OutDir)\AssetsManagerTestRes"
-xcopy "$(ProjectDir)..\..\..\..\scripting\javascript\bindings\js\*.js" "$(OutDir)\AssetsManagerTestRes\" /e /Y
+xcopy "$(ProjectDir)..\..\..\..\cocos\scripting\javascript\script\*.js" "$(OutDir)\AssetsManagerTestRes\" /e /Y
xcopy "$(ProjectDir)..\Resources" "$(OutDir)\AssetsManagerTestRes\" /e /Y
@@ -131,7 +133,7 @@ xcopy "$(ProjectDir)..\Resources" "$(OutDir)\AssetsManagerTestRes\" /e /Yres_p.c
- $(ProjectDir)..\Classes;$(ProjectDir)..\..\..\..\scripting\javascript\spidermonkey-win32\include;$(ProjectDir)..\..\..\..\external\chipmunk\include\chipmunk;$(ProjectDir)..\..\..\..\extensions;$(ProjectDir)..\..\..\..\scripting\auto-generated\js-bindings;$(ProjectDir)..\..\..\..\scripting\javascript\bindings;$(ProjectDir)..\..\..\..\cocos2dx;$(ProjectDir)..\..\..\..\cocos2dx\include;$(ProjectDir)..\..\..\..\cocos2dx\kazmath\include;$(ProjectDir)..\..\..\..\cocos2dx\platform\win32;$(ProjectDir)..\..\..\..\cocos2dx\platform\third_party\win32;$(ProjectDir)..\..\..\..\cocos2dx\platform\third_party\win32\OGLES;$(ProjectDir)..\..\..\..\cocos2dx\platform\third_party\win32\pthread;$(ProjectDir)..\..\..\..\audio\include;%(AdditionalIncludeDirectories)
+ $(ProjectDir)..\Classes;$(EngineRoot);$(EngineRoot)external\spidermonkey\include\win32;$(EngineRoot)external\chipmunk\include\chipmunk;$(EngineRoot)extensions;$(EngineRoot)cocos\scripting\javascript\bindings;$(EngineRoot)cocos\scripting\auto-generated\js-bindings;$(EngineRoot)cocos\audio\include;%(AdditionalIncludeDirectories)
WIN32;_WINDOWS;STRICT;NDEBUG;XP_WIN;JS_HAVE___INTN;JS_INTPTR_TYPE=int;COCOS2D_JAVASCRIPT=1;CC_ENABLE_CHIPMUNK_INTEGRATION=1;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)
@@ -151,20 +153,21 @@ xcopy "$(ProjectDir)..\Resources" "$(OutDir)\AssetsManagerTestRes\" /e /Y
if not exist "$(OutDir)" mkdir "$(OutDir)"
-xcopy /Y /Q "$(ProjectDir)..\..\..\..\scripting\javascript\spidermonkey-win32\lib\*.*" "$(OutDir)"
+xcopy /Y /Q "$(EngineRoot)external\spidermonkey\prebuilt\win32\*.*" "$(OutDir)"
- libcocos2d.lib;libExtensions.lib;libCocosDenshion.lib;libchipmunk.lib;libJSBinding.lib;mozjs-23.0.lib;ws2_32.lib;sqlite3.lib;libcurl_imp.lib;%(AdditionalDependencies)
+ mozjs-23.0.lib;ws2_32.lib;sqlite3.lib;libcurl_imp.lib;%(AdditionalDependencies)
$(OutDir);%(AdditionalLibraryDirectories)
Windows
MachineX86
+ true
if not exist "$(OutDir)" mkdir "$(OutDir)"
if exist "$(OutDir)\AssetsManagerTestRes" rd /s /q "$(OutDir)\AssetsManagerTestRes"
mkdir "$(OutDir)\AssetsManagerTestRes"
-xcopy "$(ProjectDir)..\..\..\..\scripting\javascript\bindings\js\*.js" "$(OutDir)\AssetsManagerTestRes\" /e /Y
+xcopy "$(ProjectDir)..\..\..\..\cocos\scripting\javascript\script\*.js" "$(OutDir)\AssetsManagerTestRes\" /e /Y
xcopy "$(ProjectDir)..\Resources" "$(OutDir)\AssetsManagerTestRes\" /e /Y
Copy js and resource files.
@@ -185,13 +188,27 @@ xcopy "$(ProjectDir)..\Resources" "$(OutDir)\AssetsManagerTestRes\" /e /Y
-
+
{98a51ba8-fc3a-415b-ac8f-8c7bd464e93e}
false
-
+
{f8edd7fa-9a51-4e80-baeb-860825d2eac6}
- false
+
+
+ {625f7391-9a91-48a1-8cfc-79508c822637}
+
+
+ {39379840-825a-45a0-b363-c09ffef864bd}
+
+
+ {632a8f38-d0f0-4d22-86b3-d69f5e6bf63a}
+
+
+ {21b2c324-891f-48ea-ad1a-5ae13de12e28}
+
+
+ {207bc7a9-ccf1-4f2f-a04d-45f72242ae25}
diff --git a/samples/Cpp/HelloCpp/proj.android/build_native.cmd b/samples/Cpp/HelloCpp/proj.android/build_native.cmd
index 041749c380..f18ac5f170 100644
--- a/samples/Cpp/HelloCpp/proj.android/build_native.cmd
+++ b/samples/Cpp/HelloCpp/proj.android/build_native.cmd
@@ -62,7 +62,7 @@ if "%buildexternalsfromsource%"=="1" (goto :MODULE1) else (goto :MODULE2)
goto :COPY_RES
:MODULE2
echo "Using prebuilt externals"
- set NDK_MODULE_PATH=%COCOS2DX_ROOT%;%COCOS2DX_ROOT%\cocos2dx\platform\third_party\android\prebuilt
+ set NDK_MODULE_PATH=%COCOS2DX_ROOT%\external;%COCOS2DX_ROOT%\cocos
:COPY_RES
echo NDK_ROOT = %NDK_ROOT%
@@ -75,10 +75,9 @@ rem make sure assets is exist
if exist %APP_ANDROID_ROOT%\assets rd /q /s %APP_ANDROID_ROOT%\assets
mkdir %APP_ANDROID_ROOT%\assets
-mkdir %APP_ANDROID_ROOT%\assets\res
rem copy Resources/* into assets' root
xcopy /e /q /r /y %APP_ROOT%\Resources\* %APP_ANDROID_ROOT%\assets
-call %NDK_ROOT%\ndk-build.cmd NDK_LOG=0 V=0
+call %NDK_ROOT%\ndk-build.cmd NDK_LOG=0 V=0 %*
pause
\ No newline at end of file
diff --git a/samples/Cpp/HelloCpp/proj.android/project.properties b/samples/Cpp/HelloCpp/proj.android/project.properties
index 088495876a..0a6dc6664d 100644
--- a/samples/Cpp/HelloCpp/proj.android/project.properties
+++ b/samples/Cpp/HelloCpp/proj.android/project.properties
@@ -8,7 +8,6 @@
# project structure.
# Project target.
-target=android-13
+target=android-10
-android.library.reference.1=../../../../cocos2dx/platform/android/java
-android.library=false
+android.library.reference.1=../../../../cocos/2d/platform/android/java
diff --git a/samples/Cpp/HelloCpp/proj.linux/Makefile b/samples/Cpp/HelloCpp/proj.linux/Makefile
index 178fa06a86..0548290a52 100644
--- a/samples/Cpp/HelloCpp/proj.linux/Makefile
+++ b/samples/Cpp/HelloCpp/proj.linux/Makefile
@@ -7,7 +7,7 @@ SOURCES = main.cpp \
../Classes/HelloWorldScene.cpp
COCOS_ROOT = ../../../..
-include $(COCOS_ROOT)/cocos2dx/proj.linux/cocos2dx.mk
+include $(COCOS_ROOT)/cocos/2d/cocos2dx.mk
SHAREDLIBS += -lcocos2d
COCOS_LIBS = $(LIB_DIR)/libcocos2d.so
diff --git a/samples/Cpp/HelloCpp/proj.win32/HelloCpp.vcxproj b/samples/Cpp/HelloCpp/proj.win32/HelloCpp.vcxproj
index 1f00dbf6ea..6da099a164 100644
--- a/samples/Cpp/HelloCpp/proj.win32/HelloCpp.vcxproj
+++ b/samples/Cpp/HelloCpp/proj.win32/HelloCpp.vcxproj
@@ -36,11 +36,12 @@
-
+
+
-
-
-
+
+
+
@@ -67,7 +68,7 @@
Disabled
- $(ProjectDir)..\..\..\..\cocos2dx;$(ProjectDir)..\..\..\..\cocos2dx\include;$(ProjectDir)..\..\..\..\cocos2dx\kazmath\include;$(ProjectDir)..\..\..\..\cocos2dx\platform\win32;$(ProjectDir)..\..\..\..\cocos2dx\platform\third_party\win32\OGLES;..\Classes;$(ProjectDir)..\..\..\..\external\chipmunk\include\chipmunk;%(AdditionalIncludeDirectories)
+ ..\Classes;%(AdditionalIncludeDirectories)
WIN32;_DEBUG;_WINDOWS;COCOS2D_DEBUG=1;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)
true
EnableFastChecks
@@ -95,7 +96,7 @@
MaxSpeed
true
- $(ProjectDir)..\..\..\..\cocos2dx;$(ProjectDir)..\..\..\..\cocos2dx\include;$(ProjectDir)..\..\..\..\cocos2dx\kazmath\include;$(ProjectDir)..\..\..\..\cocos2dx\platform\win32;$(ProjectDir)..\..\..\..\cocos2dx\platform\third_party\win32\OGLES;..\Classes;%(AdditionalIncludeDirectories)
+ ..\Classes;%(AdditionalIncludeDirectories)
WIN32;NDEBUG;_WINDOWS;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)
MultiThreadedDLL
true
@@ -132,13 +133,12 @@
-
+
{98a51ba8-fc3a-415b-ac8f-8c7bd464e93e}
false
-
- {f8edd7fa-9a51-4e80-baeb-860825d2eac6}
- false
+
+ {207bc7a9-ccf1-4f2f-a04d-45f72242ae25}
diff --git a/samples/Cpp/SimpleGame/proj.android/build_native.cmd b/samples/Cpp/SimpleGame/proj.android/build_native.cmd
index cb8929af5b..437e55298f 100644
--- a/samples/Cpp/SimpleGame/proj.android/build_native.cmd
+++ b/samples/Cpp/SimpleGame/proj.android/build_native.cmd
@@ -62,7 +62,7 @@ if "%buildexternalsfromsource%"=="1" (goto :MODULE1) else (goto :MODULE2)
goto :COPY_RES
:MODULE2
echo "Using prebuilt externals"
- set NDK_MODULE_PATH=%COCOS2DX_ROOT%;%COCOS2DX_ROOT%\cocos2dx\platform\third_party\android\prebuilt
+ set NDK_MODULE_PATH=%COCOS2DX_ROOT%;%COCOS2DX_ROOT%\cocos;%COCOS2DX_ROOT%\external
:COPY_RES
echo NDK_ROOT = %NDK_ROOT%
@@ -75,10 +75,9 @@ rem make sure assets is exist
if exist %APP_ANDROID_ROOT%\assets rd /q /s %APP_ANDROID_ROOT%\assets
mkdir %APP_ANDROID_ROOT%\assets
-mkdir %APP_ANDROID_ROOT%\assets\res
rem copy Resources/* into assets' root
xcopy /e /q /r /y %APP_ROOT%\Resources\* %APP_ANDROID_ROOT%\assets
-call %NDK_ROOT%\ndk-build.cmd NDK_LOG=0 V=0
+call %NDK_ROOT%\ndk-build.cmd NDK_LOG=0 V=0 %*
pause
\ No newline at end of file
diff --git a/samples/Cpp/SimpleGame/proj.android/project.properties b/samples/Cpp/SimpleGame/proj.android/project.properties
index 5c08afb38c..f7e62936d0 100644
--- a/samples/Cpp/SimpleGame/proj.android/project.properties
+++ b/samples/Cpp/SimpleGame/proj.android/project.properties
@@ -11,5 +11,5 @@
#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
# Project target.
-target=android-13
-android.library.reference.1=../../../../cocos2dx/platform/android/java
+target=android-10
+android.library.reference.1=../../../../cocos/2d/platform/android/java
diff --git a/samples/Cpp/SimpleGame/proj.linux/Makefile b/samples/Cpp/SimpleGame/proj.linux/Makefile
index 61485ebb7f..9204555b28 100644
--- a/samples/Cpp/SimpleGame/proj.linux/Makefile
+++ b/samples/Cpp/SimpleGame/proj.linux/Makefile
@@ -8,11 +8,10 @@ SOURCES = main.cpp \
../Classes/GameOverScene.cpp
COCOS_ROOT = ../../../..
-include $(COCOS_ROOT)/cocos2dx/proj.linux/cocos2dx.mk
+include $(COCOS_ROOT)/cocos/2d/cocos2dx.mk
SHAREDLIBS += -lcocos2d -lcocosdenshion
-COCOS_LIBS = $(LIB_DIR)/libcocos2d.so $(LIB_DIR)/libcocosdenshion.so
-INCLUDES += -I$(COCOS_ROOT)/audio/include
+INCLUDES += -I$(COCOS_ROOT)/cocos/audio/include
$(TARGET): $(OBJECTS) $(STATICLIBS) $(COCOS_LIBS) $(CORE_MAKEFILE_LIST)
@mkdir -p $(@D)
diff --git a/samples/Cpp/SimpleGame/proj.win32/SimpleGame.vcxproj b/samples/Cpp/SimpleGame/proj.win32/SimpleGame.vcxproj
new file mode 100644
index 0000000000..cb3c74751e
--- /dev/null
+++ b/samples/Cpp/SimpleGame/proj.win32/SimpleGame.vcxproj
@@ -0,0 +1,151 @@
+
+
+
+
+ Debug
+ Win32
+
+
+ Release
+ Win32
+
+
+
+ {E0E282F4-8487-452C-BFAB-CB960EB4D22F}
+ SimpleGame
+ Win32Proj
+
+
+
+ Application
+ Unicode
+ true
+ v100
+ v110
+ v110_xp
+
+
+ Application
+ Unicode
+ v100
+ v110
+ v110_xp
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <_ProjectFileVersion>10.0.40219.1
+ $(SolutionDir)$(Configuration).win32\
+ $(Configuration).win32\
+ true
+ $(SolutionDir)$(Configuration).win32\
+ $(Configuration).win32\
+ false
+ AllRules.ruleset
+
+
+ AllRules.ruleset
+
+
+
+
+ $(MSBuildProgramFiles32)\Microsoft SDKs\Windows\v7.1A\lib;$(LibraryPath)
+
+
+ $(MSBuildProgramFiles32)\Microsoft SDKs\Windows\v7.1A\lib;$(LibraryPath)
+
+
+
+ Disabled
+ ..\Classes;$(EngineRoot)cocos\audio\include;%(AdditionalIncludeDirectories)
+ WIN32;_DEBUG;_WINDOWS;COCOS2D_DEBUG=1;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)
+ true
+ EnableFastChecks
+ MultiThreadedDebugDLL
+
+
+ Level3
+ EditAndContinue
+ 4267;4251;4244;%(DisableSpecificWarnings)
+
+
+ $(OutDir)$(ProjectName).exe
+ $(OutDir);%(AdditionalLibraryDirectories)
+ true
+ Windows
+ MachineX86
+ libcocos2d.lib;libchipmunk.lib;%(AdditionalDependencies)
+
+
+
+
+
+
+
+
+ MaxSpeed
+ true
+ ..\Classes;$(EngineRoot)cocos\audio\include;%(AdditionalIncludeDirectories)
+ WIN32;NDEBUG;_WINDOWS;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)
+ MultiThreadedDLL
+ true
+
+
+ Level3
+ ProgramDatabase
+ 4267;4251;4244;%(DisableSpecificWarnings)
+
+
+ libcocos2d.lib;%(AdditionalDependencies)
+ $(OutDir)$(ProjectName).exe
+ $(OutDir);%(AdditionalLibraryDirectories)
+ true
+ Windows
+ true
+ true
+ MachineX86
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {98a51ba8-fc3a-415b-ac8f-8c7bd464e93e}
+ false
+
+
+ {f8edd7fa-9a51-4e80-baeb-860825d2eac6}
+
+
+ {207bc7a9-ccf1-4f2f-a04d-45f72242ae25}
+
+
+
+
+
+
\ No newline at end of file
diff --git a/samples/Cpp/SimpleGame/proj.win32/SimpleGame.vcxproj.filters b/samples/Cpp/SimpleGame/proj.win32/SimpleGame.vcxproj.filters
new file mode 100644
index 0000000000..cf39562aaa
--- /dev/null
+++ b/samples/Cpp/SimpleGame/proj.win32/SimpleGame.vcxproj.filters
@@ -0,0 +1,41 @@
+
+
+
+
+ {4FC737F1-C7A5-4376-A066-2A32D752A2FF}
+ cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx
+
+
+ {93995380-89BD-4b04-88EB-625FBE52EBFB}
+ h;hpp;hxx;hm;inl;inc;xsd
+
+
+
+
+ Classes
+
+
+ Classes
+
+
+ win32
+
+
+ Classes
+
+
+
+
+ Classes
+
+
+ Classes
+
+
+ win32
+
+
+ Classes
+
+
+
\ No newline at end of file
diff --git a/samples/Cpp/SimpleGame/proj.win32/SimpleGame.vcxproj.user b/samples/Cpp/SimpleGame/proj.win32/SimpleGame.vcxproj.user
new file mode 100644
index 0000000000..32a6296820
--- /dev/null
+++ b/samples/Cpp/SimpleGame/proj.win32/SimpleGame.vcxproj.user
@@ -0,0 +1,11 @@
+
+
+
+ $(ProjectDir)..\Resources
+ WindowsLocalDebugger
+
+
+ $(ProjectDir)..\Resources
+ WindowsLocalDebugger
+
+
\ No newline at end of file
diff --git a/samples/Cpp/SimpleGame/proj.win32/main.cpp b/samples/Cpp/SimpleGame/proj.win32/main.cpp
new file mode 100644
index 0000000000..d819bb02e0
--- /dev/null
+++ b/samples/Cpp/SimpleGame/proj.win32/main.cpp
@@ -0,0 +1,20 @@
+#include "main.h"
+#include "../Classes/AppDelegate.h"
+#include "CCEGLView.h"
+
+USING_NS_CC;
+
+int APIENTRY _tWinMain(HINSTANCE hInstance,
+ HINSTANCE hPrevInstance,
+ LPTSTR lpCmdLine,
+ int nCmdShow)
+{
+ UNREFERENCED_PARAMETER(hPrevInstance);
+ UNREFERENCED_PARAMETER(lpCmdLine);
+
+ // create the application instance
+ AppDelegate app;
+ EGLView eglView;
+ eglView.init("SimpleGame",900,640);
+ return Application::getInstance()->run();
+}
diff --git a/samples/Cpp/SimpleGame/proj.win32/main.h b/samples/Cpp/SimpleGame/proj.win32/main.h
new file mode 100644
index 0000000000..e74708bdf2
--- /dev/null
+++ b/samples/Cpp/SimpleGame/proj.win32/main.h
@@ -0,0 +1,13 @@
+#ifndef __MAIN_H__
+#define __MAIN_H__
+
+#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
+
+// Windows Header Files:
+#include
+#include
+
+// C RunTime Header Files
+#include "CCStdC.h"
+
+#endif // __MAIN_H__
diff --git a/samples/Cpp/TestCpp/proj.android/build_native.cmd b/samples/Cpp/TestCpp/proj.android/build_native.cmd
index 44e95cafe7..d8eaaea7c7 100644
--- a/samples/Cpp/TestCpp/proj.android/build_native.cmd
+++ b/samples/Cpp/TestCpp/proj.android/build_native.cmd
@@ -62,7 +62,7 @@ if "%buildexternalsfromsource%"=="1" (goto :MODULE1) else (goto :MODULE2)
goto :COPY_RES
:MODULE2
echo "Using prebuilt externals"
- set NDK_MODULE_PATH=%COCOS2DX_ROOT%;%COCOS2DX_ROOT%\cocos2dx\platform\third_party\android\prebuilt
+ set NDK_MODULE_PATH=%COCOS2DX_ROOT%;%COCOS2DX_ROOT%\external;%COCOS2DX_ROOT%\cocos
:COPY_RES
echo NDK_ROOT = %NDK_ROOT%
@@ -75,10 +75,16 @@ rem make sure assets is exist
if exist %APP_ANDROID_ROOT%\assets rd /q /s %APP_ANDROID_ROOT%\assets
mkdir %APP_ANDROID_ROOT%\assets
-mkdir %APP_ANDROID_ROOT%\assets\res
rem copy Resources/* into assets' root
xcopy /e /q /r /y %APP_ROOT%\Resources\* %APP_ANDROID_ROOT%\assets
-call %NDK_ROOT%\ndk-build.cmd NDK_LOG=0 V=0
+rem remove test_image_rgba4444.pvr.gz
+del /f /q %APP_ANDROID_ROOT%\assets\Images\test_image_rgba4444.pvr.gz
+del /f /q %APP_ANDROID_ROOT%\assets\Images\test_1021x1024_rgba8888.pvr.gz
+del /f /q %APP_ANDROID_ROOT%\assets\Images\test_1021x1024_rgb888.pvr.gz
+del /f /q %APP_ANDROID_ROOT%\assets\Images\test_1021x1024_rgba4444.pvr.gz
+del /f /q %APP_ANDROID_ROOT%\assets\Images\test_1021x1024_a8.pvr.gz
+
+call %NDK_ROOT%\ndk-build.cmd NDK_LOG=0 V=0 %*
pause
\ No newline at end of file
diff --git a/samples/Cpp/TestCpp/proj.android/project.properties b/samples/Cpp/TestCpp/proj.android/project.properties
index db4ff43492..0a6dc6664d 100644
--- a/samples/Cpp/TestCpp/proj.android/project.properties
+++ b/samples/Cpp/TestCpp/proj.android/project.properties
@@ -8,6 +8,6 @@
# project structure.
# Project target.
-target=android-13
+target=android-10
-android.library.reference.1=../../../../cocos2dx/platform/android/java
+android.library.reference.1=../../../../cocos/2d/platform/android/java
diff --git a/samples/Cpp/TestCpp/proj.linux/Makefile b/samples/Cpp/TestCpp/proj.linux/Makefile
index 4dda11cafe..ea1051612c 100644
--- a/samples/Cpp/TestCpp/proj.linux/Makefile
+++ b/samples/Cpp/TestCpp/proj.linux/Makefile
@@ -2,6 +2,11 @@ EXECUTABLE = TestCpp
DEFINES += -DCC_KEYBOARD_SUPPORT
+INCLUDES = -I../../../../external \
+ -I../../../../cocos/editor-support \
+ -I../../../../cocos \
+ -I../Classes
+
SOURCES = ../Classes/AccelerometerTest/AccelerometerTest.cpp \
../Classes/ActionManagerTest/ActionManagerTest.cpp \
../Classes/ActionsEaseTest/ActionsEaseTest.cpp \
@@ -135,22 +140,19 @@ SOURCES = ../Classes/AccelerometerTest/AccelerometerTest.cpp \
SHAREDLIBS = -lcocos2d -lcocosdenshion -lcurl -lpng
COCOS_LIBS = $(LIB_DIR)/libcocos2d.so $(LIB_DIR)/libcocosdenshion.so
-include ../../../../cocos2dx/proj.linux/cocos2dx.mk
-
-INCLUDES += -I../ \
- -I../../ \
- -I../Classes \
- -I$(COCOS_ROOT)/audio/include \
- -I$(COCOS_ROOT)/extensions/ \
- -I$(COCOS_ROOT)/external/ \
- -I$(COCOS_ROOT)/external/chipmunk/include/chipmunk
+include ../../../../cocos/2d/cocos2dx.mk
STATICLIBS += \
- $(STATICLIBS_DIR)/libcurl.a \
+ $(STATICLIBS_DIR)/curl/prebuilt/linux/$(POSTFIX)/libcurl.a \
$(LIB_DIR)/libextension.a \
$(LIB_DIR)/libbox2d.a \
- $(LIB_DIR)/libchipmunk.a
+ $(LIB_DIR)/libchipmunk.a \
+ $(LIB_DIR)/libgui.a \
+ $(LIB_DIR)/libcocosbuilder.a \
+ $(LIB_DIR)/libspine.a \
+ $(LIB_DIR)/libcocostudio.a \
+ $(LIB_DIR)/libnetwork.a
####### Build rules
$(TARGET): $(OBJECTS) $(STATICLIBS) $(COCOS_LIBS) $(CORE_MAKEFILE_LIST)
diff --git a/samples/Cpp/TestCpp/proj.win32/TestCpp.vcxproj b/samples/Cpp/TestCpp/proj.win32/TestCpp.vcxproj
index 95e857631c..1dd1fe3146 100644
--- a/samples/Cpp/TestCpp/proj.win32/TestCpp.vcxproj
+++ b/samples/Cpp/TestCpp/proj.win32/TestCpp.vcxproj
@@ -36,11 +36,13 @@
-
+
+
-
+
+
@@ -67,7 +69,7 @@
Disabled
- $(ProjectDir)..\..\..\..\cocos2dx;$(ProjectDir)..\..\..\..\cocos2dx\include;$(ProjectDir)..\..\..\..\cocos2dx\kazmath\include;$(ProjectDir)..\..\..\..\cocos2dx\platform\win32;$(ProjectDir)..\..\..\..\cocos2dx\platform\third_party\win32;$(ProjectDir)..\..\..\..\cocos2dx\platform\third_party\win32\OGLES;$(ProjectDir)..\..\..\..\cocos2dx\platform\third_party\win32\pthread;$(ProjectDir)..\..\..\..\external;$(ProjectDir)..\..\..\..\external\chipmunk\include\chipmunk;$(ProjectDir)..\..\..\..\external\libwebsockets\win32\include;$(ProjectDir)..\..\..\..\audio\include;$(ProjectDir)..\..\..\..\extensions;$(ProjectDir)..\..\..\..\extensions\network;..\Classes;..;%(AdditionalIncludeDirectories)
+ ..\Classes;$(EngineRoot);$(EngineRoot)cocos;$(EngineRoot)cocos\editor-support;$(EngineRoot)cocos\audio\include;$(EngineRoot)cocos\network;$(EngineRoot)external;$(EngineRoot)external\chipmunk\include\chipmunk;$(EngineRoot)external\curl\include\win32;$(EngineRoot)external\websockets\win32\include;$(EngineRoot)extensions;%(AdditionalIncludeDirectories)
WIN32;_DEBUG;_WINDOWS;_USE_MATH_DEFINES;GL_GLEXT_PROTOTYPES;CC_ENABLE_CHIPMUNK_INTEGRATION=1;COCOS2D_DEBUG=1;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)
EnableFastChecks
MultiThreadedDebugDLL
@@ -84,7 +86,7 @@
true
Windows
MachineX86
- libExtensions.lib;libcocos2d.lib;libCocosDenshion.lib;libBox2d.lib;libchipmunk.lib;libcurl_imp.lib;websockets.lib;%(AdditionalDependencies)
+ libcurl_imp.lib;websockets.lib;%(AdditionalDependencies)
@@ -92,7 +94,7 @@
if not exist "$(OutDir)" mkdir "$(OutDir)"
-xcopy /Y /Q "$(ProjectDir)..\..\..\..\external\libwebsockets\win32\lib\*.*" "$(OutDir)"
+xcopy /Y /Q "$(ProjectDir)..\..\..\..\external\websockets\prebuilt\win32\*.*" "$(OutDir)"
@@ -100,7 +102,7 @@ xcopy /Y /Q "$(ProjectDir)..\..\..\..\external\libwebsockets\win32\lib\*.*" "$(O
MaxSpeed
true
- $(ProjectDir)..\..\..\..\cocos2dx;$(ProjectDir)..\..\..\..\cocos2dx\include;$(ProjectDir)..\..\..\..\cocos2dx\kazmath\include;$(ProjectDir)..\..\..\..\cocos2dx\platform\win32;$(ProjectDir)..\..\..\..\cocos2dx\platform\third_party\win32;$(ProjectDir)..\..\..\..\cocos2dx\platform\third_party\win32\OGLES;$(ProjectDir)..\..\..\..\cocos2dx\platform\third_party\win32\pthread;$(ProjectDir)..\..\..\..\external;$(ProjectDir)..\..\..\..\external\chipmunk\include\chipmunk;$(ProjectDir)..\..\..\..\external\libwebsockets\win32\include;$(ProjectDir)..\..\..\..\audio\include;$(ProjectDir)..\..\..\..\extensions;$(ProjectDir)..\..\..\..\extensions\network;..\Classes;..;%(AdditionalIncludeDirectories)
+ ..\Classes;$(EngineRoot);$(EngineRoot)cocos;$(EngineRoot)cocos\editor-support;$(EngineRoot)cocos\audio\include;$(EngineRoot)cocos\network;$(EngineRoot)external;$(EngineRoot)external\chipmunk\include\chipmunk;$(EngineRoot)external\curl\include\win32;$(EngineRoot)external\websockets\win32\include;$(EngineRoot)extensions;%(AdditionalIncludeDirectories)
WIN32;NDEBUG;_WINDOWS;_USE_MATH_DEFINES;GL_GLEXT_PROTOTYPES;CC_ENABLE_CHIPMUNK_INTEGRATION=1;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)
MultiThreadedDLL
true
@@ -112,7 +114,7 @@ xcopy /Y /Q "$(ProjectDir)..\..\..\..\external\libwebsockets\win32\lib\*.*" "$(O
true
- libExtensions.lib;libcocos2d.lib;libCocosDenshion.lib;libBox2d.lib;libchipmunk.lib;libcurl_imp.lib;websockets.lib;%(AdditionalDependencies)
+ libcurl_imp.lib;websockets.lib;%(AdditionalDependencies)
$(OutDir)$(ProjectName).exe
$(OutDir);%(AdditionalLibraryDirectories)
true
@@ -127,7 +129,7 @@ xcopy /Y /Q "$(ProjectDir)..\..\..\..\external\libwebsockets\win32\lib\*.*" "$(O
if not exist "$(OutDir)" mkdir "$(OutDir)"
-xcopy /Y /Q "$(ProjectDir)..\..\..\..\external\libwebsockets\win32\lib\*.*" "$(OutDir)"
+xcopy /Y /Q "$(ProjectDir)..\..\..\..\external\websockets\prebuilt\win32\*.*" "$(OutDir)"
@@ -459,14 +461,32 @@ xcopy /Y /Q "$(ProjectDir)..\..\..\..\external\libwebsockets\win32\lib\*.*" "$(O
-
+
{98a51ba8-fc3a-415b-ac8f-8c7bd464e93e}
false
-
+
{f8edd7fa-9a51-4e80-baeb-860825d2eac6}
false
+
+ {811c0dab-7b96-4bd3-a154-b7572b58e4ab}
+
+
+ {b57cf53f-2e49-4031-9822-047cc0e6bde2}
+
+
+ {b7c2a162-dec9-4418-972e-240ab3cbfcae}
+
+
+ {7e06e92c-537a-442b-9e4a-4761c84f8a1a}
+
+
+ {df2638c0-8128-4847-867c-6eafe3dee7b5}
+
+
+ {632a8f38-d0f0-4d22-86b3-d69f5e6bf63a}
+
{21b2c324-891f-48ea-ad1a-5ae13de12e28}
false
diff --git a/samples/Javascript/CocosDragonJS/Classes/AppDelegate.cpp b/samples/Javascript/CocosDragonJS/Classes/AppDelegate.cpp
index 3276d5deda..f14e6df017 100644
--- a/samples/Javascript/CocosDragonJS/Classes/AppDelegate.cpp
+++ b/samples/Javascript/CocosDragonJS/Classes/AppDelegate.cpp
@@ -8,11 +8,12 @@
#include "ScriptingCore.h"
#include "jsb_cocos2dx_auto.hpp"
#include "jsb_cocos2dx_extension_auto.hpp"
-#include "jsb_cocos2dx_extension_manual.h"
+#include "jsb_cocos2dx_builder_auto.hpp"
+#include "extension/jsb_cocos2dx_extension_manual.h"
#include "cocos2d_specifics.hpp"
-#include "js_bindings_ccbreader.h"
-#include "js_bindings_system_registration.h"
-#include "js_bindings_chipmunk_registration.h"
+#include "cocosbuilder/js_bindings_ccbreader.h"
+#include "localstorage/js_bindings_system_registration.h"
+#include "chipmunk/js_bindings_chipmunk_registration.h"
#include "jsb_opengl_registration.h"
USING_NS_CC;
@@ -124,6 +125,7 @@ bool AppDelegate::applicationDidFinishLaunching()
sc->addRegisterCallback(register_all_cocos2dx_extension);
sc->addRegisterCallback(register_cocos2dx_js_extensions);
sc->addRegisterCallback(register_all_cocos2dx_extension_manual);
+ sc->addRegisterCallback(register_all_cocos2dx_builder);
sc->addRegisterCallback(register_CCBuilderReader);
sc->addRegisterCallback(jsb_register_system);
sc->addRegisterCallback(JSB_register_opengl);
diff --git a/samples/Javascript/CocosDragonJS/proj.android/build_native.cmd b/samples/Javascript/CocosDragonJS/proj.android/build_native.cmd
index 349e2aa5d7..76a9a7138f 100644
--- a/samples/Javascript/CocosDragonJS/proj.android/build_native.cmd
+++ b/samples/Javascript/CocosDragonJS/proj.android/build_native.cmd
@@ -57,7 +57,7 @@ set COCOS2DX_ROOT=%~dp0..\..\..\..
set APP_ROOT=%~dp0..
set APP_ANDROID_ROOT=%~dp0
set RESROUCE_ROOT="%APP_ROOT%\..\Shared\games\CocosDragonJS\Published files Android"
-set BINDINGS_JS_ROOT=%APP_ROOT%\..\..\..\scripting\javascript\bindings\js
+set BINDINGS_JS_ROOT=%COCOS2DX_ROOT%\cocos\scripting\javascript\script
if "%buildexternalsfromsource%"=="1" (goto :MODULE1) else (goto :MODULE2)
:MODULE1
@@ -66,7 +66,7 @@ if "%buildexternalsfromsource%"=="1" (goto :MODULE1) else (goto :MODULE2)
goto :COPY_RES
:MODULE2
echo "Using prebuilt externals"
- set NDK_MODULE_PATH=%COCOS2DX_ROOT%;%COCOS2DX_ROOT%\cocos2dx\platform\third_party\android\prebuilt
+ set NDK_MODULE_PATH=%COCOS2DX_ROOT%;%COCOS2DX_ROOT%\cocos;%COCOS2DX_ROOT%\external
:COPY_RES
echo NDK_ROOT = %NDK_ROOT%
@@ -79,7 +79,6 @@ rem make sure assets is exist
if exist %APP_ANDROID_ROOT%\assets rd /q /s %APP_ANDROID_ROOT%\assets
mkdir %APP_ANDROID_ROOT%\assets
-mkdir %APP_ANDROID_ROOT%\assets\res
rem copy Resources/* into assets' root
xcopy /e /q /r /y %RESROUCE_ROOT%\* %APP_ANDROID_ROOT%\assets
@@ -87,5 +86,5 @@ xcopy /e /q /r /y %RESROUCE_ROOT%\* %APP_ANDROID_ROOT%\assets
rem copy bindings/*.js into assets' root
xcopy /e /q /r /y %BINDINGS_JS_ROOT%\* %APP_ANDROID_ROOT%\assets
-call %NDK_ROOT%\ndk-build.cmd %PARALLEL_BUILD_FLAG% NDK_LOG=0 V=0
+call %NDK_ROOT%\ndk-build.cmd %PARALLEL_BUILD_FLAG% NDK_LOG=0 V=0 %*
pause
diff --git a/samples/Javascript/CocosDragonJS/proj.android/project.properties b/samples/Javascript/CocosDragonJS/proj.android/project.properties
index db4ff43492..0a6dc6664d 100644
--- a/samples/Javascript/CocosDragonJS/proj.android/project.properties
+++ b/samples/Javascript/CocosDragonJS/proj.android/project.properties
@@ -8,6 +8,6 @@
# project structure.
# Project target.
-target=android-13
+target=android-10
-android.library.reference.1=../../../../cocos2dx/platform/android/java
+android.library.reference.1=../../../../cocos/2d/platform/android/java
diff --git a/samples/Javascript/CocosDragonJS/proj.win32/CocosDragonJS.vcxproj b/samples/Javascript/CocosDragonJS/proj.win32/CocosDragonJS.vcxproj
index e67d8d64eb..8483cb7237 100644
--- a/samples/Javascript/CocosDragonJS/proj.win32/CocosDragonJS.vcxproj
+++ b/samples/Javascript/CocosDragonJS/proj.win32/CocosDragonJS.vcxproj
@@ -34,11 +34,13 @@
-
+
+
-
+
+
@@ -77,7 +79,7 @@
Disabled
- $(ProjectDir)..\Classes;$(ProjectDir)..\..\..\..\scripting\javascript\spidermonkey-win32\include;$(ProjectDir)..\..\..\..\external\chipmunk\include\chipmunk;$(ProjectDir)..\..\..\..\extensions;$(ProjectDir)..\..\..\..\scripting\auto-generated\js-bindings;$(ProjectDir)..\..\..\..\scripting\javascript\bindings;$(ProjectDir)..\..\..\..\cocos2dx;$(ProjectDir)..\..\..\..\cocos2dx\include;$(ProjectDir)..\..\..\..\cocos2dx\kazmath\include;$(ProjectDir)..\..\..\..\cocos2dx\platform\win32;$(ProjectDir)..\..\..\..\cocos2dx\platform\third_party\win32;$(ProjectDir)..\..\..\..\cocos2dx\platform\third_party\win32\OGLES;$(ProjectDir)..\..\..\..\audio\include;%(AdditionalIncludeDirectories)
+ $(ProjectDir)..\Classes;$(EngineRoot);$(EngineRoot)cocos\editor-support;$(EngineRoot)cocos\scripting\auto-generated\js-bindings;$(EngineRoot)cocos\scripting\javascript\bindings;$(EngineRoot)cocos\audio\include;$(EngineRoot)external\spidermonkey\include\win32;$(EngineRoot)external\chipmunk\include\chipmunk;$(EngineRoot)extensions;%(AdditionalIncludeDirectories)
WIN32;_WINDOWS;STRICT;_DEBUG;DEBUG;XP_WIN;JS_HAVE___INTN;JS_INTPTR_TYPE=int;COCOS2D_DEBUG=1;COCOS2D_JAVASCRIPT=1;CC_ENABLE_CHIPMUNK_INTEGRATION=1;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)
false
EnableFastChecks
@@ -96,11 +98,11 @@
if not exist "$(OutDir)" mkdir "$(OutDir)"
-xcopy /Y /Q "$(ProjectDir)..\..\..\..\scripting\javascript\spidermonkey-win32\lib\*.*" "$(OutDir)"
+xcopy /Y /Q "$(ProjectDir)..\..\..\..\external\spidermonkey\prebuilt\win32\*.*" "$(OutDir)"
- libcocos2d.lib;libExtensions.lib;libCocosDenshion.lib;libchipmunk.lib;libJSBinding.lib;libcurl_imp.lib;mozjs-23.0.lib;ws2_32.lib;sqlite3.lib;%(AdditionalDependencies)
+ libcurl_imp.lib;mozjs-23.0.lib;ws2_32.lib;sqlite3.lib;%(AdditionalDependencies)
$(OutDir);%(AdditionalLibraryDirectories)
true
Windows
@@ -110,7 +112,7 @@ xcopy /Y /Q "$(ProjectDir)..\..\..\..\scripting\javascript\spidermonkey-win32\li
if not exist "$(OutDir)" mkdir "$(OutDir)"
if exist "$(OutDir)\CocosDragonJSRes" rd /s /q "$(OutDir)\CocosDragonJSRes"
mkdir "$(OutDir)\CocosDragonJSRes"
-xcopy "$(ProjectDir)..\..\..\..\scripting\javascript\bindings\js\*.js" "$(OutDir)\CocosDragonJSRes" /e /Y
+xcopy "$(ProjectDir)..\..\..\..\cocos\scripting\javascript\script\*.js" "$(OutDir)\CocosDragonJSRes" /e /Y
xcopy "$(ProjectDir)..\..\Shared\games\CocosDragonJS\Published files Android" "$(OutDir)\CocosDragonJSRes\" /e /Y
@@ -131,7 +133,7 @@ xcopy "$(ProjectDir)..\..\Shared\games\CocosDragonJS\Published files Android" "$
testjs_p.c
- $(ProjectDir)..\Classes;$(ProjectDir)..\..\..\..\scripting\javascript\spidermonkey-win32\include;$(ProjectDir)..\..\..\..\external\chipmunk\include\chipmunk;$(ProjectDir)..\..\..\..\extensions;$(ProjectDir)..\..\..\..\scripting\auto-generated\js-bindings;$(ProjectDir)..\..\..\..\scripting\javascript\bindings;$(ProjectDir)..\..\..\..\cocos2dx;$(ProjectDir)..\..\..\..\cocos2dx\include;$(ProjectDir)..\..\..\..\cocos2dx\kazmath\include;$(ProjectDir)..\..\..\..\cocos2dx\platform\win32;$(ProjectDir)..\..\..\..\cocos2dx\platform\third_party\win32;$(ProjectDir)..\..\..\..\cocos2dx\platform\third_party\win32\OGLES;$(ProjectDir)..\..\..\..\audio\include;%(AdditionalIncludeDirectories)
+ $(ProjectDir)..\Classes;$(EngineRoot);$(EngineRoot)cocos\editor-support;$(EngineRoot)cocos\scripting\auto-generated\js-bindings;$(EngineRoot)cocos\scripting\javascript\bindings;$(EngineRoot)cocos\audio\include;$(EngineRoot)external\spidermonkey\include\win32;$(EngineRoot)external\chipmunk\include\chipmunk;$(EngineRoot)extensions;%(AdditionalIncludeDirectories)
WIN32;_WINDOWS;STRICT;NDEBUG;XP_WIN;JS_HAVE___INTN;JS_INTPTR_TYPE=int;CC_ENABLE_CHIPMUNK_INTEGRATION=1;COCOS2D_JAVASCRIPT=1;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)
@@ -151,20 +153,21 @@ xcopy "$(ProjectDir)..\..\Shared\games\CocosDragonJS\Published files Android" "$
if not exist "$(OutDir)" mkdir "$(OutDir)"
-xcopy /Y /Q "$(ProjectDir)..\..\..\..\scripting\javascript\spidermonkey-win32\lib\*.*" "$(OutDir)"
+xcopy /Y /Q "$(ProjectDir)..\..\..\..\external\spidermonkey\prebuilt\win32\*.*" "$(OutDir)"
- libcocos2d.lib;libExtensions.lib;libCocosDenshion.lib;libchipmunk.lib;libJSBinding.lib;libcurl_imp.lib;mozjs-23.0.lib;ws2_32.lib;sqlite3.lib;%(AdditionalDependencies)
+ libcurl_imp.lib;mozjs-23.0.lib;ws2_32.lib;sqlite3.lib;%(AdditionalDependencies)
$(OutDir);%(AdditionalLibraryDirectories)
Windows
MachineX86
+ true
if not exist "$(OutDir)" mkdir "$(OutDir)"
if exist "$(OutDir)\CocosDragonJSRes" rd /s /q "$(OutDir)\CocosDragonJSRes"
mkdir "$(OutDir)\CocosDragonJSRes"
-xcopy "$(ProjectDir)..\..\..\..\scripting\javascript\bindings\js\*.js" "$(OutDir)\CocosDragonJSRes" /e /Y
+xcopy "$(ProjectDir)..\..\..\..\cocos\scripting\javascript\script\*.js" "$(OutDir)\CocosDragonJSRes" /e /Y
xcopy "$(ProjectDir)..\..\Shared\games\CocosDragonJS\Published files Android" "$(OutDir)\CocosDragonJSRes\" /e /Y
Copy js and resource files.
@@ -185,13 +188,38 @@ xcopy "$(ProjectDir)..\..\Shared\games\CocosDragonJS\Published files Android" "$
-
+
{98a51ba8-fc3a-415b-ac8f-8c7bd464e93e}
- false
-
+
{f8edd7fa-9a51-4e80-baeb-860825d2eac6}
- false
+
+
+ {811c0dab-7b96-4bd3-a154-b7572b58e4ab}
+
+
+ {21070e58-eec6-4e16-8b4f-6d083df55790}
+
+
+ {f9da0fc1-651b-457b-962e-a4d61cebf5fd}
+
+
+ {625f7391-9a91-48a1-8cfc-79508c822637}
+
+
+ {68f5f371-bd7b-4c30-ae5b-0b08f22e0cde}
+
+
+ {39379840-825a-45a0-b363-c09ffef864bd}
+
+
+ {632a8f38-d0f0-4d22-86b3-d69f5e6bf63a}
+
+
+ {21b2c324-891f-48ea-ad1a-5ae13de12e28}
+
+
+ {207bc7a9-ccf1-4f2f-a04d-45f72242ae25}
diff --git a/samples/Javascript/CrystalCraze/Classes/AppDelegate.cpp b/samples/Javascript/CrystalCraze/Classes/AppDelegate.cpp
index 27520db220..63f1c31aed 100644
--- a/samples/Javascript/CrystalCraze/Classes/AppDelegate.cpp
+++ b/samples/Javascript/CrystalCraze/Classes/AppDelegate.cpp
@@ -5,11 +5,12 @@
#include "ScriptingCore.h"
#include "jsb_cocos2dx_auto.hpp"
#include "jsb_cocos2dx_extension_auto.hpp"
-#include "jsb_cocos2dx_extension_manual.h"
+#include "jsb_cocos2dx_builder_auto.hpp"
+#include "extension/jsb_cocos2dx_extension_manual.h"
#include "cocos2d_specifics.hpp"
-#include "js_bindings_ccbreader.h"
-#include "js_bindings_system_registration.h"
-#include "js_bindings_chipmunk_registration.h"
+#include "cocosbuilder/js_bindings_ccbreader.h"
+#include "localstorage/js_bindings_system_registration.h"
+#include "chipmunk/js_bindings_chipmunk_registration.h"
#include "jsb_opengl_registration.h"
USING_NS_CC;
@@ -106,6 +107,7 @@ bool AppDelegate::applicationDidFinishLaunching()
sc->addRegisterCallback(register_cocos2dx_js_extensions);
sc->addRegisterCallback(jsb_register_chipmunk);
sc->addRegisterCallback(register_all_cocos2dx_extension_manual);
+ sc->addRegisterCallback(register_all_cocos2dx_builder);
sc->addRegisterCallback(register_CCBuilderReader);
sc->addRegisterCallback(jsb_register_system);
sc->addRegisterCallback(JSB_register_opengl);
diff --git a/samples/Javascript/CrystalCraze/proj.android/build_native.cmd b/samples/Javascript/CrystalCraze/proj.android/build_native.cmd
index 6c248549ae..22f5ad4442 100644
--- a/samples/Javascript/CrystalCraze/proj.android/build_native.cmd
+++ b/samples/Javascript/CrystalCraze/proj.android/build_native.cmd
@@ -57,7 +57,7 @@ set COCOS2DX_ROOT=%~dp0..\..\..\..
set APP_ROOT=%~dp0..
set APP_ANDROID_ROOT=%~dp0
set RESROUCE_ROOT="%APP_ROOT%\..\Shared\games\CrystalCraze\Published-Android"
-set BINDINGS_JS_ROOT=%APP_ROOT%\..\..\..\scripting\javascript\bindings\js
+set BINDINGS_JS_ROOT=%COCOS2DX_ROOT%\cocos\scripting\javascript\script
if "%buildexternalsfromsource%"=="1" (goto :MODULE1) else (goto :MODULE2)
:MODULE1
@@ -66,7 +66,7 @@ if "%buildexternalsfromsource%"=="1" (goto :MODULE1) else (goto :MODULE2)
goto :COPY_RES
:MODULE2
echo "Using prebuilt externals"
- set NDK_MODULE_PATH=%COCOS2DX_ROOT%;%COCOS2DX_ROOT%\cocos2dx\platform\third_party\android\prebuilt
+ set NDK_MODULE_PATH=%COCOS2DX_ROOT%;%COCOS2DX_ROOT%\cocos;%COCOS2DX_ROOT%\external
:COPY_RES
echo NDK_ROOT = %NDK_ROOT%
@@ -79,7 +79,6 @@ rem make sure assets is exist
if exist %APP_ANDROID_ROOT%\assets rd /q /s %APP_ANDROID_ROOT%\assets
mkdir %APP_ANDROID_ROOT%\assets
-mkdir %APP_ANDROID_ROOT%\assets\res
rem copy Resources/* into assets' root
xcopy /e /q /r /y %RESROUCE_ROOT%\* %APP_ANDROID_ROOT%\assets
@@ -87,5 +86,5 @@ xcopy /e /q /r /y %RESROUCE_ROOT%\* %APP_ANDROID_ROOT%\assets
rem copy bindings/*.js into assets' root
xcopy /e /q /r /y %BINDINGS_JS_ROOT%\* %APP_ANDROID_ROOT%\assets
-call %NDK_ROOT%\ndk-build.cmd %PARALLEL_BUILD_FLAG% NDK_LOG=0 V=0
+call %NDK_ROOT%\ndk-build.cmd %PARALLEL_BUILD_FLAG% NDK_LOG=0 V=0 %*
pause
diff --git a/samples/Javascript/CrystalCraze/proj.android/project.properties b/samples/Javascript/CrystalCraze/proj.android/project.properties
index db4ff43492..0a6dc6664d 100644
--- a/samples/Javascript/CrystalCraze/proj.android/project.properties
+++ b/samples/Javascript/CrystalCraze/proj.android/project.properties
@@ -8,6 +8,6 @@
# project structure.
# Project target.
-target=android-13
+target=android-10
-android.library.reference.1=../../../../cocos2dx/platform/android/java
+android.library.reference.1=../../../../cocos/2d/platform/android/java
diff --git a/samples/Javascript/CrystalCraze/proj.win32/CrystalCraze.vcxproj b/samples/Javascript/CrystalCraze/proj.win32/CrystalCraze.vcxproj
index e2a144bff1..6194bc0354 100644
--- a/samples/Javascript/CrystalCraze/proj.win32/CrystalCraze.vcxproj
+++ b/samples/Javascript/CrystalCraze/proj.win32/CrystalCraze.vcxproj
@@ -34,11 +34,13 @@
-
+
+
-
+
+
@@ -77,7 +79,7 @@
Disabled
- $(ProjectDir)..\Classes;$(ProjectDir)..\..\..\..\scripting\javascript\spidermonkey-win32\include;$(ProjectDir)..\..\..\..\external\chipmunk\include\chipmunk;$(ProjectDir)..\..\..\..\extensions;$(ProjectDir)..\..\..\..\scripting\auto-generated\js-bindings;$(ProjectDir)..\..\..\..\scripting\javascript\bindings;$(ProjectDir)..\..\..\..\cocos2dx;$(ProjectDir)..\..\..\..\cocos2dx\include;$(ProjectDir)..\..\..\..\cocos2dx\kazmath\include;$(ProjectDir)..\..\..\..\cocos2dx\platform\win32;$(ProjectDir)..\..\..\..\cocos2dx\platform\third_party\win32;$(ProjectDir)..\..\..\..\cocos2dx\platform\third_party\win32\OGLES;$(ProjectDir)..\..\..\..\audio\include;%(AdditionalIncludeDirectories)
+ $(ProjectDir)..\Classes;$(EngineRoot);$(EngineRoot)cocos\editor-support;$(EngineRoot)cocos\scripting\auto-generated\js-bindings;$(EngineRoot)cocos\scripting\javascript\bindings;$(EngineRoot)cocos\audio\include;$(EngineRoot)external\spidermonkey\include\win32;$(EngineRoot)external\chipmunk\include\chipmunk;$(EngineRoot)extensions;%(AdditionalIncludeDirectories)
WIN32;_WINDOWS;STRICT;_DEBUG;DEBUG;XP_WIN;JS_HAVE___INTN;JS_INTPTR_TYPE=int;COCOS2D_DEBUG=1;COCOS2D_JAVASCRIPT=1;CC_ENABLE_CHIPMUNK_INTEGRATION=1;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)
false
EnableFastChecks
@@ -96,11 +98,11 @@
if not exist "$(OutDir)" mkdir "$(OutDir)"
-xcopy /Y /Q "$(ProjectDir)..\..\..\..\scripting\javascript\spidermonkey-win32\lib\*.*" "$(OutDir)"
+xcopy /Y /Q "$(ProjectDir)..\..\..\..\external\spidermonkey\prebuilt\win32\*.*" "$(OutDir)"
- libcocos2d.lib;libExtensions.lib;libCocosDenshion.lib;libchipmunk.lib;libJSBinding.lib;libcurl_imp.lib;mozjs-23.0.lib;ws2_32.lib;sqlite3.lib;%(AdditionalDependencies)
+ libcurl_imp.lib;mozjs-23.0.lib;ws2_32.lib;sqlite3.lib;%(AdditionalDependencies)
$(OutDir);%(AdditionalLibraryDirectories)
true
Windows
@@ -110,7 +112,7 @@ xcopy /Y /Q "$(ProjectDir)..\..\..\..\scripting\javascript\spidermonkey-win32\li
if not exist "$(OutDir)" mkdir "$(OutDir)"
if exist "$(OutDir)\CrystalCrazeRes" rd /s /q "$(OutDir)\CrystalCrazeRes"
mkdir "$(OutDir)\CrystalCrazeRes"
-xcopy "$(ProjectDir)..\..\..\..\scripting\javascript\bindings\js\*.js" "$(OutDir)\CrystalCrazeRes" /e /Y
+xcopy "$(ProjectDir)..\..\..\..\cocos\scripting\javascript\script\*.js" "$(OutDir)\CrystalCrazeRes" /e /Y
xcopy "$(ProjectDir)..\..\Shared\games\CrystalCraze\Published-Android" "$(OutDir)\CrystalCrazeRes\" /e /Y
@@ -131,7 +133,7 @@ xcopy "$(ProjectDir)..\..\Shared\games\CrystalCraze\Published-Android" "$(OutDir
testjs_p.c
- $(ProjectDir)..\Classes;$(ProjectDir)..\..\..\..\scripting\javascript\spidermonkey-win32\include;$(ProjectDir)..\..\..\..\external\chipmunk\include\chipmunk;$(ProjectDir)..\..\..\..\extensions;$(ProjectDir)..\..\..\..\scripting\auto-generated\js-bindings;$(ProjectDir)..\..\..\..\scripting\javascript\bindings;$(ProjectDir)..\..\..\..\cocos2dx;$(ProjectDir)..\..\..\..\cocos2dx\include;$(ProjectDir)..\..\..\..\cocos2dx\kazmath\include;$(ProjectDir)..\..\..\..\cocos2dx\platform\win32;$(ProjectDir)..\..\..\..\cocos2dx\platform\third_party\win32;$(ProjectDir)..\..\..\..\cocos2dx\platform\third_party\win32\OGLES;$(ProjectDir)..\..\..\..\audio\include;%(AdditionalIncludeDirectories)
+ $(ProjectDir)..\Classes;$(EngineRoot);$(EngineRoot)cocos\editor-support;$(EngineRoot)cocos\scripting\auto-generated\js-bindings;$(EngineRoot)cocos\scripting\javascript\bindings;$(EngineRoot)cocos\audio\include;$(EngineRoot)external\spidermonkey\include\win32;$(EngineRoot)external\chipmunk\include\chipmunk;$(EngineRoot)extensions;%(AdditionalIncludeDirectories)
WIN32;_WINDOWS;STRICT;NDEBUG;XP_WIN;JS_HAVE___INTN;JS_INTPTR_TYPE=int;CC_ENABLE_CHIPMUNK_INTEGRATION=1;COCOS2D_JAVASCRIPT=1;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)
@@ -151,20 +153,21 @@ xcopy "$(ProjectDir)..\..\Shared\games\CrystalCraze\Published-Android" "$(OutDir
if not exist "$(OutDir)" mkdir "$(OutDir)"
-xcopy /Y /Q "$(ProjectDir)..\..\..\..\scripting\javascript\spidermonkey-win32\lib\*.*" "$(OutDir)"
+xcopy /Y /Q "$(ProjectDir)..\..\..\..\external\spidermonkey\prebuilt\win32\*.*" "$(OutDir)"
- libcocos2d.lib;libExtensions.lib;libCocosDenshion.lib;libchipmunk.lib;libJSBinding.lib;libcurl_imp.lib;mozjs-23.0.lib;ws2_32.lib;sqlite3.lib;%(AdditionalDependencies)
+ libcurl_imp.lib;mozjs-23.0.lib;ws2_32.lib;sqlite3.lib;%(AdditionalDependencies)
$(OutDir);%(AdditionalLibraryDirectories)
Windows
MachineX86
+ true
if not exist "$(OutDir)" mkdir "$(OutDir)"
if exist "$(OutDir)\CrystalCrazeRes" rd /s /q "$(OutDir)\CrystalCrazeRes"
mkdir "$(OutDir)\CrystalCrazeRes"
-xcopy "$(ProjectDir)..\..\..\..\scripting\javascript\bindings\js\*.js" "$(OutDir)\CrystalCrazeRes" /e /Y
+xcopy "$(ProjectDir)..\..\..\..\cocos\scripting\javascript\script\*.js" "$(OutDir)\CrystalCrazeRes" /e /Y
xcopy "$(ProjectDir)..\..\Shared\games\CrystalCraze\Published-Android" "$(OutDir)\CrystalCrazeRes\" /e /Y
Copy js and resource files.
@@ -185,13 +188,44 @@ xcopy "$(ProjectDir)..\..\Shared\games\CrystalCraze\Published-Android" "$(OutDir
-
+
{98a51ba8-fc3a-415b-ac8f-8c7bd464e93e}
- false
-
+
{f8edd7fa-9a51-4e80-baeb-860825d2eac6}
- false
+
+
+ {811c0dab-7b96-4bd3-a154-b7572b58e4ab}
+
+
+ {b57cf53f-2e49-4031-9822-047cc0e6bde2}
+
+
+ {df2638c0-8128-4847-867c-6eafe3dee7b5}
+
+
+ {21070e58-eec6-4e16-8b4f-6d083df55790}
+
+
+ {f9da0fc1-651b-457b-962e-a4d61cebf5fd}
+
+
+ {625f7391-9a91-48a1-8cfc-79508c822637}
+
+
+ {68f5f371-bd7b-4c30-ae5b-0b08f22e0cde}
+
+
+ {39379840-825a-45a0-b363-c09ffef864bd}
+
+
+ {632a8f38-d0f0-4d22-86b3-d69f5e6bf63a}
+
+
+ {21b2c324-891f-48ea-ad1a-5ae13de12e28}
+
+
+ {207bc7a9-ccf1-4f2f-a04d-45f72242ae25}
diff --git a/samples/Javascript/MoonWarriors/Classes/AppDelegate.cpp b/samples/Javascript/MoonWarriors/Classes/AppDelegate.cpp
index 7e7a33a156..c1406c1586 100644
--- a/samples/Javascript/MoonWarriors/Classes/AppDelegate.cpp
+++ b/samples/Javascript/MoonWarriors/Classes/AppDelegate.cpp
@@ -5,11 +5,12 @@
#include "ScriptingCore.h"
#include "jsb_cocos2dx_auto.hpp"
#include "jsb_cocos2dx_extension_auto.hpp"
-#include "jsb_cocos2dx_extension_manual.h"
+#include "jsb_cocos2dx_builder_auto.hpp"
+#include "extension/jsb_cocos2dx_extension_manual.h"
#include "cocos2d_specifics.hpp"
-#include "js_bindings_ccbreader.h"
-#include "js_bindings_system_registration.h"
-#include "js_bindings_chipmunk_registration.h"
+#include "cocosbuilder/js_bindings_ccbreader.h"
+#include "localstorage/js_bindings_system_registration.h"
+#include "chipmunk/js_bindings_chipmunk_registration.h"
#include "jsb_opengl_registration.h"
USING_NS_CC;
@@ -48,6 +49,7 @@ bool AppDelegate::applicationDidFinishLaunching()
sc->addRegisterCallback(register_cocos2dx_js_extensions);
sc->addRegisterCallback(jsb_register_chipmunk);
sc->addRegisterCallback(register_all_cocos2dx_extension_manual);
+ sc->addRegisterCallback(register_all_cocos2dx_builder);
sc->addRegisterCallback(register_CCBuilderReader);
sc->addRegisterCallback(jsb_register_system);
sc->addRegisterCallback(JSB_register_opengl);
diff --git a/samples/Javascript/MoonWarriors/proj.android/build_native.cmd b/samples/Javascript/MoonWarriors/proj.android/build_native.cmd
index d2dbb3a7e8..e2c1c82c7e 100644
--- a/samples/Javascript/MoonWarriors/proj.android/build_native.cmd
+++ b/samples/Javascript/MoonWarriors/proj.android/build_native.cmd
@@ -57,7 +57,7 @@ set COCOS2DX_ROOT=%~dp0..\..\..\..
set APP_ROOT=%~dp0..
set APP_ANDROID_ROOT=%~dp0
set RESROUCE_ROOT="%APP_ROOT%\..\Shared\games\MoonWarriors\res"
-set BINDINGS_JS_ROOT=%APP_ROOT%\..\..\..\scripting\javascript\bindings\js
+set BINDINGS_JS_ROOT=%COCOS2DX_ROOT%\cocos\scripting\javascript\script
if "%buildexternalsfromsource%"=="1" (goto :MODULE1) else (goto :MODULE2)
:MODULE1
@@ -66,7 +66,7 @@ if "%buildexternalsfromsource%"=="1" (goto :MODULE1) else (goto :MODULE2)
goto :COPY_RES
:MODULE2
echo "Using prebuilt externals"
- set NDK_MODULE_PATH=%COCOS2DX_ROOT%;%COCOS2DX_ROOT%\cocos2dx\platform\third_party\android\prebuilt
+ set NDK_MODULE_PATH=%COCOS2DX_ROOT%;%COCOS2DX_ROOT%\cocos;%COCOS2DX_ROOT%\external
:COPY_RES
echo NDK_ROOT = %NDK_ROOT%
@@ -79,13 +79,12 @@ rem make sure assets is exist
if exist %APP_ANDROID_ROOT%\assets rd /q /s %APP_ANDROID_ROOT%\assets
mkdir %APP_ANDROID_ROOT%\assets
-mkdir %APP_ANDROID_ROOT%\assets\res
rem copy Resources/* into assets' root
xcopy /e /q /r /y %RESROUCE_ROOT%\* %APP_ANDROID_ROOT%\assets
rem copy MoonWarriors js
-xcopy /e /q /r /y %RESROUCE_ROOT%\..\src\* %APP_ANDROID_ROOT%\assets
+xcopy /e /q /r /y %RESROUCE_ROOT%\..\src %APP_ANDROID_ROOT%\assets
rem copy MoonWarriors-native.js
xcopy /e /q /r /y %RESROUCE_ROOT%\..\* %APP_ANDROID_ROOT%\assets
@@ -93,5 +92,5 @@ xcopy /e /q /r /y %RESROUCE_ROOT%\..\* %APP_ANDROID_ROOT%\assets
rem copy bindings/*.js into assets' root
xcopy /e /q /r /y %BINDINGS_JS_ROOT%\* %APP_ANDROID_ROOT%\assets
-call %NDK_ROOT%\ndk-build.cmd %PARALLEL_BUILD_FLAG% NDK_LOG=0 V=0
+call %NDK_ROOT%\ndk-build.cmd %PARALLEL_BUILD_FLAG% NDK_LOG=0 V=0 %*
pause
diff --git a/samples/Javascript/MoonWarriors/proj.android/project.properties b/samples/Javascript/MoonWarriors/proj.android/project.properties
index db4ff43492..0a6dc6664d 100644
--- a/samples/Javascript/MoonWarriors/proj.android/project.properties
+++ b/samples/Javascript/MoonWarriors/proj.android/project.properties
@@ -8,6 +8,6 @@
# project structure.
# Project target.
-target=android-13
+target=android-10
-android.library.reference.1=../../../../cocos2dx/platform/android/java
+android.library.reference.1=../../../../cocos/2d/platform/android/java
diff --git a/samples/Javascript/MoonWarriors/proj.win32/MoonWarriors.vcxproj b/samples/Javascript/MoonWarriors/proj.win32/MoonWarriors.vcxproj
index 1b8d85f756..08efa5fdba 100644
--- a/samples/Javascript/MoonWarriors/proj.win32/MoonWarriors.vcxproj
+++ b/samples/Javascript/MoonWarriors/proj.win32/MoonWarriors.vcxproj
@@ -34,19 +34,21 @@
-
+
+
-
+
+
<_ProjectFileVersion>10.0.40219.1
- $(ProjectDir)..\..\..\..\$(Configuration).win32\
+ $(SolutionDir)$(Configuration).win32\
$(Configuration).win32\
false
- $(ProjectDir)..\..\..\..\$(Configuration).win32\
+ $(SolutionDir)$(Configuration).win32\
$(Configuration).win32\
false
AllRules.ruleset
@@ -77,7 +79,7 @@
Disabled
- .;..\Classes;$(ProjectDir)..\..\..\..\scripting\javascript\spidermonkey-win32\include;$(ProjectDir)..\..\..\..\external\chipmunk\include\chipmunk;$(ProjectDir)..\..\..\..\scripting\auto-generated\js-bindings;$(ProjectDir)..\..\..\..\scripting\javascript\bindings;$(ProjectDir)..\..\..\..\extensions;$(ProjectDir)..\..\..\..\cocos2dx;$(ProjectDir)..\..\..\..\cocos2dx\include;$(ProjectDir)..\..\..\..\cocos2dx\kazmath\include;$(ProjectDir)..\..\..\..\cocos2dx\platform\win32;$(ProjectDir)..\..\..\..\cocos2dx\platform\third_party\win32;$(ProjectDir)..\..\..\..\cocos2dx\platform\third_party\win32\OGLES;$(ProjectDir)..\..\..\..\audio\include;%(AdditionalIncludeDirectories)
+ .;..\Classes;$(EngineRoot);$(EngineRoot)cocos\editor-support;$(EngineRoot)cocos\scripting\auto-generated\js-bindings;$(EngineRoot)cocos\scripting\javascript\bindings;$(EngineRoot)cocos\audio\include;$(EngineRoot)external\spidermonkey\include\win32;$(EngineRoot)external\chipmunk\include\chipmunk;$(EngineRoot)extensions;%(AdditionalIncludeDirectories)
WIN32;_WINDOWS;STRICT;_DEBUG;DEBUG;XP_WIN;JS_HAVE___INTN;JS_INTPTR_TYPE=int;COCOS2D_DEBUG=1;COCOS2D_JAVASCRIPT=1;CC_ENABLE_CHIPMUNK_INTEGRATION=1;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)
false
EnableFastChecks
@@ -96,11 +98,11 @@
if not exist "$(OutDir)" mkdir "$(OutDir)"
-xcopy /Y /Q "$(ProjectDir)..\..\..\..\scripting\javascript\spidermonkey-win32\lib\*.*" "$(OutDir)"
+xcopy /Y /Q "$(ProjectDir)..\..\..\..\external\spidermonkey\prebuilt\win32\*.*" "$(OutDir)"
- libcocos2d.lib;libExtensions.lib;libCocosDenshion.lib;libchipmunk.lib;libJSBinding.lib;libcurl_imp.lib;mozjs-23.0.lib;ws2_32.lib;sqlite3.lib;%(AdditionalDependencies)
+ libcurl_imp.lib;mozjs-23.0.lib;ws2_32.lib;sqlite3.lib;%(AdditionalDependencies)
$(OutDir);%(AdditionalLibraryDirectories)
true
Windows
@@ -110,7 +112,7 @@ xcopy /Y /Q "$(ProjectDir)..\..\..\..\scripting\javascript\spidermonkey-win32\li
if not exist "$(OutDir)" mkdir "$(OutDir)"
if exist "$(OutDir)\MoonWarriorsRes" rd /s /q "$(OutDir)\MoonWarriorsRes"
mkdir "$(OutDir)\MoonWarriorsRes"
-xcopy "$(ProjectDir)..\..\..\..\scripting\javascript\bindings\js\*.js" "$(OutDir)\MoonWarriorsRes" /e /Y
+xcopy "$(ProjectDir)..\..\..\..\cocos\scripting\javascript\script\*.js" "$(OutDir)\MoonWarriorsRes" /e /Y
xcopy "$(ProjectDir)..\..\Shared\games\MoonWarriors" "$(OutDir)\MoonWarriorsRes\" /e /Y
Copy js and resource files.
@@ -129,7 +131,7 @@ xcopy "$(ProjectDir)..\..\Shared\games\MoonWarriors" "$(OutDir)\MoonWarriorsRes\
testjs_p.c
- .;..\Classes;$(ProjectDir)..\..\..\..\scripting\javascript\spidermonkey-win32\include;$(ProjectDir)..\..\..\..\external\chipmunk\include\chipmunk;$(ProjectDir)..\..\..\..\scripting\auto-generated\js-bindings;$(ProjectDir)..\..\..\..\scripting\javascript\bindings;$(ProjectDir)..\..\..\..\extensions;$(ProjectDir)..\..\..\..\cocos2dx;$(ProjectDir)..\..\..\..\cocos2dx\include;$(ProjectDir)..\..\..\..\cocos2dx\kazmath\include;$(ProjectDir)..\..\..\..\cocos2dx\platform\win32;$(ProjectDir)..\..\..\..\cocos2dx\platform\third_party\win32;$(ProjectDir)..\..\..\..\cocos2dx\platform\third_party\win32\OGLES;$(ProjectDir)..\..\..\..\audio\include;%(AdditionalIncludeDirectories)
+ .;..\Classes;$(EngineRoot);$(EngineRoot)cocos\editor-support;$(EngineRoot)cocos\scripting\auto-generated\js-bindings;$(EngineRoot)cocos\scripting\javascript\bindings;$(EngineRoot)cocos\audio\include;$(EngineRoot)external\spidermonkey\include\win32;$(EngineRoot)external\chipmunk\include\chipmunk;$(EngineRoot)extensions;%(AdditionalIncludeDirectories)
WIN32;_WINDOWS;STRICT;NDEBUG;XP_WIN;JS_HAVE___INTN;JS_INTPTR_TYPE=int;COCOS2D_JAVASCRIPT=1;CC_ENABLE_CHIPMUNK_INTEGRATION=1;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)
@@ -149,20 +151,21 @@ xcopy "$(ProjectDir)..\..\Shared\games\MoonWarriors" "$(OutDir)\MoonWarriorsRes\
if not exist "$(OutDir)" mkdir "$(OutDir)"
-xcopy /Y /Q "$(ProjectDir)..\..\..\..\scripting\javascript\spidermonkey-win32\lib\*.*" "$(OutDir)"
+xcopy /Y /Q "$(ProjectDir)..\..\..\..\external\spidermonkey\prebuilt\win32\*.*" "$(OutDir)"
- libcocos2d.lib;libExtensions.lib;libCocosDenshion.lib;libchipmunk.lib;libJSBinding.lib;libcurl_imp.lib;mozjs-23.0.lib;ws2_32.lib;sqlite3.lib;%(AdditionalDependencies)
+ libcurl_imp.lib;mozjs-23.0.lib;ws2_32.lib;sqlite3.lib;%(AdditionalDependencies)
$(OutDir);%(AdditionalLibraryDirectories)
Windows
MachineX86
+ true
if not exist "$(OutDir)" mkdir "$(OutDir)"
if exist "$(OutDir)\MoonWarriorsRes" rd /s /q "$(OutDir)\MoonWarriorsRes"
mkdir "$(OutDir)\MoonWarriorsRes"
-xcopy "$(ProjectDir)..\..\..\..\scripting\javascript\bindings\js\*.js" "$(OutDir)\MoonWarriorsRes" /e /Y
+xcopy "$(ProjectDir)..\..\..\..\cocos\scripting\javascript\script\*.js" "$(OutDir)\MoonWarriorsRes" /e /Y
xcopy "$(ProjectDir)..\..\Shared\games\MoonWarriors" "$(OutDir)\MoonWarriorsRes\" /e /Y
Copy js and resource files.
@@ -183,13 +186,47 @@ xcopy "$(ProjectDir)..\..\Shared\games\MoonWarriors" "$(OutDir)\MoonWarriorsRes\
-
+
{98a51ba8-fc3a-415b-ac8f-8c7bd464e93e}
- false
-
+
{f8edd7fa-9a51-4e80-baeb-860825d2eac6}
- false
+
+
+ {811c0dab-7b96-4bd3-a154-b7572b58e4ab}
+
+
+ {b57cf53f-2e49-4031-9822-047cc0e6bde2}
+
+
+ {7e06e92c-537a-442b-9e4a-4761c84f8a1a}
+
+
+ {df2638c0-8128-4847-867c-6eafe3dee7b5}
+
+
+ {21070e58-eec6-4e16-8b4f-6d083df55790}
+
+
+ {f9da0fc1-651b-457b-962e-a4d61cebf5fd}
+
+
+ {625f7391-9a91-48a1-8cfc-79508c822637}
+
+
+ {68f5f371-bd7b-4c30-ae5b-0b08f22e0cde}
+
+
+ {39379840-825a-45a0-b363-c09ffef864bd}
+
+
+ {632a8f38-d0f0-4d22-86b3-d69f5e6bf63a}
+
+
+ {21b2c324-891f-48ea-ad1a-5ae13de12e28}
+
+
+ {207bc7a9-ccf1-4f2f-a04d-45f72242ae25}
diff --git a/samples/Javascript/TestJavascript/Classes/AppDelegate.cpp b/samples/Javascript/TestJavascript/Classes/AppDelegate.cpp
index 51ebd8d85f..2a26806916 100644
--- a/samples/Javascript/TestJavascript/Classes/AppDelegate.cpp
+++ b/samples/Javascript/TestJavascript/Classes/AppDelegate.cpp
@@ -5,14 +5,18 @@
#include "ScriptingCore.h"
#include "jsb_cocos2dx_auto.hpp"
#include "jsb_cocos2dx_extension_auto.hpp"
-#include "jsb_cocos2dx_extension_manual.h"
+#include "jsb_cocos2dx_builder_auto.hpp"
+#include "jsb_cocos2dx_studio_auto.hpp"
+#include "extension/jsb_cocos2dx_extension_manual.h"
+#include "cocostudio/jsb_cocos2dx_studio_manual.h"
#include "cocos2d_specifics.hpp"
-#include "js_bindings_chipmunk_registration.h"
-#include "js_bindings_system_registration.h"
+#include "cocosbuilder/cocosbuilder_specifics.hpp"
+#include "chipmunk/js_bindings_chipmunk_registration.h"
+#include "localstorage/js_bindings_system_registration.h"
#include "jsb_opengl_registration.h"
-#include "XMLHTTPRequest.h"
-#include "jsb_websocket.h"
-#include "js_bindings_ccbreader.h"
+#include "network/XMLHTTPRequest.h"
+#include "network/jsb_websocket.h"
+#include "cocosbuilder/js_bindings_ccbreader.h"
USING_NS_CC;
USING_NS_CC_EXT;
@@ -54,7 +58,12 @@ bool AppDelegate::applicationDidFinishLaunching()
sc->addRegisterCallback(jsb_register_system);
sc->addRegisterCallback(MinXmlHttpRequest::_js_register);
sc->addRegisterCallback(register_jsb_websocket);
+
+ sc->addRegisterCallback(register_all_cocos2dx_builder);
sc->addRegisterCallback(register_CCBuilderReader);
+
+ sc->addRegisterCallback(register_all_cocos2dx_studio);
+ sc->addRegisterCallback(register_all_cocos2dx_studio_manual);
sc->start();
diff --git a/samples/Javascript/TestJavascript/proj.android/build_native.cmd b/samples/Javascript/TestJavascript/proj.android/build_native.cmd
index 19ee06dd56..a0a5ec0785 100644
--- a/samples/Javascript/TestJavascript/proj.android/build_native.cmd
+++ b/samples/Javascript/TestJavascript/proj.android/build_native.cmd
@@ -56,7 +56,7 @@ exit /b 1
set COCOS2DX_ROOT=%~dp0..\..\..\..
set APP_ROOT=%~dp0..
set APP_ANDROID_ROOT=%~dp0
-set BINDINGS_JS_ROOT=%APP_ROOT%\..\..\..\scripting\javascript\bindings\js
+set BINDINGS_JS_ROOT=%COCOS2DX_ROOT%\cocos\scripting\javascript\script
if "%buildexternalsfromsource%"=="1" (goto :MODULE1) else (goto :MODULE2)
:MODULE1
@@ -65,7 +65,7 @@ if "%buildexternalsfromsource%"=="1" (goto :MODULE1) else (goto :MODULE2)
goto :COPY_RES
:MODULE2
echo "Using prebuilt externals"
- set NDK_MODULE_PATH=%COCOS2DX_ROOT%;%COCOS2DX_ROOT%\cocos2dx\platform\third_party\android\prebuilt
+ set NDK_MODULE_PATH=%COCOS2DX_ROOT%;%COCOS2DX_ROOT%\cocos;%COCOS2DX_ROOT%\external
:COPY_RES
echo NDK_ROOT = %NDK_ROOT%
@@ -86,5 +86,5 @@ xcopy /e /q /r /y %APP_ROOT%\..\Shared\tests\* %APP_ANDROID_ROOT%\assets
rem copy bindings/*.js into assets' root
xcopy /e /q /r /y %BINDINGS_JS_ROOT%\* %APP_ANDROID_ROOT%\assets
-call %NDK_ROOT%\ndk-build.cmd %PARALLEL_BUILD_FLAG% NDK_LOG=0 V=0
+call %NDK_ROOT%\ndk-build.cmd %PARALLEL_BUILD_FLAG% NDK_LOG=0 V=0 %*
pause
\ No newline at end of file
diff --git a/samples/Javascript/TestJavascript/proj.android/project.properties b/samples/Javascript/TestJavascript/proj.android/project.properties
index db4ff43492..0a6dc6664d 100644
--- a/samples/Javascript/TestJavascript/proj.android/project.properties
+++ b/samples/Javascript/TestJavascript/proj.android/project.properties
@@ -8,6 +8,6 @@
# project structure.
# Project target.
-target=android-13
+target=android-10
-android.library.reference.1=../../../../cocos2dx/platform/android/java
+android.library.reference.1=../../../../cocos/2d/platform/android/java
diff --git a/samples/Javascript/TestJavascript/proj.win32/TestJavascript.vcxproj b/samples/Javascript/TestJavascript/proj.win32/TestJavascript.vcxproj
index 6af44de033..1af52eccb0 100644
--- a/samples/Javascript/TestJavascript/proj.win32/TestJavascript.vcxproj
+++ b/samples/Javascript/TestJavascript/proj.win32/TestJavascript.vcxproj
@@ -34,11 +34,13 @@
-
+
+
-
+
+
@@ -77,7 +79,7 @@
Disabled
- $(ProjectDir)..\Classes;$(ProjectDir)..\..\..\..\scripting\javascript\spidermonkey-win32\include;$(ProjectDir)..\..\..\..\external\chipmunk\include\chipmunk;$(ProjectDir)..\..\..\..\extensions;$(ProjectDir)..\..\..\..\scripting\javascript\bindings;$(ProjectDir)..\..\..\..\scripting\auto-generated\js-bindings;$(ProjectDir)..\..\..\..\cocos2dx;$(ProjectDir)..\..\..\..\cocos2dx\include;$(ProjectDir)..\..\..\..\cocos2dx\kazmath\include;$(ProjectDir)..\..\..\..\cocos2dx\platform\win32;$(ProjectDir)..\..\..\..\cocos2dx\platform\third_party\win32;$(ProjectDir)..\..\..\..\cocos2dx\platform\third_party\win32\OGLES;$(ProjectDir)..\..\..\..\audio\include;%(AdditionalIncludeDirectories)
+ $(ProjectDir)..\Classes;$(EngineRoot);$(EngineRoot)cocos;$(EngineRoot)cocos\storage;$(EngineRoot)cocos\editor-support;$(EngineRoot)cocos\scripting\auto-generated\js-bindings;$(EngineRoot)cocos\scripting\javascript\bindings;$(EngineRoot)cocos\audio\include;$(EngineRoot)external\spidermonkey\include\win32;$(EngineRoot)external\chipmunk\include\chipmunk;$(EngineRoot)extensions;%(AdditionalIncludeDirectories)
WIN32;_WINDOWS;STRICT;DEBUG;_DEBUG;XP_WIN;JS_HAVE___INTN;JS_INTPTR_TYPE=int;COCOS2D_DEBUG=1;COCOS2D_JAVASCRIPT=1;CC_ENABLE_CHIPMUNK_INTEGRATION=1;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)
false
EnableFastChecks
@@ -96,12 +98,12 @@
if not exist "$(OutDir)" mkdir "$(OutDir)"
-xcopy /Y /Q "$(ProjectDir)..\..\..\..\scripting\javascript\spidermonkey-win32\lib\*.*" "$(OutDir)"
-xcopy /Y /Q "$(ProjectDir)..\..\..\..\external\libwebsockets\win32\lib\*.*" "$(OutDir)"
+xcopy /Y /Q "$(ProjectDir)..\..\..\..\external\spidermonkey\prebuilt\win32\*.*" "$(OutDir)"
+xcopy /Y /Q "$(ProjectDir)..\..\..\..\external\websockets\prebuilt\win32\*.*" "$(OutDir)"
- libcocos2d.lib;libExtensions.lib;libCocosDenshion.lib;libchipmunk.lib;libJSBinding.lib;libcurl_imp.lib;mozjs-23.0.lib;ws2_32.lib;sqlite3.lib;websockets.lib;%(AdditionalDependencies)
+ libcurl_imp.lib;mozjs-23.0.lib;ws2_32.lib;sqlite3.lib;websockets.lib;%(AdditionalDependencies)
$(OutDir);%(AdditionalLibraryDirectories)
true
Windows
@@ -111,7 +113,7 @@ xcopy /Y /Q "$(ProjectDir)..\..\..\..\external\libwebsockets\win32\lib\*.*" "$(O
if not exist "$(OutDir)" mkdir "$(OutDir)"
if exist "$(OutDir)\TestJavascriptRes" rd /s /q "$(OutDir)\TestJavascriptRes"
mkdir "$(OutDir)\TestJavascriptRes"
-xcopy "$(ProjectDir)..\..\..\..\scripting\javascript\bindings\js\*.js" "$(OutDir)\TestJavascriptRes\" /e /Y
+xcopy "$(ProjectDir)..\..\..\..\cocos\scripting\javascript\script\*.js" "$(OutDir)\TestJavascriptRes\" /e /Y
xcopy "$(ProjectDir)..\..\Shared\tests" "$(OutDir)\TestJavascriptRes\" /e /Y
@@ -132,7 +134,7 @@ xcopy "$(ProjectDir)..\..\Shared\tests" "$(OutDir)\TestJavascriptRes\" /e /Ytestjs_p.c
- $(ProjectDir)..\Classes;$(ProjectDir)..\..\..\..\scripting\javascript\spidermonkey-win32\include;$(ProjectDir)..\..\..\..\external\chipmunk\include\chipmunk;$(ProjectDir)..\..\..\..\extensions;$(ProjectDir)..\..\..\..\scripting\javascript\bindings;$(ProjectDir)..\..\..\..\scripting\auto-generated\js-bindings;$(ProjectDir)..\..\..\..\cocos2dx;$(ProjectDir)..\..\..\..\cocos2dx\include;$(ProjectDir)..\..\..\..\cocos2dx\kazmath\include;$(ProjectDir)..\..\..\..\cocos2dx\platform\win32;$(ProjectDir)..\..\..\..\cocos2dx\platform\third_party\win32;$(ProjectDir)..\..\..\..\cocos2dx\platform\third_party\win32\OGLES;$(ProjectDir)..\..\..\..\audio\include;%(AdditionalIncludeDirectories)
+ $(ProjectDir)..\Classes;$(EngineRoot);$(EngineRoot)cocos;$(EngineRoot)cocos\storage;$(EngineRoot)cocos\editor-support;$(EngineRoot)cocos\scripting\auto-generated\js-bindings;$(EngineRoot)cocos\scripting\javascript\bindings;$(EngineRoot)cocos\audio\include;$(EngineRoot)external\spidermonkey\include\win32;$(EngineRoot)external\chipmunk\include\chipmunk;$(EngineRoot)extensions;%(AdditionalIncludeDirectories)
WIN32;_WINDOWS;STRICT;NDEBUG;XP_WIN;JS_HAVE___INTN;JS_INTPTR_TYPE=int;COCOS2D_JAVASCRIPT=1;CC_ENABLE_CHIPMUNK_INTEGRATION=1;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)
@@ -152,21 +154,22 @@ xcopy "$(ProjectDir)..\..\Shared\tests" "$(OutDir)\TestJavascriptRes\" /e /Y
if not exist "$(OutDir)" mkdir "$(OutDir)"
-xcopy /Y /Q "$(ProjectDir)..\..\..\..\scripting\javascript\spidermonkey-win32\lib\*.*" "$(OutDir)"
-xcopy /Y /Q "$(ProjectDir)..\..\..\..\external\libwebsockets\win32\lib\*.*" "$(OutDir)"
+xcopy /Y /Q "$(ProjectDir)..\..\..\..\external\spidermonkey\prebuilt\win32\*.*" "$(OutDir)"
+xcopy /Y /Q "$(ProjectDir)..\..\..\..\external\websockets\prebuilt\win32\*.*" "$(OutDir)"
- libcocos2d.lib;libExtensions.lib;libCocosDenshion.lib;libchipmunk.lib;libJSBinding.lib;libcurl_imp.lib;mozjs-23.0.lib;ws2_32.lib;sqlite3.lib;websockets.lib;%(AdditionalDependencies)
+ libcurl_imp.lib;mozjs-23.0.lib;ws2_32.lib;sqlite3.lib;websockets.lib;%(AdditionalDependencies)
$(OutDir);%(AdditionalLibraryDirectories)
Windows
MachineX86
+ true
if not exist "$(OutDir)" mkdir "$(OutDir)"
if exist "$(OutDir)\TestJavascriptRes" rd /s /q "$(OutDir)\TestJavascriptRes"
mkdir "$(OutDir)\TestJavascriptRes"
-xcopy "$(ProjectDir)..\..\..\..\scripting\javascript\bindings\js\*.js" "$(OutDir)\TestJavascriptRes\" /e /Y
+xcopy "$(ProjectDir)..\..\..\..\cocos\scripting\javascript\script\*.js" "$(OutDir)\TestJavascriptRes\" /e /Y
xcopy "$(ProjectDir)..\..\Shared\tests" "$(OutDir)\TestJavascriptRes\" /e /Y
Copy js and resource files.
@@ -187,14 +190,62 @@ xcopy "$(ProjectDir)..\..\Shared\tests" "$(OutDir)\TestJavascriptRes\" /e /Y
-
+
{98a51ba8-fc3a-415b-ac8f-8c7bd464e93e}
false
-
+
{f8edd7fa-9a51-4e80-baeb-860825d2eac6}
false
+
+ {811c0dab-7b96-4bd3-a154-b7572b58e4ab}
+
+
+ {b57cf53f-2e49-4031-9822-047cc0e6bde2}
+
+
+ {b7c2a162-dec9-4418-972e-240ab3cbfcae}
+
+
+ {7e06e92c-537a-442b-9e4a-4761c84f8a1a}
+
+
+ {df2638c0-8128-4847-867c-6eafe3dee7b5}
+
+
+ {21070e58-eec6-4e16-8b4f-6d083df55790}
+
+
+ {f9da0fc1-651b-457b-962e-a4d61cebf5fd}
+
+
+ {79d34511-e54e-410a-8bba-ef175ad6c695}
+
+
+ {625f7391-9a91-48a1-8cfc-79508c822637}
+
+
+ {68f5f371-bd7b-4c30-ae5b-0b08f22e0cde}
+
+
+ {3bec13f5-e227-4d80-bc77-1c857f83bcfc}
+
+
+ {39379840-825a-45a0-b363-c09ffef864bd}
+
+
+ {632a8f38-d0f0-4d22-86b3-d69f5e6bf63a}
+
+
+ {21b2c324-891f-48ea-ad1a-5ae13de12e28}
+
+
+ {929480e7-23c0-4df6-8456-096d71547116}
+
+
+ {207bc7a9-ccf1-4f2f-a04d-45f72242ae25}
+
diff --git a/samples/Javascript/WatermelonWithMe/Classes/AppDelegate.cpp b/samples/Javascript/WatermelonWithMe/Classes/AppDelegate.cpp
index 3e9c616b35..663cd87769 100644
--- a/samples/Javascript/WatermelonWithMe/Classes/AppDelegate.cpp
+++ b/samples/Javascript/WatermelonWithMe/Classes/AppDelegate.cpp
@@ -5,11 +5,12 @@
#include "ScriptingCore.h"
#include "jsb_cocos2dx_auto.hpp"
#include "jsb_cocos2dx_extension_auto.hpp"
-#include "jsb_cocos2dx_extension_manual.h"
+#include "jsb_cocos2dx_builder_auto.hpp"
+#include "extension/jsb_cocos2dx_extension_manual.h"
#include "cocos2d_specifics.hpp"
-#include "js_bindings_chipmunk_registration.h"
-#include "js_bindings_ccbreader.h"
-#include "js_bindings_system_registration.h"
+#include "chipmunk/js_bindings_chipmunk_registration.h"
+#include "cocosbuilder/js_bindings_ccbreader.h"
+#include "localstorage/js_bindings_system_registration.h"
#include "jsb_opengl_registration.h"
USING_NS_CC;
@@ -46,6 +47,7 @@ bool AppDelegate::applicationDidFinishLaunching()
sc->addRegisterCallback(register_all_cocos2dx_extension_manual);
sc->addRegisterCallback(register_cocos2dx_js_extensions);
sc->addRegisterCallback(jsb_register_chipmunk);
+ sc->addRegisterCallback(register_all_cocos2dx_builder);
sc->addRegisterCallback(register_CCBuilderReader);
sc->addRegisterCallback(jsb_register_system);
sc->addRegisterCallback(JSB_register_opengl);
diff --git a/samples/Javascript/WatermelonWithMe/proj.android/build_native.cmd b/samples/Javascript/WatermelonWithMe/proj.android/build_native.cmd
index 9594dada6b..a592025ff0 100644
--- a/samples/Javascript/WatermelonWithMe/proj.android/build_native.cmd
+++ b/samples/Javascript/WatermelonWithMe/proj.android/build_native.cmd
@@ -57,7 +57,7 @@ set COCOS2DX_ROOT=%~dp0..\..\..\..
set APP_ROOT=%~dp0..
set APP_ANDROID_ROOT=%~dp0
set RESROUCE_ROOT="%APP_ROOT%\..\Shared\games\WatermelonWithMe"
-set BINDINGS_JS_ROOT=%APP_ROOT%\..\..\..\scripting\javascript\bindings\js
+set BINDINGS_JS_ROOT=%COCOS2DX_ROOT%\cocos\scripting\javascript\script
if "%buildexternalsfromsource%"=="1" (goto :MODULE1) else (goto :MODULE2)
:MODULE1
@@ -66,7 +66,7 @@ if "%buildexternalsfromsource%"=="1" (goto :MODULE1) else (goto :MODULE2)
goto :COPY_RES
:MODULE2
echo "Using prebuilt externals"
- set NDK_MODULE_PATH=%COCOS2DX_ROOT%;%COCOS2DX_ROOT%\cocos2dx\platform\third_party\android\prebuilt
+ set NDK_MODULE_PATH=%COCOS2DX_ROOT%;%COCOS2DX_ROOT%\cocos;%COCOS2DX_ROOT%\external
:COPY_RES
echo NDK_ROOT = %NDK_ROOT%
@@ -79,7 +79,6 @@ rem make sure assets is exist
if exist %APP_ANDROID_ROOT%\assets rd /q /s %APP_ANDROID_ROOT%\assets
mkdir %APP_ANDROID_ROOT%\assets
-mkdir %APP_ANDROID_ROOT%\assets\res
rem copy Resources/* into assets' root
xcopy /e /q /r /y %RESROUCE_ROOT%\* %APP_ANDROID_ROOT%\assets
@@ -87,5 +86,5 @@ xcopy /e /q /r /y %RESROUCE_ROOT%\* %APP_ANDROID_ROOT%\assets
rem copy bindings/*.js into assets' root
xcopy /e /q /r /y %BINDINGS_JS_ROOT%\* %APP_ANDROID_ROOT%\assets
-call %NDK_ROOT%\ndk-build.cmd %PARALLEL_BUILD_FLAG% NDK_LOG=0 V=0
+call %NDK_ROOT%\ndk-build.cmd %PARALLEL_BUILD_FLAG% NDK_LOG=0 V=0 %*
pause
diff --git a/samples/Javascript/WatermelonWithMe/proj.android/project.properties b/samples/Javascript/WatermelonWithMe/proj.android/project.properties
index db4ff43492..0a6dc6664d 100644
--- a/samples/Javascript/WatermelonWithMe/proj.android/project.properties
+++ b/samples/Javascript/WatermelonWithMe/proj.android/project.properties
@@ -8,6 +8,6 @@
# project structure.
# Project target.
-target=android-13
+target=android-10
-android.library.reference.1=../../../../cocos2dx/platform/android/java
+android.library.reference.1=../../../../cocos/2d/platform/android/java
diff --git a/samples/Javascript/WatermelonWithMe/proj.win32/WatermelonWithMe.vcxproj b/samples/Javascript/WatermelonWithMe/proj.win32/WatermelonWithMe.vcxproj
index b6b8e34883..48f07febfb 100644
--- a/samples/Javascript/WatermelonWithMe/proj.win32/WatermelonWithMe.vcxproj
+++ b/samples/Javascript/WatermelonWithMe/proj.win32/WatermelonWithMe.vcxproj
@@ -34,11 +34,13 @@
-
+
+
-
+
+
@@ -77,7 +79,7 @@
Disabled
- $(ProjectDir)..\Classes;$(ProjectDir)..\..\..\..\scripting\javascript\spidermonkey-win32\include;$(ProjectDir)..\..\..\..\external\chipmunk\include\chipmunk;$(ProjectDir)..\..\..\..\extensions;$(ProjectDir)..\..\..\..\scripting\auto-generated\js-bindings;$(ProjectDir)..\..\..\..\scripting\javascript\bindings;$(ProjectDir)..\..\..\..\cocos2dx;$(ProjectDir)..\..\..\..\cocos2dx\include;$(ProjectDir)..\..\..\..\cocos2dx\kazmath\include;$(ProjectDir)..\..\..\..\cocos2dx\platform\win32;$(ProjectDir)..\..\..\..\cocos2dx\platform\third_party\win32;$(ProjectDir)..\..\..\..\cocos2dx\platform\third_party\win32\OGLES;$(ProjectDir)..\..\..\..\audio\include;%(AdditionalIncludeDirectories)
+ $(ProjectDir)..\Classes;$(EngineRoot);$(EngineRoot)cocos\editor-support;$(EngineRoot)cocos\scripting\auto-generated\js-bindings;$(EngineRoot)cocos\scripting\javascript\bindings;$(EngineRoot)cocos\audio\include;$(EngineRoot)external\spidermonkey\include\win32;$(EngineRoot)external\chipmunk\include\chipmunk;$(EngineRoot)extensions;%(AdditionalIncludeDirectories)
WIN32;_WINDOWS;STRICT;_DEBUG;DEBUG;XP_WIN;JS_HAVE___INTN;JS_INTPTR_TYPE=int;COCOS2D_DEBUG=1;COCOS2D_JAVASCRIPT=1;CC_ENABLE_CHIPMUNK_INTEGRATION=1;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)
false
EnableFastChecks
@@ -96,11 +98,11 @@
if not exist "$(OutDir)" mkdir "$(OutDir)"
-xcopy /Y /Q "$(ProjectDir)..\..\..\..\scripting\javascript\spidermonkey-win32\lib\*.*" "$(OutDir)"
+xcopy /Y /Q "$(ProjectDir)..\..\..\..\external\spidermonkey\prebuilt\win32\*.*" "$(OutDir)"
- libcocos2d.lib;libExtensions.lib;libCocosDenshion.lib;libchipmunk.lib;libJSBinding.lib;libcurl_imp.lib;mozjs-23.0.lib;ws2_32.lib;sqlite3.lib;%(AdditionalDependencies)
+ libcurl_imp.lib;mozjs-23.0.lib;ws2_32.lib;sqlite3.lib;%(AdditionalDependencies)
$(OutDir);%(AdditionalLibraryDirectories)
true
Windows
@@ -110,7 +112,7 @@ xcopy /Y /Q "$(ProjectDir)..\..\..\..\scripting\javascript\spidermonkey-win32\li
if not exist "$(OutDir)" mkdir "$(OutDir)"
if exist "$(OutDir)\WatermelonWithMeRes" rd /s /q "$(OutDir)\WatermelonWithMeRes"
mkdir "$(OutDir)\WatermelonWithMeRes"
-xcopy "$(ProjectDir)..\..\..\..\scripting\javascript\bindings\js\*.js" "$(OutDir)\WatermelonWithMeRes" /e /Y
+xcopy "$(ProjectDir)..\..\..\..\cocos\scripting\javascript\script\*.js" "$(OutDir)\WatermelonWithMeRes" /e /Y
xcopy "$(ProjectDir)..\..\Shared\games\WatermelonWithMe" "$(OutDir)\WatermelonWithMeRes\" /e /Y
@@ -131,7 +133,7 @@ xcopy "$(ProjectDir)..\..\Shared\games\WatermelonWithMe" "$(OutDir)\WatermelonWi
testjs_p.c
- $(ProjectDir)..\Classes;$(ProjectDir)..\..\..\..\scripting\javascript\spidermonkey-win32\include;$(ProjectDir)..\..\..\..\external\chipmunk\include\chipmunk;$(ProjectDir)..\..\..\..\extensions;$(ProjectDir)..\..\..\..\scripting\auto-generated\js-bindings;$(ProjectDir)..\..\..\..\scripting\javascript\bindings;$(ProjectDir)..\..\..\..\cocos2dx;$(ProjectDir)..\..\..\..\cocos2dx\include;$(ProjectDir)..\..\..\..\cocos2dx\kazmath\include;$(ProjectDir)..\..\..\..\cocos2dx\platform\win32;$(ProjectDir)..\..\..\..\cocos2dx\platform\third_party\win32;$(ProjectDir)..\..\..\..\cocos2dx\platform\third_party\win32\OGLES;$(ProjectDir)..\..\..\..\audio\include;%(AdditionalIncludeDirectories)
+ $(ProjectDir)..\Classes;$(EngineRoot);$(EngineRoot)cocos\editor-support;$(EngineRoot)cocos\scripting\auto-generated\js-bindings;$(EngineRoot)cocos\scripting\javascript\bindings;$(EngineRoot)cocos\audio\include;$(EngineRoot)external\spidermonkey\include\win32;$(EngineRoot)external\chipmunk\include\chipmunk;$(EngineRoot)extensions;%(AdditionalIncludeDirectories)
WIN32;_WINDOWS;STRICT;NDEBUG;XP_WIN;JS_HAVE___INTN;JS_INTPTR_TYPE=int;COCOS2D_JAVASCRIPT=1;CC_ENABLE_CHIPMUNK_INTEGRATION=1;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)
@@ -151,20 +153,21 @@ xcopy "$(ProjectDir)..\..\Shared\games\WatermelonWithMe" "$(OutDir)\WatermelonWi
if not exist "$(OutDir)" mkdir "$(OutDir)"
-xcopy /Y /Q "$(ProjectDir)..\..\..\..\scripting\javascript\spidermonkey-win32\lib\*.*" "$(OutDir)"
+xcopy /Y /Q "$(ProjectDir)..\..\..\..\external\spidermonkey\prebuilt\win32\*.*" "$(OutDir)"
- libcocos2d.lib;libExtensions.lib;libCocosDenshion.lib;libchipmunk.lib;libJSBinding.lib;libcurl_imp.lib;mozjs-23.0.lib;ws2_32.lib;sqlite3.lib;%(AdditionalDependencies)
+ libcurl_imp.lib;mozjs-23.0.lib;ws2_32.lib;sqlite3.lib;%(AdditionalDependencies)
$(OutDir);%(AdditionalLibraryDirectories)
Windows
MachineX86
+ true
if not exist "$(OutDir)" mkdir "$(OutDir)"
if exist "$(OutDir)\WatermelonWithMeRes" rd /s /q "$(OutDir)\WatermelonWithMeRes"
mkdir "$(OutDir)\WatermelonWithMeRes"
-xcopy "$(ProjectDir)..\..\..\..\scripting\javascript\bindings\js\*.js" "$(OutDir)\WatermelonWithMeRes" /e /Y
+xcopy "$(ProjectDir)..\..\..\..\cocos\scripting\javascript\script\*.js" "$(OutDir)\WatermelonWithMeRes" /e /Y
xcopy "$(ProjectDir)..\..\Shared\games\WatermelonWithMe" "$(OutDir)\WatermelonWithMeRes\" /e /Y
Copy js and resource files.
@@ -185,13 +188,47 @@ xcopy "$(ProjectDir)..\..\Shared\games\WatermelonWithMe" "$(OutDir)\WatermelonWi
-
+
{98a51ba8-fc3a-415b-ac8f-8c7bd464e93e}
- false
-
+
{f8edd7fa-9a51-4e80-baeb-860825d2eac6}
- false
+
+
+ {811c0dab-7b96-4bd3-a154-b7572b58e4ab}
+
+
+ {b57cf53f-2e49-4031-9822-047cc0e6bde2}
+
+
+ {7e06e92c-537a-442b-9e4a-4761c84f8a1a}
+
+
+ {df2638c0-8128-4847-867c-6eafe3dee7b5}
+
+
+ {21070e58-eec6-4e16-8b4f-6d083df55790}
+
+
+ {f9da0fc1-651b-457b-962e-a4d61cebf5fd}
+
+
+ {625f7391-9a91-48a1-8cfc-79508c822637}
+
+
+ {68f5f371-bd7b-4c30-ae5b-0b08f22e0cde}
+
+
+ {39379840-825a-45a0-b363-c09ffef864bd}
+
+
+ {632a8f38-d0f0-4d22-86b3-d69f5e6bf63a}
+
+
+ {21b2c324-891f-48ea-ad1a-5ae13de12e28}
+
+
+ {207bc7a9-ccf1-4f2f-a04d-45f72242ae25}
diff --git a/samples/Lua/HelloLua/proj.android/build_native.cmd b/samples/Lua/HelloLua/proj.android/build_native.cmd
index 7daf57dd23..4116608669 100644
--- a/samples/Lua/HelloLua/proj.android/build_native.cmd
+++ b/samples/Lua/HelloLua/proj.android/build_native.cmd
@@ -62,7 +62,7 @@ if "%buildexternalsfromsource%"=="1" (goto :MODULE1) else (goto :MODULE2)
goto :COPY_RES
:MODULE2
echo "Using prebuilt externals"
- set NDK_MODULE_PATH=%COCOS2DX_ROOT%;%COCOS2DX_ROOT%\cocos2dx\platform\third_party\android\prebuilt
+ set NDK_MODULE_PATH=%COCOS2DX_ROOT%;%COCOS2DX_ROOT%\cocos;%COCOS2DX_ROOT%\external
:COPY_RES
echo NDK_ROOT = %NDK_ROOT%
@@ -75,13 +75,12 @@ rem make sure assets is exist
if exist %APP_ANDROID_ROOT%\assets rd /q /s %APP_ANDROID_ROOT%\assets
mkdir %APP_ANDROID_ROOT%\assets
-mkdir %APP_ANDROID_ROOT%\assets\res
rem copy Resources/* into assets' root
xcopy /e /q /r /y %APP_ROOT%\Resources\* %APP_ANDROID_ROOT%\assets
rem copy common luaScript
-xcopy /e /q /r /y %APP_ROOT%\..\..\scripting\lua\script\* %APP_ANDROID_ROOT%\assets
+xcopy /e /q /r /y %COCOS2DX_ROOT%\cocos\scripting\lua\script\* %APP_ANDROID_ROOT%\assets
-call %NDK_ROOT%\ndk-build.cmd NDK_LOG=0 V=0
+call %NDK_ROOT%\ndk-build.cmd NDK_LOG=0 V=0 %*
pause
\ No newline at end of file
diff --git a/samples/Lua/HelloLua/proj.android/project.properties b/samples/Lua/HelloLua/proj.android/project.properties
index db4ff43492..0a6dc6664d 100644
--- a/samples/Lua/HelloLua/proj.android/project.properties
+++ b/samples/Lua/HelloLua/proj.android/project.properties
@@ -8,6 +8,6 @@
# project structure.
# Project target.
-target=android-13
+target=android-10
-android.library.reference.1=../../../../cocos2dx/platform/android/java
+android.library.reference.1=../../../../cocos/2d/platform/android/java
diff --git a/samples/Lua/HelloLua/proj.linux/Makefile b/samples/Lua/HelloLua/proj.linux/Makefile
index 1ebb038045..6a0ddf230c 100644
--- a/samples/Lua/HelloLua/proj.linux/Makefile
+++ b/samples/Lua/HelloLua/proj.linux/Makefile
@@ -1,28 +1,22 @@
EXECUTABLE = HelloLua
COCOS_ROOT = ../../../..
-INCLUDES = -I../ -I../Classes -I$(COCOS_ROOT)/audio/include \
- -I$(COCOS_ROOT)/scripting/lua/lua \
- -I$(COCOS_ROOT)/scripting/lua/tolua \
- -I$(COCOS_ROOT)/scripting/lua/cocos2dx_support \
- -I$(COCOS_ROOT)/extensions \
+INCLUDES = -I../Classes \
+ -I$(COCOS_ROOT)/audio/include \
+ -I$(COCOS_ROOT)/cocos/scripting/lua/bindings \
+ -I$(COCOS_ROOT)/external/lua/lua
SOURCES = main.cpp ../Classes/AppDelegate.cpp
SHAREDLIBS += -lcocos2d -lcocosdenshion -llua -lextension
-COCOS_LIBS = $(LIB_DIR)/libcocos2d.so $(LIB_DIR)/libcocosdenshion.so $(LIB_DIR)/liblua.so
-include $(COCOS_ROOT)/cocos2dx/proj.linux/cocos2dx.mk
+include $(COCOS_ROOT)/cocos/2d/cocos2dx.mk
$(TARGET): $(OBJECTS) $(STATICLIBS) $(COCOS_LIBS) $(CORE_MAKEFILE_LIST)
@mkdir -p $(@D)
- cp -n ../../../../scripting/lua/script/* ../../../../samples/Lua/HelloLua/Resources
+ cp -n ../../../../cocos/scripting/lua/script/* ../../../../samples/Lua/HelloLua/Resources
$(LOG_LINK)$(CXX) $(CXXFLAGS) $(OBJECTS) -o $@ $(SHAREDLIBS) $(STATICLIBS) $(LIBS)
$(OBJ_DIR)/%.o: ../%.cpp $(CORE_MAKEFILE_LIST)
@mkdir -p $(@D)
$(LOG_CXX)$(CXX) $(CXXFLAGS) $(INCLUDES) $(DEFINES) $(VISIBILITY) -c $< -o $@
-
-$(OBJ_DIR)/%.o: %.cpp $(CORE_MAKEFILE_LIST)
- @mkdir -p $(@D)
- $(LOG_CXX)$(CXX) $(CXXFLAGS) $(INCLUDES) $(DEFINES) $(VISIBILITY) -c $< -o $@
diff --git a/samples/Lua/HelloLua/proj.win32/HelloLua.vcxproj b/samples/Lua/HelloLua/proj.win32/HelloLua.vcxproj
index f01edcaf43..fb17ddfe2e 100644
--- a/samples/Lua/HelloLua/proj.win32/HelloLua.vcxproj
+++ b/samples/Lua/HelloLua/proj.win32/HelloLua.vcxproj
@@ -34,11 +34,13 @@
-
+
+
-
+
+
@@ -77,7 +79,7 @@
Disabled
- $(ProjectDir)..\Classes;$(ProjectDir)..\..\..\..\scripting\auto-generated\lua-bindings;$(ProjectDir)..\..\..\..\scripting\lua\cocos2dx_support;$(ProjectDir)..\..\..\..\scripting\lua\lua;$(ProjectDir)..\..\..\..\scripting\lua\tolua;$(ProjectDir)..\..\..\..\scripting\lua\src;$(ProjectDir)..\..\..\..\cocos2dx;$(ProjectDir)..\..\..\..\cocos2dx\include;$(ProjectDir)..\..\..\..\cocos2dx\kazmath\include;$(ProjectDir)..\..\..\..\cocos2dx\platform\win32;$(ProjectDir)..\..\..\..\cocos2dx\platform\third_party\win32\OGLES;$(ProjectDir)..\..\..\..\audio\include;$(ProjectDir)..\..\..\..\extensions;$(ProjectDir)..\..\..\..\external\chipmunk\include\chipmunk;%(AdditionalIncludeDirectories)
+ $(ProjectDir)..\Classes;$(EngineRoot)cocos\scripting\auto-generated\lua-bindings;$(EngineRoot)cocos\scripting\lua\bindings;$(EngineRoot)cocos\audio\include;$(EngineRoot)external\lua\lua;$(EngineRoot)external\lua\tolua;$(EngineRoot)external\chipmunk\include\chipmunk;$(EngineRoot)extensions;%(AdditionalIncludeDirectories)
WIN32;_WINDOWS;STRICT;_DEBUG;COCOS2D_DEBUG=1;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)
false
EnableFastChecks
@@ -95,14 +97,14 @@
$(MSBuildProgramFiles32)\Microsoft SDKs\Windows\v7.1A\include;$(IntDir);%(AdditionalIncludeDirectories)
- libcocos2d.lib;libCocosDenshion.lib;liblua.lib;lua51.lib;libExtensions.lib;websockets.lib;libchipmunk.lib;%(AdditionalDependencies)
+ lua51.lib;websockets.lib;%(AdditionalDependencies)
$(OutDir);%(AdditionalLibraryDirectories)
true
Windows
MachineX86
- xcopy "$(ProjectDir)..\..\..\..\scripting\lua\script" "$(ProjectDir)..\..\HelloLua\Resources" /e /Y
+ xcopy "$(ProjectDir)..\..\..\..\cocos\scripting\lua\script" "$(ProjectDir)..\..\HelloLua\Resources" /e /Y
@@ -119,7 +121,7 @@
HelloLua_p.c
- $(ProjectDir)..\Classes;$(ProjectDir)..\..\..\..\scripting\auto-generated\lua-bindings;$(ProjectDir)..\..\..\..\scripting\lua\cocos2dx_support;$(ProjectDir)..\..\..\..\scripting\lua\lua;$(ProjectDir)..\..\..\..\scripting\lua\tolua;$(ProjectDir)..\..\..\..\scripting\lua\src;$(ProjectDir)..\..\..\..\cocos2dx;$(ProjectDir)..\..\..\..\cocos2dx\include;$(ProjectDir)..\..\..\..\cocos2dx\kazmath\include;$(ProjectDir)..\..\..\..\cocos2dx\platform\win32;$(ProjectDir)..\..\..\..\cocos2dx\platform\third_party\win32\OGLES;$(ProjectDir)..\..\..\..\audio\include;%(AdditionalIncludeDirectories)
+ $(ProjectDir)..\Classes;$(EngineRoot)cocos\scripting\auto-generated\lua-bindings;$(EngineRoot)cocos\scripting\lua\bindings;$(EngineRoot)cocos\audio\include;$(EngineRoot)external\lua\lua;$(EngineRoot)external\lua\tolua;$(EngineRoot)external\chipmunk\include\chipmunk;$(EngineRoot)extensions;%(AdditionalIncludeDirectories)
WIN32;_WINDOWS;STRICT;NDEBUG;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)
@@ -138,10 +140,11 @@
$(MSBuildProgramFiles32)\Microsoft SDKs\Windows\v7.1A\include;$(IntDir);%(AdditionalIncludeDirectories)
- libcocos2d.lib;libCocosDenshion.lib;liblua.lib;lua51.lib;libExtensions.lib;%(AdditionalDependencies)
+ lua51.lib;websockets.lib;%(AdditionalDependencies)
$(OutDir);%(AdditionalLibraryDirectories)
Windows
MachineX86
+ true
@@ -153,17 +156,35 @@
-
+
{98a51ba8-fc3a-415b-ac8f-8c7bd464e93e}
- false
-
+
{f8edd7fa-9a51-4e80-baeb-860825d2eac6}
- false
-
+
+ {811c0dab-7b96-4bd3-a154-b7572b58e4ab}
+
+
+ {b57cf53f-2e49-4031-9822-047cc0e6bde2}
+
+
+ {7e06e92c-537a-442b-9e4a-4761c84f8a1a}
+
+
+ {df2638c0-8128-4847-867c-6eafe3dee7b5}
+
+
{ddc3e27f-004d-4dd4-9dd3-931a013d2159}
- false
+
+
+ {632a8f38-d0f0-4d22-86b3-d69f5e6bf63a}
+
+
+ {21b2c324-891f-48ea-ad1a-5ae13de12e28}
+
+
+ {207bc7a9-ccf1-4f2f-a04d-45f72242ae25}
diff --git a/samples/Lua/TestLua/proj.android/build_native.cmd b/samples/Lua/TestLua/proj.android/build_native.cmd
index 5602f41812..fa1fc0ad75 100644
--- a/samples/Lua/TestLua/proj.android/build_native.cmd
+++ b/samples/Lua/TestLua/proj.android/build_native.cmd
@@ -62,7 +62,7 @@ if "%buildexternalsfromsource%"=="1" (goto :MODULE1) else (goto :MODULE2)
goto :COPY_RES
:MODULE2
echo "Using prebuilt externals"
- set NDK_MODULE_PATH=%COCOS2DX_ROOT%;%COCOS2DX_ROOT%\cocos2dx\platform\third_party\android\prebuilt
+ set NDK_MODULE_PATH=%COCOS2DX_ROOT%;%COCOS2DX_ROOT%\cocos;%COCOS2DX_ROOT%\external
:COPY_RES
echo NDK_ROOT = %NDK_ROOT%
@@ -75,13 +75,19 @@ rem make sure assets is exist
if exist %APP_ANDROID_ROOT%\assets rd /q /s %APP_ANDROID_ROOT%\assets
mkdir %APP_ANDROID_ROOT%\assets
-mkdir %APP_ANDROID_ROOT%\assets\res
rem copy Resources/* into assets' root
xcopy /e /q /r /y %APP_ROOT%\Resources\* %APP_ANDROID_ROOT%\assets
rem copy common luaScript
-xcopy /e /q /r /y %APP_ROOT%\..\..\scripting\lua\script\* %APP_ANDROID_ROOT%\assets
+xcopy /e /q /r /y %COCOS2DX_ROOT%\cocos\scripting\lua\script\* %APP_ANDROID_ROOT%\assets
-call %NDK_ROOT%\ndk-build.cmd NDK_LOG=0 V=0
+rem remove test_image_rgba4444.pvr.gz
+del /f /q %APP_ANDROID_ROOT%\assets\Images\test_image_rgba4444.pvr.gz
+del /f /q %APP_ANDROID_ROOT%\assets\Images\test_1021x1024_rgba8888.pvr.gz
+del /f /q %APP_ANDROID_ROOT%\assets\Images\test_1021x1024_rgb888.pvr.gz
+del /f /q %APP_ANDROID_ROOT%\assets\Images\test_1021x1024_rgba4444.pvr.gz
+del /f /q %APP_ANDROID_ROOT%\assets\Images\test_1021x1024_a8.pvr.gz
+
+call %NDK_ROOT%\ndk-build.cmd NDK_LOG=0 V=0 %*
pause
\ No newline at end of file
diff --git a/samples/Lua/TestLua/proj.android/project.properties b/samples/Lua/TestLua/proj.android/project.properties
index db4ff43492..0a6dc6664d 100644
--- a/samples/Lua/TestLua/proj.android/project.properties
+++ b/samples/Lua/TestLua/proj.android/project.properties
@@ -8,6 +8,6 @@
# project structure.
# Project target.
-target=android-13
+target=android-10
-android.library.reference.1=../../../../cocos2dx/platform/android/java
+android.library.reference.1=../../../../cocos/2d/platform/android/java
diff --git a/samples/Lua/TestLua/proj.linux/Makefile b/samples/Lua/TestLua/proj.linux/Makefile
index a23cc6dda4..5151716394 100644
--- a/samples/Lua/TestLua/proj.linux/Makefile
+++ b/samples/Lua/TestLua/proj.linux/Makefile
@@ -1,22 +1,22 @@
EXECUTABLE = TestLua
COCOS_ROOT = ../../../..
-INCLUDES = -I../ -I../Classes -I$(COCOS_ROOT)/audio/include \
- -I$(COCOS_ROOT)/scripting/lua/lua \
- -I$(COCOS_ROOT)/scripting/lua/tolua \
- -I$(COCOS_ROOT)/scripting/lua/cocos2dx_support
+INCLUDES = -I../Classes \
+ -I$(COCOS_ROOT)/audio/include \
+ -I$(COCOS_ROOT)/cocos/scripting/lua/bindings \
+ -I$(COCOS_ROOT)/external/lua/lua
-SOURCES = main.cpp ../Classes/AppDelegate.cpp
+SOURCES = main.cpp \
+../Classes/AppDelegate.cpp
SHAREDLIBS += -lcocos2d -lcocosdenshion -llua
-COCOS_LIBS = $(LIB_DIR)/libcocos2d.so $(LIB_DIR)/libcocosdenshion.so $(LIB_DIR)/liblua.so
-include $(COCOS_ROOT)/cocos2dx/proj.linux/cocos2dx.mk
+include $(COCOS_ROOT)/cocos/2d/cocos2dx.mk
$(TARGET): $(OBJECTS) $(STATICLIBS) $(COCOS_LIBS) $(CORE_MAKEFILE_LIST)
@mkdir -p $(@D)
cp -R -n ../../../../samples/Cpp/TestCpp/Resources ../../../../samples/Lua/TestLua
- cp -n ../../../../scripting/lua/script/* ../../../../samples/Lua/TestLua/Resources
+ cp -n ../../../../cocos/scripting/lua/script/* ../../../../samples/Lua/TestLua/Resources
$(LOG_LINK)$(CXX) $(CXXFLAGS) $(OBJECTS) -o $@ $(SHAREDLIBS) $(STATICLIBS) $(LIBS)
$(OBJ_DIR)/%.o: ../%.cpp $(CORE_MAKEFILE_LIST)
diff --git a/samples/Lua/TestLua/proj.win32/TestLua.win32.vcxproj b/samples/Lua/TestLua/proj.win32/TestLua.win32.vcxproj
index 1d7682a2d2..0a4ea9edbd 100644
--- a/samples/Lua/TestLua/proj.win32/TestLua.win32.vcxproj
+++ b/samples/Lua/TestLua/proj.win32/TestLua.win32.vcxproj
@@ -36,11 +36,13 @@
-
+
+
-
+
+
@@ -64,7 +66,7 @@
- $(ProjectDir)..\Classes;$(ProjectDir)..\..\..\..\scripting\auto-generated\lua-bindings;$(ProjectDir)..\..\..\..\scripting\lua\cocos2dx_support;$(ProjectDir)..\..\..\..\scripting\lua\lua;$(ProjectDir)..\..\..\..\scripting\lua\tolua;$(ProjectDir)..\..\..\..\scripting\lua\src;$(ProjectDir)..\..\..\..\cocos2dx;$(ProjectDir)..\..\..\..\cocos2dx\include;$(ProjectDir)..\..\..\..\cocos2dx\kazmath\include;$(ProjectDir)..\..\..\..\cocos2dx\platform\win32;$(ProjectDir)..\..\..\..\cocos2dx\platform\third_party\win32;$(ProjectDir)..\..\..\..\cocos2dx\platform\third_party\win32\OGLES;$(ProjectDir)..\..\..\..\external;$(ProjectDir)..\..\..\..\external\libwebsockets\win32\include;$(ProjectDir)..\..\..\..\external\chipmunk\include\chipmunk;$(ProjectDir)..\..\..\..\audio\include;%(AdditionalIncludeDirectories)
+ $(ProjectDir)..\Classes;$(EngineRoot)cocos\scripting\auto-generated\lua-bindings;$(EngineRoot)cocos\scripting\lua\bindings;$(EngineRoot)cocos\audio\include;$(EngineRoot)external\lua\lua;$(EngineRoot)external\lua\tolua;$(EngineRoot)external\chipmunk\include\chipmunk;$(EngineRoot)extensions;%(AdditionalIncludeDirectories)
Level3
@@ -82,7 +84,7 @@
MachineX86
true
$(OutDir);%(AdditionalLibraryDirectories)
- libcocos2d.lib;libExtensions.lib;libBox2d.lib;libchipmunk.lib;libCocosDenshion.lib;liblua.lib;lua51.lib;websockets.lib;%(AdditionalDependencies)
+ lua51.lib;websockets.lib;%(AdditionalDependencies)
0x0409
@@ -103,17 +105,17 @@
xcopy "$(ProjectDir)..\..\..\Cpp\TestCpp\Resources" "$(ProjectDir)..\..\TestLua\Resources" /e /Y
-xcopy "$(ProjectDir)..\..\..\..\scripting\lua\script" "$(ProjectDir)..\..\TestLua\Resources" /e /Y
+xcopy "$(EngineRoot)cocos\scripting\lua\script" "$(ProjectDir)..\..\TestLua\Resources" /e /Y
copy files from TestCpp to TestLua
if not exist "$(OutDir)" mkdir "$(OutDir)"
-xcopy /Y /Q "$(ProjectDir)..\..\..\..\external\libwebsockets\win32\lib\*.*" "$(OutDir)"
+xcopy /Y /Q "$(EngineRoot)external\websockets\prebuilt\\win32\*.*" "$(OutDir)"
- $(ProjectDir)..\Classes;$(ProjectDir)..\..\..\..\scripting\auto-generated\lua-bindings;$(ProjectDir)..\..\..\..\scripting\lua\cocos2dx_support;$(ProjectDir)..\..\..\..\scripting\lua\lua;$(ProjectDir)..\..\..\..\scripting\lua\tolua;$(ProjectDir)..\..\..\..\scripting\lua\src;$(ProjectDir)..\..\..\..\cocos2dx;$(ProjectDir)..\..\..\..\cocos2dx\include;$(ProjectDir)..\..\..\..\cocos2dx\kazmath\include;$(ProjectDir)..\..\..\..\cocos2dx\platform\win32;$(ProjectDir)..\..\..\..\cocos2dx\platform\third_party\win32;$(ProjectDir)..\..\..\..\cocos2dx\platform\third_party\win32\OGLES;$(ProjectDir)..\..\..\..\external;$(ProjectDir)..\..\..\..\external\libwebsockets\win32\include;$(ProjectDir)..\..\..\..\external\chipmunk\include\chipmunk;$(ProjectDir)..\..\..\..\audio\include;%(AdditionalIncludeDirectories)
+ $(ProjectDir)..\Classes;$(EngineRoot)cocos\scripting\auto-generated\lua-bindings;$(EngineRoot)cocos\scripting\lua\bindings;$(EngineRoot)cocos\audio\include;$(EngineRoot)external\lua\lua;$(EngineRoot)external\lua\tolua;$(EngineRoot)external\chipmunk\include\chipmunk;$(EngineRoot)extensions;%(AdditionalIncludeDirectories)
Level3
@@ -129,7 +131,7 @@ xcopy /Y /Q "$(ProjectDir)..\..\..\..\external\libwebsockets\win32\lib\*.*" "$(O
Windows
MachineX86
$(OutDir);%(AdditionalLibraryDirectories)
- libcocos2d.lib;libExtensions.lib;libBox2d.lib;libchipmunk.lib;libCocosDenshion.lib;liblua.lib;lua51.lib;websockets.lib;%(AdditionalDependencies)
+ lua51.lib;websockets.lib;%(AdditionalDependencies)
true
@@ -151,12 +153,12 @@ xcopy /Y /Q "$(ProjectDir)..\..\..\..\external\libwebsockets\win32\lib\*.*" "$(O
xcopy "$(ProjectDir)..\..\..\Cpp\TestCpp\Resources" "$(ProjectDir)..\..\TestLua\Resources" /e /Y
-xcopy "$(ProjectDir)..\..\..\..\scripting\lua\script" "$(ProjectDir)..\..\TestLua\Resources" /e /Y
+xcopy "$(ProjectDir)..\..\..\..\cocos\scripting\lua\script" "$(ProjectDir)..\..\TestLua\Resources" /e /Y
copy files from TestCpp to TestLua
if not exist "$(OutDir)" mkdir "$(OutDir)"
-xcopy /Y /Q "$(ProjectDir)..\..\..\..\external\libwebsockets\win32\lib\*.*" "$(OutDir)"
+xcopy /Y /Q "$(ProjectDir)..\..\..\..\external\websockets\prebuilt\win32\*.*" "$(OutDir)"
@@ -167,6 +169,38 @@ xcopy /Y /Q "$(ProjectDir)..\..\..\..\external\libwebsockets\win32\lib\*.*" "$(O
+
+
+ {98a51ba8-fc3a-415b-ac8f-8c7bd464e93e}
+
+
+ {f8edd7fa-9a51-4e80-baeb-860825d2eac6}
+
+
+ {811c0dab-7b96-4bd3-a154-b7572b58e4ab}
+
+
+ {b57cf53f-2e49-4031-9822-047cc0e6bde2}
+
+
+ {7e06e92c-537a-442b-9e4a-4761c84f8a1a}
+
+
+ {df2638c0-8128-4847-867c-6eafe3dee7b5}
+
+
+ {ddc3e27f-004d-4dd4-9dd3-931a013d2159}
+
+
+ {632a8f38-d0f0-4d22-86b3-d69f5e6bf63a}
+
+
+ {21b2c324-891f-48ea-ad1a-5ae13de12e28}
+
+
+ {207bc7a9-ccf1-4f2f-a04d-45f72242ae25}
+
+
diff --git a/template/multi-platform-cpp/proj.android/build_native.cmd b/template/multi-platform-cpp/proj.android/build_native.cmd
index 68a56c815c..5b25ec4817 100644
--- a/template/multi-platform-cpp/proj.android/build_native.cmd
+++ b/template/multi-platform-cpp/proj.android/build_native.cmd
@@ -62,7 +62,7 @@ if "%buildexternalsfromsource%"=="1" (goto :MODULE1) else (goto :MODULE2)
goto :COPY_RES
:MODULE2
echo "Using prebuilt externals"
- set NDK_MODULE_PATH=%COCOS2DX_ROOT%;%COCOS2DX_ROOT%\cocos2dx\platform\third_party\android\prebuilt
+ set NDK_MODULE_PATH=%COCOS2DX_ROOT%;%COCOS2DX_ROOT%\cocos;%COCOS2DX_ROOT%\external
:COPY_RES
echo NDK_ROOT = %NDK_ROOT%
@@ -75,10 +75,9 @@ rem make sure assets is exist
if exist %APP_ANDROID_ROOT%\assets rd /q /s %APP_ANDROID_ROOT%\assets
mkdir %APP_ANDROID_ROOT%\assets
-mkdir %APP_ANDROID_ROOT%\assets\res
rem copy Resources/* into assets' root
xcopy /e /q /r /y %APP_ROOT%\Resources\* %APP_ANDROID_ROOT%\assets
-call %NDK_ROOT%\ndk-build.cmd NDK_LOG=0 V=0
+call %NDK_ROOT%\ndk-build.cmd NDK_LOG=0 V=0 %*
pause
\ No newline at end of file
diff --git a/template/multi-platform-cpp/proj.android/project.properties b/template/multi-platform-cpp/proj.android/project.properties
index 6495217b66..16f145cfc9 100644
--- a/template/multi-platform-cpp/proj.android/project.properties
+++ b/template/multi-platform-cpp/proj.android/project.properties
@@ -8,6 +8,6 @@
# project structure.
# Project target.
-target=android-13
+target=android-10
-android.library.reference.1=../../../cocos2dx/platform/android/java
+android.library.reference.1=../../../cocos/2d/platform/android/java
diff --git a/template/multi-platform-cpp/proj.win32/HelloCpp.sln b/template/multi-platform-cpp/proj.win32/HelloCpp.sln
index 31c2e25053..774ee12d79 100644
--- a/template/multi-platform-cpp/proj.win32/HelloCpp.sln
+++ b/template/multi-platform-cpp/proj.win32/HelloCpp.sln
@@ -3,32 +3,17 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2012
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "HelloCpp", "HelloCpp.vcxproj", "{76A39BB2-9B84-4C65-98A5-654D86B86F2A}"
ProjectSection(ProjectDependencies) = postProject
- {21B2C324-891F-48EA-AD1A-5AE13DE12E28} = {21B2C324-891F-48EA-AD1A-5AE13DE12E28}
{98A51BA8-FC3A-415B-AC8F-8C7BD464E93E} = {98A51BA8-FC3A-415B-AC8F-8C7BD464E93E}
{207BC7A9-CCF1-4F2F-A04D-45F72242AE25} = {207BC7A9-CCF1-4F2F-A04D-45F72242AE25}
- {929480E7-23C0-4DF6-8456-096D71547116} = {929480E7-23C0-4DF6-8456-096D71547116}
{F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6} = {F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6}
EndProjectSection
EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libcocos2d", "..\..\..\cocos2dx\proj.win32\cocos2d.vcxproj", "{98A51BA8-FC3A-415B-AC8F-8C7BD464E93E}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libCocosDenshion", "..\..\..\CocosDenshion\proj.win32\CocosDenshion.vcxproj", "{F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6}"
- ProjectSection(ProjectDependencies) = postProject
- {98A51BA8-FC3A-415B-AC8F-8C7BD464E93E} = {98A51BA8-FC3A-415B-AC8F-8C7BD464E93E}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libExtensions", "..\..\..\extensions\proj.win32\libExtensions.vcxproj", "{21B2C324-891F-48EA-AD1A-5AE13DE12E28}"
- ProjectSection(ProjectDependencies) = postProject
- {98A51BA8-FC3A-415B-AC8F-8C7BD464E93E} = {98A51BA8-FC3A-415B-AC8F-8C7BD464E93E}
- {207BC7A9-CCF1-4F2F-A04D-45F72242AE25} = {207BC7A9-CCF1-4F2F-A04D-45F72242AE25}
- {929480E7-23C0-4DF6-8456-096D71547116} = {929480E7-23C0-4DF6-8456-096D71547116}
- {F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6} = {F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libBox2D", "..\..\..\external\Box2D\proj.win32\Box2D.vcxproj", "{929480E7-23C0-4DF6-8456-096D71547116}"
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libcocos2d", "..\..\..\cocos\2d\cocos2d.vcxproj", "{98A51BA8-FC3A-415B-AC8F-8C7BD464E93E}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libchipmunk", "..\..\..\external\chipmunk\proj.win32\chipmunk.vcxproj", "{207BC7A9-CCF1-4F2F-A04D-45F72242AE25}"
EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libAudio", "..\..\..\cocos\audio\proj.win32\CocosDenshion.vcxproj", "{F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6}"
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Win32 = Debug|Win32
@@ -43,22 +28,14 @@ Global
{98A51BA8-FC3A-415B-AC8F-8C7BD464E93E}.Debug|Win32.Build.0 = Debug|Win32
{98A51BA8-FC3A-415B-AC8F-8C7BD464E93E}.Release|Win32.ActiveCfg = Release|Win32
{98A51BA8-FC3A-415B-AC8F-8C7BD464E93E}.Release|Win32.Build.0 = Release|Win32
- {F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6}.Debug|Win32.ActiveCfg = Debug|Win32
- {F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6}.Debug|Win32.Build.0 = Debug|Win32
- {F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6}.Release|Win32.ActiveCfg = Release|Win32
- {F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6}.Release|Win32.Build.0 = Release|Win32
- {21B2C324-891F-48EA-AD1A-5AE13DE12E28}.Debug|Win32.ActiveCfg = Debug|Win32
- {21B2C324-891F-48EA-AD1A-5AE13DE12E28}.Debug|Win32.Build.0 = Debug|Win32
- {21B2C324-891F-48EA-AD1A-5AE13DE12E28}.Release|Win32.ActiveCfg = Release|Win32
- {21B2C324-891F-48EA-AD1A-5AE13DE12E28}.Release|Win32.Build.0 = Release|Win32
- {929480E7-23C0-4DF6-8456-096D71547116}.Debug|Win32.ActiveCfg = Debug|Win32
- {929480E7-23C0-4DF6-8456-096D71547116}.Debug|Win32.Build.0 = Debug|Win32
- {929480E7-23C0-4DF6-8456-096D71547116}.Release|Win32.ActiveCfg = Release|Win32
- {929480E7-23C0-4DF6-8456-096D71547116}.Release|Win32.Build.0 = Release|Win32
{207BC7A9-CCF1-4F2F-A04D-45F72242AE25}.Debug|Win32.ActiveCfg = Debug|Win32
{207BC7A9-CCF1-4F2F-A04D-45F72242AE25}.Debug|Win32.Build.0 = Debug|Win32
{207BC7A9-CCF1-4F2F-A04D-45F72242AE25}.Release|Win32.ActiveCfg = Release|Win32
{207BC7A9-CCF1-4F2F-A04D-45F72242AE25}.Release|Win32.Build.0 = Release|Win32
+ {F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6}.Debug|Win32.ActiveCfg = Debug|Win32
+ {F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6}.Debug|Win32.Build.0 = Debug|Win32
+ {F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6}.Release|Win32.ActiveCfg = Release|Win32
+ {F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6}.Release|Win32.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
diff --git a/template/multi-platform-cpp/proj.win32/HelloCpp.vcxproj b/template/multi-platform-cpp/proj.win32/HelloCpp.vcxproj
index 70a728fe8e..f2e35df259 100644
--- a/template/multi-platform-cpp/proj.win32/HelloCpp.vcxproj
+++ b/template/multi-platform-cpp/proj.win32/HelloCpp.vcxproj
@@ -36,11 +36,13 @@
-
+
+
-
+
+
@@ -67,7 +69,7 @@
Disabled
- $(ProjectDir)..\..\..\cocos2dx;$(ProjectDir)..\..\..\cocos2dx\include;$(ProjectDir)..\..\..\cocos2dx\kazmath\include;$(ProjectDir)..\..\..\cocos2dx\platform\win32;$(ProjectDir)..\..\..\cocos2dx\platform\third_party\win32;$(ProjectDir)..\..\..\cocos2dx\platform\third_party\win32\OGLES;$(ProjectDir)..\..\..\external;$(ProjectDir)..\..\..\external\chipmunk\include\chipmunk;$(ProjectDir)..\..\..\audio\include;$(ProjectDir)..\..\..\extensions;..\Classes;..;%(AdditionalIncludeDirectories)
+ $(EngineRoot)cocos\audio\include;$(EngineRoot)external;$(EngineRoot)external\chipmunk\include\chipmunk;$(EngineRoot)extensions;..\Classes;..;%(AdditionalIncludeDirectories)
WIN32;_DEBUG;_WINDOWS;_USE_MATH_DEFINES;GL_GLEXT_PROTOTYPES;CC_ENABLE_CHIPMUNK_INTEGRATION=1;COCOS2D_DEBUG=1;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)
false
EnableFastChecks
@@ -80,7 +82,7 @@
true
- libExtensions.lib;libcocos2d.lib;libCocosDenshion.lib;libBox2d.lib;libchipmunk.lib;libcurl_imp.lib;websockets.lib;%(AdditionalDependencies)
+ %(AdditionalDependencies)
$(OutDir)$(ProjectName).exe
$(OutDir);%(AdditionalLibraryDirectories)
true
@@ -93,14 +95,14 @@
if not exist "$(OutDir)" mkdir "$(OutDir)"
-xcopy /Y /Q "$(ProjectDir)..\..\..\external\libwebsockets\win32\lib\*.*" "$(OutDir)"
+xcopy /Y /Q "$(EngineRoot)external\websockets\prebuilt\win32\*.*" "$(OutDir)"
MaxSpeed
true
- $(ProjectDir)..\..\..\cocos2dx;$(ProjectDir)..\..\..\cocos2dx\include;$(ProjectDir)..\..\..\cocos2dx\kazmath\include;$(ProjectDir)..\..\..\cocos2dx\platform\win32;$(ProjectDir)..\..\..\cocos2dx\platform\third_party\win32;$(ProjectDir)..\..\..\cocos2dx\platform\third_party\win32\OGLES;$(ProjectDir)..\..\..\external;$(ProjectDir)..\..\..\external\chipmunk\include\chipmunk;$(ProjectDir)..\..\..\audio\include;$(ProjectDir)..\..\..\extensions;..\Classes;..;%(AdditionalIncludeDirectories)
+ $(EngineRoot)cocos\audio\include;$(EngineRoot)external;$(EngineRoot)external\chipmunk\include\chipmunk;$(EngineRoot)extensions;..\Classes;..;%(AdditionalIncludeDirectories)
WIN32;NDEBUG;_WINDOWS;_USE_MATH_DEFINES;GL_GLEXT_PROTOTYPES;CC_ENABLE_CHIPMUNK_INTEGRATION=1;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)
MultiThreadedDLL
true
@@ -112,7 +114,7 @@ xcopy /Y /Q "$(ProjectDir)..\..\..\external\libwebsockets\win32\lib\*.*" "$(OutD
true
- libExtensions.lib;libcocos2d.lib;libCocosDenshion.lib;libBox2d.lib;libchipmunk.lib;libcurl_imp.lib;websockets.lib;%(AdditionalDependencies)
+ libcurl_imp.lib;websockets.lib;%(AdditionalDependencies)
$(OutDir)$(ProjectName).exe
$(OutDir);%(AdditionalLibraryDirectories)
true
@@ -127,7 +129,7 @@ xcopy /Y /Q "$(ProjectDir)..\..\..\external\libwebsockets\win32\lib\*.*" "$(OutD
if not exist "$(OutDir)" mkdir "$(OutDir)"
-xcopy /Y /Q "$(ProjectDir)..\..\..\external\libwebsockets\win32\lib\*.*" "$(OutDir)"
+xcopy /Y /Q "$(EngineRoot)external\websockets\prebuilt\win32\*.*" "$(OutDir)"
@@ -141,25 +143,15 @@ xcopy /Y /Q "$(ProjectDir)..\..\..\external\libwebsockets\win32\lib\*.*" "$(OutD
-
+
{98a51ba8-fc3a-415b-ac8f-8c7bd464e93e}
false
-
+
{f8edd7fa-9a51-4e80-baeb-860825d2eac6}
- false
-
-
- {21b2c324-891f-48ea-ad1a-5ae13de12e28}
- false
-
-
- {929480e7-23c0-4df6-8456-096d71547116}
- false
{207bc7a9-ccf1-4f2f-a04d-45f72242ae25}
- false
diff --git a/template/multi-platform-js/Classes/AppDelegate.cpp b/template/multi-platform-js/Classes/AppDelegate.cpp
index ec78d9f5ae..4c2fea3abf 100644
--- a/template/multi-platform-js/Classes/AppDelegate.cpp
+++ b/template/multi-platform-js/Classes/AppDelegate.cpp
@@ -5,14 +5,11 @@
#include "ScriptingCore.h"
#include "jsb_cocos2dx_auto.hpp"
#include "jsb_cocos2dx_extension_auto.hpp"
-#include "jsb_cocos2dx_extension_manual.h"
#include "cocos2d_specifics.hpp"
-#include "js_bindings_chipmunk_registration.h"
-#include "js_bindings_system_registration.h"
-#include "js_bindings_ccbreader.h"
+#include "extension/jsb_cocos2dx_extension_manual.h"
+#include "chipmunk/js_bindings_chipmunk_registration.h"
#include "jsb_opengl_registration.h"
-#include "XMLHTTPRequest.h"
-#include "jsb_websocket.h"
+#include "localstorage/js_bindings_system_registration.h"
USING_NS_CC;
using namespace CocosDenshion;
@@ -41,15 +38,11 @@ bool AppDelegate::applicationDidFinishLaunching()
ScriptingCore* sc = ScriptingCore::getInstance();
sc->addRegisterCallback(register_all_cocos2dx);
sc->addRegisterCallback(register_all_cocos2dx_extension);
- sc->addRegisterCallback(register_all_cocos2dx_extension_manual);
sc->addRegisterCallback(register_cocos2dx_js_extensions);
- sc->addRegisterCallback(register_CCBuilderReader);
+ sc->addRegisterCallback(register_all_cocos2dx_extension_manual);
sc->addRegisterCallback(jsb_register_chipmunk);
- sc->addRegisterCallback(jsb_register_system);
sc->addRegisterCallback(JSB_register_opengl);
- sc->addRegisterCallback(MinXmlHttpRequest::_js_register);
- sc->addRegisterCallback(register_jsb_websocket);
-
+ sc->addRegisterCallback(jsb_register_system);
sc->start();
ScriptEngineProtocol *engine = ScriptingCore::getInstance();
diff --git a/template/multi-platform-js/proj.android/build_native.cmd b/template/multi-platform-js/proj.android/build_native.cmd
index 5934330044..82eb0151a5 100644
--- a/template/multi-platform-js/proj.android/build_native.cmd
+++ b/template/multi-platform-js/proj.android/build_native.cmd
@@ -56,7 +56,7 @@ exit /b 1
set COCOS2DX_ROOT=%~dp0..\..\..
set APP_ROOT=%~dp0..
set APP_ANDROID_ROOT=%~dp0
-set BINDINGS_JS_ROOT=%APP_ROOT%\..\..\scripting\javascript\bindings\js
+set BINDINGS_JS_ROOT=%COCOS2DX_ROOT%\cocos\scripting\javascript\script
if "%buildexternalsfromsource%"=="1" (goto :MODULE1) else (goto :MODULE2)
:MODULE1
@@ -65,7 +65,7 @@ if "%buildexternalsfromsource%"=="1" (goto :MODULE1) else (goto :MODULE2)
goto :COPY_RES
:MODULE2
echo "Using prebuilt externals"
- set NDK_MODULE_PATH=%COCOS2DX_ROOT%;%COCOS2DX_ROOT%\cocos2dx\platform\third_party\android\prebuilt
+ set NDK_MODULE_PATH=%COCOS2DX_ROOT%;%COCOS2DX_ROOT%\cocos;%COCOS2DX_ROOT%\external
:COPY_RES
echo NDK_ROOT = %NDK_ROOT%
@@ -86,5 +86,5 @@ xcopy /e /q /r /y %APP_ROOT%\Resources\* %APP_ANDROID_ROOT%\assets
rem copy bindings/*.js into assets' root
xcopy /e /q /r /y %BINDINGS_JS_ROOT%\* %APP_ANDROID_ROOT%\assets
-call %NDK_ROOT%\ndk-build.cmd %PARALLEL_BUILD_FLAG% NDK_LOG=0 V=0
+call %NDK_ROOT%\ndk-build.cmd %PARALLEL_BUILD_FLAG% NDK_LOG=0 V=0 %*
pause
\ No newline at end of file
diff --git a/template/multi-platform-js/proj.android/project.properties b/template/multi-platform-js/proj.android/project.properties
index 6495217b66..f0d6a80641 100644
--- a/template/multi-platform-js/proj.android/project.properties
+++ b/template/multi-platform-js/proj.android/project.properties
@@ -10,4 +10,4 @@
# Project target.
target=android-13
-android.library.reference.1=../../../cocos2dx/platform/android/java
+android.library.reference.1=../../../cocos/2d/platform/android/java
diff --git a/template/multi-platform-js/proj.win32/HelloJavascript.sln b/template/multi-platform-js/proj.win32/HelloJavascript.sln
index 025d85dd02..5880df4c17 100644
--- a/template/multi-platform-js/proj.win32/HelloJavascript.sln
+++ b/template/multi-platform-js/proj.win32/HelloJavascript.sln
@@ -10,23 +10,16 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "HelloJavascript", "HelloJav
{F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6} = {F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6}
EndProjectSection
EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libcocos2d", "..\..\..\cocos2dx\proj.win32\cocos2d.vcxproj", "{98A51BA8-FC3A-415B-AC8F-8C7BD464E93E}"
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libcocos2d", "..\..\..\cocos\2d\cocos2d.vcxproj", "{98A51BA8-FC3A-415B-AC8F-8C7BD464E93E}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libchipmunk", "..\..\..\external\chipmunk\proj.win32\chipmunk.vcxproj", "{207BC7A9-CCF1-4F2F-A04D-45F72242AE25}"
EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libExtensions", "..\..\..\extensions\proj.win32\libExtensions.vcxproj", "{21B2C324-891F-48EA-AD1A-5AE13DE12E28}"
- ProjectSection(ProjectDependencies) = postProject
- {98A51BA8-FC3A-415B-AC8F-8C7BD464E93E} = {98A51BA8-FC3A-415B-AC8F-8C7BD464E93E}
- {207BC7A9-CCF1-4F2F-A04D-45F72242AE25} = {207BC7A9-CCF1-4F2F-A04D-45F72242AE25}
- {F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6} = {F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6}
- EndProjectSection
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libCocosDenshion", "..\..\..\CocosDenshion\proj.win32\CocosDenshion.vcxproj", "{F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6}"
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libAudio", "..\..\..\cocos\audio\proj.win32\CocosDenshion.vcxproj", "{F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6}"
ProjectSection(ProjectDependencies) = postProject
{98A51BA8-FC3A-415B-AC8F-8C7BD464E93E} = {98A51BA8-FC3A-415B-AC8F-8C7BD464E93E}
EndProjectSection
EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libJSBinding", "..\..\..\scripting\javascript\bindings\proj.win32\libJSBinding.vcxproj", "{39379840-825A-45A0-B363-C09FFEF864BD}"
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libJSBinding", "..\..\..\cocos\scripting\javascript\bindings\proj.win32\libJSBinding.vcxproj", "{39379840-825A-45A0-B363-C09FFEF864BD}"
ProjectSection(ProjectDependencies) = postProject
{21B2C324-891F-48EA-AD1A-5AE13DE12E28} = {21B2C324-891F-48EA-AD1A-5AE13DE12E28}
{98A51BA8-FC3A-415B-AC8F-8C7BD464E93E} = {98A51BA8-FC3A-415B-AC8F-8C7BD464E93E}
@@ -34,6 +27,16 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libJSBinding", "..\..\..\sc
{F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6} = {F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6}
EndProjectSection
EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libJSBindingForChipmunk", "..\..\..\cocos\scripting\javascript\bindings\chipmunk\libJSBindingForChipmunk.vcxproj", "{21070E58-EEC6-4E16-8B4F-6D083DF55790}"
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libLocalStorage", "..\..\..\cocos\storage\local-storage\proj.win32\libLocalStorage.vcxproj", "{632A8F38-D0F0-4D22-86B3-D69F5E6BF63A}"
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libJSBindingForLocalStorage", "..\..\..\cocos\scripting\javascript\bindings\localstorage\libJSBindingForLocalStorage.vcxproj", "{68F5F371-BD7B-4C30-AE5B-0B08F22E0CDE}"
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libJSBindingForExtension", "..\..\..\cocos\scripting\javascript\bindings\extension\libJSBindingForExtension.vcxproj", "{625F7391-9A91-48A1-8CFC-79508C822637}"
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libExtensions", "..\..\..\extensions\proj.win32\libExtensions.vcxproj", "{21B2C324-891F-48EA-AD1A-5AE13DE12E28}"
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Win32 = Debug|Win32
@@ -52,10 +55,6 @@ Global
{207BC7A9-CCF1-4F2F-A04D-45F72242AE25}.Debug|Win32.Build.0 = Debug|Win32
{207BC7A9-CCF1-4F2F-A04D-45F72242AE25}.Release|Win32.ActiveCfg = Release|Win32
{207BC7A9-CCF1-4F2F-A04D-45F72242AE25}.Release|Win32.Build.0 = Release|Win32
- {21B2C324-891F-48EA-AD1A-5AE13DE12E28}.Debug|Win32.ActiveCfg = Debug|Win32
- {21B2C324-891F-48EA-AD1A-5AE13DE12E28}.Debug|Win32.Build.0 = Debug|Win32
- {21B2C324-891F-48EA-AD1A-5AE13DE12E28}.Release|Win32.ActiveCfg = Release|Win32
- {21B2C324-891F-48EA-AD1A-5AE13DE12E28}.Release|Win32.Build.0 = Release|Win32
{F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6}.Debug|Win32.ActiveCfg = Debug|Win32
{F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6}.Debug|Win32.Build.0 = Debug|Win32
{F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6}.Release|Win32.ActiveCfg = Release|Win32
@@ -64,6 +63,26 @@ Global
{39379840-825A-45A0-B363-C09FFEF864BD}.Debug|Win32.Build.0 = Debug|Win32
{39379840-825A-45A0-B363-C09FFEF864BD}.Release|Win32.ActiveCfg = Release|Win32
{39379840-825A-45A0-B363-C09FFEF864BD}.Release|Win32.Build.0 = Release|Win32
+ {21070E58-EEC6-4E16-8B4F-6D083DF55790}.Debug|Win32.ActiveCfg = Debug|Win32
+ {21070E58-EEC6-4E16-8B4F-6D083DF55790}.Debug|Win32.Build.0 = Debug|Win32
+ {21070E58-EEC6-4E16-8B4F-6D083DF55790}.Release|Win32.ActiveCfg = Release|Win32
+ {21070E58-EEC6-4E16-8B4F-6D083DF55790}.Release|Win32.Build.0 = Release|Win32
+ {632A8F38-D0F0-4D22-86B3-D69F5E6BF63A}.Debug|Win32.ActiveCfg = Debug|Win32
+ {632A8F38-D0F0-4D22-86B3-D69F5E6BF63A}.Debug|Win32.Build.0 = Debug|Win32
+ {632A8F38-D0F0-4D22-86B3-D69F5E6BF63A}.Release|Win32.ActiveCfg = Release|Win32
+ {632A8F38-D0F0-4D22-86B3-D69F5E6BF63A}.Release|Win32.Build.0 = Release|Win32
+ {68F5F371-BD7B-4C30-AE5B-0B08F22E0CDE}.Debug|Win32.ActiveCfg = Debug|Win32
+ {68F5F371-BD7B-4C30-AE5B-0B08F22E0CDE}.Debug|Win32.Build.0 = Debug|Win32
+ {68F5F371-BD7B-4C30-AE5B-0B08F22E0CDE}.Release|Win32.ActiveCfg = Release|Win32
+ {68F5F371-BD7B-4C30-AE5B-0B08F22E0CDE}.Release|Win32.Build.0 = Release|Win32
+ {625F7391-9A91-48A1-8CFC-79508C822637}.Debug|Win32.ActiveCfg = Debug|Win32
+ {625F7391-9A91-48A1-8CFC-79508C822637}.Debug|Win32.Build.0 = Debug|Win32
+ {625F7391-9A91-48A1-8CFC-79508C822637}.Release|Win32.ActiveCfg = Release|Win32
+ {625F7391-9A91-48A1-8CFC-79508C822637}.Release|Win32.Build.0 = Release|Win32
+ {21B2C324-891F-48EA-AD1A-5AE13DE12E28}.Debug|Win32.ActiveCfg = Debug|Win32
+ {21B2C324-891F-48EA-AD1A-5AE13DE12E28}.Debug|Win32.Build.0 = Debug|Win32
+ {21B2C324-891F-48EA-AD1A-5AE13DE12E28}.Release|Win32.ActiveCfg = Release|Win32
+ {21B2C324-891F-48EA-AD1A-5AE13DE12E28}.Release|Win32.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
diff --git a/template/multi-platform-js/proj.win32/HelloJavascript.vcxproj b/template/multi-platform-js/proj.win32/HelloJavascript.vcxproj
index fb2ad0984c..26bab7731b 100644
--- a/template/multi-platform-js/proj.win32/HelloJavascript.vcxproj
+++ b/template/multi-platform-js/proj.win32/HelloJavascript.vcxproj
@@ -34,11 +34,13 @@
-
+
+
-
+
+
@@ -77,7 +79,7 @@
Disabled
- $(ProjectDir)..\Classes;$(ProjectDir)..\..\..\scripting\javascript\spidermonkey-win32\include;$(ProjectDir)..\..\..\external\chipmunk\include\chipmunk;$(ProjectDir)..\..\..\extensions;$(ProjectDir)..\..\..\scripting\auto-generated\js-bindings;$(ProjectDir)..\..\..\scripting\javascript\bindings;$(ProjectDir)..\..\..\cocos2dx;$(ProjectDir)..\..\..\cocos2dx\include;$(ProjectDir)..\..\..\cocos2dx\kazmath\include;$(ProjectDir)..\..\..\cocos2dx\platform\win32;$(ProjectDir)..\..\..\cocos2dx\platform\third_party\win32;$(ProjectDir)..\..\..\cocos2dx\platform\third_party\win32\OGLES;$(ProjectDir)..\..\..\audio\include;%(AdditionalIncludeDirectories)
+ $(ProjectDir)..\Classes;$(EngineRoot);$(EngineRoot)cocos;$(EngineRoot)cocos\audio\include;$(EngineRoot)cocos\scripting\javascript\bindings;$(EngineRoot)cocos\scripting\auto-generated\js-bindings;$(EngineRoot)external\spidermonkey\include\win32;$(EngineRoot)external\chipmunk\include\chipmunk;%(AdditionalIncludeDirectories)
WIN32;_WINDOWS;STRICT;DEBUG;_DEBUG;XP_WIN;JS_HAVE___INTN;JS_INTPTR_TYPE=int;COCOS2D_DEBUG=1;COCOS2D_JAVASCRIPT=1;CC_ENABLE_CHIPMUNK_INTEGRATION=1;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)
false
EnableFastChecks
@@ -96,11 +98,11 @@
if not exist "$(OutDir)" mkdir "$(OutDir)"
-xcopy /Y /Q "$(ProjectDir)..\..\..\scripting\javascript\spidermonkey-win32\lib\*.*" "$(OutDir)"
-xcopy /Y /Q "$(ProjectDir)..\..\..\external\libwebsockets\win32\lib\*.*" "$(OutDir)"
+xcopy /Y /Q "$(EngineRoot)external\spidermonkey\prebuilt\win32\*.*" "$(OutDir)"
+xcopy /Y /Q "$(EngineRoot)external\websockets\prebuilt\win32\*.*" "$(OutDir)"
- libcocos2d.lib;libExtensions.lib;libCocosDenshion.lib;libchipmunk.lib;libJSBinding.lib;libcurl_imp.lib;mozjs-23.0.lib;ws2_32.lib;sqlite3.lib;websockets.lib;%(AdditionalDependencies)
+ libcurl_imp.lib;mozjs-23.0.lib;ws2_32.lib;sqlite3.lib;websockets.lib;%(AdditionalDependencies)
$(OutDir);%(AdditionalLibraryDirectories)
true
Windows
@@ -110,7 +112,7 @@ xcopy /Y /Q "$(ProjectDir)..\..\..\external\libwebsockets\win32\lib\*.*" "$(OutD
if not exist "$(OutDir)" mkdir "$(OutDir)"
if exist "$(OutDir)\HelloJavascriptRes" rd /s /q "$(OutDir)\HelloJavascriptRes"
mkdir "$(OutDir)\HelloJavascriptRes"
-xcopy "$(ProjectDir)..\..\..\scripting\javascript\bindings\js\*.js" "$(OutDir)\HelloJavascriptRes\" /e /Y
+xcopy "$(EngineRoot)cocos\scripting\javascript\script\*.js" "$(OutDir)\HelloJavascriptRes\" /e /Y
xcopy "$(ProjectDir)..\Resources" "$(OutDir)\HelloJavascriptRes\" /e /Y
@@ -131,7 +133,7 @@ xcopy "$(ProjectDir)..\Resources" "$(OutDir)\HelloJavascriptRes\" /e /Ygame_p.c
- $(ProjectDir)..\Classes;$(ProjectDir)..\..\..\scripting\javascript\spidermonkey-win32\include;$(ProjectDir)..\..\..\external\chipmunk\include\chipmunk;$(ProjectDir)..\..\..\extensions;$(ProjectDir)..\..\..\scripting\auto-generated\js-bindings;$(ProjectDir)..\..\..\scripting\javascript\bindings;$(ProjectDir)..\..\..\cocos2dx;$(ProjectDir)..\..\..\cocos2dx\include;$(ProjectDir)..\..\..\cocos2dx\kazmath\include;$(ProjectDir)..\..\..\cocos2dx\platform\win32;$(ProjectDir)..\..\..\cocos2dx\platform\third_party\win32;$(ProjectDir)..\..\..\cocos2dx\platform\third_party\win32\OGLES;$(ProjectDir)..\..\..\audio\include;%(AdditionalIncludeDirectories)
+ $(ProjectDir)..\Classes;$(EngineRoot);$(EngineRoot)cocos;$(EngineRoot)cocos\audio\include;$(EngineRoot)cocos\scripting\javascript\bindings;$(EngineRoot)cocos\scripting\auto-generated\js-bindings;$(EngineRoot)external\spidermonkey\include\win32;$(EngineRoot)external\chipmunk\include\chipmunk;%(AdditionalIncludeDirectories)
WIN32;_WINDOWS;STRICT;NDEBUG;XP_WIN;JS_HAVE___INTN;JS_INTPTR_TYPE=int;COCOS2D_JAVASCRIPT=1;CC_ENABLE_CHIPMUNK_INTEGRATION=1;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)
@@ -151,20 +153,21 @@ xcopy "$(ProjectDir)..\Resources" "$(OutDir)\HelloJavascriptRes\" /e /Y
if not exist "$(OutDir)" mkdir "$(OutDir)"
-xcopy /Y /Q "$(ProjectDir)..\..\..\scripting\javascript\spidermonkey-win32\lib\*.*" "$(OutDir)"
-xcopy /Y /Q "$(ProjectDir)..\..\..\external\libwebsockets\win32\lib\*.*" "$(OutDir)"
+xcopy /Y /Q "$(EngineRoot)external\spidermonkey\prebuilt\win32\*.*" "$(OutDir)"
+xcopy /Y /Q "$(EngineRoot)external\websockets\prebuilt\win32\*.*" "$(OutDir)"
- libcocos2d.lib;libExtensions.lib;libCocosDenshion.lib;libchipmunk.lib;libJSBinding.lib;libcurl_imp.lib;mozjs-23.0.lib;ws2_32.lib;sqlite3.lib;websockets.lib;%(AdditionalDependencies)
+ libcurl_imp.lib;mozjs-23.0.lib;ws2_32.lib;sqlite3.lib;websockets.lib;%(AdditionalDependencies)
$(OutDir);%(AdditionalLibraryDirectories)
Windows
MachineX86
+ true
if not exist "$(OutDir)" mkdir "$(OutDir)"
if exist "$(OutDir)\HelloJavascriptRes" rd /s /q "$(OutDir)\HelloJavascriptRes"
mkdir "$(OutDir)\HelloJavascriptRes"
-xcopy "$(ProjectDir)..\..\..\scripting\javascript\bindings\js\*.js" "$(OutDir)\HelloJavascriptRes\" /e /Y
+xcopy "$(EngineRoot)cocos\scripting\javascript\script\*.js" "$(OutDir)\HelloJavascriptRes\" /e /Y
xcopy "$(ProjectDir)..\Resources" "$(OutDir)\HelloJavascriptRes\" /e /Y
Copy js and resource files.
@@ -181,13 +184,32 @@ xcopy "$(ProjectDir)..\Resources" "$(OutDir)\HelloJavascriptRes\" /e /Y
-
+
{98a51ba8-fc3a-415b-ac8f-8c7bd464e93e}
- false
-
+
{f8edd7fa-9a51-4e80-baeb-860825d2eac6}
- false
+
+
+ {21070e58-eec6-4e16-8b4f-6d083df55790}
+
+
+ {625f7391-9a91-48a1-8cfc-79508c822637}
+
+
+ {68f5f371-bd7b-4c30-ae5b-0b08f22e0cde}
+
+
+ {39379840-825a-45a0-b363-c09ffef864bd}
+
+
+ {632a8f38-d0f0-4d22-86b3-d69f5e6bf63a}
+
+
+ {21b2c324-891f-48ea-ad1a-5ae13de12e28}
+
+
+ {207bc7a9-ccf1-4f2f-a04d-45f72242ae25}
diff --git a/template/multi-platform-lua/proj.android/build_native.cmd b/template/multi-platform-lua/proj.android/build_native.cmd
index e8caf30dd1..0177685738 100644
--- a/template/multi-platform-lua/proj.android/build_native.cmd
+++ b/template/multi-platform-lua/proj.android/build_native.cmd
@@ -62,7 +62,7 @@ if "%buildexternalsfromsource%"=="1" (goto :MODULE1) else (goto :MODULE2)
goto :COPY_RES
:MODULE2
echo "Using prebuilt externals"
- set NDK_MODULE_PATH=%COCOS2DX_ROOT%;%COCOS2DX_ROOT%\cocos2dx\platform\third_party\android\prebuilt
+ set NDK_MODULE_PATH=%COCOS2DX_ROOT%;%COCOS2DX_ROOT%\cocos;%COCOS2DX_ROOT%\external
:COPY_RES
echo NDK_ROOT = %NDK_ROOT%
@@ -75,13 +75,12 @@ rem make sure assets is exist
if exist %APP_ANDROID_ROOT%\assets rd /q /s %APP_ANDROID_ROOT%\assets
mkdir %APP_ANDROID_ROOT%\assets
-mkdir %APP_ANDROID_ROOT%\assets\res
rem copy Resources/* into assets' root
xcopy /e /q /r /y %APP_ROOT%\Resources\* %APP_ANDROID_ROOT%\assets
rem copy common luaScript
-xcopy /e /q /r /y %APP_ROOT%\..\..\scripting\lua\script\* %APP_ANDROID_ROOT%\assets
+xcopy /e /q /r /y %COCOS2DX_ROOT%\cocos\scripting\lua\script\* %APP_ANDROID_ROOT%\assets
-call %NDK_ROOT%\ndk-build.cmd NDK_LOG=0 V=0
+call %NDK_ROOT%\ndk-build.cmd NDK_LOG=0 V=0 %*
pause
\ No newline at end of file
diff --git a/template/multi-platform-lua/proj.android/project.properties b/template/multi-platform-lua/proj.android/project.properties
index 6495217b66..16f145cfc9 100644
--- a/template/multi-platform-lua/proj.android/project.properties
+++ b/template/multi-platform-lua/proj.android/project.properties
@@ -8,6 +8,6 @@
# project structure.
# Project target.
-target=android-13
+target=android-10
-android.library.reference.1=../../../cocos2dx/platform/android/java
+android.library.reference.1=../../../cocos/2d/platform/android/java
diff --git a/template/multi-platform-lua/proj.win32/HelloLua.sln b/template/multi-platform-lua/proj.win32/HelloLua.sln
index ddd4ee62c8..5fdeacb7a4 100644
--- a/template/multi-platform-lua/proj.win32/HelloLua.sln
+++ b/template/multi-platform-lua/proj.win32/HelloLua.sln
@@ -11,13 +11,6 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "HelloLua", "HelloLua.vcxpro
{F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6} = {F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6}
EndProjectSection
EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libcocos2d", "..\..\..\cocos2dx\proj.win32\cocos2d.vcxproj", "{98A51BA8-FC3A-415B-AC8F-8C7BD464E93E}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libCocosDenshion", "..\..\..\CocosDenshion\proj.win32\CocosDenshion.vcxproj", "{F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6}"
- ProjectSection(ProjectDependencies) = postProject
- {98A51BA8-FC3A-415B-AC8F-8C7BD464E93E} = {98A51BA8-FC3A-415B-AC8F-8C7BD464E93E}
- EndProjectSection
-EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libExtensions", "..\..\..\extensions\proj.win32\libExtensions.vcxproj", "{21B2C324-891F-48EA-AD1A-5AE13DE12E28}"
ProjectSection(ProjectDependencies) = postProject
{98A51BA8-FC3A-415B-AC8F-8C7BD464E93E} = {98A51BA8-FC3A-415B-AC8F-8C7BD464E93E}
@@ -30,11 +23,17 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libBox2D", "..\..\..\extern
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libchipmunk", "..\..\..\external\chipmunk\proj.win32\chipmunk.vcxproj", "{207BC7A9-CCF1-4F2F-A04D-45F72242AE25}"
EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "liblua", "..\..\..\scripting\lua\proj.win32\liblua.vcxproj", "{DDC3E27F-004D-4DD4-9DD3-931A013D2159}"
- ProjectSection(ProjectDependencies) = postProject
- {98A51BA8-FC3A-415B-AC8F-8C7BD464E93E} = {98A51BA8-FC3A-415B-AC8F-8C7BD464E93E}
- {F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6} = {F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6}
- EndProjectSection
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libcocos2d", "..\..\..\cocos\2d\cocos2d.vcxproj", "{98A51BA8-FC3A-415B-AC8F-8C7BD464E93E}"
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libAudio", "..\..\..\cocos\audio\proj.win32\CocosDenshion.vcxproj", "{F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6}"
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "liblua", "..\..\..\cocos\scripting\lua\bindings\liblua.vcxproj", "{DDC3E27F-004D-4DD4-9DD3-931A013D2159}"
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libNetwork", "..\..\..\cocos\network\proj.win32\libNetwork.vcxproj", "{DF2638C0-8128-4847-867C-6EAFE3DEE7B5}"
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libCocosBuilder", "..\..\..\cocos\editor-support\cocosbuilder\proj.win32\libCocosBuilder.vcxproj", "{811C0DAB-7B96-4BD3-A154-B7572B58E4AB}"
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libCocosStudio", "..\..\..\cocos\editor-support\cocostudio\proj.win32\libCocosStudio.vcxproj", "{B57CF53F-2E49-4031-9822-047CC0E6BDE2}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -46,14 +45,6 @@ Global
{4E6A7A0E-DDD8-4BAA-8B22-C964069364ED}.Debug|Win32.Build.0 = Debug|Win32
{4E6A7A0E-DDD8-4BAA-8B22-C964069364ED}.Release|Win32.ActiveCfg = Release|Win32
{4E6A7A0E-DDD8-4BAA-8B22-C964069364ED}.Release|Win32.Build.0 = Release|Win32
- {98A51BA8-FC3A-415B-AC8F-8C7BD464E93E}.Debug|Win32.ActiveCfg = Debug|Win32
- {98A51BA8-FC3A-415B-AC8F-8C7BD464E93E}.Debug|Win32.Build.0 = Debug|Win32
- {98A51BA8-FC3A-415B-AC8F-8C7BD464E93E}.Release|Win32.ActiveCfg = Release|Win32
- {98A51BA8-FC3A-415B-AC8F-8C7BD464E93E}.Release|Win32.Build.0 = Release|Win32
- {F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6}.Debug|Win32.ActiveCfg = Debug|Win32
- {F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6}.Debug|Win32.Build.0 = Debug|Win32
- {F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6}.Release|Win32.ActiveCfg = Release|Win32
- {F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6}.Release|Win32.Build.0 = Release|Win32
{21B2C324-891F-48EA-AD1A-5AE13DE12E28}.Debug|Win32.ActiveCfg = Debug|Win32
{21B2C324-891F-48EA-AD1A-5AE13DE12E28}.Debug|Win32.Build.0 = Debug|Win32
{21B2C324-891F-48EA-AD1A-5AE13DE12E28}.Release|Win32.ActiveCfg = Release|Win32
@@ -66,10 +57,30 @@ Global
{207BC7A9-CCF1-4F2F-A04D-45F72242AE25}.Debug|Win32.Build.0 = Debug|Win32
{207BC7A9-CCF1-4F2F-A04D-45F72242AE25}.Release|Win32.ActiveCfg = Release|Win32
{207BC7A9-CCF1-4F2F-A04D-45F72242AE25}.Release|Win32.Build.0 = Release|Win32
+ {98A51BA8-FC3A-415B-AC8F-8C7BD464E93E}.Debug|Win32.ActiveCfg = Debug|Win32
+ {98A51BA8-FC3A-415B-AC8F-8C7BD464E93E}.Debug|Win32.Build.0 = Debug|Win32
+ {98A51BA8-FC3A-415B-AC8F-8C7BD464E93E}.Release|Win32.ActiveCfg = Release|Win32
+ {98A51BA8-FC3A-415B-AC8F-8C7BD464E93E}.Release|Win32.Build.0 = Release|Win32
+ {F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6}.Debug|Win32.ActiveCfg = Debug|Win32
+ {F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6}.Debug|Win32.Build.0 = Debug|Win32
+ {F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6}.Release|Win32.ActiveCfg = Release|Win32
+ {F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6}.Release|Win32.Build.0 = Release|Win32
{DDC3E27F-004D-4DD4-9DD3-931A013D2159}.Debug|Win32.ActiveCfg = Debug|Win32
{DDC3E27F-004D-4DD4-9DD3-931A013D2159}.Debug|Win32.Build.0 = Debug|Win32
{DDC3E27F-004D-4DD4-9DD3-931A013D2159}.Release|Win32.ActiveCfg = Release|Win32
{DDC3E27F-004D-4DD4-9DD3-931A013D2159}.Release|Win32.Build.0 = Release|Win32
+ {DF2638C0-8128-4847-867C-6EAFE3DEE7B5}.Debug|Win32.ActiveCfg = Debug|Win32
+ {DF2638C0-8128-4847-867C-6EAFE3DEE7B5}.Debug|Win32.Build.0 = Debug|Win32
+ {DF2638C0-8128-4847-867C-6EAFE3DEE7B5}.Release|Win32.ActiveCfg = Release|Win32
+ {DF2638C0-8128-4847-867C-6EAFE3DEE7B5}.Release|Win32.Build.0 = Release|Win32
+ {811C0DAB-7B96-4BD3-A154-B7572B58E4AB}.Debug|Win32.ActiveCfg = Debug|Win32
+ {811C0DAB-7B96-4BD3-A154-B7572B58E4AB}.Debug|Win32.Build.0 = Debug|Win32
+ {811C0DAB-7B96-4BD3-A154-B7572B58E4AB}.Release|Win32.ActiveCfg = Release|Win32
+ {811C0DAB-7B96-4BD3-A154-B7572B58E4AB}.Release|Win32.Build.0 = Release|Win32
+ {B57CF53F-2E49-4031-9822-047CC0E6BDE2}.Debug|Win32.ActiveCfg = Debug|Win32
+ {B57CF53F-2E49-4031-9822-047CC0E6BDE2}.Debug|Win32.Build.0 = Debug|Win32
+ {B57CF53F-2E49-4031-9822-047CC0E6BDE2}.Release|Win32.ActiveCfg = Release|Win32
+ {B57CF53F-2E49-4031-9822-047CC0E6BDE2}.Release|Win32.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
diff --git a/template/multi-platform-lua/proj.win32/HelloLua.vcxproj b/template/multi-platform-lua/proj.win32/HelloLua.vcxproj
index 2007e7db42..b15be7cabb 100644
--- a/template/multi-platform-lua/proj.win32/HelloLua.vcxproj
+++ b/template/multi-platform-lua/proj.win32/HelloLua.vcxproj
@@ -36,11 +36,13 @@
-
+
+
-
+
+
@@ -64,7 +66,7 @@
- $(ProjectDir)..\Classes;$(ProjectDir)..\..\..\scripting\auto-generated\js-bindings;$(ProjectDir)..\..\..\scripting\lua\cocos2dx_support;$(ProjectDir)..\..\..\scripting\lua\lua;$(ProjectDir)..\..\..\scripting\lua\tolua;$(ProjectDir)..\..\..\scripting\lua\src;$(ProjectDir)..\..\..\cocos2dx;$(ProjectDir)..\..\..\cocos2dx\include;$(ProjectDir)..\..\..\cocos2dx\kazmath\include;$(ProjectDir)..\..\..\cocos2dx\platform\win32;$(ProjectDir)..\..\..\cocos2dx\platform\third_party\win32;$(ProjectDir)..\..\..\cocos2dx\platform\third_party\win32\OGLES;$(ProjectDir)..\..\..\external;$(ProjectDir)..\..\..\external\chipmunk\include\chipmunk;$(ProjectDir)..\..\..\audio\include;%(AdditionalIncludeDirectories)
+ $(ProjectDir)..\Classes;$(EngineRoot)cocos\audio\include;$(EngineRoot)cocos\scripting\auto-generated\lua-bindings;$(EngineRoot)cocos\scripting\lua\bindings;$(EngineRoot)external;$(EngineRoot)external\lua\tolua;$(EngineRoot)external\lua\lua;$(EngineRoot)external\chipmunk\include\chipmunk;%(AdditionalIncludeDirectories)
Level3
@@ -82,7 +84,7 @@
MachineX86
true
$(OutDir);%(AdditionalLibraryDirectories)
- libcocos2d.lib;libExtensions.lib;libBox2d.lib;libchipmunk.lib;libCocosDenshion.lib;liblua.lib;lua51.lib;websockets.lib;%(AdditionalDependencies)
+ lua51.lib;websockets.lib;%(AdditionalDependencies)
0x0409
@@ -102,18 +104,18 @@
- xcopy "$(ProjectDir)..\..\..\scripting\lua\script" "$(ProjectDir)..\Resources" /e /Y
+ xcopy "$(ProjectDir)..\..\..\cocos\scripting\lua\script" "$(ProjectDir)..\Resources" /e /Y
if not exist "$(OutDir)" mkdir "$(OutDir)"
-xcopy /Y /Q "$(ProjectDir)..\..\..\external\libwebsockets\win32\lib\*.*" "$(OutDir)"
+xcopy /Y /Q "$(ProjectDir)..\..\..\external\websockets\prebuilt\win32\*.*" "$(OutDir)"
- $(ProjectDir)..\Classes;$(ProjectDir)..\..\..\scripting\lua\cocos2dx_support;$(ProjectDir)..\..\..\scripting\lua\lua;$(ProjectDir)..\..\..\scripting\lua\tolua;$(ProjectDir)..\..\..\scripting\lua\src;$(ProjectDir)..\..\..\cocos2dx;$(ProjectDir)..\..\..\cocos2dx\include;$(ProjectDir)..\..\..\cocos2dx\kazmath\include;$(ProjectDir)..\..\..\cocos2dx\platform\win32;$(ProjectDir)..\..\..\cocos2dx\platform\third_party\win32;$(ProjectDir)..\..\..\cocos2dx\platform\third_party\win32\OGLES;$(ProjectDir)..\..\..\external;$(ProjectDir)..\..\..\external\chipmunk\include\chipmunk;$(ProjectDir)..\..\..\audio\include;$(ProjectDir)..\..\..\scripting\lua\cocos2dx_support;$(ProjectDir)..\..\..\scripting\lua\tolua;$(ProjectDir)..\..\..\scripting\lua\lua;%(AdditionalIncludeDirectories)
+ $(ProjectDir)..\Classes;$(EngineRoot)cocos\audio\include;$(EngineRoot)cocos\scripting\auto-generated\lua-bindings;$(EngineRoot)cocos\scripting\lua\bindings;$(EngineRoot)external;$(EngineRoot)external\lua\tolua;$(EngineRoot)external\lua\lua;$(EngineRoot)external\chipmunk\include\chipmunk;%(AdditionalIncludeDirectories)
Level3
@@ -130,7 +132,8 @@ xcopy /Y /Q "$(ProjectDir)..\..\..\external\libwebsockets\win32\lib\*.*" "$(OutD
Windows
MachineX86
$(OutDir);%(AdditionalLibraryDirectories)
- libcocos2d.lib;libExtensions.lib;libBox2d.lib;libchipmunk.lib;libCocosDenshion.lib;liblua.lib;lua51.lib;websockets.lib;%(AdditionalDependencies)
+ lua51.lib;websockets.lib;%(AdditionalDependencies)
+ true
0x0409
@@ -157,7 +160,7 @@ xcopy /Y /Q "$(ProjectDir)..\..\..\external\libwebsockets\win32\lib\*.*" "$(OutD
if not exist "$(OutDir)" mkdir "$(OutDir)"
-xcopy /Y /Q "$(ProjectDir)..\..\..\external\libwebsockets\win32\lib\*.*" "$(OutDir)"
+xcopy /Y /Q "$(ProjectDir)..\..\..\external\websockets\prebuilt\win32\*.*" "$(OutDir)"
@@ -171,6 +174,32 @@ xcopy /Y /Q "$(ProjectDir)..\..\..\external\libwebsockets\win32\lib\*.*" "$(OutD
+
+
+ {98a51ba8-fc3a-415b-ac8f-8c7bd464e93e}
+
+
+ {f8edd7fa-9a51-4e80-baeb-860825d2eac6}
+
+
+ {811c0dab-7b96-4bd3-a154-b7572b58e4ab}
+
+
+ {b57cf53f-2e49-4031-9822-047cc0e6bde2}
+
+
+ {df2638c0-8128-4847-867c-6eafe3dee7b5}
+
+
+ {ddc3e27f-004d-4dd4-9dd3-931a013d2159}
+
+
+ {21b2c324-891f-48ea-ad1a-5ae13de12e28}
+
+
+ {207bc7a9-ccf1-4f2f-a04d-45f72242ae25}
+
+
diff --git a/tools/tojs/cocos2dx_extension.ini b/tools/tojs/cocos2dx_extension.ini
index 1519b2eb92..a6475253f2 100644
--- a/tools/tojs/cocos2dx_extension.ini
+++ b/tools/tojs/cocos2dx_extension.ini
@@ -13,7 +13,7 @@ android_flags = -D_SIZE_T_DEFINED_
clang_headers = -I%(clangllvmdir)s/lib/clang/3.3/include
clang_flags = -nostdinc -x c++ -std=c++11
-cocos_headers = -I%(cocosdir)s/cocos/2d -I%(cocosdir)s/cocos/base -I%(cocosdir)s/cocos/gui -I%(cocosdir)s/cocos/physics -I%(cocosdir)s/cocos/2d/platform -I%(cocosdir)s/cocos/2d/platform/android -I%(cocosdir)s/cocos/math/kazmath/include -I%(cocosdir)s/extensions -I%(cocosdir)s/external -I%(cocosdir)s/cocos/editor-support -I%(cocosdir)s
+cocos_headers = -I%(cocosdir)s/cocos -I%(cocosdir)s/cocos/2d -I%(cocosdir)s/cocos/base -I%(cocosdir)s/cocos/gui -I%(cocosdir)s/cocos/physics -I%(cocosdir)s/cocos/2d/platform -I%(cocosdir)s/cocos/2d/platform/android -I%(cocosdir)s/cocos/math/kazmath/include -I%(cocosdir)s/extensions -I%(cocosdir)s/external -I%(cocosdir)s/cocos/editor-support -I%(cocosdir)s
cocos_flags = -DANDROID -DCOCOS2D_JAVASCRIPT
@@ -23,11 +23,11 @@ cxxgenerator_headers =
extra_arguments = %(android_headers)s %(clang_headers)s %(cxxgenerator_headers)s %(cocos_headers)s %(android_flags)s %(clang_flags)s %(cocos_flags)s %(extra_flags)s
# what headers to parse
-headers = %(cocosdir)s/extensions/cocos-ext.h %(cocosdir)s/cocos/editor-support/cocosbuilder/CocosBuilder.h %(cocosdir)s/cocos/editor-support/cocostudio/CocoStudio.h
+headers = %(cocosdir)s/extensions/cocos-ext.h
# what classes to produce code for. You can use regular expressions here. When testing the regular
# expression, it will be enclosed in "^$", like this: "^Menu*$".
-classes = AssetsManager.* CCBReader.* CCBAnimationManager.* Scale9Sprite Control.* ControlButton.* ScrollView$ TableView$ TableViewCell$ EditBox$ Armature ArmatureAnimation Skin Bone ArmatureDataManager
+classes = AssetsManager.* Scale9Sprite Control.* ControlButton.* ScrollView$ TableView$ TableViewCell$ EditBox$
# what should we skip? in the format ClassName::[function function]
# ClassName is a regular expression, but will be used like this: "^ClassName$" functions are also
@@ -36,9 +36,7 @@ classes = AssetsManager.* CCBReader.* CCBAnimationManager.* Scale9Sprite Control
# will apply to all class names. This is a convenience wildcard to be able to skip similar named
# functions from all classes.
-skip = CCBReader::[^CCBReader$ addOwnerCallbackName isJSControlled readByte getCCBMemberVariableAssigner readFloat getCCBSelectorResolver toLowerCase lastPathComponent deletePathExtension endsWith concat getResolutionScale getAnimatedProperties readBool readInt addOwnerCallbackNode addDocumentCallbackName readCachedString readNodeGraphFromData addDocumentCallbackNode getLoadedSpriteSheet initWithData readFileWithCleanUp getOwner$ readNodeGraphFromFile createSceneWithNodeGraphFromFile getAnimationManagers$ setAnimationManagers],
- CCBAnimationManager::[setAnimationCompletedCallback],
- ScrollView::[(g|s)etDelegate$],
+skip = ScrollView::[(g|s)etDelegate$],
.*Delegate::[*],
.*Loader.*::[*],
*::[^visit$ copyWith.* onEnter.* onExit.* ^description$ getObjectType .*HSV onTouch.* onAcc.* onKey.* onRegisterTouchListener],
@@ -48,15 +46,11 @@ skip = CCBReader::[^CCBReader$ addOwnerCallbackName isJSControlled readByte getC
AssetsManagerDelegateProtocol::[*],
Control::[removeHandleOfControlEvent addHandleOfControlEvent],
ControlUtils::[*],
- ControlSwitchSprite::[*],
- Armature::[createBone updateBlendType getBody setBody getShapeList .*BlendFunc],
- Skin::[getSkinData setSkinData],
- ArmatureAnimation::[updateHandler updateFrameData frameEvent]
+ ControlSwitchSprite::[*]
rename_functions =
-rename_classes = CCBReader::_Reader,
- CCBAnimationManager::BuilderAnimationManager
+rename_classes =
# for all class names, should we remove something when registering in the target VM?
remove_prefix =
@@ -65,11 +59,11 @@ remove_prefix =
classes_have_no_parents =
# base classes which will be skipped when their sub-classes found them.
-base_classes_to_skip = Object ProcessBase
+base_classes_to_skip = Object
# classes that create no constructor
# Set is special and we will use a hand-written constructor
-abstract_classes = ArmatureDataManager
+abstract_classes =
# Determining whether to use script object(js object) to control the lifecycle of native(cpp) object or the other way around. Supported values are 'yes' or 'no'.
script_control_cpp = no
diff --git a/tools/tojs/genbindings.sh b/tools/tojs/genbindings.sh
index 56b1b4500f..37d07f9d12 100755
--- a/tools/tojs/genbindings.sh
+++ b/tools/tojs/genbindings.sh
@@ -84,3 +84,9 @@ LD_LIBRARY_PATH=${CLANG_ROOT}/lib $PYTHON_BIN ${CXX_GENERATOR_ROOT}/generator.py
echo "Generating bindings for cocos2dx_extension..."
LD_LIBRARY_PATH=${CLANG_ROOT}/lib $PYTHON_BIN ${CXX_GENERATOR_ROOT}/generator.py ${TO_JS_ROOT}/cocos2dx_extension.ini -s cocos2dx_extension -t spidermonkey -o ${COCOS2DX_ROOT}/cocos/scripting/auto-generated/js-bindings -n jsb_cocos2dx_extension_auto
+
+echo "Generating bindings for cocos2dx_builder..."
+LD_LIBRARY_PATH=${CLANG_ROOT}/lib $PYTHON_BIN ${CXX_GENERATOR_ROOT}/generator.py ${TO_JS_ROOT}/cocos2dx_builder.ini -s cocos2dx_builder -t spidermonkey -o ${COCOS2DX_ROOT}/cocos/scripting/auto-generated/js-bindings -n jsb_cocos2dx_builder_auto
+
+echo "Generating bindings for cocos2dx_studio..."
+LD_LIBRARY_PATH=${CLANG_ROOT}/lib $PYTHON_BIN ${CXX_GENERATOR_ROOT}/generator.py ${TO_JS_ROOT}/cocos2dx_studio.ini -s cocos2dx_studio -t spidermonkey -o ${COCOS2DX_ROOT}/cocos/scripting/auto-generated/js-bindings -n jsb_cocos2dx_studio_auto
\ No newline at end of file