Merge pull request #2137 from dumganhar/iss1748-jsb-chipmunk-sqlite

fixed #1748: Separating js extension from cocos2dx.hpp/cpp.
1) Generating jsb_cocos2dx_extension_auto.hpp/.cpp. It was separated from original cocos2dx.hpp/cpp. Developer could remove redundant jsbinding native codes now.
2) cocos2dx.hpp/cpp ~> jsb_cocos2dx_auto.hpp/cpp
3) Adding jsb_cocos2dx_extension_manual.hpp/cpp
This commit is contained in:
James Chen 2013-03-11 02:31:40 -07:00
commit c780f2ff78
26 changed files with 5303 additions and 165 deletions

View File

@ -6,9 +6,10 @@
#include "cocos2d.h"
#include "SimpleAudioEngine.h"
#include "ScriptingCore.h"
#include "generated/cocos2dx.hpp"
#include "generated/jsb_cocos2dx_auto.hpp"
#include "generated/jsb_cocos2dx_extension_auto.hpp"
#include "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"
@ -113,9 +114,10 @@ bool AppDelegate::applicationDidFinishLaunching()
ScriptingCore* sc = ScriptingCore::getInstance();
sc->addRegisterCallback(register_all_cocos2dx);
sc->addRegisterCallback(register_all_cocos2dx_extension);
sc->addRegisterCallback(register_cocos2dx_js_extensions);
sc->addRegisterCallback(register_all_cocos2dx_extension_manual);
sc->addRegisterCallback(register_CCBuilderReader);
sc->addRegisterCallback(jsb_register_chipmunk);
sc->addRegisterCallback(jsb_register_system);
sc->start();

File diff suppressed because it is too large Load Diff

View File

@ -1 +0,0 @@
7aba7eb803d8f223aaa4bab109f54f7913b4bb3b

View File

@ -3,9 +3,10 @@
#include "cocos2d.h"
#include "SimpleAudioEngine.h"
#include "ScriptingCore.h"
#include "generated/cocos2dx.hpp"
#include "generated/jsb_cocos2dx_auto.hpp"
#include "generated/jsb_cocos2dx_extension_auto.hpp"
#include "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"
@ -98,9 +99,10 @@ bool AppDelegate::applicationDidFinishLaunching()
ScriptingCore* sc = ScriptingCore::getInstance();
sc->addRegisterCallback(register_all_cocos2dx);
sc->addRegisterCallback(register_all_cocos2dx_extension);
sc->addRegisterCallback(register_cocos2dx_js_extensions);
sc->addRegisterCallback(register_all_cocos2dx_extension_manual);
sc->addRegisterCallback(register_CCBuilderReader);
sc->addRegisterCallback(jsb_register_chipmunk);
sc->addRegisterCallback(jsb_register_system);
sc->start();

View File

@ -83,23 +83,14 @@
15A3CF801682C2B8002FB0C5 /* CCSorting.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 15A3CF3A1682C2B8002FB0C5 /* CCSorting.cpp */; };
15A3CF811682C2B8002FB0C5 /* CCTableView.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 15A3CF3C1682C2B8002FB0C5 /* CCTableView.cpp */; };
15A3CF821682C2B8002FB0C5 /* CCTableViewCell.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 15A3CF3E1682C2B8002FB0C5 /* CCTableViewCell.cpp */; };
15A3CF841682C2B8002FB0C5 /* CCPhysicsDebugNode.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 15A3CF461682C2B8002FB0C5 /* CCPhysicsDebugNode.cpp */; };
15A3CF851682C2B8002FB0C5 /* CCPhysicsSprite.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 15A3CF481682C2B8002FB0C5 /* CCPhysicsSprite.cpp */; };
15A3D00E1682C331002FB0C5 /* CDAudioManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 15A3CFA91682C331002FB0C5 /* CDAudioManager.m */; };
15A3D00F1682C331002FB0C5 /* CDOpenALSupport.m in Sources */ = {isa = PBXBuildFile; fileRef = 15A3CFAC1682C331002FB0C5 /* CDOpenALSupport.m */; };
15A3D0101682C331002FB0C5 /* CocosDenshion.m in Sources */ = {isa = PBXBuildFile; fileRef = 15A3CFAE1682C331002FB0C5 /* CocosDenshion.m */; };
15A3D0111682C331002FB0C5 /* SimpleAudioEngine.mm in Sources */ = {isa = PBXBuildFile; fileRef = 15A3CFAF1682C331002FB0C5 /* SimpleAudioEngine.mm */; };
15A3D0121682C331002FB0C5 /* SimpleAudioEngine_objc.m in Sources */ = {isa = PBXBuildFile; fileRef = 15A3CFB11682C331002FB0C5 /* SimpleAudioEngine_objc.m */; };
15A3D09E1682E721002FB0C5 /* Android.mk in Resources */ = {isa = PBXBuildFile; fileRef = 15A3D0791682E721002FB0C5 /* Android.mk */; };
15A3D09F1682E721002FB0C5 /* cocos2d_specifics.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 15A3D07A1682E721002FB0C5 /* cocos2d_specifics.cpp */; };
15A3D0A01682E721002FB0C5 /* cocosjs_manual_conversions.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 15A3D07C1682E721002FB0C5 /* cocosjs_manual_conversions.cpp */; };
15A3D0A11682E721002FB0C5 /* cocos2dx.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 15A3D07F1682E721002FB0C5 /* cocos2dx.cpp */; };
15A3D0A31682E721002FB0C5 /* README in Resources */ = {isa = PBXBuildFile; fileRef = 15A3D0821682E721002FB0C5 /* README */; };
15A3D0A91682E721002FB0C5 /* js_bindings_ccbreader.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 15A3D0891682E721002FB0C5 /* js_bindings_ccbreader.cpp */; };
15A3D0AA1682E721002FB0C5 /* js_bindings_chipmunk_auto_classes.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 15A3D08B1682E721002FB0C5 /* js_bindings_chipmunk_auto_classes.cpp */; };
15A3D0AB1682E721002FB0C5 /* js_bindings_chipmunk_functions.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 15A3D08E1682E721002FB0C5 /* js_bindings_chipmunk_functions.cpp */; };
15A3D0AC1682E721002FB0C5 /* js_bindings_chipmunk_manual.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 15A3D0911682E721002FB0C5 /* js_bindings_chipmunk_manual.cpp */; };
15A3D0AD1682E721002FB0C5 /* js_bindings_chipmunk_registration.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 15A3D0931682E721002FB0C5 /* js_bindings_chipmunk_registration.cpp */; };
15A3D0AE1682E721002FB0C5 /* js_bindings_core.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 15A3D0961682E721002FB0C5 /* js_bindings_core.cpp */; };
15A3D0AF1682E721002FB0C5 /* js_manual_conversions.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 15A3D0981682E721002FB0C5 /* js_manual_conversions.cpp */; };
15A3D0B01682E721002FB0C5 /* ScriptingCore.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 15A3D09A1682E721002FB0C5 /* ScriptingCore.cpp */; };
@ -117,6 +108,11 @@
1A82F5D1169AC71F00C4B13A /* libsqlite3.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 1A82F5D0169AC71F00C4B13A /* libsqlite3.dylib */; };
1A82F5D8169AC75500C4B13A /* LocalStorage.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1A82F5D5169AC75500C4B13A /* LocalStorage.cpp */; };
1A82F5D9169AC75500C4B13A /* LocalStorageAndroid.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1A82F5D7169AC75500C4B13A /* LocalStorageAndroid.cpp */; };
1AAC794F16EDC4F400B97F83 /* jsb_cocos2dx_auto_api.js in Sources */ = {isa = PBXBuildFile; fileRef = 1AAC794916EDC4F400B97F83 /* jsb_cocos2dx_auto_api.js */; };
1AAC795016EDC4F400B97F83 /* jsb_cocos2dx_auto.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AAC794A16EDC4F400B97F83 /* jsb_cocos2dx_auto.cpp */; };
1AAC795516EDC62500B97F83 /* jsb_cocos2dx_extension_manual.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AAC795316EDC62500B97F83 /* jsb_cocos2dx_extension_manual.cpp */; };
1AAC795916EDC63A00B97F83 /* jsb_cocos2dx_extension_auto_api.js in Sources */ = {isa = PBXBuildFile; fileRef = 1AAC795616EDC63A00B97F83 /* jsb_cocos2dx_extension_auto_api.js */; };
1AAC795A16EDC63A00B97F83 /* jsb_cocos2dx_extension_auto.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AAC795716EDC63A00B97F83 /* jsb_cocos2dx_extension_auto.cpp */; };
A92275421517C094001B78AA /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A92275411517C094001B78AA /* QuartzCore.framework */; };
A92275441517C094001B78AA /* OpenGLES.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A92275431517C094001B78AA /* OpenGLES.framework */; };
A92275461517C094001B78AA /* OpenAL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A92275451517C094001B78AA /* OpenAL.framework */; };
@ -307,10 +303,6 @@
15A3CF3D1682C2B8002FB0C5 /* CCTableView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CCTableView.h; sourceTree = "<group>"; };
15A3CF3E1682C2B8002FB0C5 /* CCTableViewCell.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = CCTableViewCell.cpp; sourceTree = "<group>"; };
15A3CF3F1682C2B8002FB0C5 /* CCTableViewCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CCTableViewCell.h; sourceTree = "<group>"; };
15A3CF461682C2B8002FB0C5 /* CCPhysicsDebugNode.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = CCPhysicsDebugNode.cpp; sourceTree = "<group>"; };
15A3CF471682C2B8002FB0C5 /* CCPhysicsDebugNode.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CCPhysicsDebugNode.h; sourceTree = "<group>"; };
15A3CF481682C2B8002FB0C5 /* CCPhysicsSprite.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = CCPhysicsSprite.cpp; sourceTree = "<group>"; };
15A3CF491682C2B8002FB0C5 /* CCPhysicsSprite.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CCPhysicsSprite.h; sourceTree = "<group>"; };
15A3CFA51682C331002FB0C5 /* Export.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Export.h; sourceTree = "<group>"; };
15A3CFA61682C331002FB0C5 /* SimpleAudioEngine.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SimpleAudioEngine.h; sourceTree = "<group>"; };
15A3CFA81682C331002FB0C5 /* CDAudioManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CDAudioManager.h; sourceTree = "<group>"; };
@ -323,27 +315,11 @@
15A3CFAF1682C331002FB0C5 /* SimpleAudioEngine.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = SimpleAudioEngine.mm; sourceTree = "<group>"; };
15A3CFB01682C331002FB0C5 /* SimpleAudioEngine_objc.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SimpleAudioEngine_objc.h; sourceTree = "<group>"; };
15A3CFB11682C331002FB0C5 /* SimpleAudioEngine_objc.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SimpleAudioEngine_objc.m; sourceTree = "<group>"; };
15A3D0791682E721002FB0C5 /* Android.mk */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = Android.mk; sourceTree = "<group>"; };
15A3D07A1682E721002FB0C5 /* cocos2d_specifics.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = cocos2d_specifics.cpp; sourceTree = "<group>"; };
15A3D07B1682E721002FB0C5 /* cocos2d_specifics.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = cocos2d_specifics.hpp; sourceTree = "<group>"; };
15A3D07C1682E721002FB0C5 /* cocosjs_manual_conversions.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = cocosjs_manual_conversions.cpp; sourceTree = "<group>"; };
15A3D07D1682E721002FB0C5 /* cocosjs_manual_conversions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = cocosjs_manual_conversions.h; sourceTree = "<group>"; };
15A3D07F1682E721002FB0C5 /* cocos2dx.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = cocos2dx.cpp; sourceTree = "<group>"; };
15A3D0801682E721002FB0C5 /* cocos2dx.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = cocos2dx.hpp; sourceTree = "<group>"; };
15A3D0811682E721002FB0C5 /* cocos2dxapi.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; path = cocos2dxapi.js; sourceTree = "<group>"; };
15A3D0821682E721002FB0C5 /* README */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = README; sourceTree = "<group>"; };
15A3D0891682E721002FB0C5 /* js_bindings_ccbreader.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = js_bindings_ccbreader.cpp; sourceTree = "<group>"; };
15A3D08A1682E721002FB0C5 /* js_bindings_ccbreader.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = js_bindings_ccbreader.h; sourceTree = "<group>"; };
15A3D08B1682E721002FB0C5 /* js_bindings_chipmunk_auto_classes.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = js_bindings_chipmunk_auto_classes.cpp; sourceTree = "<group>"; };
15A3D08C1682E721002FB0C5 /* js_bindings_chipmunk_auto_classes.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = js_bindings_chipmunk_auto_classes.h; sourceTree = "<group>"; };
15A3D08D1682E721002FB0C5 /* js_bindings_chipmunk_auto_classes_registration.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = js_bindings_chipmunk_auto_classes_registration.h; sourceTree = "<group>"; };
15A3D08E1682E721002FB0C5 /* js_bindings_chipmunk_functions.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = js_bindings_chipmunk_functions.cpp; sourceTree = "<group>"; };
15A3D08F1682E721002FB0C5 /* js_bindings_chipmunk_functions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = js_bindings_chipmunk_functions.h; sourceTree = "<group>"; };
15A3D0901682E721002FB0C5 /* js_bindings_chipmunk_functions_registration.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = js_bindings_chipmunk_functions_registration.h; sourceTree = "<group>"; };
15A3D0911682E721002FB0C5 /* js_bindings_chipmunk_manual.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = js_bindings_chipmunk_manual.cpp; sourceTree = "<group>"; };
15A3D0921682E721002FB0C5 /* js_bindings_chipmunk_manual.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = js_bindings_chipmunk_manual.h; sourceTree = "<group>"; };
15A3D0931682E721002FB0C5 /* js_bindings_chipmunk_registration.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = js_bindings_chipmunk_registration.cpp; sourceTree = "<group>"; };
15A3D0941682E721002FB0C5 /* js_bindings_chipmunk_registration.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = js_bindings_chipmunk_registration.h; sourceTree = "<group>"; };
15A3D0951682E721002FB0C5 /* js_bindings_config.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = js_bindings_config.h; sourceTree = "<group>"; };
15A3D0961682E721002FB0C5 /* js_bindings_core.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = js_bindings_core.cpp; sourceTree = "<group>"; };
15A3D0971682E721002FB0C5 /* js_bindings_core.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = js_bindings_core.h; sourceTree = "<group>"; };
@ -370,6 +346,14 @@
1A82F5D5169AC75500C4B13A /* LocalStorage.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = LocalStorage.cpp; sourceTree = "<group>"; };
1A82F5D6169AC75500C4B13A /* LocalStorage.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LocalStorage.h; sourceTree = "<group>"; };
1A82F5D7169AC75500C4B13A /* LocalStorageAndroid.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = LocalStorageAndroid.cpp; sourceTree = "<group>"; };
1AAC794916EDC4F400B97F83 /* jsb_cocos2dx_auto_api.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; path = jsb_cocos2dx_auto_api.js; sourceTree = "<group>"; };
1AAC794A16EDC4F400B97F83 /* jsb_cocos2dx_auto.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = jsb_cocos2dx_auto.cpp; sourceTree = "<group>"; };
1AAC794B16EDC4F400B97F83 /* jsb_cocos2dx_auto.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = jsb_cocos2dx_auto.hpp; sourceTree = "<group>"; };
1AAC795316EDC62500B97F83 /* jsb_cocos2dx_extension_manual.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = jsb_cocos2dx_extension_manual.cpp; sourceTree = "<group>"; };
1AAC795416EDC62500B97F83 /* jsb_cocos2dx_extension_manual.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = jsb_cocos2dx_extension_manual.h; sourceTree = "<group>"; };
1AAC795616EDC63A00B97F83 /* jsb_cocos2dx_extension_auto_api.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; path = jsb_cocos2dx_extension_auto_api.js; sourceTree = "<group>"; };
1AAC795716EDC63A00B97F83 /* jsb_cocos2dx_extension_auto.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = jsb_cocos2dx_extension_auto.cpp; sourceTree = "<group>"; };
1AAC795816EDC63A00B97F83 /* jsb_cocos2dx_extension_auto.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = jsb_cocos2dx_extension_auto.hpp; sourceTree = "<group>"; };
A922753D1517C094001B78AA /* CrystalCraze.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = CrystalCraze.app; sourceTree = BUILT_PRODUCTS_DIR; };
A92275411517C094001B78AA /* QuartzCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuartzCore.framework; path = System/Library/Frameworks/QuartzCore.framework; sourceTree = SDKROOT; };
A92275431517C094001B78AA /* OpenGLES.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = OpenGLES.framework; path = System/Library/Frameworks/OpenGLES.framework; sourceTree = SDKROOT; };
@ -553,7 +537,6 @@
15A3CF101682C2B8002FB0C5 /* cocos-ext.h */,
15A3CF111682C2B8002FB0C5 /* ExtensionMacros.h */,
15A3CF121682C2B8002FB0C5 /* GUI */,
15A3CF451682C2B8002FB0C5 /* physics_nodes */,
);
name = extensions;
path = ../../../../extensions;
@ -687,17 +670,6 @@
path = CCScrollView;
sourceTree = "<group>";
};
15A3CF451682C2B8002FB0C5 /* physics_nodes */ = {
isa = PBXGroup;
children = (
15A3CF461682C2B8002FB0C5 /* CCPhysicsDebugNode.cpp */,
15A3CF471682C2B8002FB0C5 /* CCPhysicsDebugNode.h */,
15A3CF481682C2B8002FB0C5 /* CCPhysicsSprite.cpp */,
15A3CF491682C2B8002FB0C5 /* CCPhysicsSprite.h */,
);
path = physics_nodes;
sourceTree = "<group>";
};
15A3CF8E1682C331002FB0C5 /* CocosDenshion */ = {
isa = PBXGroup;
children = (
@ -738,38 +710,27 @@
isa = PBXGroup;
children = (
15A3D07A1682E721002FB0C5 /* cocos2d_specifics.cpp */,
15A3D07C1682E721002FB0C5 /* cocosjs_manual_conversions.cpp */,
15A3D07B1682E721002FB0C5 /* cocos2d_specifics.hpp */,
15A3D07E1682E721002FB0C5 /* generated */,
15A3D0831682E721002FB0C5 /* js */,
15A3D0891682E721002FB0C5 /* js_bindings_ccbreader.cpp */,
15A3D08B1682E721002FB0C5 /* js_bindings_chipmunk_auto_classes.cpp */,
15A3D08E1682E721002FB0C5 /* js_bindings_chipmunk_functions.cpp */,
15A3D0911682E721002FB0C5 /* js_bindings_chipmunk_manual.cpp */,
15A3D0931682E721002FB0C5 /* js_bindings_chipmunk_registration.cpp */,
15A3D0961682E721002FB0C5 /* js_bindings_core.cpp */,
1A177F101698297600C9AC27 /* js_bindings_system_functions.cpp */,
1A177F121698297600C9AC27 /* js_bindings_system_registration.cpp */,
15A3D0981682E721002FB0C5 /* js_manual_conversions.cpp */,
15A3D09A1682E721002FB0C5 /* ScriptingCore.cpp */,
15A3D07D1682E721002FB0C5 /* cocosjs_manual_conversions.h */,
15A3D08A1682E721002FB0C5 /* js_bindings_ccbreader.h */,
15A3D08C1682E721002FB0C5 /* js_bindings_chipmunk_auto_classes.h */,
15A3D08D1682E721002FB0C5 /* js_bindings_chipmunk_auto_classes_registration.h */,
15A3D08F1682E721002FB0C5 /* js_bindings_chipmunk_functions.h */,
15A3D0901682E721002FB0C5 /* js_bindings_chipmunk_functions_registration.h */,
15A3D0921682E721002FB0C5 /* js_bindings_chipmunk_manual.h */,
15A3D0941682E721002FB0C5 /* js_bindings_chipmunk_registration.h */,
15A3D0951682E721002FB0C5 /* js_bindings_config.h */,
15A3D0961682E721002FB0C5 /* js_bindings_core.cpp */,
15A3D0971682E721002FB0C5 /* js_bindings_core.h */,
1A177F101698297600C9AC27 /* js_bindings_system_functions.cpp */,
1A177F111698297600C9AC27 /* js_bindings_system_functions.h */,
1A177F0F1698297600C9AC27 /* js_bindings_system_functions_registration.h */,
1A177F121698297600C9AC27 /* js_bindings_system_registration.cpp */,
1A177F131698297600C9AC27 /* js_bindings_system_registration.h */,
15A3D0981682E721002FB0C5 /* js_manual_conversions.cpp */,
15A3D0991682E721002FB0C5 /* js_manual_conversions.h */,
1AAC795316EDC62500B97F83 /* jsb_cocos2dx_extension_manual.cpp */,
1AAC795416EDC62500B97F83 /* jsb_cocos2dx_extension_manual.h */,
15A3D09A1682E721002FB0C5 /* ScriptingCore.cpp */,
15A3D09B1682E721002FB0C5 /* ScriptingCore.h */,
15A3D09C1682E721002FB0C5 /* spidermonkey_specifics.h */,
15A3D09D1682E721002FB0C5 /* uthash.h */,
15A3D07B1682E721002FB0C5 /* cocos2d_specifics.hpp */,
15A3D0791682E721002FB0C5 /* Android.mk */,
15A3D07E1682E721002FB0C5 /* generated */,
15A3D0831682E721002FB0C5 /* js */,
);
name = bindings;
path = ../../../../scripting/javascript/bindings;
@ -778,9 +739,12 @@
15A3D07E1682E721002FB0C5 /* generated */ = {
isa = PBXGroup;
children = (
15A3D07F1682E721002FB0C5 /* cocos2dx.cpp */,
15A3D0801682E721002FB0C5 /* cocos2dx.hpp */,
15A3D0811682E721002FB0C5 /* cocos2dxapi.js */,
1AAC794A16EDC4F400B97F83 /* jsb_cocos2dx_auto.cpp */,
1AAC794B16EDC4F400B97F83 /* jsb_cocos2dx_auto.hpp */,
1AAC794916EDC4F400B97F83 /* jsb_cocos2dx_auto_api.js */,
1AAC795716EDC63A00B97F83 /* jsb_cocos2dx_extension_auto.cpp */,
1AAC795816EDC63A00B97F83 /* jsb_cocos2dx_extension_auto.hpp */,
1AAC795616EDC63A00B97F83 /* jsb_cocos2dx_extension_auto_api.js */,
15A3D0821682E721002FB0C5 /* README */,
);
path = generated;
@ -958,7 +922,6 @@
159004B6166DE1A8006BF838 /* Icon-72.png in Resources */,
159004B8166DE1AF006BF838 /* Icon-144.png in Resources */,
15A3CE661682C205002FB0C5 /* CMakeLists.txt in Resources */,
15A3D09E1682E721002FB0C5 /* Android.mk in Resources */,
15A3D0A31682E721002FB0C5 /* README in Resources */,
1A21ED5216B02EE100A2E30E /* Published-iOS in Resources */,
);
@ -1046,21 +1009,13 @@
15A3CF801682C2B8002FB0C5 /* CCSorting.cpp in Sources */,
15A3CF811682C2B8002FB0C5 /* CCTableView.cpp in Sources */,
15A3CF821682C2B8002FB0C5 /* CCTableViewCell.cpp in Sources */,
15A3CF841682C2B8002FB0C5 /* CCPhysicsDebugNode.cpp in Sources */,
15A3CF851682C2B8002FB0C5 /* CCPhysicsSprite.cpp in Sources */,
15A3D00E1682C331002FB0C5 /* CDAudioManager.m in Sources */,
15A3D00F1682C331002FB0C5 /* CDOpenALSupport.m in Sources */,
15A3D0101682C331002FB0C5 /* CocosDenshion.m in Sources */,
15A3D0111682C331002FB0C5 /* SimpleAudioEngine.mm in Sources */,
15A3D0121682C331002FB0C5 /* SimpleAudioEngine_objc.m in Sources */,
15A3D09F1682E721002FB0C5 /* cocos2d_specifics.cpp in Sources */,
15A3D0A01682E721002FB0C5 /* cocosjs_manual_conversions.cpp in Sources */,
15A3D0A11682E721002FB0C5 /* cocos2dx.cpp in Sources */,
15A3D0A91682E721002FB0C5 /* js_bindings_ccbreader.cpp in Sources */,
15A3D0AA1682E721002FB0C5 /* js_bindings_chipmunk_auto_classes.cpp in Sources */,
15A3D0AB1682E721002FB0C5 /* js_bindings_chipmunk_functions.cpp in Sources */,
15A3D0AC1682E721002FB0C5 /* js_bindings_chipmunk_manual.cpp in Sources */,
15A3D0AD1682E721002FB0C5 /* js_bindings_chipmunk_registration.cpp in Sources */,
15A3D0AE1682E721002FB0C5 /* js_bindings_core.cpp in Sources */,
15A3D0AF1682E721002FB0C5 /* js_manual_conversions.cpp in Sources */,
15A3D0B01682E721002FB0C5 /* ScriptingCore.cpp in Sources */,
@ -1068,6 +1023,11 @@
1A177F151698297600C9AC27 /* js_bindings_system_registration.cpp in Sources */,
1A82F5D8169AC75500C4B13A /* LocalStorage.cpp in Sources */,
1A82F5D9169AC75500C4B13A /* LocalStorageAndroid.cpp in Sources */,
1AAC794F16EDC4F400B97F83 /* jsb_cocos2dx_auto_api.js in Sources */,
1AAC795016EDC4F400B97F83 /* jsb_cocos2dx_auto.cpp in Sources */,
1AAC795516EDC62500B97F83 /* jsb_cocos2dx_extension_manual.cpp in Sources */,
1AAC795916EDC63A00B97F83 /* jsb_cocos2dx_extension_auto_api.js in Sources */,
1AAC795A16EDC63A00B97F83 /* jsb_cocos2dx_extension_auto.cpp in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};

View File

@ -3,11 +3,8 @@
#include "cocos2d.h"
#include "SimpleAudioEngine.h"
#include "ScriptingCore.h"
#include "generated/cocos2dx.hpp"
#include "generated/jsb_cocos2dx_auto.hpp"
#include "cocos2d_specifics.hpp"
#include "js_bindings_chipmunk_registration.h"
#include "js_bindings_ccbreader.h"
#include "js_bindings_system_registration.h"
USING_NS_CC;
using namespace CocosDenshion;
@ -40,9 +37,6 @@ bool AppDelegate::applicationDidFinishLaunching()
ScriptingCore* sc = ScriptingCore::getInstance();
sc->addRegisterCallback(register_all_cocos2dx);
sc->addRegisterCallback(register_cocos2dx_js_extensions);
sc->addRegisterCallback(register_CCBuilderReader);
sc->addRegisterCallback(jsb_register_chipmunk);
sc->addRegisterCallback(jsb_register_system);
sc->start();
CCScriptEngineProtocol *pEngine = ScriptingCore::getInstance();

View File

@ -0,0 +1,720 @@
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 46;
objects = {
/* Begin PBXBuildFile section */
15674A6E163E70370002AD61 /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 15674A6D163E70370002AD61 /* QuartzCore.framework */; };
15674A70163E70370002AD61 /* OpenGLES.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 15674A6F163E70370002AD61 /* OpenGLES.framework */; };
15674A72163E70370002AD61 /* OpenAL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 15674A71163E70370002AD61 /* OpenAL.framework */; };
15674A74163E70370002AD61 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 15674A73163E70370002AD61 /* AudioToolbox.framework */; };
15674A76163E70370002AD61 /* AVFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 15674A75163E70370002AD61 /* AVFoundation.framework */; };
15674A78163E70370002AD61 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 15674A77163E70370002AD61 /* UIKit.framework */; };
15674A7A163E70370002AD61 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 15674A79163E70370002AD61 /* Foundation.framework */; };
15674A7C163E70370002AD61 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 15674A7B163E70370002AD61 /* CoreGraphics.framework */; };
15674EFF163E72EE0002AD61 /* AppDelegate.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 15674EFD163E72EE0002AD61 /* AppDelegate.cpp */; };
15674F05163E73290002AD61 /* AppController.mm in Sources */ = {isa = PBXBuildFile; fileRef = 15674F02163E73290002AD61 /* AppController.mm */; };
15674F06163E73290002AD61 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 15674F03163E73290002AD61 /* main.m */; };
1567516D163E741E0002AD61 /* Default-568h@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 15675164163E741E0002AD61 /* Default-568h@2x.png */; };
1567516E163E741E0002AD61 /* Default.png in Resources */ = {isa = PBXBuildFile; fileRef = 15675165163E741E0002AD61 /* Default.png */; };
1567516F163E741E0002AD61 /* Default@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 15675166163E741E0002AD61 /* Default@2x.png */; };
15675170163E741E0002AD61 /* Icon-72.png in Resources */ = {isa = PBXBuildFile; fileRef = 15675167163E741E0002AD61 /* Icon-72.png */; };
15675171163E741E0002AD61 /* Icon-Small-50.png in Resources */ = {isa = PBXBuildFile; fileRef = 15675168163E741E0002AD61 /* Icon-Small-50.png */; };
15675172163E741E0002AD61 /* Icon-Small.png in Resources */ = {isa = PBXBuildFile; fileRef = 15675169163E741E0002AD61 /* Icon-Small.png */; };
15675173163E741E0002AD61 /* Icon-Small@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 1567516A163E741E0002AD61 /* Icon-Small@2x.png */; };
15675174163E741E0002AD61 /* Icon.png in Resources */ = {isa = PBXBuildFile; fileRef = 1567516B163E741E0002AD61 /* Icon.png */; };
15675175163E741E0002AD61 /* Icon@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 1567516C163E741E0002AD61 /* Icon@2x.png */; };
156752A9163E78180002AD61 /* RootViewController.mm in Sources */ = {isa = PBXBuildFile; fileRef = 156752A8163E78180002AD61 /* RootViewController.mm */; };
156752BD163E7C350002AD61 /* Icon-144.png in Resources */ = {isa = PBXBuildFile; fileRef = 156752BC163E7C350002AD61 /* Icon-144.png */; };
156752F7163E7FC30002AD61 /* libjs_static.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 156752F6163E7FC30002AD61 /* libjs_static.a */; };
156752F9163E82D40002AD61 /* libz.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 156752F8163E82D40002AD61 /* libz.dylib */; };
15675300163E870E0002AD61 /* libxml2.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 156752FF163E870E0002AD61 /* libxml2.dylib */; };
15A3D1C11682EE23002FB0C5 /* CDAudioManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 15A3D15C1682EE23002FB0C5 /* CDAudioManager.m */; };
15A3D1C21682EE23002FB0C5 /* CDOpenALSupport.m in Sources */ = {isa = PBXBuildFile; fileRef = 15A3D15F1682EE23002FB0C5 /* CDOpenALSupport.m */; };
15A3D1C31682EE23002FB0C5 /* CocosDenshion.m in Sources */ = {isa = PBXBuildFile; fileRef = 15A3D1611682EE23002FB0C5 /* CocosDenshion.m */; };
15A3D1C41682EE23002FB0C5 /* SimpleAudioEngine.mm in Sources */ = {isa = PBXBuildFile; fileRef = 15A3D1621682EE23002FB0C5 /* SimpleAudioEngine.mm */; };
15A3D1C51682EE23002FB0C5 /* SimpleAudioEngine_objc.m in Sources */ = {isa = PBXBuildFile; fileRef = 15A3D1641682EE23002FB0C5 /* SimpleAudioEngine_objc.m */; };
15A3D2C21682EE81002FB0C5 /* cocos2d_specifics.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 15A3D29D1682EE81002FB0C5 /* cocos2d_specifics.cpp */; };
15A3D2C61682EE81002FB0C5 /* README in Resources */ = {isa = PBXBuildFile; fileRef = 15A3D2A51682EE81002FB0C5 /* README */; };
15A3D2D11682EE81002FB0C5 /* js_bindings_core.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 15A3D2B91682EE81002FB0C5 /* js_bindings_core.cpp */; };
15A3D2D21682EE81002FB0C5 /* js_manual_conversions.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 15A3D2BB1682EE81002FB0C5 /* js_manual_conversions.cpp */; };
15A3D2D31682EE81002FB0C5 /* ScriptingCore.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 15A3D2BD1682EE81002FB0C5 /* ScriptingCore.cpp */; };
15A3D2D61682EEC8002FB0C5 /* res in Resources */ = {isa = PBXBuildFile; fileRef = 15A3D2D41682EEC8002FB0C5 /* res */; };
15A3D2D71682EEC8002FB0C5 /* src in Resources */ = {isa = PBXBuildFile; fileRef = 15A3D2D51682EEC8002FB0C5 /* src */; };
15A3D2DE1682EF08002FB0C5 /* libcocos2dx.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 15A3D0C71682EDB7002FB0C5 /* libcocos2dx.a */; };
15A3D2E41682EF31002FB0C5 /* main.js in Resources */ = {isa = PBXBuildFile; fileRef = 15A3D2D81682EEEA002FB0C5 /* main.js */; };
15A3D2E51682EF31002FB0C5 /* MoonWarriors-jsb.js in Resources */ = {isa = PBXBuildFile; fileRef = 15A3D2D91682EEEA002FB0C5 /* MoonWarriors-jsb.js */; };
1A177EB71698261C00C9AC27 /* jsb_chipmunk.js in Sources */ = {isa = PBXBuildFile; fileRef = 1A177EB01698261C00C9AC27 /* jsb_chipmunk.js */; };
1A177EB81698261C00C9AC27 /* jsb_cocos2d.js in Sources */ = {isa = PBXBuildFile; fileRef = 1A177EB11698261C00C9AC27 /* jsb_cocos2d.js */; };
1A177EB91698261C00C9AC27 /* jsb_cocosbuilder.js in Sources */ = {isa = PBXBuildFile; fileRef = 1A177EB21698261C00C9AC27 /* jsb_cocosbuilder.js */; };
1A177EBA1698261C00C9AC27 /* jsb_debugger.js in Sources */ = {isa = PBXBuildFile; fileRef = 1A177EB31698261C00C9AC27 /* jsb_debugger.js */; };
1A177EBB1698261C00C9AC27 /* jsb_opengl.js in Sources */ = {isa = PBXBuildFile; fileRef = 1A177EB41698261C00C9AC27 /* jsb_opengl.js */; };
1A177EBC1698261C00C9AC27 /* jsb_sys.js in Sources */ = {isa = PBXBuildFile; fileRef = 1A177EB51698261C00C9AC27 /* jsb_sys.js */; };
1A177EBD1698261C00C9AC27 /* jsb.js in Sources */ = {isa = PBXBuildFile; fileRef = 1A177EB61698261C00C9AC27 /* jsb.js */; };
1A177EBE1698262E00C9AC27 /* jsb_chipmunk.js in Resources */ = {isa = PBXBuildFile; fileRef = 1A177EB01698261C00C9AC27 /* jsb_chipmunk.js */; };
1A177EBF1698262E00C9AC27 /* jsb_cocos2d.js in Resources */ = {isa = PBXBuildFile; fileRef = 1A177EB11698261C00C9AC27 /* jsb_cocos2d.js */; };
1A177EC01698262E00C9AC27 /* jsb_cocosbuilder.js in Resources */ = {isa = PBXBuildFile; fileRef = 1A177EB21698261C00C9AC27 /* jsb_cocosbuilder.js */; };
1A177EC11698262E00C9AC27 /* jsb_debugger.js in Resources */ = {isa = PBXBuildFile; fileRef = 1A177EB31698261C00C9AC27 /* jsb_debugger.js */; };
1A177EC21698262E00C9AC27 /* jsb_opengl.js in Resources */ = {isa = PBXBuildFile; fileRef = 1A177EB41698261C00C9AC27 /* jsb_opengl.js */; };
1A177EC31698262E00C9AC27 /* jsb_sys.js in Resources */ = {isa = PBXBuildFile; fileRef = 1A177EB51698261C00C9AC27 /* jsb_sys.js */; };
1A177EC41698262E00C9AC27 /* jsb.js in Resources */ = {isa = PBXBuildFile; fileRef = 1A177EB61698261C00C9AC27 /* jsb.js */; };
1A177ECA1698271700C9AC27 /* js_bindings_system_functions.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1A177EC61698271700C9AC27 /* js_bindings_system_functions.cpp */; };
1A177ECB1698271700C9AC27 /* js_bindings_system_registration.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1A177EC81698271700C9AC27 /* js_bindings_system_registration.cpp */; };
1A82F5E7169AC86100C4B13A /* LocalStorage.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1A82F5E4169AC86100C4B13A /* LocalStorage.cpp */; };
1A82F5E8169AC86100C4B13A /* LocalStorageAndroid.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1A82F5E6169AC86100C4B13A /* LocalStorageAndroid.cpp */; };
1A82F5EA169AC8DD00C4B13A /* libsqlite3.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 1A82F5E9169AC8DD00C4B13A /* libsqlite3.dylib */; };
1AAC795F16EDC7C000B97F83 /* jsb_cocos2dx_auto_api.js in Sources */ = {isa = PBXBuildFile; fileRef = 1AAC795C16EDC7C000B97F83 /* jsb_cocos2dx_auto_api.js */; };
1AAC796016EDC7C000B97F83 /* jsb_cocos2dx_auto.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AAC795D16EDC7C000B97F83 /* jsb_cocos2dx_auto.cpp */; };
A9706D8416A0C1FA0090A01D /* main.debug.js in Sources */ = {isa = PBXBuildFile; fileRef = A9706D8316A0C1FA0090A01D /* main.debug.js */; };
A9706D8516A0C3830090A01D /* main.debug.js in Resources */ = {isa = PBXBuildFile; fileRef = A9706D8316A0C1FA0090A01D /* main.debug.js */; };
/* End PBXBuildFile section */
/* Begin PBXContainerItemProxy section */
15A3D0C61682EDB7002FB0C5 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 15A3D0BF1682EDB7002FB0C5 /* cocos2dx.xcodeproj */;
proxyType = 2;
remoteGlobalIDString = 1551A33F158F2AB200E66CFE;
remoteInfo = cocos2dx;
};
15A3D2DC1682EEFD002FB0C5 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 15A3D0BF1682EDB7002FB0C5 /* cocos2dx.xcodeproj */;
proxyType = 1;
remoteGlobalIDString = 1551A33E158F2AB200E66CFE;
remoteInfo = cocos2dx;
};
/* End PBXContainerItemProxy section */
/* Begin PBXFileReference section */
15674A69163E70370002AD61 /* MoonWarriors.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = MoonWarriors.app; sourceTree = BUILT_PRODUCTS_DIR; };
15674A6D163E70370002AD61 /* QuartzCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuartzCore.framework; path = System/Library/Frameworks/QuartzCore.framework; sourceTree = SDKROOT; };
15674A6F163E70370002AD61 /* OpenGLES.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = OpenGLES.framework; path = System/Library/Frameworks/OpenGLES.framework; sourceTree = SDKROOT; };
15674A71163E70370002AD61 /* OpenAL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = OpenAL.framework; path = System/Library/Frameworks/OpenAL.framework; sourceTree = SDKROOT; };
15674A73163E70370002AD61 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AudioToolbox.framework; path = System/Library/Frameworks/AudioToolbox.framework; sourceTree = SDKROOT; };
15674A75163E70370002AD61 /* AVFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AVFoundation.framework; path = System/Library/Frameworks/AVFoundation.framework; sourceTree = SDKROOT; };
15674A77163E70370002AD61 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
15674A79163E70370002AD61 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
15674A7B163E70370002AD61 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
15674EFD163E72EE0002AD61 /* AppDelegate.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = AppDelegate.cpp; sourceTree = "<group>"; };
15674EFE163E72EE0002AD61 /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
15674F01163E73290002AD61 /* AppController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppController.h; sourceTree = "<group>"; };
15674F02163E73290002AD61 /* AppController.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = AppController.mm; sourceTree = "<group>"; };
15674F03163E73290002AD61 /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
15674F04163E73290002AD61 /* Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Prefix.pch; sourceTree = "<group>"; };
15675164163E741E0002AD61 /* Default-568h@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default-568h@2x.png"; sourceTree = "<group>"; };
15675165163E741E0002AD61 /* Default.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Default.png; sourceTree = "<group>"; };
15675166163E741E0002AD61 /* Default@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default@2x.png"; sourceTree = "<group>"; };
15675167163E741E0002AD61 /* Icon-72.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Icon-72.png"; sourceTree = "<group>"; };
15675168163E741E0002AD61 /* Icon-Small-50.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Icon-Small-50.png"; sourceTree = "<group>"; };
15675169163E741E0002AD61 /* Icon-Small.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Icon-Small.png"; sourceTree = "<group>"; };
1567516A163E741E0002AD61 /* Icon-Small@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Icon-Small@2x.png"; sourceTree = "<group>"; };
1567516B163E741E0002AD61 /* Icon.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Icon.png; sourceTree = "<group>"; };
1567516C163E741E0002AD61 /* Icon@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Icon@2x.png"; sourceTree = "<group>"; };
156752A7163E78180002AD61 /* RootViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RootViewController.h; sourceTree = "<group>"; };
156752A8163E78180002AD61 /* RootViewController.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = RootViewController.mm; sourceTree = "<group>"; };
156752BC163E7C350002AD61 /* Icon-144.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Icon-144.png"; sourceTree = "<group>"; };
156752F6163E7FC30002AD61 /* libjs_static.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libjs_static.a; path = "../../../scripting/javascript/spidermonkey-ios/lib/libjs_static.a"; sourceTree = "<group>"; };
156752F8163E82D40002AD61 /* libz.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libz.dylib; path = usr/lib/libz.dylib; sourceTree = SDKROOT; };
156752FF163E870E0002AD61 /* libxml2.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libxml2.dylib; path = usr/lib/libxml2.dylib; sourceTree = SDKROOT; };
15A3D0BF1682EDB7002FB0C5 /* cocos2dx.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = cocos2dx.xcodeproj; path = ../../../../cocos2dx/proj.ios/cocos2dx.xcodeproj; sourceTree = "<group>"; };
15A3D1581682EE23002FB0C5 /* Export.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Export.h; sourceTree = "<group>"; };
15A3D1591682EE23002FB0C5 /* SimpleAudioEngine.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SimpleAudioEngine.h; sourceTree = "<group>"; };
15A3D15B1682EE23002FB0C5 /* CDAudioManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CDAudioManager.h; sourceTree = "<group>"; };
15A3D15C1682EE23002FB0C5 /* CDAudioManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CDAudioManager.m; sourceTree = "<group>"; };
15A3D15D1682EE23002FB0C5 /* CDConfig.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CDConfig.h; sourceTree = "<group>"; };
15A3D15E1682EE23002FB0C5 /* CDOpenALSupport.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CDOpenALSupport.h; sourceTree = "<group>"; };
15A3D15F1682EE23002FB0C5 /* CDOpenALSupport.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CDOpenALSupport.m; sourceTree = "<group>"; };
15A3D1601682EE23002FB0C5 /* CocosDenshion.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CocosDenshion.h; sourceTree = "<group>"; };
15A3D1611682EE23002FB0C5 /* CocosDenshion.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CocosDenshion.m; sourceTree = "<group>"; };
15A3D1621682EE23002FB0C5 /* SimpleAudioEngine.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = SimpleAudioEngine.mm; sourceTree = "<group>"; };
15A3D1631682EE23002FB0C5 /* SimpleAudioEngine_objc.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SimpleAudioEngine_objc.h; sourceTree = "<group>"; };
15A3D1641682EE23002FB0C5 /* SimpleAudioEngine_objc.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SimpleAudioEngine_objc.m; sourceTree = "<group>"; };
15A3D21D1682EE48002FB0C5 /* cocos-ext.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "cocos-ext.h"; sourceTree = "<group>"; };
15A3D21E1682EE48002FB0C5 /* ExtensionMacros.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ExtensionMacros.h; sourceTree = "<group>"; };
15A3D29D1682EE81002FB0C5 /* cocos2d_specifics.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = cocos2d_specifics.cpp; sourceTree = "<group>"; };
15A3D29E1682EE81002FB0C5 /* cocos2d_specifics.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = cocos2d_specifics.hpp; sourceTree = "<group>"; };
15A3D2A51682EE81002FB0C5 /* README */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = README; sourceTree = "<group>"; };
15A3D2B81682EE81002FB0C5 /* js_bindings_config.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = js_bindings_config.h; sourceTree = "<group>"; };
15A3D2B91682EE81002FB0C5 /* js_bindings_core.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = js_bindings_core.cpp; sourceTree = "<group>"; };
15A3D2BA1682EE81002FB0C5 /* js_bindings_core.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = js_bindings_core.h; sourceTree = "<group>"; };
15A3D2BB1682EE81002FB0C5 /* js_manual_conversions.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = js_manual_conversions.cpp; sourceTree = "<group>"; };
15A3D2BC1682EE81002FB0C5 /* js_manual_conversions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = js_manual_conversions.h; sourceTree = "<group>"; };
15A3D2BD1682EE81002FB0C5 /* ScriptingCore.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ScriptingCore.cpp; sourceTree = "<group>"; };
15A3D2BE1682EE81002FB0C5 /* ScriptingCore.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ScriptingCore.h; sourceTree = "<group>"; };
15A3D2BF1682EE81002FB0C5 /* spidermonkey_specifics.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = spidermonkey_specifics.h; sourceTree = "<group>"; };
15A3D2C01682EE81002FB0C5 /* uthash.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = uthash.h; sourceTree = "<group>"; };
15A3D2D41682EEC8002FB0C5 /* res */ = {isa = PBXFileReference; lastKnownFileType = folder; name = res; path = ../../Shared/games/MoonWarriors/res; sourceTree = "<group>"; };
15A3D2D51682EEC8002FB0C5 /* src */ = {isa = PBXFileReference; lastKnownFileType = folder; name = src; path = ../../Shared/games/MoonWarriors/src; sourceTree = "<group>"; };
15A3D2D81682EEEA002FB0C5 /* main.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; name = main.js; path = ../../Shared/games/MoonWarriors/main.js; sourceTree = "<group>"; };
15A3D2D91682EEEA002FB0C5 /* MoonWarriors-jsb.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; name = "MoonWarriors-jsb.js"; path = "../../Shared/games/MoonWarriors/MoonWarriors-jsb.js"; sourceTree = "<group>"; };
1A177EB01698261C00C9AC27 /* jsb_chipmunk.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; path = jsb_chipmunk.js; sourceTree = "<group>"; };
1A177EB11698261C00C9AC27 /* jsb_cocos2d.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; path = jsb_cocos2d.js; sourceTree = "<group>"; };
1A177EB21698261C00C9AC27 /* jsb_cocosbuilder.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; path = jsb_cocosbuilder.js; sourceTree = "<group>"; };
1A177EB31698261C00C9AC27 /* jsb_debugger.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; path = jsb_debugger.js; sourceTree = "<group>"; };
1A177EB41698261C00C9AC27 /* jsb_opengl.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; path = jsb_opengl.js; sourceTree = "<group>"; };
1A177EB51698261C00C9AC27 /* jsb_sys.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; path = jsb_sys.js; sourceTree = "<group>"; };
1A177EB61698261C00C9AC27 /* jsb.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; path = jsb.js; sourceTree = "<group>"; };
1A177EC51698271700C9AC27 /* js_bindings_system_functions_registration.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = js_bindings_system_functions_registration.h; sourceTree = "<group>"; };
1A177EC61698271700C9AC27 /* js_bindings_system_functions.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = js_bindings_system_functions.cpp; sourceTree = "<group>"; };
1A177EC71698271700C9AC27 /* js_bindings_system_functions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = js_bindings_system_functions.h; sourceTree = "<group>"; };
1A177EC81698271700C9AC27 /* js_bindings_system_registration.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = js_bindings_system_registration.cpp; sourceTree = "<group>"; };
1A177EC91698271700C9AC27 /* js_bindings_system_registration.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = js_bindings_system_registration.h; sourceTree = "<group>"; };
1A82F5E4169AC86100C4B13A /* LocalStorage.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = LocalStorage.cpp; sourceTree = "<group>"; };
1A82F5E5169AC86100C4B13A /* LocalStorage.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LocalStorage.h; sourceTree = "<group>"; };
1A82F5E6169AC86100C4B13A /* LocalStorageAndroid.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = LocalStorageAndroid.cpp; sourceTree = "<group>"; };
1A82F5E9169AC8DD00C4B13A /* libsqlite3.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libsqlite3.dylib; path = usr/lib/libsqlite3.dylib; sourceTree = SDKROOT; };
1AAC795C16EDC7C000B97F83 /* jsb_cocos2dx_auto_api.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; path = jsb_cocos2dx_auto_api.js; sourceTree = "<group>"; };
1AAC795D16EDC7C000B97F83 /* jsb_cocos2dx_auto.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = jsb_cocos2dx_auto.cpp; sourceTree = "<group>"; };
1AAC795E16EDC7C000B97F83 /* jsb_cocos2dx_auto.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = jsb_cocos2dx_auto.hpp; sourceTree = "<group>"; };
A9706D8316A0C1FA0090A01D /* main.debug.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; path = main.debug.js; sourceTree = "<group>"; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
15674A66163E70370002AD61 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
1A82F5EA169AC8DD00C4B13A /* libsqlite3.dylib in Frameworks */,
15A3D2DE1682EF08002FB0C5 /* libcocos2dx.a in Frameworks */,
15675300163E870E0002AD61 /* libxml2.dylib in Frameworks */,
156752F9163E82D40002AD61 /* libz.dylib in Frameworks */,
156752F7163E7FC30002AD61 /* libjs_static.a in Frameworks */,
15674A6E163E70370002AD61 /* QuartzCore.framework in Frameworks */,
15674A70163E70370002AD61 /* OpenGLES.framework in Frameworks */,
15674A72163E70370002AD61 /* OpenAL.framework in Frameworks */,
15674A74163E70370002AD61 /* AudioToolbox.framework in Frameworks */,
15674A76163E70370002AD61 /* AVFoundation.framework in Frameworks */,
15674A78163E70370002AD61 /* UIKit.framework in Frameworks */,
15674A7A163E70370002AD61 /* Foundation.framework in Frameworks */,
15674A7C163E70370002AD61 /* CoreGraphics.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */
15674A5E163E70370002AD61 = {
isa = PBXGroup;
children = (
15A3D0BF1682EDB7002FB0C5 /* cocos2dx.xcodeproj */,
15A3D29B1682EE81002FB0C5 /* bindings */,
15674EFC163E72EE0002AD61 /* Classes */,
15A3D1411682EE23002FB0C5 /* CocosDenshion */,
15A3D1E61682EE48002FB0C5 /* extensions */,
15674A6C163E70370002AD61 /* Frameworks */,
15674F00163E730E0002AD61 /* ios */,
15674A6A163E70370002AD61 /* Products */,
15675123163E73F40002AD61 /* Resources */,
);
sourceTree = "<group>";
};
15674A6A163E70370002AD61 /* Products */ = {
isa = PBXGroup;
children = (
15674A69163E70370002AD61 /* MoonWarriors.app */,
);
name = Products;
sourceTree = "<group>";
};
15674A6C163E70370002AD61 /* Frameworks */ = {
isa = PBXGroup;
children = (
1A82F5E9169AC8DD00C4B13A /* libsqlite3.dylib */,
156752FF163E870E0002AD61 /* libxml2.dylib */,
156752F8163E82D40002AD61 /* libz.dylib */,
156752F6163E7FC30002AD61 /* libjs_static.a */,
15674A6D163E70370002AD61 /* QuartzCore.framework */,
15674A6F163E70370002AD61 /* OpenGLES.framework */,
15674A71163E70370002AD61 /* OpenAL.framework */,
15674A73163E70370002AD61 /* AudioToolbox.framework */,
15674A75163E70370002AD61 /* AVFoundation.framework */,
15674A77163E70370002AD61 /* UIKit.framework */,
15674A79163E70370002AD61 /* Foundation.framework */,
15674A7B163E70370002AD61 /* CoreGraphics.framework */,
);
name = Frameworks;
sourceTree = "<group>";
};
15674EFC163E72EE0002AD61 /* Classes */ = {
isa = PBXGroup;
children = (
15674EFD163E72EE0002AD61 /* AppDelegate.cpp */,
15674EFE163E72EE0002AD61 /* AppDelegate.h */,
);
name = Classes;
path = ../Classes;
sourceTree = "<group>";
};
15674F00163E730E0002AD61 /* ios */ = {
isa = PBXGroup;
children = (
156752A7163E78180002AD61 /* RootViewController.h */,
156752A8163E78180002AD61 /* RootViewController.mm */,
15674F01163E73290002AD61 /* AppController.h */,
15674F02163E73290002AD61 /* AppController.mm */,
15674F03163E73290002AD61 /* main.m */,
15674F04163E73290002AD61 /* Prefix.pch */,
);
name = ios;
sourceTree = "<group>";
};
15675123163E73F40002AD61 /* Resources */ = {
isa = PBXGroup;
children = (
15A3D2D81682EEEA002FB0C5 /* main.js */,
15A3D2D91682EEEA002FB0C5 /* MoonWarriors-jsb.js */,
15A3D2D41682EEC8002FB0C5 /* res */,
15A3D2D51682EEC8002FB0C5 /* src */,
15675164163E741E0002AD61 /* Default-568h@2x.png */,
15675165163E741E0002AD61 /* Default.png */,
15675166163E741E0002AD61 /* Default@2x.png */,
156752BC163E7C350002AD61 /* Icon-144.png */,
15675167163E741E0002AD61 /* Icon-72.png */,
15675168163E741E0002AD61 /* Icon-Small-50.png */,
15675169163E741E0002AD61 /* Icon-Small.png */,
1567516A163E741E0002AD61 /* Icon-Small@2x.png */,
1567516B163E741E0002AD61 /* Icon.png */,
1567516C163E741E0002AD61 /* Icon@2x.png */,
);
name = Resources;
sourceTree = "<group>";
};
15A3D0C01682EDB7002FB0C5 /* Products */ = {
isa = PBXGroup;
children = (
15A3D0C71682EDB7002FB0C5 /* libcocos2dx.a */,
);
name = Products;
sourceTree = "<group>";
};
15A3D1411682EE23002FB0C5 /* CocosDenshion */ = {
isa = PBXGroup;
children = (
15A3D1571682EE23002FB0C5 /* include */,
15A3D15A1682EE23002FB0C5 /* ios */,
);
name = CocosDenshion;
path = ../../../../CocosDenshion;
sourceTree = "<group>";
};
15A3D1571682EE23002FB0C5 /* include */ = {
isa = PBXGroup;
children = (
15A3D1581682EE23002FB0C5 /* Export.h */,
15A3D1591682EE23002FB0C5 /* SimpleAudioEngine.h */,
);
path = include;
sourceTree = "<group>";
};
15A3D15A1682EE23002FB0C5 /* ios */ = {
isa = PBXGroup;
children = (
15A3D15B1682EE23002FB0C5 /* CDAudioManager.h */,
15A3D15C1682EE23002FB0C5 /* CDAudioManager.m */,
15A3D15D1682EE23002FB0C5 /* CDConfig.h */,
15A3D15E1682EE23002FB0C5 /* CDOpenALSupport.h */,
15A3D15F1682EE23002FB0C5 /* CDOpenALSupport.m */,
15A3D1601682EE23002FB0C5 /* CocosDenshion.h */,
15A3D1611682EE23002FB0C5 /* CocosDenshion.m */,
15A3D1621682EE23002FB0C5 /* SimpleAudioEngine.mm */,
15A3D1631682EE23002FB0C5 /* SimpleAudioEngine_objc.h */,
15A3D1641682EE23002FB0C5 /* SimpleAudioEngine_objc.m */,
);
path = ios;
sourceTree = "<group>";
};
15A3D1E61682EE48002FB0C5 /* extensions */ = {
isa = PBXGroup;
children = (
1A82F5E3169AC86100C4B13A /* LocalStorage */,
15A3D21D1682EE48002FB0C5 /* cocos-ext.h */,
15A3D21E1682EE48002FB0C5 /* ExtensionMacros.h */,
);
name = extensions;
path = ../../../../extensions;
sourceTree = "<group>";
};
15A3D29B1682EE81002FB0C5 /* bindings */ = {
isa = PBXGroup;
children = (
15A3D29D1682EE81002FB0C5 /* cocos2d_specifics.cpp */,
15A3D29E1682EE81002FB0C5 /* cocos2d_specifics.hpp */,
15A3D2A11682EE81002FB0C5 /* generated */,
15A3D2A61682EE81002FB0C5 /* js */,
15A3D2B81682EE81002FB0C5 /* js_bindings_config.h */,
15A3D2B91682EE81002FB0C5 /* js_bindings_core.cpp */,
15A3D2BA1682EE81002FB0C5 /* js_bindings_core.h */,
1A177EC61698271700C9AC27 /* js_bindings_system_functions.cpp */,
1A177EC71698271700C9AC27 /* js_bindings_system_functions.h */,
1A177EC51698271700C9AC27 /* js_bindings_system_functions_registration.h */,
1A177EC81698271700C9AC27 /* js_bindings_system_registration.cpp */,
1A177EC91698271700C9AC27 /* js_bindings_system_registration.h */,
15A3D2BB1682EE81002FB0C5 /* js_manual_conversions.cpp */,
15A3D2BC1682EE81002FB0C5 /* js_manual_conversions.h */,
15A3D2BD1682EE81002FB0C5 /* ScriptingCore.cpp */,
15A3D2BE1682EE81002FB0C5 /* ScriptingCore.h */,
15A3D2BF1682EE81002FB0C5 /* spidermonkey_specifics.h */,
15A3D2C01682EE81002FB0C5 /* uthash.h */,
);
name = bindings;
path = ../../../../scripting/javascript/bindings;
sourceTree = "<group>";
};
15A3D2A11682EE81002FB0C5 /* generated */ = {
isa = PBXGroup;
children = (
1AAC795C16EDC7C000B97F83 /* jsb_cocos2dx_auto_api.js */,
1AAC795D16EDC7C000B97F83 /* jsb_cocos2dx_auto.cpp */,
1AAC795E16EDC7C000B97F83 /* jsb_cocos2dx_auto.hpp */,
15A3D2A51682EE81002FB0C5 /* README */,
);
path = generated;
sourceTree = "<group>";
};
15A3D2A61682EE81002FB0C5 /* js */ = {
isa = PBXGroup;
children = (
A9706D8316A0C1FA0090A01D /* main.debug.js */,
1A177EB01698261C00C9AC27 /* jsb_chipmunk.js */,
1A177EB11698261C00C9AC27 /* jsb_cocos2d.js */,
1A177EB21698261C00C9AC27 /* jsb_cocosbuilder.js */,
1A177EB31698261C00C9AC27 /* jsb_debugger.js */,
1A177EB41698261C00C9AC27 /* jsb_opengl.js */,
1A177EB51698261C00C9AC27 /* jsb_sys.js */,
1A177EB61698261C00C9AC27 /* jsb.js */,
);
path = js;
sourceTree = "<group>";
};
1A82F5E3169AC86100C4B13A /* LocalStorage */ = {
isa = PBXGroup;
children = (
1A82F5E4169AC86100C4B13A /* LocalStorage.cpp */,
1A82F5E5169AC86100C4B13A /* LocalStorage.h */,
1A82F5E6169AC86100C4B13A /* LocalStorageAndroid.cpp */,
);
path = LocalStorage;
sourceTree = "<group>";
};
/* End PBXGroup section */
/* Begin PBXNativeTarget section */
15674A68163E70370002AD61 /* MoonWarriors */ = {
isa = PBXNativeTarget;
buildConfigurationList = 15674E3B163E70430002AD61 /* Build configuration list for PBXNativeTarget "MoonWarriors" */;
buildPhases = (
15674A65163E70370002AD61 /* Sources */,
15674A66163E70370002AD61 /* Frameworks */,
15674A67163E70370002AD61 /* Resources */,
);
buildRules = (
);
dependencies = (
15A3D2DD1682EEFD002FB0C5 /* PBXTargetDependency */,
);
name = MoonWarriors;
productName = MoonWarriors;
productReference = 15674A69163E70370002AD61 /* MoonWarriors.app */;
productType = "com.apple.product-type.application";
};
/* End PBXNativeTarget section */
/* Begin PBXProject section */
15674A60163E70370002AD61 /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 0450;
};
buildConfigurationList = 15674A63163E70370002AD61 /* Build configuration list for PBXProject "MoonWarriors" */;
compatibilityVersion = "Xcode 3.2";
developmentRegion = English;
hasScannedForEncodings = 0;
knownRegions = (
en,
);
mainGroup = 15674A5E163E70370002AD61;
productRefGroup = 15674A6A163E70370002AD61 /* Products */;
projectDirPath = "";
projectReferences = (
{
ProductGroup = 15A3D0C01682EDB7002FB0C5 /* Products */;
ProjectRef = 15A3D0BF1682EDB7002FB0C5 /* cocos2dx.xcodeproj */;
},
);
projectRoot = "";
targets = (
15674A68163E70370002AD61 /* MoonWarriors */,
);
};
/* End PBXProject section */
/* Begin PBXReferenceProxy section */
15A3D0C71682EDB7002FB0C5 /* libcocos2dx.a */ = {
isa = PBXReferenceProxy;
fileType = archive.ar;
path = libcocos2dx.a;
remoteRef = 15A3D0C61682EDB7002FB0C5 /* PBXContainerItemProxy */;
sourceTree = BUILT_PRODUCTS_DIR;
};
/* End PBXReferenceProxy section */
/* Begin PBXResourcesBuildPhase section */
15674A67163E70370002AD61 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
1A177EBE1698262E00C9AC27 /* jsb_chipmunk.js in Resources */,
1A177EBF1698262E00C9AC27 /* jsb_cocos2d.js in Resources */,
1A177EC01698262E00C9AC27 /* jsb_cocosbuilder.js in Resources */,
1A177EC11698262E00C9AC27 /* jsb_debugger.js in Resources */,
1A177EC21698262E00C9AC27 /* jsb_opengl.js in Resources */,
1A177EC31698262E00C9AC27 /* jsb_sys.js in Resources */,
1A177EC41698262E00C9AC27 /* jsb.js in Resources */,
15A3D2E41682EF31002FB0C5 /* main.js in Resources */,
A9706D8516A0C3830090A01D /* main.debug.js in Resources */,
15A3D2E51682EF31002FB0C5 /* MoonWarriors-jsb.js in Resources */,
1567516D163E741E0002AD61 /* Default-568h@2x.png in Resources */,
1567516E163E741E0002AD61 /* Default.png in Resources */,
1567516F163E741E0002AD61 /* Default@2x.png in Resources */,
15675170163E741E0002AD61 /* Icon-72.png in Resources */,
15675171163E741E0002AD61 /* Icon-Small-50.png in Resources */,
15675172163E741E0002AD61 /* Icon-Small.png in Resources */,
15675173163E741E0002AD61 /* Icon-Small@2x.png in Resources */,
15675174163E741E0002AD61 /* Icon.png in Resources */,
15675175163E741E0002AD61 /* Icon@2x.png in Resources */,
156752BD163E7C350002AD61 /* Icon-144.png in Resources */,
15A3D2C61682EE81002FB0C5 /* README in Resources */,
15A3D2D61682EEC8002FB0C5 /* res in Resources */,
15A3D2D71682EEC8002FB0C5 /* src in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */
/* Begin PBXSourcesBuildPhase section */
15674A65163E70370002AD61 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
15674EFF163E72EE0002AD61 /* AppDelegate.cpp in Sources */,
15674F05163E73290002AD61 /* AppController.mm in Sources */,
15674F06163E73290002AD61 /* main.m in Sources */,
156752A9163E78180002AD61 /* RootViewController.mm in Sources */,
15A3D1C11682EE23002FB0C5 /* CDAudioManager.m in Sources */,
15A3D1C21682EE23002FB0C5 /* CDOpenALSupport.m in Sources */,
15A3D1C31682EE23002FB0C5 /* CocosDenshion.m in Sources */,
15A3D1C41682EE23002FB0C5 /* SimpleAudioEngine.mm in Sources */,
15A3D1C51682EE23002FB0C5 /* SimpleAudioEngine_objc.m in Sources */,
15A3D2C21682EE81002FB0C5 /* cocos2d_specifics.cpp in Sources */,
15A3D2D11682EE81002FB0C5 /* js_bindings_core.cpp in Sources */,
15A3D2D21682EE81002FB0C5 /* js_manual_conversions.cpp in Sources */,
15A3D2D31682EE81002FB0C5 /* ScriptingCore.cpp in Sources */,
1A177EB71698261C00C9AC27 /* jsb_chipmunk.js in Sources */,
1A177EB81698261C00C9AC27 /* jsb_cocos2d.js in Sources */,
1A177EB91698261C00C9AC27 /* jsb_cocosbuilder.js in Sources */,
1A177EBA1698261C00C9AC27 /* jsb_debugger.js in Sources */,
1A177EBB1698261C00C9AC27 /* jsb_opengl.js in Sources */,
1A177EBC1698261C00C9AC27 /* jsb_sys.js in Sources */,
1A177EBD1698261C00C9AC27 /* jsb.js in Sources */,
1A177ECA1698271700C9AC27 /* js_bindings_system_functions.cpp in Sources */,
1A177ECB1698271700C9AC27 /* js_bindings_system_registration.cpp in Sources */,
1A82F5E7169AC86100C4B13A /* LocalStorage.cpp in Sources */,
1A82F5E8169AC86100C4B13A /* LocalStorageAndroid.cpp in Sources */,
A9706D8416A0C1FA0090A01D /* main.debug.js in Sources */,
1AAC795F16EDC7C000B97F83 /* jsb_cocos2dx_auto_api.js in Sources */,
1AAC796016EDC7C000B97F83 /* jsb_cocos2dx_auto.cpp in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */
/* Begin PBXTargetDependency section */
15A3D2DD1682EEFD002FB0C5 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
name = cocos2dx;
targetProxy = 15A3D2DC1682EEFD002FB0C5 /* PBXContainerItemProxy */;
};
/* End PBXTargetDependency section */
/* Begin XCBuildConfiguration section */
15674E39163E70430002AD61 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = (
DEBUG,
"COCOS2D_DEBUG=1",
USE_FILE32API,
TARGET_OS_IPHONE,
COCOS2D_JAVASCRIPT,
);
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
HEADER_SEARCH_PATHS = (
"\"$(PROJECT_NAME)/libs/cocos2dx/kazmath/include\"",
"\"$(PROJECT_NAME)/libs/cocos2dx\"",
"\"$(PROJECT_NAME)/libs/CocosDenshion/include\"",
"\"$(SDKROOT)/usr/include/libxml2\"",
"\"$(PROJECT_NAME)/libs/cocos2dx/include\"",
"\"$(PROJECT_NAME)/libs/cocos2dx/platform/third_party/ios\"",
"\"$(PROJECT_NAME)/libs/cocos2dx/platform/ios\"",
);
IPHONEOS_DEPLOYMENT_TARGET = 6.0;
SDKROOT = iphoneos;
};
name = Debug;
};
15674E3A163E70430002AD61 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_PREPROCESSOR_DEFINITIONS = (
NDEBUG,
USE_FILE32API,
TARGET_OS_IPHONE,
COCOS2D_JAVASCRIPT,
);
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
HEADER_SEARCH_PATHS = (
"\"$(PROJECT_NAME)/libs/cocos2dx/kazmath/include\"",
"\"$(PROJECT_NAME)/libs/cocos2dx\"",
"\"$(PROJECT_NAME)/libs/CocosDenshion/include\"",
"\"$(SDKROOT)/usr/include/libxml2\"",
"\"$(PROJECT_NAME)/libs/cocos2dx/include\"",
"\"$(PROJECT_NAME)/libs/cocos2dx/platform/third_party/ios\"",
"\"$(PROJECT_NAME)/libs/cocos2dx/platform/ios\"",
);
IPHONEOS_DEPLOYMENT_TARGET = 6.0;
OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1";
SDKROOT = iphoneos;
};
name = Release;
};
15674E3C163E70430002AD61 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = YES;
COPY_PHASE_STRIP = NO;
GCC_DYNAMIC_NO_PIC = NO;
GCC_OPTIMIZATION_LEVEL = 1;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = Prefix.pch;
GCC_PREPROCESSOR_DEFINITIONS = (
DEBUG,
"COCOS2D_DEBUG=1",
USE_FILE32API,
CC_TARGET_OS_IPHONE,
COCOS2D_JAVASCRIPT,
CC_ENABLE_CHIPMUNK_INTEGRATION,
);
GCC_THUMB_SUPPORT = NO;
GCC_VERSION = "";
HEADER_SEARCH_PATHS = (
"\"$(SRCROOT)/../../../../cocos2dx/kazmath/include\"",
"\"$(SRCROOT)/../../../../cocos2dx\"",
"\"$(SRCROOT)/../../../../CocosDenshion/include\"",
"\"$(SRCROOT)/usr/include/libxml2\"",
"\"$(SRCROOT)/../../../../cocos2dx/include\"",
"\"$(SRCROOT)/../../../../cocos2dx/platform/third_party/ios\"",
"\"$(SRCROOT)/../../../../cocos2dx/platform/ios\"",
"$(SRCROOT)/../../../../scripting/javascript/spidermonkey-ios/include",
"$(SRCROOT)/../../../../scripting/javascript/bindings",
"$(SRCROOT)/../../../../external/chipmunk/include/**",
);
INFOPLIST_FILE = Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 4.3;
LIBRARY_SEARCH_PATHS = (
"$(inherited)",
"\"$(SRCROOT)/../../../../scripting/javascript/spidermonkey-ios/lib\"",
);
OTHER_LDFLAGS = "";
PRODUCT_NAME = "$(TARGET_NAME)";
PUBLIC_HEADERS_FOLDER_PATH = "$(CONTENTS_FOLDER_PATH)/Headers";
TARGETED_DEVICE_FAMILY = "1,2";
USER_HEADER_SEARCH_PATHS = "";
VALID_ARCHS = "armv7 armv7s";
WRAPPER_EXTENSION = app;
};
name = Debug;
};
15674E3D163E70430002AD61 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = YES;
COPY_PHASE_STRIP = YES;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = Prefix.pch;
GCC_PREPROCESSOR_DEFINITIONS = (
NDEBUG,
USE_FILE32API,
CC_TARGET_OS_IPHONE,
COCOS2D_JAVASCRIPT,
CC_ENABLE_CHIPMUNK_INTEGRATION,
);
GCC_THUMB_SUPPORT = NO;
GCC_VERSION = "";
HEADER_SEARCH_PATHS = (
"\"$(SRCROOT)/../../../../cocos2dx/kazmath/include\"",
"\"$(SRCROOT)/../../../../cocos2dx\"",
"\"$(SRCROOT)/../../../../CocosDenshion/include\"",
"\"$(SRCROOT)/usr/include/libxml2\"",
"\"$(SRCROOT)/../../../../cocos2dx/include\"",
"\"$(SRCROOT)/../../../../cocos2dx/platform/third_party/ios\"",
"\"$(SRCROOT)/../../../../cocos2dx/platform/ios\"",
"$(SRCROOT)/../../../../scripting/javascript/spidermonkey-ios/include",
"$(SRCROOT)/../../../../scripting/javascript/bindings",
"$(SRCROOT)/../../../../external/chipmunk/include/**",
);
INFOPLIST_FILE = Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 4.3;
LIBRARY_SEARCH_PATHS = (
"$(inherited)",
"\"$(SRCROOT)/../../../../scripting/javascript/spidermonkey-ios/lib\"",
);
OTHER_LDFLAGS = "";
PRODUCT_NAME = "$(TARGET_NAME)";
PUBLIC_HEADERS_FOLDER_PATH = "$(CONTENTS_FOLDER_PATH)/Headers";
TARGETED_DEVICE_FAMILY = "1,2";
USER_HEADER_SEARCH_PATHS = "";
VALIDATE_PRODUCT = YES;
VALID_ARCHS = "armv7 armv7s";
WRAPPER_EXTENSION = app;
};
name = Release;
};
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
15674A63163E70370002AD61 /* Build configuration list for PBXProject "MoonWarriors" */ = {
isa = XCConfigurationList;
buildConfigurations = (
15674E39163E70430002AD61 /* Debug */,
15674E3A163E70430002AD61 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
15674E3B163E70430002AD61 /* Build configuration list for PBXNativeTarget "MoonWarriors" */ = {
isa = XCConfigurationList;
buildConfigurations = (
15674E3C163E70430002AD61 /* Debug */,
15674E3D163E70430002AD61 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = 15674A60163E70370002AD61 /* Project object */;
}

View File

@ -1 +0,0 @@
c29148da456b0a1eb38816bf26c68ba21fa50ab7

@ -1 +1 @@
Subproject commit 0455fdce1ec89d6bf335e395b48882aaf875d38b
Subproject commit aebbb51742c5f8f01af670aa89a12c54de296438

View File

@ -3,7 +3,9 @@
#include "cocos2d.h"
#include "SimpleAudioEngine.h"
#include "ScriptingCore.h"
#include "generated/cocos2dx.hpp"
#include "generated/jsb_cocos2dx_auto.hpp"
#include "generated/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"
@ -34,7 +36,9 @@ bool AppDelegate::applicationDidFinishLaunching()
ScriptingCore* sc = ScriptingCore::getInstance();
sc->addRegisterCallback(register_all_cocos2dx);
sc->addRegisterCallback(register_all_cocos2dx_extension);
sc->addRegisterCallback(register_cocos2dx_js_extensions);
sc->addRegisterCallback(register_all_cocos2dx_extension_manual);
sc->addRegisterCallback(jsb_register_chipmunk);
sc->addRegisterCallback(jsb_register_system);

View File

@ -1 +1 @@
b5f704f01d19ceb56728e6f0569321dfe418cb5d
ac9538f501938e68d78bc40af5feebd3e50d0730

View File

@ -3,7 +3,9 @@
#include "cocos2d.h"
#include "SimpleAudioEngine.h"
#include "ScriptingCore.h"
#include "generated/cocos2dx.hpp"
#include "generated/jsb_cocos2dx_auto.hpp"
#include "generated/jsb_cocos2dx_extension_auto.hpp"
#include "jsb_cocos2dx_extension_manual.h"
#include "cocos2d_specifics.hpp"
#include "js_bindings_chipmunk_registration.h"
#include "js_bindings_ccbreader.h"
@ -35,6 +37,8 @@ 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(jsb_register_chipmunk);
sc->addRegisterCallback(register_CCBuilderReader);

View File

@ -1 +1 @@
256ff6e456360f571ae24d610f20eaf087c174b9
d4c0a2ec4ee124a03aabebf924deab3229c33d89

View File

@ -8,6 +8,7 @@ LOCAL_MODULE_FILENAME := libscriptingcore-spidermonkey
LOCAL_SRC_FILES := ScriptingCore.cpp \
cocos2d_specifics.cpp \
jsb_cocos2dx_extension_manual.cpp \
js_manual_conversions.cpp \
cocosjs_manual_conversions.cpp \
js_bindings_chipmunk_manual.cpp \
@ -18,7 +19,8 @@ LOCAL_SRC_FILES := ScriptingCore.cpp \
js_bindings_system_registration.cpp \
js_bindings_ccbreader.cpp \
js_bindings_core.cpp \
generated/cocos2dx.cpp
generated/jsb_cocos2dx_auto.cpp \
generated/jsb_cocos2dx_extension_auto.cpp
LOCAL_CFLAGS := -DCOCOS2D_JAVASCRIPT

File diff suppressed because it is too large Load Diff

View File

@ -1 +0,0 @@
732840b42077e8a3de8f8774bcaf60a69ef20c4e

View File

@ -4,6 +4,7 @@
// DO NOT ALTER THE ORDER
require('jsb_cocos2d.js');
require('jsb_cocos2d_extension.js');
require('jsb_chipmunk.js');
require('jsb_opengl.js');
require('jsb_cocosbuilder.js');

View File

@ -76,13 +76,6 @@ cc.MENU_STATE_TRACKING_TOUCH = 1;
cc.MENU_HANDLER_PRIORITY = -128;
cc.DEFAULT_PADDING = 5;
cc.SCROLLVIEW_DIRECTION_NONE = -1;
cc.SCROLLVIEW_DIRECTION_HORIZONTAL = 0;
cc.SCROLLVIEW_DIRECTION_VERTICAL = 1;
cc.SCROLLVIEW_DIRECTION_BOTH = 2;
cc.TABLEVIEW_FILL_TOPDOWN = 0;
cc.TABLEVIEW_FILL_BOTTOMUP = 1;
// reusable objects
cc._reuse_p = [ {x:0, y:0}, {x:0,y:0}, {x:0,y:0}, {x:0,y:0} ];
cc._reuse_p_index = 0;
@ -323,10 +316,13 @@ cc.dump = function(obj)
};
// dump config info, but only in debug mode
var sys = sys || undefined;
cc.dumpConfig = function()
{
if (sys) {
cc.dump(sys);
cc.dump(sys.capabilities);
}
};
//
@ -373,28 +369,6 @@ cc.LabelAtlas.create = function( a,b,c,d,e ) {
cc.LayerMultiplex.create = cc.LayerMultiplex.createWithArray;
// PhysicsDebugNode
cc.PhysicsDebugNode.create = function( space ) {
var s = space;
if( space.handle !== undefined )
s = space.handle;
return cc.PhysicsDebugNode._create( s );
};
cc.PhysicsDebugNode.prototype.setSpace = function( space ) {
var s = space;
if( space.handle !== undefined )
s = space.handle;
return this._setSpace( s );
};
// PhysicsSprite
cc.PhysicsSprite.prototype.setBody = function( body ) {
var b = body;
if( body.handle !== undefined )
b = body.handle;
return this._setCPBody( b );
};
/**
* Associates a base class with a native superclass
@ -533,7 +507,4 @@ cc.Sprite.extend = cc.Class.extend;
cc.MenuItemFont.extend = cc.Class.extend;
cc.Scene.extend = cc.Class.extend;
cc.DrawNode.extend = cc.Class.extend;
cc.ScrollView.extend = cc.Class.extend;
cc.TableView.extend = cc.Class.extend;
cc.TableViewCell.extend = cc.Class.extend;

View File

@ -0,0 +1,41 @@
//
// cocos2d constants
//
// This helper file should be required after jsb_cocos2d.js
//
var cc = cc || {};
cc.SCROLLVIEW_DIRECTION_NONE = -1;
cc.SCROLLVIEW_DIRECTION_HORIZONTAL = 0;
cc.SCROLLVIEW_DIRECTION_VERTICAL = 1;
cc.SCROLLVIEW_DIRECTION_BOTH = 2;
cc.TABLEVIEW_FILL_TOPDOWN = 0;
cc.TABLEVIEW_FILL_BOTTOMUP = 1;
// PhysicsDebugNode
cc.PhysicsDebugNode.create = function( space ) {
var s = space;
if( space.handle !== undefined )
s = space.handle;
return cc.PhysicsDebugNode._create( s );
};
cc.PhysicsDebugNode.prototype.setSpace = function( space ) {
var s = space;
if( space.handle !== undefined )
s = space.handle;
return this._setSpace( s );
};
// PhysicsSprite
cc.PhysicsSprite.prototype.setBody = function( body ) {
var b = body;
if( body.handle !== undefined )
b = body.handle;
return this._setCPBody( b );
};
cc.ScrollView.extend = cc.Class.extend;
cc.TableView.extend = cc.Class.extend;
cc.TableViewCell.extend = cc.Class.extend;

View File

@ -0,0 +1,383 @@
//
// jsb_cocos2d_extension_manual.cpp
// MoonWarriors
//
// Created by James Chen on 3/11/13.
//
//
#include "jsb_cocos2dx_extension_manual.h"
#include "cocos-ext.h"
#include "ScriptingCore.h"
#include "cocos2d_specifics.hpp"
USING_NS_CC;
USING_NS_CC_EXT;
class ScrollViewDelegate : public CCScrollViewDelegate
{
public:
virtual void scrollViewDidScroll(CCScrollView* view)
{
js_proxy_t * p;
JS_GET_PROXY(p, view);
if (!p) return;
ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(m_pJSDelegate), "scrollViewDidScroll", OBJECT_TO_JSVAL(p->obj));
}
virtual void scrollViewDidZoom(CCScrollView* view)
{
js_proxy_t * p;
JS_GET_PROXY(p, view);
if (!p) return;
ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(m_pJSDelegate), "scrollViewDidZoom", OBJECT_TO_JSVAL(p->obj));
}
void setJSDelegate(JSObject* pJSDelegate)
{
m_pJSDelegate = pJSDelegate;
}
private:
JSObject* m_pJSDelegate;
};
static JSBool js_cocos2dx_CCScrollView_setDelegate(JSContext *cx, uint32_t argc, jsval *vp)
{
jsval *argv = JS_ARGV(cx, vp);
JSObject *obj = JS_THIS_OBJECT(cx, vp);
js_proxy_t *proxy; JS_GET_NATIVE_PROXY(proxy, obj);
cocos2d::extension::CCScrollView* cobj = (cocos2d::extension::CCScrollView *)(proxy ? proxy->ptr : NULL);
JSB_PRECONDITION2( cobj, cx, JS_FALSE, "Invalid Native Object");
if (argc == 1) {
// save the delegate
JSObject *jsDelegate = JSVAL_TO_OBJECT(argv[0]);
ScrollViewDelegate* nativeDelegate = new ScrollViewDelegate();
nativeDelegate->setJSDelegate(jsDelegate);
cobj->setDelegate(nativeDelegate);
JS_SET_RVAL(cx, vp, JSVAL_VOID);
return JS_TRUE;
}
JS_ReportError(cx, "wrong number of arguments: %d, was expecting %d", argc, 1);
return JS_FALSE;
}
class TableViewDelegate : public CCTableViewDelegate
{
public:
virtual void scrollViewDidScroll(CCScrollView* view)
{
callJSDelegate(view, "scrollViewDidScroll");
}
virtual void scrollViewDidZoom(CCScrollView* view)
{
callJSDelegate(view, "scrollViewDidZoom");
}
virtual void tableCellTouched(CCTableView* table, CCTableViewCell* cell)
{
callJSDelegate(table, cell, "tableCellTouched");
}
virtual void tableCellHighlight(CCTableView* table, CCTableViewCell* cell)
{
callJSDelegate(table, cell, "tableCellHighlight");
}
virtual void tableCellUnhighlight(CCTableView* table, CCTableViewCell* cell)
{
callJSDelegate(table, cell, "tableCellUnhighlight");
}
virtual void tableCellWillRecycle(CCTableView* table, CCTableViewCell* cell)
{
callJSDelegate(table, cell, "tableCellWillRecycle");
}
void setJSDelegate(JSObject* pJSDelegate)
{
m_pJSDelegate = pJSDelegate;
}
private:
void callJSDelegate(CCScrollView* view, std::string jsFunctionName)
{
js_proxy_t * p;
JS_GET_PROXY(p, view);
if (!p) return;
ScriptingCore::getInstance()->executeFunctionWithOwner(OBJECT_TO_JSVAL(m_pJSDelegate), jsFunctionName.c_str(), OBJECT_TO_JSVAL(p->obj));
}
void callJSDelegate(CCTableView* table, CCTableViewCell* cell, std::string jsFunctionName)
{
js_proxy_t * p;
JS_GET_PROXY(p, table);
if (!p) return;
js_proxy_t * pCellProxy;
JS_GET_PROXY(pCellProxy, cell);
if (!pCellProxy) return;
JSBool hasAction;
jsval retval;
jsval temp_retval;
jsval dataVal[2];
dataVal[0] = OBJECT_TO_JSVAL(p->obj);
dataVal[1] = OBJECT_TO_JSVAL(pCellProxy->obj);
JSContext* cx = ScriptingCore::getInstance()->getGlobalContext();
JSObject* obj = m_pJSDelegate;
if (JS_HasProperty(cx, obj, jsFunctionName.c_str(), &hasAction) && hasAction) {
if(!JS_GetProperty(cx, obj, jsFunctionName.c_str(), &temp_retval)) {
return;
}
if(temp_retval == JSVAL_VOID) {
return;
}
JSAutoCompartment ac(cx, obj);
JS_CallFunctionName(cx, obj, jsFunctionName.c_str(),
2, dataVal, &retval);
}
}
JSObject* m_pJSDelegate;
};
static JSBool js_cocos2dx_CCTableView_setDelegate(JSContext *cx, uint32_t argc, jsval *vp)
{
jsval *argv = JS_ARGV(cx, vp);
JSObject *obj = JS_THIS_OBJECT(cx, vp);
js_proxy_t *proxy; JS_GET_NATIVE_PROXY(proxy, obj);
cocos2d::extension::CCTableView* cobj = (cocos2d::extension::CCTableView *)(proxy ? proxy->ptr : NULL);
JSB_PRECONDITION2( cobj, cx, JS_FALSE, "Invalid Native Object");
if (argc == 1) {
// save the delegate
JSObject *jsDelegate = JSVAL_TO_OBJECT(argv[0]);
TableViewDelegate* nativeDelegate = new TableViewDelegate();
nativeDelegate->setJSDelegate(jsDelegate);
cobj->setDelegate(nativeDelegate);
JS_SET_RVAL(cx, vp, JSVAL_VOID);
return JS_TRUE;
}
JS_ReportError(cx, "wrong number of arguments: %d, was expecting %d", argc, 1);
return JS_FALSE;
}
class TableViewDataSource : public CCTableViewDataSource
{
public:
virtual CCSize cellSizeForTable(CCTableView *table)
{
jsval ret;
bool ok = callJSDelegate(table, "cellSizeForTable", ret);
if (ok)
{
JSContext* cx = ScriptingCore::getInstance()->getGlobalContext();
CCSize size;
JSBool isSucceed = jsval_to_ccsize(cx, ret, &size);
if (isSucceed) return size;
}
return CCSizeZero;
}
virtual CCTableViewCell* tableCellAtIndex(CCTableView *table, unsigned int idx)
{
jsval ret;
bool ok = callJSDelegate(table, idx, "tableCellAtIndex", ret);
if (ok)
{
JSContext* cx = ScriptingCore::getInstance()->getGlobalContext();
cocos2d::extension::CCTableViewCell* arg0;
do {
js_proxy_t *proxy;
JSObject *tmpObj = JSVAL_TO_OBJECT(ret);
JS_GET_NATIVE_PROXY(proxy, tmpObj);
arg0 = (cocos2d::extension::CCTableViewCell*)(proxy ? proxy->ptr : NULL);
JSB_PRECONDITION2( arg0, cx, NULL, "Invalid Native Object");
} while (0);
return arg0;
}
return NULL;
}
virtual unsigned int numberOfCellsInTableView(CCTableView *table)
{
jsval ret;
bool ok = callJSDelegate(table, "numberOfCellsInTableView", ret);
if (ok)
{
JSContext* cx = ScriptingCore::getInstance()->getGlobalContext();
uint32_t count = 0;
JSBool isSucceed = jsval_to_uint32(cx, ret, &count);
if (isSucceed) return count;
}
return 0;
}
void setTableViewDataSource(JSObject* pJSSource)
{
m_pJSTableViewDataSource = pJSSource;
}
private:
bool callJSDelegate(CCTableView* table, std::string jsFunctionName, jsval& retVal)
{
js_proxy_t * p;
JS_GET_PROXY(p, table);
if (!p) return false;
JSBool hasAction;
jsval temp_retval;
jsval dataVal = OBJECT_TO_JSVAL(p->obj);
JSContext* cx = ScriptingCore::getInstance()->getGlobalContext();
JSObject* obj = m_pJSTableViewDataSource;
if (JS_HasProperty(cx, obj, jsFunctionName.c_str(), &hasAction) && hasAction) {
if(!JS_GetProperty(cx, obj, jsFunctionName.c_str(), &temp_retval)) {
return false;
}
if(temp_retval == JSVAL_VOID) {
return false;
}
JSAutoCompartment ac(cx, obj);
JS_CallFunctionName(cx, obj, jsFunctionName.c_str(),
1, &dataVal, &retVal);
return true;
}
return false;
}
bool callJSDelegate(CCTableView* table, int idx, std::string jsFunctionName, jsval& retVal)
{
js_proxy_t * p;
JS_GET_PROXY(p, table);
if (!p) return false;
JSBool hasAction;
jsval temp_retval;
jsval dataVal[2];
dataVal[0] = OBJECT_TO_JSVAL(p->obj);
dataVal[1] = INT_TO_JSVAL(idx);
JSContext* cx = ScriptingCore::getInstance()->getGlobalContext();
JSObject* obj = m_pJSTableViewDataSource;
if (JS_HasProperty(cx, obj, jsFunctionName.c_str(), &hasAction) && hasAction) {
if(!JS_GetProperty(cx, obj, jsFunctionName.c_str(), &temp_retval)) {
return false;
}
if(temp_retval == JSVAL_VOID) {
return false;
}
JSAutoCompartment ac(cx, obj);
JS_CallFunctionName(cx, obj, jsFunctionName.c_str(),
2, dataVal, &retVal);
return true;
}
return false;
}
private:
JSObject* m_pJSTableViewDataSource;
};
static JSBool js_cocos2dx_CCTableView_setDataSource(JSContext *cx, uint32_t argc, jsval *vp)
{
jsval *argv = JS_ARGV(cx, vp);
JSObject *obj = JS_THIS_OBJECT(cx, vp);
js_proxy_t *proxy; JS_GET_NATIVE_PROXY(proxy, obj);
cocos2d::extension::CCTableView* cobj = (cocos2d::extension::CCTableView *)(proxy ? proxy->ptr : NULL);
JSB_PRECONDITION2( cobj, cx, JS_FALSE, "Invalid Native Object");
if (argc == 1)
{
CCTableViewDataSource* pOldDataSource = cobj->getDataSource();
CC_SAFE_DELETE(pOldDataSource);
TableViewDataSource* pNativeSource = new TableViewDataSource();
pNativeSource->setTableViewDataSource(JSVAL_TO_OBJECT(argv[0]));
cobj->setDataSource(pNativeSource);
JS_SET_RVAL(cx, vp, JSVAL_VOID);
return JS_TRUE;
}
JS_ReportError(cx, "wrong number of arguments");
return JS_FALSE;
}
static JSBool js_cocos2dx_CCTableView_create(JSContext *cx, uint32_t argc, jsval *vp)
{
jsval *argv = JS_ARGV(cx, vp);
JSBool ok = JS_TRUE;
if (argc == 3 || argc == 2) {
TableViewDataSource* pNativeSource = new TableViewDataSource();
pNativeSource->setTableViewDataSource(JSVAL_TO_OBJECT(argv[0]));
cocos2d::CCSize arg1;
ok &= jsval_to_ccsize(cx, argv[1], &arg1);
cocos2d::extension::CCTableView* ret = NULL;
ret = new CCTableView();
ret->setDataSource(pNativeSource);
ret->autorelease();
jsval jsret;
do {
if (ret) {
js_proxy_t *proxy = js_get_or_create_proxy<cocos2d::extension::CCTableView>(cx, ret);
jsret = OBJECT_TO_JSVAL(proxy->obj);
} else {
jsret = JSVAL_NULL;
}
} while (0);
if (argc == 2)
{
ret->initWithViewSize(arg1);
}
else
{
cocos2d::CCNode* arg2;
do {
js_proxy_t *proxy;
JSObject *tmpObj = JSVAL_TO_OBJECT(argv[2]);
JS_GET_NATIVE_PROXY(proxy, tmpObj);
arg2 = (cocos2d::CCNode*)(proxy ? proxy->ptr : NULL);
JSB_PRECONDITION2( arg2, cx, JS_FALSE, "Invalid Native Object");
} while (0);
JSB_PRECONDITION2(ok, cx, JS_FALSE, "Error processing arguments");
ret->initWithViewSize(arg1, arg2);
}
ret->_updateContentSize();
JS_SET_RVAL(cx, vp, jsret);
return JS_TRUE;
}
JS_ReportError(cx, "wrong number of arguments");
return JS_FALSE;
}
extern JSObject* jsb_CCScrollView_prototype;
extern JSObject* jsb_CCTableView_prototype;
void register_all_cocos2dx_extension_manual(JSContext* cx, JSObject* global)
{
JS_DefineFunction(cx, jsb_CCScrollView_prototype, "setDelegate", js_cocos2dx_CCScrollView_setDelegate, 1, JSPROP_READONLY | JSPROP_PERMANENT);
JS_DefineFunction(cx, jsb_CCTableView_prototype, "setDelegate", js_cocos2dx_CCTableView_setDelegate, 1, JSPROP_READONLY | JSPROP_PERMANENT);
JS_DefineFunction(cx, jsb_CCTableView_prototype, "setDataSource", js_cocos2dx_CCTableView_setDataSource, 1, 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);
}

View File

@ -0,0 +1,17 @@
//
// jsb_cocos2d_extension_manual.h
// MoonWarriors
//
// Created by James Chen on 3/11/13.
//
//
#ifndef __jsb_cocos2dx_extension_manual__
#define __jsb_cocos2dx_extension_manual__
#include "jsapi.h"
#include "jsfriendapi.h"
void register_all_cocos2dx_extension_manual(JSContext* cx, JSObject* global);
#endif /* defined(__jsb_cocos2dx_extension_manual__) */

View File

@ -13,7 +13,9 @@
<ItemGroup>
<ClCompile Include="..\cocos2d_specifics.cpp" />
<ClCompile Include="..\cocosjs_manual_conversions.cpp" />
<ClCompile Include="..\generated\cocos2dx.cpp" />
<ClCompile Include="..\generated\jsb_cocos2dx_auto.cpp" />
<ClCompile Include="..\generated\jsb_cocos2dx_extension_auto.cpp" />
<ClCompile Include="..\jsb_cocos2dx_extension_manual.cpp" />
<ClCompile Include="..\js_bindings_ccbreader.cpp" />
<ClCompile Include="..\js_bindings_chipmunk_auto_classes.cpp" />
<ClCompile Include="..\js_bindings_chipmunk_functions.cpp" />
@ -28,7 +30,9 @@
<ItemGroup>
<ClInclude Include="..\cocos2d_specifics.hpp" />
<ClInclude Include="..\cocosjs_manual_conversions.h" />
<ClInclude Include="..\generated\cocos2dx.hpp" />
<ClInclude Include="..\generated\jsb_cocos2dx_auto.hpp" />
<ClInclude Include="..\generated\jsb_cocos2dx_extension_auto.hpp" />
<ClInclude Include="..\jsb_cocos2dx_extension_manual.h" />
<ClInclude Include="..\js_bindings_ccbreader.h" />
<ClInclude Include="..\js_bindings_chipmunk_auto_classes.h" />
<ClInclude Include="..\js_bindings_chipmunk_auto_classes_registration.h" />
@ -46,12 +50,17 @@
<ClInclude Include="..\spidermonkey_specifics.h" />
</ItemGroup>
<ItemGroup>
<None Include="..\generated\cocos2dxapi.js" />
<None Include="..\js\jsb_constants.js" />
<None Include="..\js\jsb_constants_chipmunk.js" />
<None Include="..\js\jsb_constants_cocos2d.js" />
<None Include="..\js\jsb_constants_cocosbuilder.js" />
<None Include="..\js\jsb_constants_gl.js" />
<None Include="..\generated\jsb_cocos2dx_auto_api.js" />
<None Include="..\generated\jsb_cocos2dx_extension_auto_api.js" />
<None Include="..\js\jsb.js" />
<None Include="..\js\jsb_chipmunk.js" />
<None Include="..\js\jsb_cocos2d.js" />
<None Include="..\js\jsb_cocos2d_extension.js" />
<None Include="..\js\jsb_cocosbuilder.js" />
<None Include="..\js\jsb_debugger.js" />
<None Include="..\js\jsb_opengl.js" />
<None Include="..\js\jsb_sys.js" />
<None Include="..\js\main.debug.js" />
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectGuid>{39379840-825A-45A0-B363-C09FFEF864BD}</ProjectGuid>

View File

@ -14,9 +14,6 @@
</Filter>
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\generated\cocos2dx.cpp">
<Filter>generated</Filter>
</ClCompile>
<ClCompile Include="..\cocos2d_specifics.cpp">
<Filter>manual</Filter>
</ClCompile>
@ -53,11 +50,17 @@
<ClCompile Include="..\js_bindings_system_registration.cpp">
<Filter>manual</Filter>
</ClCompile>
<ClCompile Include="..\generated\jsb_cocos2dx_auto.cpp">
<Filter>generated</Filter>
</ClCompile>
<ClCompile Include="..\generated\jsb_cocos2dx_extension_auto.cpp">
<Filter>generated</Filter>
</ClCompile>
<ClCompile Include="..\jsb_cocos2dx_extension_manual.cpp">
<Filter>manual</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\generated\cocos2dx.hpp">
<Filter>generated</Filter>
</ClInclude>
<ClInclude Include="..\cocos2d_specifics.hpp">
<Filter>manual</Filter>
</ClInclude>
@ -109,24 +112,48 @@
<ClInclude Include="..\js_bindings_system_registration.h">
<Filter>manual</Filter>
</ClInclude>
<ClInclude Include="..\generated\jsb_cocos2dx_auto.hpp">
<Filter>generated</Filter>
</ClInclude>
<ClInclude Include="..\generated\jsb_cocos2dx_extension_auto.hpp">
<Filter>generated</Filter>
</ClInclude>
<ClInclude Include="..\jsb_cocos2dx_extension_manual.h">
<Filter>manual</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<None Include="..\generated\cocos2dxapi.js">
<None Include="..\generated\jsb_cocos2dx_extension_auto_api.js">
<Filter>generated</Filter>
</None>
<None Include="..\js\jsb_constants.js">
<None Include="..\generated\jsb_cocos2dx_auto_api.js">
<Filter>generated</Filter>
</None>
<None Include="..\js\jsb.js">
<Filter>js</Filter>
</None>
<None Include="..\js\jsb_constants_chipmunk.js">
<None Include="..\js\jsb_chipmunk.js">
<Filter>js</Filter>
</None>
<None Include="..\js\jsb_constants_cocos2d.js">
<None Include="..\js\jsb_cocos2d.js">
<Filter>js</Filter>
</None>
<None Include="..\js\jsb_constants_cocosbuilder.js">
<None Include="..\js\jsb_cocos2d_extension.js">
<Filter>js</Filter>
</None>
<None Include="..\js\jsb_constants_gl.js">
<None Include="..\js\jsb_cocosbuilder.js">
<Filter>js</Filter>
</None>
<None Include="..\js\jsb_debugger.js">
<Filter>js</Filter>
</None>
<None Include="..\js\jsb_opengl.js">
<Filter>js</Filter>
</None>
<None Include="..\js\jsb_sys.js">
<Filter>js</Filter>
</None>
<None Include="..\js\main.debug.js">
<Filter>js</Filter>
</None>
</ItemGroup>

View File

@ -13,7 +13,7 @@ android_flags = -D_SIZE_T_DEFINED_
clang_headers = -I%(clangllvmdir)s/lib/clang/3.1/include
clang_flags = -nostdinc -x c++
cocos_headers = -I%(cocosdir)s/cocos2dx/include -I%(cocosdir)s/cocos2dx/platform -I%(cocosdir)s/cocos2dx/platform/android -I%(cocosdir)s/cocos2dx -I%(cocosdir)s/cocos2dx/kazmath/include -I%(cocosdir)s/extensions -I%(cocosdir)s/extensions/CCBReader
cocos_headers = -I%(cocosdir)s/cocos2dx/include -I%(cocosdir)s/cocos2dx/platform -I%(cocosdir)s/cocos2dx/platform/android -I%(cocosdir)s/cocos2dx -I%(cocosdir)s/cocos2dx/kazmath/include
cocos_flags = -DANDROID -DCOCOS2D_JAVASCRIPT
cxxgenerator_headers = -I%(cxxgeneratordir)s/targets/spidermonkey/common
@ -22,11 +22,11 @@ cxxgenerator_headers = -I%(cxxgeneratordir)s/targets/spidermonkey/common
extra_arguments = %(android_headers)s %(clang_headers)s %(cxxgenerator_headers)s %(cocos_headers)s %(android_flags)s %(clang_flags)s %(cocos_flags)s
# what headers to parse
headers = %(cocosdir)s/cocos2dx/include/cocos2d.h %(cocosdir)s/CocosDenshion/include/SimpleAudioEngine.h %(cocosdir)s/extensions/cocos-ext.h
headers = %(cocosdir)s/cocos2dx/include/cocos2d.h %(cocosdir)s/CocosDenshion/include/SimpleAudioEngine.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: "^CCMenu*$".
classes = CCSprite.* CCScene CCNode.* CCDirector CCLayer.* CCMenu.* CCTouch CC.*Action.* CCMove.* CCRotate.* CCBlink.* CCTint.* CCSequence CCRepeat.* CCFade.* CCEase.* CCScale.* CCTransition.* CCSpawn CCSequence CCAnimat.* CCFlip.* CCDelay.* CCSkew.* CCJump.* CCPlace.* CCShow.* CCProgress.* CCPointArray CCToggleVisibility.* CCHide CCParticle.* CCLabel.* CCAtlas.* CCTextureCache.* CCTexture2D CCCardinal.* CCCatmullRom.* CCParallaxNode CCTileMap.* CCTMX.* CCCallFunc CCRenderTexture CCGridAction CCGrid3DAction CCGridBase$ CCShaky3D CCWaves3D CCFlipX3D CCFlipY3D CCSpeed CCActionManager CCBReader.* CCBAnimationManager.* CCSet SimpleAudioEngine CCScheduler CCTimer CCOrbit.* CCFollow.* CCBezier.* CCCardinalSpline.* CCControl$ CCControlButton.* CCCamera.* CCDrawNode CC.*3D$ CCLiquid$ CCWaves$ CCShuffleTiles$ CCTurnOffTiles$ CCSplit.* CCTwirl$ CCFileUtils$ CCScrollView$ CCTableView$ CCTableViewCell$
classes = CCSprite.* CCScene CCNode.* CCDirector CCLayer.* CCMenu.* CCTouch CC.*Action.* CCMove.* CCRotate.* CCBlink.* CCTint.* CCSequence CCRepeat.* CCFade.* CCEase.* CCScale.* CCTransition.* CCSpawn CCAnimat.* CCFlip.* CCDelay.* CCSkew.* CCJump.* CCPlace.* CCShow.* CCProgress.* CCPointArray CCToggleVisibility.* CCHide CCParticle.* CCLabel.* CCAtlas.* CCTextureCache.* CCTexture2D CCCardinal.* CCCatmullRom.* CCParallaxNode CCTileMap.* CCTMX.* CCCallFunc CCRenderTexture CCGridAction CCGrid3DAction CCGridBase$ CCShaky3D CCWaves3D CCFlipX3D CCFlipY3D CCSpeed CCActionManager CCSet SimpleAudioEngine CCScheduler CCTimer CCOrbit.* CCFollow.* CCBezier.* CCCardinalSpline.* CCCamera.* CCDrawNode CC.*3D$ CCLiquid$ CCWaves$ CCShuffleTiles$ CCTurnOffTiles$ CCSplit.* CCTwirl$ CCFileUtils$
# 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
@ -79,7 +79,6 @@ skip = CCNode::[.*Transform convertToWindowSpace getChildren ^setPosition$ getGr
CCArray::[*],
CCRange::[*],
CCNotificationObserver::[*],
CCListView.*::[*],
CCImage::[initWithString initWithImageData],
CCSequence::[create],
CCSpawn::[create],
@ -91,18 +90,13 @@ skip = CCNode::[.*Transform convertToWindowSpace getChildren ^setPosition$ getGr
CCLayerMultiplex::[create layerWith.* initWithLayers],
CCCatmullRom.*::[create actionWithDuration],
CCBezier.*::[create actionWithDuration],
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],
CCCardinalSpline.*::[create actionWithDuration setPoints],
CCScheduler::[pause resume unscheduleAllSelectorsForTarget],
CCTextureCache::[addPVRTCImage],
CCTimer::[getSelector],
CC.*Loader.*::[*],
*::[copyWith.* onEnter.* onExit.* description getObjectType .*RGB.* .*HSV.*],
CCFileUtils::[(g|s)etSearchResolutionsOrder$ (g|s)etSearchPaths$ getClassTypeInfo],
SimpleAudioEngine::[getClassTypeInfo],
CCScrollView::[(g|s)etDelegate$],
CCTableView::[create (g|s)etDataSource$ (g|s)etDelegate]
SimpleAudioEngine::[getClassTypeInfo]
rename_functions = CCDirector::[sharedDirector=getInstance],
CCSpriteFrameCache::[sharedSpriteFrameCache=getInstance addSpriteFramesWithFile=addSpriteFrames spriteFrameByName=getSpriteFrame isFlipX=isFlippedX isFlipY=isFlippedY],
@ -122,15 +116,12 @@ rename_functions = CCDirector::[sharedDirector=getInstance],
CCScheduler::[unscheduleAllSelectorsForTarget=unscheduleAllCallbacksForTarget unscheduleAll=unscheduleAllCallbacks],
SimpleAudioEngine::[sharedEngine=getInstance preloadBackgroundMusic=preloadMusic setBackgroundMusicVolume=setMusicVolume getBackgroundMusicVolume=getMusicVolume playBackgroundMusic=playMusic stopBackgroundMusic=stopMusic pauseBackgroundMusic=pauseMusic resumeBackgroundMusic=resumeMusic rewindBackgroundMusic=rewindMusic isBackgroundMusicPlaying=isMusicPlaying willPlayBackgroundMusic=willPlayMusic],
CCCamera.*::[setUpXYZ=setUp getUpXYZ=getUp setEyeXYZ=setEye getEyeXYZ=getEye setCenterXYZ=setCenter getCenterXYZ=getCenter],
CCBReader::[getAnimationManager=getActionManager setAnimationManager=setActionManager],
CCTMXTiledMap::[layerNamed=getLayer objectGroupNamed=getObjectGroup propertyNamed=getProperty],
CCTexture2D::[defaultAlphaPixelFormat=getDefaultAlphaPixelFormat],
CCFileUtils::[sharedFileUtils=getInstance loadFilenameLookupDictionaryFromFile=loadFilenameLookup]
rename_classes = CCParticleSystemQuad::CCParticleSystem,
SimpleAudioEngine::AudioEngine,
CCBReader::CC_Reader,
CCBAnimationManager::CCAnimationManager
SimpleAudioEngine::AudioEngine
# for all class names, should we remove something when registering in the target VM?
remove_prefix = CC

View File

@ -0,0 +1,65 @@
[cocos2dx_extension]
# the prefix to be added to the generated functions. You might or might not use this in your own
# templates
prefix = cocos2dx_extension
# create a target namespace (in javascript, this would create some code like the equiv. to `ns = ns || {}`)
# all classes will be embedded in that namespace
target_namespace = cc
android_headers = -I%(androidndkdir)s/platforms/android-14/arch-arm/usr/include -I%(androidndkdir)s/sources/cxx-stl/gnu-libstdc++/4.6/libs/armeabi-v7a/include -I%(androidndkdir)s/sources/cxx-stl/gnu-libstdc++/4.6/include
android_flags = -D_SIZE_T_DEFINED_
clang_headers = -I%(clangllvmdir)s/lib/clang/3.1/include
clang_flags = -nostdinc -x c++
cocos_headers = -I%(cocosdir)s/cocos2dx/include -I%(cocosdir)s/cocos2dx/platform -I%(cocosdir)s/cocos2dx/platform/android -I%(cocosdir)s/cocos2dx -I%(cocosdir)s/cocos2dx/kazmath/include -I%(cocosdir)s/extensions
cocos_flags = -DANDROID -DCOCOS2D_JAVASCRIPT
cxxgenerator_headers = -I%(cxxgeneratordir)s/targets/spidermonkey/common
# extra arguments for clang
extra_arguments = %(android_headers)s %(clang_headers)s %(cxxgenerator_headers)s %(cocos_headers)s %(android_flags)s %(clang_flags)s %(cocos_flags)s
# what headers to parse
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: "^CCMenu*$".
classes = CCBReader.* CCBAnimationManager.* CCScale9Sprite CCControl$ CCControlButton.* CCScrollView$ CCTableView$ CCTableViewCell$
# 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
# regular expressions, they will not be surrounded by "^$". If you want to skip a whole class, just
# add a single "*" as functions. See bellow for several examples. A special class name is "*", which
# 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],
CCScrollView::[(g|s)etDelegate$],
CC.*Delegate::[*],
CC.*Loader.*::[*],
CCTableView::[create (g|s)etDataSource$ (g|s)etDelegate]
rename_functions = CCBReader::[getAnimationManager=getActionManager setAnimationManager=setActionManager]
rename_classes = CCBReader::CC_Reader,
CCBAnimationManager::CCAnimationManager
# for all class names, should we remove something when registering in the target VM?
remove_prefix = CC
# classes for which there will be no "parent" lookup
classes_have_no_parents =
# base classes which will be skipped when their sub-classes found them.
base_classes_to_skip = CCObject
# classes that create no constructor
# CCSet is special and we will use a hand-written constructor
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

View File

@ -78,4 +78,7 @@ echo ---
# Generate bindings for cocos2dx
echo "Generating bindings for cocos2dx..."
set -x
LD_LIBRARY_PATH=${CLANG_ROOT}/lib $PYTHON_BIN ${CXX_GENERATOR_ROOT}/generator.py ${TO_JS_ROOT}/cocos2dx.ini -s cocos2d-x -o ${COCOS2DX_ROOT}/scripting/javascript/bindings/generated
LD_LIBRARY_PATH=${CLANG_ROOT}/lib $PYTHON_BIN ${CXX_GENERATOR_ROOT}/generator.py ${TO_JS_ROOT}/cocos2dx.ini -s cocos2d-x -o ${COCOS2DX_ROOT}/scripting/javascript/bindings/generated -n jsb_cocos2dx_auto
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 -o ${COCOS2DX_ROOT}/scripting/javascript/bindings/generated -n jsb_cocos2dx_extension_auto