diff --git a/build/cocos2d_tests.xcodeproj/project.pbxproj b/build/cocos2d_tests.xcodeproj/project.pbxproj index 5bd3c19473..b32662475e 100644 --- a/build/cocos2d_tests.xcodeproj/project.pbxproj +++ b/build/cocos2d_tests.xcodeproj/project.pbxproj @@ -7,20 +7,6 @@ objects = { /* Begin PBXAggregateTarget section */ - 507B43541C31FB340067B53E /* build all tests tvOS */ = { - isa = PBXAggregateTarget; - buildConfigurationList = 507B43581C31FB350067B53E /* Build configuration list for PBXAggregateTarget "build all tests tvOS" */; - buildPhases = ( - ); - dependencies = ( - 507B43F51C3201580067B53E /* PBXTargetDependency */, - 507B43C21C31FC160067B53E /* PBXTargetDependency */, - 507B435C1C31FB510067B53E /* PBXTargetDependency */, - 507B435E1C31FB510067B53E /* PBXTargetDependency */, - ); - name = "build all tests tvOS"; - productName = "build all tvOS"; - }; A035ACBB1782469700987F6C /* build all tests Mac */ = { isa = PBXAggregateTarget; buildConfigurationList = A035ACBC1782469800987F6C /* Build configuration list for PBXAggregateTarget "build all tests Mac" */; @@ -847,419 +833,70 @@ 5046AB4B1AF2A8D80060550B /* MaterialSystemTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 5046AB481AF2A8D80060550B /* MaterialSystemTest.cpp */; }; 5046AB5B1AF2C4180060550B /* Materials in Resources */ = {isa = PBXBuildFile; fileRef = 5046AB5A1AF2C4180060550B /* Materials */; }; 5046AB5C1AF2C4180060550B /* Materials in Resources */ = {isa = PBXBuildFile; fileRef = 5046AB5A1AF2C4180060550B /* Materials */; }; - 507B41021C31BEA60067B53E /* components in Resources */ = {isa = PBXBuildFile; fileRef = 1AC35CB318CED84500F37B72 /* components */; }; - 507B41031C31BEA60067B53E /* Icon-144.png in Resources */ = {isa = PBXBuildFile; fileRef = 1AC35C7918CECF1400F37B72 /* Icon-144.png */; }; - 507B41041C31BEA60067B53E /* Icon-50.png in Resources */ = {isa = PBXBuildFile; fileRef = 1AC35C7D18CECF1400F37B72 /* Icon-50.png */; }; - 507B41051C31BEA60067B53E /* Particle3D in Resources */ = {isa = PBXBuildFile; fileRef = B63993301A49359F00B07923 /* Particle3D */; }; - 507B41061C31BEA60067B53E /* effect1.wav in Resources */ = {isa = PBXBuildFile; fileRef = 1AC35CB618CED84500F37B72 /* effect1.wav */; }; - 507B41071C31BEA60067B53E /* Icon-76.png in Resources */ = {isa = PBXBuildFile; fileRef = 1AC35C8118CECF1400F37B72 /* Icon-76.png */; }; - 507B41081C31BEA60067B53E /* Default@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 1AC35C7518CECF1400F37B72 /* Default@2x.png */; }; - 507B41091C31BEA60067B53E /* effect1.raw in Resources */ = {isa = PBXBuildFile; fileRef = 1AC35CB518CED84500F37B72 /* effect1.raw */; }; - 507B410A1C31BEA60067B53E /* TerrainTest in Resources */ = {isa = PBXBuildFile; fileRef = B603F1B31AC8FBFB00A9579C /* TerrainTest */; }; - 507B410B1C31BEA60067B53E /* ccs-res in Resources */ = {isa = PBXBuildFile; fileRef = 1A221C9B191771E300FD2BE4 /* ccs-res */; }; - 507B410C1C31BEA60067B53E /* Icon-29.png in Resources */ = {isa = PBXBuildFile; fileRef = 1AC35C7B18CECF1400F37B72 /* Icon-29.png */; }; - 507B410D1C31BEA60067B53E /* TileMaps in Resources */ = {isa = PBXBuildFile; fileRef = 1AC35CC818CED84500F37B72 /* TileMaps */; }; - 507B410E1C31BEA60067B53E /* Particles in Resources */ = {isa = PBXBuildFile; fileRef = 1AC35CC318CED84500F37B72 /* Particles */; }; - 507B410F1C31BEA60067B53E /* Default-568h@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 1AC35C7318CECF1400F37B72 /* Default-568h@2x.png */; }; - 507B41101C31BEA60067B53E /* Test.html in Resources */ = {isa = PBXBuildFile; fileRef = 29AFEF6619ACCAA000F6B10A /* Test.html */; }; - 507B41111C31BEA60067B53E /* ccb in Resources */ = {isa = PBXBuildFile; fileRef = 1AC35CAE18CED84500F37B72 /* ccb */; }; - 507B41121C31BEA60067B53E /* configs in Resources */ = {isa = PBXBuildFile; fileRef = 1AC35CB418CED84500F37B72 /* configs */; }; - 507B41131C31BEA60067B53E /* extensions in Resources */ = {isa = PBXBuildFile; fileRef = 1AC35CB818CED84500F37B72 /* extensions */; }; - 507B41141C31BEA60067B53E /* audio in Resources */ = {isa = PBXBuildFile; fileRef = 3E2BDAD119BEA3E20055CDCD /* audio */; }; - 507B41151C31BEA60067B53E /* Materials in Resources */ = {isa = PBXBuildFile; fileRef = 5046AB5A1AF2C4180060550B /* Materials */; }; - 507B41161C31BEA60067B53E /* background.caf in Resources */ = {isa = PBXBuildFile; fileRef = C08689C018D370C90093E810 /* background.caf */; }; - 507B41171C31BEA60067B53E /* Icon-72.png in Resources */ = {isa = PBXBuildFile; fileRef = 1AC35C8018CECF1400F37B72 /* Icon-72.png */; }; - 507B41181C31BEA60067B53E /* Manifests in Resources */ = {isa = PBXBuildFile; fileRef = 15B3709219EE5D1000ABE682 /* Manifests */; }; - 507B41191C31BEA60067B53E /* zwoptex in Resources */ = {isa = PBXBuildFile; fileRef = 1AC35CC918CED84500F37B72 /* zwoptex */; }; - 507B411A1C31BEA60067B53E /* Images in Resources */ = {isa = PBXBuildFile; fileRef = 1AC35CBE18CED84500F37B72 /* Images */; }; - 507B411B1C31BEA60067B53E /* Icon-40.png in Resources */ = {isa = PBXBuildFile; fileRef = 1AC35C7C18CECF1400F37B72 /* Icon-40.png */; }; - 507B411C1C31BEA60067B53E /* Icon-100.png in Resources */ = {isa = PBXBuildFile; fileRef = 1AC35C7618CECF1400F37B72 /* Icon-100.png */; }; - 507B411D1C31BEA60067B53E /* pew-pew-lei.wav in Resources */ = {isa = PBXBuildFile; fileRef = 1AC35CC418CED84500F37B72 /* pew-pew-lei.wav */; }; - 507B411E1C31BEA60067B53E /* Shaders in Resources */ = {isa = PBXBuildFile; fileRef = 1AC35CC618CED84500F37B72 /* Shaders */; }; - 507B411F1C31BEA60067B53E /* background.ogg in Resources */ = {isa = PBXBuildFile; fileRef = 1AC35CAD18CED84500F37B72 /* background.ogg */; }; - 507B41201C31BEA60067B53E /* background.wav in Resources */ = {isa = PBXBuildFile; fileRef = 3E2BDB0019C5E5D40055CDCD /* background.wav */; }; - 507B41211C31BEA60067B53E /* animations in Resources */ = {isa = PBXBuildFile; fileRef = 1AC35CA918CED84500F37B72 /* animations */; }; - 507B41221C31BEA60067B53E /* cocosvideo.mp4 in Resources */ = {isa = PBXBuildFile; fileRef = 3EA0FB5D191B92F100B170C8 /* cocosvideo.mp4 */; }; - 507B41231C31BEA60067B53E /* Sprite3DTest in Resources */ = {isa = PBXBuildFile; fileRef = 3E92EA841921A7720094CD21 /* Sprite3DTest */; }; - 507B41241C31BEA60067B53E /* Icon-114.png in Resources */ = {isa = PBXBuildFile; fileRef = 1AC35C7718CECF1400F37B72 /* Icon-114.png */; }; - 507B41251C31BEA60067B53E /* hd in Resources */ = {isa = PBXBuildFile; fileRef = 1AC35CBC18CED84500F37B72 /* hd */; }; - 507B41261C31BEA60067B53E /* Icon-57.png in Resources */ = {isa = PBXBuildFile; fileRef = 1AC35C7E18CECF1400F37B72 /* Icon-57.png */; }; - 507B41271C31BEA60067B53E /* Misc in Resources */ = {isa = PBXBuildFile; fileRef = 1AC35CC118CED84500F37B72 /* Misc */; }; - 507B41281C31BEA60067B53E /* Hello.png in Resources */ = {isa = PBXBuildFile; fileRef = 1AC35CBD18CED84500F37B72 /* Hello.png */; }; - 507B41291C31BEA60067B53E /* Icon-152.png in Resources */ = {isa = PBXBuildFile; fileRef = 1AC35C7A18CECF1400F37B72 /* Icon-152.png */; }; - 507B412A1C31BEA60067B53E /* effect2.ogg in Resources */ = {isa = PBXBuildFile; fileRef = 1AC35CB718CED84500F37B72 /* effect2.ogg */; }; - 507B412B1C31BEA60067B53E /* ActionTimeline in Resources */ = {isa = PBXBuildFile; fileRef = 38FA2E75194AECF800FF2BE4 /* ActionTimeline */; }; - 507B412C1C31BEA60067B53E /* NavMesh in Resources */ = {isa = PBXBuildFile; fileRef = B61E90CA1B12B74B00BE69EA /* NavMesh */; }; - 507B412D1C31BEA60067B53E /* Icon-80.png in Resources */ = {isa = PBXBuildFile; fileRef = 1AC35C8218CECF1400F37B72 /* Icon-80.png */; }; - 507B412E1C31BEA60067B53E /* fileLookup.plist in Resources */ = {isa = PBXBuildFile; fileRef = 1AC35CB918CED84500F37B72 /* fileLookup.plist */; }; - 507B412F1C31BEA60067B53E /* Default-736h@3x.png in Resources */ = {isa = PBXBuildFile; fileRef = 527B1F3319EF9CF8000A1F82 /* Default-736h@3x.png */; }; - 507B41301C31BEA60067B53E /* Default-667h@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 527B1F3219EF9CF8000A1F82 /* Default-667h@2x.png */; }; - 507B41311C31BEA60067B53E /* music.mid in Resources */ = {isa = PBXBuildFile; fileRef = 1AC35CC218CED84500F37B72 /* music.mid */; }; - 507B41321C31BEA60067B53E /* spine in Resources */ = {isa = PBXBuildFile; fileRef = 1AC35CC718CED84500F37B72 /* spine */; }; - 507B41331C31BEA60067B53E /* Icon-120.png in Resources */ = {isa = PBXBuildFile; fileRef = 1AC35C7818CECF1400F37B72 /* Icon-120.png */; }; - 507B41341C31BEA60067B53E /* Icon-58.png in Resources */ = {isa = PBXBuildFile; fileRef = 1AC35C7F18CECF1400F37B72 /* Icon-58.png */; }; - 507B41351C31BEA60067B53E /* background.mp3 in Resources */ = {isa = PBXBuildFile; fileRef = 1AC35CAC18CED84500F37B72 /* background.mp3 */; }; - 507B41361C31BEA60067B53E /* CocosBuilderExample.ccbresourcelog in Resources */ = {isa = PBXBuildFile; fileRef = 1AC35CB018CED84500F37B72 /* CocosBuilderExample.ccbresourcelog */; }; - 507B41371C31BEA60067B53E /* Shaders3D in Resources */ = {isa = PBXBuildFile; fileRef = B2507B6A192589AF00FA4972 /* Shaders3D */; }; - 507B41381C31BEA60067B53E /* fonts in Resources */ = {isa = PBXBuildFile; fileRef = 1AC35CBA18CED84500F37B72 /* fonts */; }; - 507B41391C31BEA60067B53E /* CocosBuilderExample.ccbproj in Resources */ = {isa = PBXBuildFile; fileRef = 1AC35CAF18CED84500F37B72 /* CocosBuilderExample.ccbproj */; }; - 507B413A1C31BEA60067B53E /* Default.png in Resources */ = {isa = PBXBuildFile; fileRef = 1AC35C7418CECF1400F37B72 /* Default.png */; }; - 507B413C1C31BEA60067B53E /* GLES-Render.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC3593E18CECF0A00F37B72 /* GLES-Render.cpp */; }; - 507B413D1C31BEA60067B53E /* SpritePolygonTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 6886696F1AE8E8B500C2CFD9 /* SpritePolygonTest.cpp */; }; - 507B413E1C31BEA60067B53E /* TextInputTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC35AFC18CECF0C00F37B72 /* TextInputTest.cpp */; }; - 507B413F1C31BEA60067B53E /* Bug-886.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC3598618CECF0B00F37B72 /* Bug-886.cpp */; }; - 507B41401C31BEA60067B53E /* CCControlButtonTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC35A6318CECF0B00F37B72 /* CCControlButtonTest.cpp */; }; - 507B41411C31BEA60067B53E /* CCControlSliderTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC35A7018CECF0B00F37B72 /* CCControlSliderTest.cpp */; }; - 507B41421C31BEA60067B53E /* UILayoutTest_Editor.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 29080D4E191B595E0066F8DF /* UILayoutTest_Editor.cpp */; }; - 507B41431C31BEA60067B53E /* SpineTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC35AF218CECF0C00F37B72 /* SpineTest.cpp */; }; - 507B41441C31BEA60067B53E /* Physics3DTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = B6CAB54C1AF9AA6C00B9B856 /* Physics3DTest.cpp */; }; - 507B41451C31BEA60067B53E /* NewRendererTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC35AB618CECF0C00F37B72 /* NewRendererTest.cpp */; }; - 507B41461C31BEA60067B53E /* DrawNode3D.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 5EBEECAE1995247000429821 /* DrawNode3D.cpp */; }; - 507B41471C31BEA60067B53E /* UIRadioButtonTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = B5CE6DCD1B3C08F8002B0419 /* UIRadioButtonTest.cpp */; }; - 507B41481C31BEA60067B53E /* AnimationsTestLayer.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC359B818CECF0B00F37B72 /* AnimationsTestLayer.cpp */; }; - 507B41491C31BEA60067B53E /* CocosGUIScene.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 29080D1F191B595E0066F8DF /* CocosGUIScene.cpp */; }; - 507B414A1C31BEA60067B53E /* WebSocketTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC35A8218CECF0B00F37B72 /* WebSocketTest.cpp */; }; - 507B414B1C31BEA60067B53E /* ActionTimelineTestScene.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 38FA2E71194AEBE100FF2BE4 /* ActionTimelineTestScene.cpp */; }; - 507B414C1C31BEA60067B53E /* UIScale9SpriteTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 295824571987415900F9746D /* UIScale9SpriteTest.cpp */; }; - 507B414D1C31BEA60067B53E /* Particle3DTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = B639932C1A490EC700B07923 /* Particle3DTest.cpp */; }; - 507B414E1C31BEA60067B53E /* Bug-1174.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC3597918CECF0B00F37B72 /* Bug-1174.cpp */; }; - 507B414F1C31BEA60067B53E /* CCControlColourPickerTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC35A6618CECF0B00F37B72 /* CCControlColourPickerTest.cpp */; }; - 507B41501C31BEA60067B53E /* UITextAtlasTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 29080D75191B595E0066F8DF /* UITextAtlasTest.cpp */; }; - 507B41511C31BEA60067B53E /* ActionsEaseTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC3592C18CECF0A00F37B72 /* ActionsEaseTest.cpp */; }; - 507B41521C31BEA60067B53E /* MutiTouchTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC35AB018CECF0C00F37B72 /* MutiTouchTest.cpp */; }; - 507B41531C31BEA60067B53E /* UIListViewTest_Editor.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 29080D53191B595E0066F8DF /* UIListViewTest_Editor.cpp */; }; - 507B41541C31BEA60067B53E /* UILoadingBarTest_Editor.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 29080D58191B595E0066F8DF /* UILoadingBarTest_Editor.cpp */; }; - 507B41551C31BEA60067B53E /* testsAppDelegate.mm in Sources */ = {isa = PBXBuildFile; fileRef = 1AC35C7218CECF1400F37B72 /* testsAppDelegate.mm */; }; - 507B41561C31BEA60067B53E /* CustomImageView.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 29080D2D191B595E0066F8DF /* CustomImageView.cpp */; }; - 507B41571C31BEA60067B53E /* AppDelegate.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC3593418CECF0A00F37B72 /* AppDelegate.cpp */; }; - 507B41581C31BEA60067B53E /* Bug-1159.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC3597718CECF0B00F37B72 /* Bug-1159.cpp */; }; - 507B41591C31BEA60067B53E /* UILoadingBarTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 29080D56191B595E0066F8DF /* UILoadingBarTest.cpp */; }; - 507B415A1C31BEA60067B53E /* CustomParticleWidget.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 29080D31191B595E0066F8DF /* CustomParticleWidget.cpp */; }; - 507B415B1C31BEA60067B53E /* SceneTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC35AE718CECF0C00F37B72 /* SceneTest.cpp */; }; - 507B415C1C31BEA60067B53E /* CustomImageViewReader.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 29080D2F191B595E0066F8DF /* CustomImageViewReader.cpp */; }; - 507B415D1C31BEA60067B53E /* UITextAtlasTest_Editor.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 29080D77191B595E0066F8DF /* UITextAtlasTest_Editor.cpp */; }; - 507B415E1C31BEA60067B53E /* MenuTestLayer.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC359C818CECF0B00F37B72 /* MenuTestLayer.cpp */; }; - 507B415F1C31BEA60067B53E /* ClippingNodeTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC3599518CECF0B00F37B72 /* ClippingNodeTest.cpp */; }; - 507B41601C31BEA60067B53E /* LayerTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC35AA718CECF0C00F37B72 /* LayerTest.cpp */; }; - 507B41611C31BEA60067B53E /* UITextBMFontTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 29080D7A191B595E0066F8DF /* UITextBMFontTest.cpp */; }; - 507B41621C31BEA60067B53E /* NodeTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC35AB918CECF0C00F37B72 /* NodeTest.cpp */; }; - 507B41631C31BEA60067B53E /* UIWidgetAddNodeTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 29080D89191B595E0066F8DF /* UIWidgetAddNodeTest.cpp */; }; - 507B41641C31BEA60067B53E /* RenderTextureTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC35AE118CECF0C00F37B72 /* RenderTextureTest.cpp */; }; - 507B41651C31BEA60067B53E /* MenuTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC35AAA18CECF0C00F37B72 /* MenuTest.cpp */; }; - 507B41661C31BEA60067B53E /* UserDefaultTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC35B1818CECF0C00F37B72 /* UserDefaultTest.cpp */; }; - 507B41671C31BEA60067B53E /* UITest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 29080D1A191B574B0066F8DF /* UITest.cpp */; }; - 507B41681C31BEA60067B53E /* Camera3DTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 3E9E75CE199324CB005B7047 /* Camera3DTest.cpp */; }; - 507B41691C31BEA60067B53E /* CustomReader.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 29080D35191B595E0066F8DF /* CustomReader.cpp */; }; - 507B416A1C31BEA60067B53E /* ParallaxTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC35ABC18CECF0C00F37B72 /* ParallaxTest.cpp */; }; - 507B416B1C31BEA60067B53E /* ZwoptexTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC35B1D18CECF0C00F37B72 /* ZwoptexTest.cpp */; }; - 507B416C1C31BEA60067B53E /* VibrateTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC35C6D18CECF0C00F37B72 /* VibrateTest.cpp */; }; - 507B416D1C31BEA60067B53E /* ComponentsTestScene.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC359E018CECF0B00F37B72 /* ComponentsTestScene.cpp */; }; - 507B416E1C31BEA60067B53E /* Bug-914.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC3598A18CECF0B00F37B72 /* Bug-914.cpp */; }; - 507B416F1C31BEA60067B53E /* EffectsAdvancedTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC359AF18CECF0B00F37B72 /* EffectsAdvancedTest.cpp */; }; - 507B41701C31BEA60067B53E /* Paddle.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC35B0D18CECF0C00F37B72 /* Paddle.cpp */; }; - 507B41711C31BEA60067B53E /* UIPageViewTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 29080D5B191B595E0066F8DF /* UIPageViewTest.cpp */; }; - 507B41721C31BEA60067B53E /* SceneEditorTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC35A5918CECF0B00F37B72 /* SceneEditorTest.cpp */; }; - 507B41731C31BEA60067B53E /* Scene3DTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A0BD49FC1AFAFEE50046CCE3 /* Scene3DTest.cpp */; }; - 507B41741C31BEA60067B53E /* OpenURLTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A5030C3319D059DA000E78E7 /* OpenURLTest.cpp */; }; - 507B41751C31BEA60067B53E /* BugsTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC3598C18CECF0B00F37B72 /* BugsTest.cpp */; }; - 507B41761C31BEA60067B53E /* testBasic.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC35AF718CECF0C00F37B72 /* testBasic.cpp */; }; - 507B41771C31BEA60067B53E /* EnemyController.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC359E218CECF0B00F37B72 /* EnemyController.cpp */; }; - 507B41781C31BEA60067B53E /* UIWidgetAddNodeTest_Editor.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 29080D8B191B595E0066F8DF /* UIWidgetAddNodeTest_Editor.cpp */; }; - 507B41791C31BEA60067B53E /* CocosBuilderTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC359BE18CECF0B00F37B72 /* CocosBuilderTest.cpp */; }; - 507B417A1C31BEA60067B53E /* UITextFieldTest_Editor.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 29080D81191B595E0066F8DF /* UITextFieldTest_Editor.cpp */; }; - 507B417B1C31BEA60067B53E /* QuestionContainerSprite.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC3598218CECF0B00F37B72 /* QuestionContainerSprite.cpp */; }; - 507B417C1C31BEA60067B53E /* DrawPrimitivesTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC359AC18CECF0B00F37B72 /* DrawPrimitivesTest.cpp */; }; - 507B417D1C31BEA60067B53E /* UITextFieldTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 29080D7F191B595E0066F8DF /* UITextFieldTest.cpp */; }; - 507B417E1C31BEA60067B53E /* MotionStreakTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC35AAD18CECF0C00F37B72 /* MotionStreakTest.cpp */; }; - 507B417F1C31BEA60067B53E /* AllocatorTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D0FD03621A3B546400825BB5 /* AllocatorTest.cpp */; }; - 507B41801C31BEA60067B53E /* FontTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC35A9318CECF0B00F37B72 /* FontTest.cpp */; }; - 507B41811C31BEA60067B53E /* RefPtrTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1F33634D18E37E840074764D /* RefPtrTest.cpp */; }; - 507B41821C31BEA60067B53E /* UIEditBoxTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 292CF01219A1965E00E8E6A0 /* UIEditBoxTest.cpp */; }; - 507B41831C31BEA60067B53E /* ActionsTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC3593218CECF0A00F37B72 /* ActionsTest.cpp */; }; - 507B41841C31BEA60067B53E /* ShaderTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC35AED18CECF0C00F37B72 /* ShaderTest.cpp */; }; - 507B41851C31BEA60067B53E /* BillBoardTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = B609E67119C18DAD003D0074 /* BillBoardTest.cpp */; }; - 507B41861C31BEA60067B53E /* Bug-PageViewLayout.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 94D793D71B4B7A3600F60F10 /* Bug-PageViewLayout.cpp */; }; - 507B41871C31BEA60067B53E /* TileMapTest2.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C04F93581941B05400E9FEAB /* TileMapTest2.cpp */; }; - 507B41881C31BEA60067B53E /* Bug-624.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC3598418CECF0B00F37B72 /* Bug-624.cpp */; }; - 507B41891C31BEA60067B53E /* SocketIOTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC35A8018CECF0B00F37B72 /* SocketIOTest.cpp */; }; - 507B418A1C31BEA60067B53E /* SpriteTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC35AF518CECF0C00F37B72 /* SpriteTest.cpp */; }; - 507B418B1C31BEA60067B53E /* NewAudioEngineTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 3E2BDACE19BEA3410055CDCD /* NewAudioEngineTest.cpp */; }; - 507B418C1C31BEA60067B53E /* FileUtilsTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC35A9018CECF0B00F37B72 /* FileUtilsTest.cpp */; }; - 507B418D1C31BEA60067B53E /* CustomRootNodeReader.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 3825CC451A2C982A00C92EA8 /* CustomRootNodeReader.cpp */; }; - 507B418E1C31BEA60067B53E /* CurlTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC359A318CECF0B00F37B72 /* CurlTest.cpp */; }; - 507B418F1C31BEA60067B53E /* CustomTableViewCell.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC35A8B18CECF0B00F37B72 /* CustomTableViewCell.cpp */; }; - 507B41901C31BEA60067B53E /* CustomGUIScene.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 29080D23191B595E0066F8DF /* CustomGUIScene.cpp */; }; - 507B41911C31BEA60067B53E /* CCControlSwitchTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC35A7618CECF0B00F37B72 /* CCControlSwitchTest.cpp */; }; - 507B41921C31BEA60067B53E /* BaseTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC3593618CECF0A00F37B72 /* BaseTest.cpp */; }; - 507B41931C31BEA60067B53E /* PlayerController.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC359E618CECF0B00F37B72 /* PlayerController.cpp */; }; - 507B41941C31BEA60067B53E /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 1AC35C8418CECF1400F37B72 /* main.m */; }; - 507B41951C31BEA60067B53E /* UIScrollViewTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 29080D6B191B595E0066F8DF /* UIScrollViewTest.cpp */; }; - 507B41961C31BEA60067B53E /* CCControlScene.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC35A6B18CECF0B00F37B72 /* CCControlScene.cpp */; }; - 507B41971C31BEA60067B53E /* UICheckBoxTest_Editor.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 29080D41191B595E0066F8DF /* UICheckBoxTest_Editor.cpp */; }; - 507B41981C31BEA60067B53E /* DataVisitorTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC359A918CECF0B00F37B72 /* DataVisitorTest.cpp */; }; - 507B41991C31BEA60067B53E /* CurrentLanguageTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC359A618CECF0B00F37B72 /* CurrentLanguageTest.cpp */; }; - 507B419A1C31BEA60067B53E /* UITextTest_Editor.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 29080D86191B595E0066F8DF /* UITextTest_Editor.cpp */; }; - 507B419B1C31BEA60067B53E /* UICheckBoxTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 29080D3F191B595E0066F8DF /* UICheckBoxTest.cpp */; }; - 507B419C1C31BEA60067B53E /* Bug-350.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC3597B18CECF0B00F37B72 /* Bug-350.cpp */; }; - 507B419D1C31BEA60067B53E /* UITextBMFontTest_Editor.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 29080D7C191B595E0066F8DF /* UITextBMFontTest_Editor.cpp */; }; - 507B419E1C31BEA60067B53E /* SchedulerTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC35AEA18CECF0C00F37B72 /* SchedulerTest.cpp */; }; - 507B419F1C31BEA60067B53E /* Texture2dTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC35AFF18CECF0C00F37B72 /* Texture2dTest.cpp */; }; - 507B41A01C31BEA60067B53E /* MouseTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC35A9618CECF0B00F37B72 /* MouseTest.cpp */; }; - 507B41A11C31BEA60067B53E /* Ball.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC35B0B18CECF0C00F37B72 /* Ball.cpp */; }; - 507B41A21C31BEA60067B53E /* GameOverScene.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC359E418CECF0B00F37B72 /* GameOverScene.cpp */; }; - 507B41A31C31BEA60067B53E /* ExtensionsTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC35A7B18CECF0B00F37B72 /* ExtensionsTest.cpp */; }; - 507B41A41C31BEA60067B53E /* TestEntries.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC3594218CECF0A00F37B72 /* TestEntries.cpp */; }; - 507B41A51C31BEA60067B53E /* AssetsManagerExTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 15B3709619EE5DBA00ABE682 /* AssetsManagerExTest.cpp */; }; - 507B41A61C31BEA60067B53E /* Box2dTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC3593918CECF0A00F37B72 /* Box2dTest.cpp */; }; - 507B41A71C31BEA60067B53E /* UISceneManager_Editor.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 29080D68191B595E0066F8DF /* UISceneManager_Editor.cpp */; }; - 507B41A81C31BEA60067B53E /* LabelTestNew.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC35AA418CECF0C00F37B72 /* LabelTestNew.cpp */; }; - 507B41A91C31BEA60067B53E /* ChipmunkTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC3598F18CECF0B00F37B72 /* ChipmunkTest.cpp */; }; - 507B41AA1C31BEA60067B53E /* cons.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC35A5E18CECF0B00F37B72 /* cons.cpp */; }; - 507B41AB1C31BEA60067B53E /* ConsoleTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC3599E18CECF0B00F37B72 /* ConsoleTest.cpp */; }; - 507B41AC1C31BEA60067B53E /* IntervalTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC35A9918CECF0B00F37B72 /* IntervalTest.cpp */; }; - 507B41AD1C31BEA60067B53E /* UISliderTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 29080D70191B595E0066F8DF /* UISliderTest.cpp */; }; - 507B41AE1C31BEA60067B53E /* CCControlStepperTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC35A7318CECF0B00F37B72 /* CCControlStepperTest.cpp */; }; - 507B41AF1C31BEA60067B53E /* UIButtonTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 29080D3A191B595E0066F8DF /* UIButtonTest.cpp */; }; - 507B41B01C31BEA60067B53E /* TextureAtlasEncryptionTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC35B0518CECF0C00F37B72 /* TextureAtlasEncryptionTest.cpp */; }; - 507B41B11C31BEA60067B53E /* ConfigurationTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC3599B18CECF0B00F37B72 /* ConfigurationTest.cpp */; }; - 507B41B21C31BEA60067B53E /* CCControlPotentiometerTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC35A6918CECF0B00F37B72 /* CCControlPotentiometerTest.cpp */; }; - 507B41B31C31BEA60067B53E /* RootViewController.mm in Sources */ = {isa = PBXBuildFile; fileRef = 1AC35C7018CECF1400F37B72 /* RootViewController.mm */; }; - 507B41B41C31BEA60067B53E /* TileMapTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC35B0818CECF0C00F37B72 /* TileMapTest.cpp */; }; - 507B41B51C31BEA60067B53E /* UIRichTextTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 29080D60191B595E0066F8DF /* UIRichTextTest.cpp */; }; - 507B41B71C31BEA60067B53E /* Bug-899.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC3598818CECF0B00F37B72 /* Bug-899.cpp */; }; - 507B41B81C31BEA60067B53E /* NewEventDispatcherTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC35AB318CECF0C00F37B72 /* NewEventDispatcherTest.cpp */; }; - 507B41B91C31BEA60067B53E /* UIScrollViewTest_Editor.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 29080D6D191B595E0066F8DF /* UIScrollViewTest_Editor.cpp */; }; - 507B41BA1C31BEA60067B53E /* acts.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC35A5C18CECF0B00F37B72 /* acts.cpp */; }; - 507B41BB1C31BEA60067B53E /* ArmatureScene.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC359DD18CECF0B00F37B72 /* ArmatureScene.cpp */; }; - 507B41BC1C31BEA60067B53E /* SceneController.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC359EA18CECF0B00F37B72 /* SceneController.cpp */; }; - 507B41BD1C31BEA60067B53E /* UISliderTest_Editor.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 29080D72191B595E0066F8DF /* UISliderTest_Editor.cpp */; }; - 507B41BE1C31BEA60067B53E /* Test.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC3594018CECF0A00F37B72 /* Test.cpp */; }; - 507B41BF1C31BEA60067B53E /* ParticleTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC35ABF18CECF0C00F37B72 /* ParticleTest.cpp */; }; - 507B41C01C31BEA60067B53E /* TouchesTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC35B0F18CECF0C00F37B72 /* TouchesTest.cpp */; }; - 507B41C11C31BEA60067B53E /* UIImageViewTest_Editor.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 29080D49191B595E0066F8DF /* UIImageViewTest_Editor.cpp */; }; - 507B41C21C31BEA60067B53E /* TransitionsTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC35B1218CECF0C00F37B72 /* TransitionsTest.cpp */; }; - 507B41C31C31BEA60067B53E /* RotateWorldTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC35AE418CECF0C00F37B72 /* RotateWorldTest.cpp */; }; - 507B41C41C31BEA60067B53E /* ActionsProgressTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC3592F18CECF0A00F37B72 /* ActionsProgressTest.cpp */; }; - 507B41C51C31BEA60067B53E /* EffectsTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC359B218CECF0B00F37B72 /* EffectsTest.cpp */; }; - 507B41C61C31BEA60067B53E /* TestHeaderLayer.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC359D518CECF0B00F37B72 /* TestHeaderLayer.cpp */; }; - 507B41C71C31BEA60067B53E /* ActionManagerTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC3592918CECF0A00F37B72 /* ActionManagerTest.cpp */; }; - 507B41C81C31BEA60067B53E /* CocoStudioGUITest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 29080D21191B595E0066F8DF /* CocoStudioGUITest.cpp */; }; - 507B41C91C31BEA60067B53E /* PhysicsTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC35ADB18CECF0C00F37B72 /* PhysicsTest.cpp */; }; - 507B41CA1C31BEA60067B53E /* CustomRootNode.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 3825CC431A2C982A00C92EA8 /* CustomRootNode.cpp */; }; - 507B41CB1C31BEA60067B53E /* UIScene_Editor.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 29080D64191B595E0066F8DF /* UIScene_Editor.cpp */; }; - 507B41CC1C31BEA60067B53E /* UILayoutTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 29080D4C191B595E0066F8DF /* UILayoutTest.cpp */; }; - 507B41CD1C31BEA60067B53E /* ButtonTestLayer.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC359BB18CECF0B00F37B72 /* ButtonTestLayer.cpp */; }; - 507B41CE1C31BEA60067B53E /* UIListViewTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 29080D51191B595E0066F8DF /* UIListViewTest.cpp */; }; - 507B41CF1C31BEA60067B53E /* MaterialSystemTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 5046AB481AF2A8D80060550B /* MaterialSystemTest.cpp */; }; - 507B41D01C31BEA60067B53E /* Box2dView.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC3593C18CECF0A00F37B72 /* Box2dView.cpp */; }; - 507B41D11C31BEA60067B53E /* UIImageViewTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 29080D47191B595E0066F8DF /* UIImageViewTest.cpp */; }; - 507B41D21C31BEA60067B53E /* LabelTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC35AA218CECF0C00F37B72 /* LabelTest.cpp */; }; - 507B41D31C31BEA60067B53E /* Bug-12847.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 850F8A221B5F3A4F00780603 /* Bug-12847.cpp */; }; - 507B41D41C31BEA60067B53E /* Bug-Child.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 59620E8D1921E5CF002021B6 /* Bug-Child.cpp */; }; - 507B41D51C31BEA60067B53E /* UISceneManager.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 29080D66191B595E0066F8DF /* UISceneManager.cpp */; }; - 507B41D61C31BEA60067B53E /* VisibleRect.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC35B1A18CECF0C00F37B72 /* VisibleRect.cpp */; }; - 507B41D71C31BEA60067B53E /* ReleasePoolTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC35ADE18CECF0C00F37B72 /* ReleasePoolTest.cpp */; }; - 507B41D81C31BEA60067B53E /* DownloaderTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 50921EAD1B746D5F00C085CC /* DownloaderTest.cpp */; }; - 507B41D91C31BEA60067B53E /* TextureCacheTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC35B0218CECF0C00F37B72 /* TextureCacheTest.cpp */; }; - 507B41DA1C31BEA60067B53E /* HelloCocosBuilderLayer.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC359C118CECF0B00F37B72 /* HelloCocosBuilderLayer.cpp */; }; - 507B41DB1C31BEA60067B53E /* CustomParticleWidgetTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 29080D2A191B595E0066F8DF /* CustomParticleWidgetTest.cpp */; }; - 507B41DC1C31BEA60067B53E /* UITextTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 29080D84191B595E0066F8DF /* UITextTest.cpp */; }; - 507B41DD1C31BEA60067B53E /* UIPageViewTest_Editor.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 29080D5D191B595E0066F8DF /* UIPageViewTest_Editor.cpp */; }; - 507B41DE1C31BEA60067B53E /* TableViewTestScene.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC35A8D18CECF0B00F37B72 /* TableViewTestScene.cpp */; }; - 507B41DF1C31BEA60067B53E /* ShaderTest2.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC35AEF18CECF0C00F37B72 /* ShaderTest2.cpp */; }; - 507B41E01C31BEA60067B53E /* UnitTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC35B1518CECF0C00F37B72 /* UnitTest.cpp */; }; - 507B41E11C31BEA60067B53E /* CocostudioParserTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 290E94B3196FC16900694919 /* CocostudioParserTest.cpp */; }; - 507B41E21C31BEA60067B53E /* Bug-458.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC3598018CECF0B00F37B72 /* Bug-458.cpp */; }; - 507B41E31C31BEA60067B53E /* UIScene.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 29080D62191B595E0066F8DF /* UIScene.cpp */; }; - 507B41E41C31BEA60067B53E /* CocosDenshionTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC3599818CECF0B00F37B72 /* CocosDenshionTest.cpp */; }; - 507B41E51C31BEA60067B53E /* ProjectileController.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC359E818CECF0B00F37B72 /* ProjectileController.cpp */; }; - 507B41E61C31BEA60067B53E /* CustomWidgetCallbackBindTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 3825CC471A2C982A00C92EA8 /* CustomWidgetCallbackBindTest.cpp */; }; - 507B41E71C31BEA60067B53E /* Sprite3DTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 3E92EA801921A1400094CD21 /* Sprite3DTest.cpp */; }; - 507B41E81C31BEA60067B53E /* controller.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC359A018CECF0B00F37B72 /* controller.cpp */; }; - 507B41E91C31BEA60067B53E /* CCControlSceneManager.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC35A6D18CECF0B00F37B72 /* CCControlSceneManager.cpp */; }; - 507B41EA1C31BEA60067B53E /* CocosStudio3DTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 182C5CB81A95B2FD00C30D34 /* CocosStudio3DTest.cpp */; }; - 507B41EB1C31BEA60067B53E /* TimelineCallbackTestLayer.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC359DA18CECF0B00F37B72 /* TimelineCallbackTestLayer.cpp */; }; - 507B41EC1C31BEA60067B53E /* Bug-CCDrawNode.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 94D793D51B4B7A3600F60F10 /* Bug-CCDrawNode.cpp */; }; - 507B41ED1C31BEA60067B53E /* CustomParticleWidgetReader.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 29080D33191B595E0066F8DF /* CustomParticleWidgetReader.cpp */; }; - 507B41EE1C31BEA60067B53E /* NotificationCenterTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC35A8518CECF0B00F37B72 /* NotificationCenterTest.cpp */; }; - 507B41EF1C31BEA60067B53E /* CocostudioParserJsonTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 29FBBBFC196A9ECD00E65826 /* CocostudioParserJsonTest.cpp */; }; - 507B41F01C31BEA60067B53E /* NavMeshTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = B6DD2FFA1B04979C00E47F5F /* NavMeshTest.cpp */; }; - 507B41F11C31BEA60067B53E /* LightTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = B6C039D719C95D83007207DC /* LightTest.cpp */; }; - 507B41F21C31BEA60067B53E /* GUIEditorTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 29080D37191B595E0066F8DF /* GUIEditorTest.cpp */; }; - 507B41F31C31BEA60067B53E /* CustomImageTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 29080D27191B595E0066F8DF /* CustomImageTest.cpp */; }; - 507B41F41C31BEA60067B53E /* Bug-422.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC3597D18CECF0B00F37B72 /* Bug-422.cpp */; }; - 507B41F51C31BEA60067B53E /* UIFocusTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 29080D44191B595E0066F8DF /* UIFocusTest.cpp */; }; - 507B41F61C31BEA60067B53E /* HttpClientTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC35A7E18CECF0B00F37B72 /* HttpClientTest.cpp */; }; - 507B41F81C31BEA60067B53E /* UIButtonTest_Editor.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 29080D3C191B595E0066F8DF /* UIButtonTest_Editor.cpp */; }; - 507B41F91C31BEA60067B53E /* ClickAndMoveTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC3599218CECF0B00F37B72 /* ClickAndMoveTest.cpp */; }; - 507B41FA1C31BEA60067B53E /* TerrainTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = B603F1AD1AC8EA4E00A9579C /* TerrainTest.cpp */; }; - 507B41FC1C31BEA60067B53E /* libiconv.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = ED545A721B68A1AC00C3958E /* libiconv.dylib */; }; - 507B41FD1C31BEA60067B53E /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 52B47A331A534B2B004E4C60 /* Security.framework */; }; - 507B41FE1C31BEA60067B53E /* MediaPlayer.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3EA0FB65191B933000B170C8 /* MediaPlayer.framework */; }; - 507B42001C31BEA60067B53E /* CoreMotion.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D60AE43317F7FFE100757E4B /* CoreMotion.framework */; }; - 507B42011C31BEA60067B53E /* libz.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 15C6482E165F399D007D4F18 /* libz.dylib */; }; - 507B42021C31BEA60067B53E /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 15C64832165F3AFD007D4F18 /* Foundation.framework */; }; - 507B42031C31BEA60067B53E /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 15C6482C165F3988007D4F18 /* AudioToolbox.framework */; }; - 507B42041C31BEA60067B53E /* OpenAL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 15C64828165F396B007D4F18 /* OpenAL.framework */; }; - 507B42051C31BEA60067B53E /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 15C64826165F394E007D4F18 /* QuartzCore.framework */; }; - 507B42061C31BEA60067B53E /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A07A52BB1783AEB80073F6A7 /* CoreGraphics.framework */; }; - 507B42071C31BEA60067B53E /* OpenGLES.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A07A52B91783AE900073F6A7 /* OpenGLES.framework */; }; - 507B42081C31BEA60067B53E /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A07A52B71783AE6D0073F6A7 /* UIKit.framework */; }; - 507B42091C31BEA60067B53E /* AVFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A07A52C11783B01F0073F6A7 /* AVFoundation.framework */; }; - 507B42121C31C1710067B53E /* libcocos2d tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 507B42111C31BEA70067B53E /* libcocos2d tvOS.a */; }; - 507B42851C31E6070067B53E /* AppController.mm in Sources */ = {isa = PBXBuildFile; fileRef = 185664101B422FFF009EF2AE /* AppController.mm */; }; - 507B42861C31E6070067B53E /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 1856641C1B422FFF009EF2AE /* main.m */; }; - 507B42871C31E6070067B53E /* NativeOcClass.m in Sources */ = {isa = PBXBuildFile; fileRef = 1856641E1B422FFF009EF2AE /* NativeOcClass.m */; }; - 507B42881C31E6070067B53E /* js_Effect3D_bindings.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 185664061B422F72009EF2AE /* js_Effect3D_bindings.cpp */; }; - 507B42891C31E6070067B53E /* js_DrawNode3D_bindings.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 185664041B422F72009EF2AE /* js_DrawNode3D_bindings.cpp */; }; - 507B428A1C31E6070067B53E /* RootViewController.mm in Sources */ = {isa = PBXBuildFile; fileRef = 185664211B422FFF009EF2AE /* RootViewController.mm */; }; - 507B428B1C31E6070067B53E /* AppDelegate.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 185664021B422F72009EF2AE /* AppDelegate.cpp */; }; - 507B428D1C31E6070067B53E /* libsqlite3.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 18FC4D5E1B4257CD00B76F95 /* libsqlite3.dylib */; }; - 507B428F1C31E6070067B53E /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 52B47A331A534B2B004E4C60 /* Security.framework */; }; - 507B42911C31E6070067B53E /* MediaPlayer.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3EA0FB65191B933000B170C8 /* MediaPlayer.framework */; }; - 507B42921C31E6070067B53E /* libz.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 1ABCA3AF18CDA06D0087CE3A /* libz.dylib */; }; - 507B42931C31E6070067B53E /* libiconv.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = ED545A721B68A1AC00C3958E /* libiconv.dylib */; }; - 507B42941C31E6070067B53E /* CoreMotion.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D60AE43317F7FFE100757E4B /* CoreMotion.framework */; }; - 507B42951C31E6070067B53E /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1ABCA3A818CD9F130087CE3A /* AudioToolbox.framework */; }; - 507B42961C31E6070067B53E /* OpenAL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1ABCA3A618CD9F0D0087CE3A /* OpenAL.framework */; }; - 507B42971C31E6070067B53E /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1ABCA3A418CD9F060087CE3A /* QuartzCore.framework */; }; - 507B42981C31E6070067B53E /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1ABCA3A218CD9EFE0087CE3A /* CoreGraphics.framework */; }; - 507B42991C31E6070067B53E /* OpenGLES.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1ABCA3A018CD9EF60087CE3A /* OpenGLES.framework */; }; - 507B429A1C31E6070067B53E /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1ABCA39E18CD9EE50087CE3A /* UIKit.framework */; }; - 507B429B1C31E6070067B53E /* AVFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1ABCA39C18CD9ED80087CE3A /* AVFoundation.framework */; }; - 507B429C1C31E6070067B53E /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 15C64832165F3AFD007D4F18 /* Foundation.framework */; }; - 507B429E1C31E6070067B53E /* script in Resources */ = {isa = PBXBuildFile; fileRef = 185664541B42364E009EF2AE /* script */; }; - 507B429F1C31E6070067B53E /* Default-568h@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 185664111B422FFF009EF2AE /* Default-568h@2x.png */; }; - 507B42A01C31E6070067B53E /* Default.png in Resources */ = {isa = PBXBuildFile; fileRef = 185664121B422FFF009EF2AE /* Default.png */; }; - 507B42A11C31E6070067B53E /* Default@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 185664131B422FFF009EF2AE /* Default@2x.png */; }; - 507B42A21C31E6070067B53E /* Icon-114.png in Resources */ = {isa = PBXBuildFile; fileRef = 185664141B422FFF009EF2AE /* Icon-114.png */; }; - 507B42A31C31E6070067B53E /* Icon-120.png in Resources */ = {isa = PBXBuildFile; fileRef = 185664151B422FFF009EF2AE /* Icon-120.png */; }; - 507B42A41C31E6070067B53E /* Icon-144.png in Resources */ = {isa = PBXBuildFile; fileRef = 185664161B422FFF009EF2AE /* Icon-144.png */; }; - 507B42A51C31E6070067B53E /* Icon-152.png in Resources */ = {isa = PBXBuildFile; fileRef = 185664171B422FFF009EF2AE /* Icon-152.png */; }; - 507B42A61C31E6070067B53E /* Icon-57.png in Resources */ = {isa = PBXBuildFile; fileRef = 185664181B422FFF009EF2AE /* Icon-57.png */; }; - 507B42A71C31E6070067B53E /* Icon-72.png in Resources */ = {isa = PBXBuildFile; fileRef = 185664191B422FFF009EF2AE /* Icon-72.png */; }; - 507B42A81C31E6070067B53E /* Icon-76.png in Resources */ = {isa = PBXBuildFile; fileRef = 1856641A1B422FFF009EF2AE /* Icon-76.png */; }; - 507B42A91C31E6070067B53E /* src in Resources */ = {isa = PBXBuildFile; fileRef = 185663FD1B422EF0009EF2AE /* src */; }; - 507B42AA1C31E6070067B53E /* project.json in Resources */ = {isa = PBXBuildFile; fileRef = 185663FA1B422EE0009EF2AE /* project.json */; }; - 507B42AB1C31E6070067B53E /* main.js in Resources */ = {isa = PBXBuildFile; fileRef = 185663F71B422ED6009EF2AE /* main.js */; }; - 507B42AC1C31E6070067B53E /* res in Resources */ = {isa = PBXBuildFile; fileRef = 185663F41B422EA7009EF2AE /* res */; }; - 507B42B91C31EC6A0067B53E /* libcocos2d tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 507B42111C31BEA70067B53E /* libcocos2d tvOS.a */; }; - 507B42BA1C31EC6A0067B53E /* libjscocos2d tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 507B42B41C31E6080067B53E /* libjscocos2d tvOS.a */; }; - 507B43681C31FB670067B53E /* lua_test_bindings.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 150F918619DA409E00B89F57 /* lua_test_bindings.cpp */; }; - 507B43691C31FB670067B53E /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 1AC35D9518CEE5D100F37B72 /* main.m */; }; - 507B436A1C31FB670067B53E /* LuaObjectCBridgeTest.mm in Sources */ = {isa = PBXBuildFile; fileRef = 1AC35D9418CEE5D100F37B72 /* LuaObjectCBridgeTest.mm */; }; - 507B436B1C31FB670067B53E /* AppController.mm in Sources */ = {isa = PBXBuildFile; fileRef = 1AC35D8718CEE5D100F37B72 /* AppController.mm */; }; - 507B436C1C31FB670067B53E /* AppDelegate.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC35D7D18CEE5B100F37B72 /* AppDelegate.cpp */; }; - 507B436D1C31FB670067B53E /* RootViewController.mm in Sources */ = {isa = PBXBuildFile; fileRef = 1AC35D9718CEE5D100F37B72 /* RootViewController.mm */; }; - 507B436E1C31FB670067B53E /* lua_assetsmanager_test_sample.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC35D7F18CEE5B100F37B72 /* lua_assetsmanager_test_sample.cpp */; }; - 507B43701C31FB670067B53E /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 52B47A331A534B2B004E4C60 /* Security.framework */; }; - 507B43731C31FB670067B53E /* MediaPlayer.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3EA0FB65191B933000B170C8 /* MediaPlayer.framework */; }; - 507B43741C31FB670067B53E /* libz.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 1ABCA3AF18CDA06D0087CE3A /* libz.dylib */; }; - 507B43751C31FB670067B53E /* CoreMotion.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D60AE43317F7FFE100757E4B /* CoreMotion.framework */; }; - 507B43761C31FB670067B53E /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1ABCA3A818CD9F130087CE3A /* AudioToolbox.framework */; }; - 507B43771C31FB670067B53E /* OpenAL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1ABCA3A618CD9F0D0087CE3A /* OpenAL.framework */; }; - 507B43781C31FB670067B53E /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1ABCA3A418CD9F060087CE3A /* QuartzCore.framework */; }; - 507B43791C31FB670067B53E /* libiconv.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = ED545A721B68A1AC00C3958E /* libiconv.dylib */; }; - 507B437A1C31FB670067B53E /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1ABCA3A218CD9EFE0087CE3A /* CoreGraphics.framework */; }; - 507B437B1C31FB670067B53E /* OpenGLES.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1ABCA3A018CD9EF60087CE3A /* OpenGLES.framework */; }; - 507B437C1C31FB670067B53E /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1ABCA39E18CD9EE50087CE3A /* UIKit.framework */; }; - 507B437D1C31FB670067B53E /* AVFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1ABCA39C18CD9ED80087CE3A /* AVFoundation.framework */; }; - 507B437E1C31FB670067B53E /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 15C64832165F3AFD007D4F18 /* Foundation.framework */; }; - 507B43811C31FB670067B53E /* NavMesh in Resources */ = {isa = PBXBuildFile; fileRef = B61E90CA1B12B74B00BE69EA /* NavMesh */; }; - 507B43821C31FB670067B53E /* Materials in Resources */ = {isa = PBXBuildFile; fileRef = 5046AB5A1AF2C4180060550B /* Materials */; }; - 507B43831C31FB670067B53E /* Shaders3D in Resources */ = {isa = PBXBuildFile; fileRef = B2507B6A192589AF00FA4972 /* Shaders3D */; }; - 507B43841C31FB670067B53E /* Test.html in Resources */ = {isa = PBXBuildFile; fileRef = 29AFEF6619ACCAA000F6B10A /* Test.html */; }; - 507B43851C31FB670067B53E /* TerrainTest in Resources */ = {isa = PBXBuildFile; fileRef = B603F1B31AC8FBFB00A9579C /* TerrainTest */; }; - 507B43861C31FB670067B53E /* Particle3D in Resources */ = {isa = PBXBuildFile; fileRef = B63993301A49359F00B07923 /* Particle3D */; }; - 507B43871C31FB670067B53E /* Manifests in Resources */ = {isa = PBXBuildFile; fileRef = 15B3709219EE5D1000ABE682 /* Manifests */; }; - 507B43881C31FB670067B53E /* cocosvideo.mp4 in Resources */ = {isa = PBXBuildFile; fileRef = 3EA0FB5D191B92F100B170C8 /* cocosvideo.mp4 */; }; - 507B43891C31FB670067B53E /* ActionTimeline in Resources */ = {isa = PBXBuildFile; fileRef = 38FA2E75194AECF800FF2BE4 /* ActionTimeline */; }; - 507B438A1C31FB670067B53E /* Sprite3DTest in Resources */ = {isa = PBXBuildFile; fileRef = 3E92EA841921A7720094CD21 /* Sprite3DTest */; }; - 507B438B1C31FB670067B53E /* Misc in Resources */ = {isa = PBXBuildFile; fileRef = 1AC35CC118CED84500F37B72 /* Misc */; }; - 507B438C1C31FB670067B53E /* effect1.wav in Resources */ = {isa = PBXBuildFile; fileRef = 1AC35CB618CED84500F37B72 /* effect1.wav */; }; - 507B438D1C31FB670067B53E /* background.caf in Resources */ = {isa = PBXBuildFile; fileRef = C08689C018D370C90093E810 /* background.caf */; }; - 507B438E1C31FB670067B53E /* fonts in Resources */ = {isa = PBXBuildFile; fileRef = 1AC35CBA18CED84500F37B72 /* fonts */; }; - 507B438F1C31FB670067B53E /* ccb in Resources */ = {isa = PBXBuildFile; fileRef = 1AC35CAE18CED84500F37B72 /* ccb */; }; - 507B43901C31FB670067B53E /* hd in Resources */ = {isa = PBXBuildFile; fileRef = 1AC35CBC18CED84500F37B72 /* hd */; }; - 507B43911C31FB670067B53E /* Particles in Resources */ = {isa = PBXBuildFile; fileRef = 1AC35CC318CED84500F37B72 /* Particles */; }; - 507B43921C31FB670067B53E /* src in Resources */ = {isa = PBXBuildFile; fileRef = 182C5CCC1A95D9BA00C30D34 /* src */; }; - 507B43931C31FB670067B53E /* background.wav in Resources */ = {isa = PBXBuildFile; fileRef = 3E2BDB0019C5E5D40055CDCD /* background.wav */; }; - 507B43941C31FB670067B53E /* Icon-120.png in Resources */ = {isa = PBXBuildFile; fileRef = 1AC35D8C18CEE5D100F37B72 /* Icon-120.png */; }; - 507B43951C31FB670067B53E /* Icon-57.png in Resources */ = {isa = PBXBuildFile; fileRef = 1AC35D8F18CEE5D100F37B72 /* Icon-57.png */; }; - 507B43961C31FB670067B53E /* fileLookup.plist in Resources */ = {isa = PBXBuildFile; fileRef = 1AC35CB918CED84500F37B72 /* fileLookup.plist */; }; - 507B43971C31FB670067B53E /* background.ogg in Resources */ = {isa = PBXBuildFile; fileRef = 1AC35CAD18CED84500F37B72 /* background.ogg */; }; - 507B43981C31FB670067B53E /* Icon-144.png in Resources */ = {isa = PBXBuildFile; fileRef = 1AC35D8D18CEE5D100F37B72 /* Icon-144.png */; }; - 507B43991C31FB670067B53E /* pew-pew-lei.wav in Resources */ = {isa = PBXBuildFile; fileRef = 1AC35CC418CED84500F37B72 /* pew-pew-lei.wav */; }; - 507B439A1C31FB670067B53E /* Default-568h@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 1AC35D8818CEE5D100F37B72 /* Default-568h@2x.png */; }; - 507B439B1C31FB670067B53E /* Default-667h@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 527B1F4219EFAE13000A1F82 /* Default-667h@2x.png */; }; - 507B439C1C31FB670067B53E /* Default@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 1AC35D8A18CEE5D100F37B72 /* Default@2x.png */; }; - 507B439D1C31FB670067B53E /* components in Resources */ = {isa = PBXBuildFile; fileRef = 1AC35CB318CED84500F37B72 /* components */; }; - 507B439E1C31FB670067B53E /* zwoptex in Resources */ = {isa = PBXBuildFile; fileRef = 1AC35CC918CED84500F37B72 /* zwoptex */; }; - 507B439F1C31FB670067B53E /* CocosBuilderExample.ccbresourcelog in Resources */ = {isa = PBXBuildFile; fileRef = 1AC35CB018CED84500F37B72 /* CocosBuilderExample.ccbresourcelog */; }; - 507B43A01C31FB670067B53E /* music.mid in Resources */ = {isa = PBXBuildFile; fileRef = 1AC35CC218CED84500F37B72 /* music.mid */; }; - 507B43A11C31FB670067B53E /* Default-736h@3x.png in Resources */ = {isa = PBXBuildFile; fileRef = 527B1F4319EFAE13000A1F82 /* Default-736h@3x.png */; }; - 507B43A21C31FB670067B53E /* extensions in Resources */ = {isa = PBXBuildFile; fileRef = 1AC35CB818CED84500F37B72 /* extensions */; }; - 507B43A31C31FB670067B53E /* Images in Resources */ = {isa = PBXBuildFile; fileRef = 1AC35CBE18CED84500F37B72 /* Images */; }; - 507B43A41C31FB670067B53E /* effect2.ogg in Resources */ = {isa = PBXBuildFile; fileRef = 1AC35CB718CED84500F37B72 /* effect2.ogg */; }; - 507B43A51C31FB670067B53E /* audio in Resources */ = {isa = PBXBuildFile; fileRef = 3E2BDAD119BEA3E20055CDCD /* audio */; }; - 507B43A61C31FB670067B53E /* CocosBuilderExample.ccbproj in Resources */ = {isa = PBXBuildFile; fileRef = 1AC35CAF18CED84500F37B72 /* CocosBuilderExample.ccbproj */; }; - 507B43A71C31FB670067B53E /* animations in Resources */ = {isa = PBXBuildFile; fileRef = 1AC35CA918CED84500F37B72 /* animations */; }; - 507B43A81C31FB670067B53E /* ccs-res in Resources */ = {isa = PBXBuildFile; fileRef = 1A221C9B191771E300FD2BE4 /* ccs-res */; }; - 507B43A91C31FB670067B53E /* Icon-72.png in Resources */ = {isa = PBXBuildFile; fileRef = 1AC35D9018CEE5D100F37B72 /* Icon-72.png */; }; - 507B43AA1C31FB670067B53E /* Icon-76.png in Resources */ = {isa = PBXBuildFile; fileRef = 1AC35D9118CEE5D100F37B72 /* Icon-76.png */; }; - 507B43AB1C31FB670067B53E /* effect1.raw in Resources */ = {isa = PBXBuildFile; fileRef = 1AC35CB518CED84500F37B72 /* effect1.raw */; }; - 507B43AC1C31FB670067B53E /* Shaders in Resources */ = {isa = PBXBuildFile; fileRef = 1AC35CC618CED84500F37B72 /* Shaders */; }; - 507B43AD1C31FB670067B53E /* configs in Resources */ = {isa = PBXBuildFile; fileRef = 1AC35CB418CED84500F37B72 /* configs */; }; - 507B43AE1C31FB670067B53E /* spine in Resources */ = {isa = PBXBuildFile; fileRef = 1AC35CC718CED84500F37B72 /* spine */; }; - 507B43AF1C31FB670067B53E /* TileMaps in Resources */ = {isa = PBXBuildFile; fileRef = 1AC35CC818CED84500F37B72 /* TileMaps */; }; - 507B43B01C31FB670067B53E /* Hello.png in Resources */ = {isa = PBXBuildFile; fileRef = 1AC35CBD18CED84500F37B72 /* Hello.png */; }; - 507B43B11C31FB670067B53E /* cocosbuilderRes in Resources */ = {isa = PBXBuildFile; fileRef = 1AC35D7818CEE59900F37B72 /* cocosbuilderRes */; }; - 507B43B21C31FB670067B53E /* Icon-114.png in Resources */ = {isa = PBXBuildFile; fileRef = 1AC35D8B18CEE5D100F37B72 /* Icon-114.png */; }; - 507B43B31C31FB670067B53E /* Icon-152.png in Resources */ = {isa = PBXBuildFile; fileRef = 1AC35D8E18CEE5D100F37B72 /* Icon-152.png */; }; - 507B43B41C31FB670067B53E /* background.mp3 in Resources */ = {isa = PBXBuildFile; fileRef = 1AC35CAC18CED84500F37B72 /* background.mp3 */; }; - 507B43B51C31FB670067B53E /* Default.png in Resources */ = {isa = PBXBuildFile; fileRef = 1AC35D8918CEE5D100F37B72 /* Default.png */; }; - 507B43BF1C31FB920067B53E /* libcocos2d tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 507B42111C31BEA70067B53E /* libcocos2d tvOS.a */; }; - 507B43C01C31FB920067B53E /* libluacocos2d tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 507B43571C31FB350067B53E /* libluacocos2d tvOS.a */; }; - 507B43C71C3201360067B53E /* ipadhd in Resources */ = {isa = PBXBuildFile; fileRef = 3E6177F21960FEFE00DE83F5 /* ipadhd */; }; - 507B43C81C3201360067B53E /* Icon-152.png in Resources */ = {isa = PBXBuildFile; fileRef = 3E6176E61960FA6300DE83F5 /* Icon-152.png */; }; - 507B43C91C3201360067B53E /* Icon-80.png in Resources */ = {isa = PBXBuildFile; fileRef = 3E6176EC1960FA6300DE83F5 /* Icon-80.png */; }; - 507B43CA1C3201360067B53E /* Default.png in Resources */ = {isa = PBXBuildFile; fileRef = 3E6176E01960FA6300DE83F5 /* Default.png */; }; - 507B43CB1C3201360067B53E /* iphone in Resources */ = {isa = PBXBuildFile; fileRef = 3E6177F31960FEFE00DE83F5 /* iphone */; }; - 507B43CC1C3201360067B53E /* Icon-57.png in Resources */ = {isa = PBXBuildFile; fileRef = 3E6176E81960FA6300DE83F5 /* Icon-57.png */; }; - 507B43CD1C3201360067B53E /* ipad in Resources */ = {isa = PBXBuildFile; fileRef = 3E6177F11960FEFE00DE83F5 /* ipad */; }; - 507B43CE1C3201360067B53E /* Default-736h@3x.png in Resources */ = {isa = PBXBuildFile; fileRef = 527B1F3B19EFACBB000A1F82 /* Default-736h@3x.png */; }; - 507B43CF1C3201360067B53E /* Default-667h@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 527B1F3A19EFACBB000A1F82 /* Default-667h@2x.png */; }; - 507B43D01C3201360067B53E /* Default-568h@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 3E6176DF1960FA6300DE83F5 /* Default-568h@2x.png */; }; - 507B43D11C3201360067B53E /* Default@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 3E6176E11960FA6300DE83F5 /* Default@2x.png */; }; - 507B43D21C3201360067B53E /* Icon-100.png in Resources */ = {isa = PBXBuildFile; fileRef = 3E6176E21960FA6300DE83F5 /* Icon-100.png */; }; - 507B43D31C3201360067B53E /* Icon-40.png in Resources */ = {isa = PBXBuildFile; fileRef = 3E6176E71960FA6300DE83F5 /* Icon-40.png */; }; - 507B43D41C3201360067B53E /* Icon-144.png in Resources */ = {isa = PBXBuildFile; fileRef = 3E6176E51960FA6300DE83F5 /* Icon-144.png */; }; - 507B43D51C3201360067B53E /* Icon-114.png in Resources */ = {isa = PBXBuildFile; fileRef = 3E6176E31960FA6300DE83F5 /* Icon-114.png */; }; - 507B43D61C3201360067B53E /* Icon-76.png in Resources */ = {isa = PBXBuildFile; fileRef = 3E6176EB1960FA6300DE83F5 /* Icon-76.png */; }; - 507B43D71C3201360067B53E /* Icon-120.png in Resources */ = {isa = PBXBuildFile; fileRef = 3E6176E41960FA6300DE83F5 /* Icon-120.png */; }; - 507B43D81C3201360067B53E /* Icon-72.png in Resources */ = {isa = PBXBuildFile; fileRef = 3E6176EA1960FA6300DE83F5 /* Icon-72.png */; }; - 507B43D91C3201360067B53E /* fonts in Resources */ = {isa = PBXBuildFile; fileRef = 3E6177F01960FEFE00DE83F5 /* fonts */; }; - 507B43DA1C3201360067B53E /* Icon-58.png in Resources */ = {isa = PBXBuildFile; fileRef = 3E6176E91960FA6300DE83F5 /* Icon-58.png */; }; - 507B43DC1C3201360067B53E /* AppController.mm in Sources */ = {isa = PBXBuildFile; fileRef = 3E6176DE1960FA6300DE83F5 /* AppController.mm */; }; - 507B43DD1C3201360067B53E /* RootViewController.mm in Sources */ = {isa = PBXBuildFile; fileRef = 3E6176F01960FA6300DE83F5 /* RootViewController.mm */; }; - 507B43DE1C3201360067B53E /* AppDelegate.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 3E6176B71960FA6300DE83F5 /* AppDelegate.cpp */; }; - 507B43DF1C3201360067B53E /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 3E6176EE1960FA6300DE83F5 /* main.m */; }; - 507B43E01C3201360067B53E /* GameControllerTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 3E6176BA1960FA6300DE83F5 /* GameControllerTest.cpp */; }; - 507B43E21C3201360067B53E /* GameController.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3E61773C1960FBD100DE83F5 /* GameController.framework */; }; - 507B43E41C3201360067B53E /* CoreMotion.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D60AE43317F7FFE100757E4B /* CoreMotion.framework */; }; - 507B43E51C3201360067B53E /* libiconv.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = ED545A721B68A1AC00C3958E /* libiconv.dylib */; }; - 507B43E61C3201360067B53E /* libz.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 15C6482E165F399D007D4F18 /* libz.dylib */; }; - 507B43E71C3201360067B53E /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 15C64832165F3AFD007D4F18 /* Foundation.framework */; }; - 507B43E81C3201360067B53E /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 15C6482C165F3988007D4F18 /* AudioToolbox.framework */; }; - 507B43E91C3201360067B53E /* OpenAL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 15C64828165F396B007D4F18 /* OpenAL.framework */; }; - 507B43EA1C3201360067B53E /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 15C64826165F394E007D4F18 /* QuartzCore.framework */; }; - 507B43EB1C3201360067B53E /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A07A52BB1783AEB80073F6A7 /* CoreGraphics.framework */; }; - 507B43EC1C3201360067B53E /* OpenGLES.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A07A52B91783AE900073F6A7 /* OpenGLES.framework */; }; - 507B43ED1C3201360067B53E /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A07A52B71783AE6D0073F6A7 /* UIKit.framework */; }; - 507B43EE1C3201360067B53E /* AVFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A07A52C11783B01F0073F6A7 /* AVFoundation.framework */; }; - 507B43F61C3201780067B53E /* libcocos2d tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 507B42111C31BEA70067B53E /* libcocos2d tvOS.a */; }; + 507E015C1C24E50300839198 /* main.js in Resources */ = {isa = PBXBuildFile; fileRef = 507E00B71C24E50300839198 /* main.js */; }; + 507E015D1C24E50300839198 /* AppDelegate.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 507E00BA1C24E50300839198 /* AppDelegate.cpp */; }; + 507E01971C24E50300839198 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 507E01161C24E50300839198 /* InfoPlist.strings */; }; + 507E01981C24E50300839198 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 507E01181C24E50300839198 /* MainMenu.xib */; }; + 507E01991C24E50300839198 /* Icon.icns in Resources */ = {isa = PBXBuildFile; fileRef = 507E011A1C24E50300839198 /* Icon.icns */; }; + 507E019A1C24E50300839198 /* main.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 507E011B1C24E50300839198 /* main.cpp */; }; + 507E01B91C24E50300839198 /* project.json in Resources */ = {isa = PBXBuildFile; fileRef = 507E01471C24E50300839198 /* project.json */; }; + 507E01CC1C24E51900839198 /* res in Resources */ = {isa = PBXBuildFile; fileRef = 507E01CA1C24E51900839198 /* res */; }; + 507E01CD1C24E51900839198 /* src in Resources */ = {isa = PBXBuildFile; fileRef = 507E01CB1C24E51900839198 /* src */; }; + 507E01CF1C24E52E00839198 /* script in Resources */ = {isa = PBXBuildFile; fileRef = 507E01CE1C24E52E00839198 /* script */; }; + 507EE8581C24C94600839198 /* libsqlite3.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = A035A71117822E9E00987F6C /* libsqlite3.dylib */; }; + 507EE8591C24C94600839198 /* AppKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1ABCA28918CD91510087CE3A /* AppKit.framework */; }; + 507EE85A1C24C94600839198 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 185664921B424694009EF2AE /* Cocoa.framework */; }; + 507EE85B1C24C94600839198 /* libcurl.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 1A9F808C177E98A600D9A1CB /* libcurl.dylib */; }; + 507EE85C1C24C94600839198 /* libjscocos2d Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 1856630E1B41511B009EF2AE /* libjscocos2d Mac.a */; }; + 507EE85D1C24C94600839198 /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 826294421AAF071500CB7CF7 /* Security.framework */; }; + 507EE85E1C24C94600839198 /* libiconv.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = ED545A6C1B68A18300C3958E /* libiconv.dylib */; }; + 507EE85F1C24C94600839198 /* libcocos2d Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 46A15FB01807A4F9005B8026 /* libcocos2d Mac.a */; }; + 507EE8601C24C94600839198 /* libz.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 1ABCA36018CD9AC00087CE3A /* libz.dylib */; }; + 507EE8611C24C94600839198 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = EDCC747E17C455FD007B692C /* IOKit.framework */; }; + 507EE8621C24C94600839198 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1ABCA28B18CD91510087CE3A /* Foundation.framework */; }; + 507EE8631C24C94600839198 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1ABCA35C18CD9A9E0087CE3A /* AudioToolbox.framework */; }; + 507EE8641C24C94600839198 /* ApplicationServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1ABCA35A18CD9A950087CE3A /* ApplicationServices.framework */; }; + 507EE8651C24C94600839198 /* OpenAL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1ABCA35818CD9A8F0087CE3A /* OpenAL.framework */; }; + 507EE8661C24C94600839198 /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1ABCA35618CD9A890087CE3A /* QuartzCore.framework */; }; + 507EE8671C24C94600839198 /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1ABCA35418CD9A820087CE3A /* OpenGL.framework */; }; 50921EAF1B746D5F00C085CC /* DownloaderTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 50921EAD1B746D5F00C085CC /* DownloaderTest.cpp */; }; 50921EB01B746D5F00C085CC /* DownloaderTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 50921EAD1B746D5F00C085CC /* DownloaderTest.cpp */; }; + 50AC0E761C2A3CAA0065A4C7 /* AppDelegate.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 507E00BA1C24E50300839198 /* AppDelegate.cpp */; }; + 50AC0E8A1C2A3CAA0065A4C7 /* script in Resources */ = {isa = PBXBuildFile; fileRef = 507E01CE1C24E52E00839198 /* script */; }; + 50AC0E8B1C2A3CAA0065A4C7 /* project.json in Resources */ = {isa = PBXBuildFile; fileRef = 507E01471C24E50300839198 /* project.json */; }; + 50AC0E8E1C2A3CAA0065A4C7 /* src in Resources */ = {isa = PBXBuildFile; fileRef = 507E01CB1C24E51900839198 /* src */; }; + 50AC0E8F1C2A3CAA0065A4C7 /* res in Resources */ = {isa = PBXBuildFile; fileRef = 507E01CA1C24E51900839198 /* res */; }; + 50AC0E901C2A3CAA0065A4C7 /* main.js in Resources */ = {isa = PBXBuildFile; fileRef = 507E00B71C24E50300839198 /* main.js */; }; + 50AC0E961C2A3EE90065A4C7 /* libcocos2d iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 46A15FBE1807A4F9005B8026 /* libcocos2d iOS.a */; }; + 50AC0E971C2A3EE90065A4C7 /* libjscocos2d iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 185663101B41511B009EF2AE /* libjscocos2d iOS.a */; }; + 50AC0E9A1C2A3EE90065A4C7 /* AVFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 50AC0E981C2A3EE90065A4C7 /* AVFoundation.framework */; }; + 50AC0E9B1C2A3EE90065A4C7 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 50AC0E991C2A3EE90065A4C7 /* UIKit.framework */; }; + 50AC0E9D1C2A3EFD0065A4C7 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 50AC0E9C1C2A3EFD0065A4C7 /* Foundation.framework */; }; + 50AC0E9F1C2A3F070065A4C7 /* OpenGLES.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 50AC0E9E1C2A3F070065A4C7 /* OpenGLES.framework */; }; + 50AC0EA11C2A3F190065A4C7 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 50AC0EA01C2A3F190065A4C7 /* AudioToolbox.framework */; }; + 50AC0EA31C2A3F2A0065A4C7 /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 50AC0EA21C2A3F2A0065A4C7 /* Security.framework */; }; + 50AC0EA51C2A3F350065A4C7 /* MediaPlayer.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 50AC0EA41C2A3F350065A4C7 /* MediaPlayer.framework */; }; + 50AC0EA71C2A3F450065A4C7 /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 50AC0EA61C2A3F450065A4C7 /* QuartzCore.framework */; }; + 50AC0EBD1C2A3FCC0065A4C7 /* AppController.mm in Sources */ = {isa = PBXBuildFile; fileRef = 50AC0EAB1C2A3FCC0065A4C7 /* AppController.mm */; }; + 50AC0EBE1C2A3FCC0065A4C7 /* Default-568h@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 50AC0EAC1C2A3FCC0065A4C7 /* Default-568h@2x.png */; }; + 50AC0EBF1C2A3FCC0065A4C7 /* Default.png in Resources */ = {isa = PBXBuildFile; fileRef = 50AC0EAD1C2A3FCC0065A4C7 /* Default.png */; }; + 50AC0EC01C2A3FCC0065A4C7 /* Default@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 50AC0EAE1C2A3FCC0065A4C7 /* Default@2x.png */; }; + 50AC0EC11C2A3FCC0065A4C7 /* Icon-114.png in Resources */ = {isa = PBXBuildFile; fileRef = 50AC0EAF1C2A3FCC0065A4C7 /* Icon-114.png */; }; + 50AC0EC21C2A3FCC0065A4C7 /* Icon-120.png in Resources */ = {isa = PBXBuildFile; fileRef = 50AC0EB01C2A3FCC0065A4C7 /* Icon-120.png */; }; + 50AC0EC31C2A3FCC0065A4C7 /* Icon-144.png in Resources */ = {isa = PBXBuildFile; fileRef = 50AC0EB11C2A3FCC0065A4C7 /* Icon-144.png */; }; + 50AC0EC41C2A3FCC0065A4C7 /* Icon-152.png in Resources */ = {isa = PBXBuildFile; fileRef = 50AC0EB21C2A3FCC0065A4C7 /* Icon-152.png */; }; + 50AC0EC51C2A3FCC0065A4C7 /* Icon-57.png in Resources */ = {isa = PBXBuildFile; fileRef = 50AC0EB31C2A3FCC0065A4C7 /* Icon-57.png */; }; + 50AC0EC61C2A3FCC0065A4C7 /* Icon-72.png in Resources */ = {isa = PBXBuildFile; fileRef = 50AC0EB41C2A3FCC0065A4C7 /* Icon-72.png */; }; + 50AC0EC71C2A3FCC0065A4C7 /* Icon-76.png in Resources */ = {isa = PBXBuildFile; fileRef = 50AC0EB51C2A3FCC0065A4C7 /* Icon-76.png */; }; + 50AC0EC91C2A3FCC0065A4C7 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 50AC0EB71C2A3FCC0065A4C7 /* main.m */; }; + 50AC0ECA1C2A3FCC0065A4C7 /* NativeOcClass.m in Sources */ = {isa = PBXBuildFile; fileRef = 50AC0EB91C2A3FCC0065A4C7 /* NativeOcClass.m */; }; + 50AC0ECB1C2A3FCC0065A4C7 /* RootViewController.mm in Sources */ = {isa = PBXBuildFile; fileRef = 50AC0EBC1C2A3FCC0065A4C7 /* RootViewController.mm */; }; + 50AC0ECD1C2A435C0065A4C7 /* libsqlite3.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = 50AC0ECC1C2A435C0065A4C7 /* libsqlite3.tbd */; }; + 50AC0ECF1C2A436E0065A4C7 /* libz.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = 50AC0ECE1C2A436E0065A4C7 /* libz.tbd */; }; + 50AC0ED11C2A437B0065A4C7 /* libiconv.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = 50AC0ED01C2A437B0065A4C7 /* libiconv.tbd */; }; + 50AC0ED31C2A44280065A4C7 /* OpenAL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 50AC0ED21C2A44280065A4C7 /* OpenAL.framework */; }; + 50AC0ED51C2A44790065A4C7 /* CoreMotion.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 50AC0ED41C2A44790065A4C7 /* CoreMotion.framework */; }; + 50AC0ED71C2A449F0065A4C7 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 50AC0ED61C2A449F0065A4C7 /* CoreGraphics.framework */; }; 527B1F3019EF9819000A1F82 /* Default-667h@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 527B1F2E19EF9819000A1F82 /* Default-667h@2x.png */; }; 527B1F3119EF9819000A1F82 /* Default-736h@3x.png in Resources */ = {isa = PBXBuildFile; fileRef = 527B1F2F19EF9819000A1F82 /* Default-736h@3x.png */; }; 527B1F3419EF9CF8000A1F82 /* Default-667h@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 527B1F3219EF9CF8000A1F82 /* Default-667h@2x.png */; }; @@ -1681,96 +1318,33 @@ remoteGlobalIDString = A07A4D641783777C0073F6A7; remoteInfo = "cocos2dx iOS"; }; - 507B42101C31BEA70067B53E /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 46A15F9C1807A4F8005B8026 /* cocos2d_libs.xcodeproj */; - proxyType = 2; - remoteGlobalIDString = 507B40FD1C31BDD30067B53E; - remoteInfo = "libcocos2d tvOS"; - }; - 507B42B31C31E6080067B53E /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 185663081B41511B009EF2AE /* cocos2d_js_bindings.xcodeproj */; - proxyType = 2; - remoteGlobalIDString = 507B427D1C31DCC60067B53E; - remoteInfo = "libjscocos2d tvOS"; - }; - 507B42B51C31E6210067B53E /* PBXContainerItemProxy */ = { + 507EE84D1C24C94600839198 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 185663081B41511B009EF2AE /* cocos2d_js_bindings.xcodeproj */; proxyType = 1; - remoteGlobalIDString = 507B42131C31DCC60067B53E; - remoteInfo = "libjscocos2d tvOS"; + remoteGlobalIDString = A03F31E81781479B006731B9; + remoteInfo = "libjscocos2d Mac"; }; - 507B42B71C31E6210067B53E /* PBXContainerItemProxy */ = { + 507EE84F1C24C94600839198 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 46A15F9C1807A4F8005B8026 /* cocos2d_libs.xcodeproj */; proxyType = 1; - remoteGlobalIDString = 507B39BF1C31BDD30067B53E; - remoteInfo = "libcocos2d tvOS"; + remoteGlobalIDString = 1551A33E158F2AB200E66CFE; + remoteInfo = "cocos2dx Mac"; }; - 507B43561C31FB350067B53E /* PBXContainerItemProxy */ = { + 50AC0E701C2A3CAA0065A4C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = 1ABCA27618CD90A40087CE3A /* cocos2d_lua_bindings.xcodeproj */; - proxyType = 2; - remoteGlobalIDString = 507B43531C31FA0C0067B53E; - remoteInfo = "libluacocos2d tvOS"; - }; - 507B435B1C31FB510067B53E /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 29B97313FDCFA39411CA2CEA /* Project object */; + containerPortal = 185663081B41511B009EF2AE /* cocos2d_js_bindings.xcodeproj */; proxyType = 1; - remoteGlobalIDString = 507B40FE1C31BEA60067B53E; - remoteInfo = "cpp-tests tvOS"; + remoteGlobalIDString = A03F31E81781479B006731B9; + remoteInfo = "libjscocos2d Mac"; }; - 507B435D1C31FB510067B53E /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 29B97313FDCFA39411CA2CEA /* Project object */; - proxyType = 1; - remoteGlobalIDString = 507B427E1C31E6070067B53E; - remoteInfo = "js-tests tvOS"; - }; - 507B435F1C31FB5E0067B53E /* PBXContainerItemProxy */ = { + 50AC0E721C2A3CAA0065A4C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 46A15F9C1807A4F8005B8026 /* cocos2d_libs.xcodeproj */; proxyType = 1; - remoteGlobalIDString = 507B39BF1C31BDD30067B53E; - remoteInfo = "libcocos2d tvOS"; - }; - 507B43BB1C31FB850067B53E /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 46A15F9C1807A4F8005B8026 /* cocos2d_libs.xcodeproj */; - proxyType = 1; - remoteGlobalIDString = 507B39BF1C31BDD30067B53E; - remoteInfo = "libcocos2d tvOS"; - }; - 507B43BD1C31FB850067B53E /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 1ABCA27618CD90A40087CE3A /* cocos2d_lua_bindings.xcodeproj */; - proxyType = 1; - remoteGlobalIDString = 507B42BB1C31FA0C0067B53E; - remoteInfo = "libluacocos2d tvOS"; - }; - 507B43C11C31FC160067B53E /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 29B97313FDCFA39411CA2CEA /* Project object */; - proxyType = 1; - remoteGlobalIDString = 507B43611C31FB670067B53E; - remoteInfo = "lua-tests tvOS"; - }; - 507B43F41C3201580067B53E /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 29B97313FDCFA39411CA2CEA /* Project object */; - proxyType = 1; - remoteGlobalIDString = 507B43C31C3201360067B53E; - remoteInfo = "game-controller-test tvOS"; - }; - 507B43F71C3202300067B53E /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 46A15F9C1807A4F8005B8026 /* cocos2d_libs.xcodeproj */; - proxyType = 1; - remoteGlobalIDString = 507B39BF1C31BDD30067B53E; - remoteInfo = "libcocos2d tvOS"; + remoteGlobalIDString = 1551A33E158F2AB200E66CFE; + remoteInfo = "cocos2dx Mac"; }; A035ACBF178246BD00987F6C /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; @@ -2516,12 +2090,56 @@ 5046AB481AF2A8D80060550B /* MaterialSystemTest.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = MaterialSystemTest.cpp; sourceTree = ""; }; 5046AB491AF2A8D80060550B /* MaterialSystemTest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MaterialSystemTest.h; sourceTree = ""; }; 5046AB5A1AF2C4180060550B /* Materials */ = {isa = PBXFileReference; lastKnownFileType = folder; name = Materials; path = "../tests/cpp-tests/Resources/Materials"; sourceTree = ""; }; - 507B420D1C31BEA60067B53E /* cpp-tests tvOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "cpp-tests tvOS.app"; sourceTree = BUILT_PRODUCTS_DIR; }; - 507B42B01C31E6070067B53E /* js-tests tvOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "js-tests tvOS.app"; sourceTree = BUILT_PRODUCTS_DIR; }; - 507B43B91C31FB670067B53E /* lua-tests tvOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "lua-tests tvOS.app"; sourceTree = BUILT_PRODUCTS_DIR; }; - 507B43F21C3201360067B53E /* game-controller-test tvOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "game-controller-test tvOS.app"; sourceTree = BUILT_PRODUCTS_DIR; }; + 507E00B71C24E50300839198 /* main.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; path = main.js; sourceTree = ""; }; + 507E00BA1C24E50300839198 /* AppDelegate.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = AppDelegate.cpp; sourceTree = ""; }; + 507E00BB1C24E50300839198 /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; + 507E01171C24E50300839198 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; + 507E01191C24E50300839198 /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = en.lproj/MainMenu.xib; sourceTree = ""; }; + 507E011A1C24E50300839198 /* Icon.icns */ = {isa = PBXFileReference; lastKnownFileType = image.icns; path = Icon.icns; sourceTree = ""; }; + 507E011B1C24E50300839198 /* main.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = main.cpp; sourceTree = ""; }; + 507E011C1C24E50300839198 /* Test_Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Test_Info.plist; sourceTree = ""; }; + 507E011D1C24E50300839198 /* Test_Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Test_Prefix.pch; sourceTree = ""; }; + 507E01471C24E50300839198 /* project.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = project.json; sourceTree = ""; }; + 507E01CA1C24E51900839198 /* res */ = {isa = PBXFileReference; lastKnownFileType = folder; path = res; sourceTree = ""; }; + 507E01CB1C24E51900839198 /* src */ = {isa = PBXFileReference; lastKnownFileType = folder; path = src; sourceTree = ""; }; + 507E01CE1C24E52E00839198 /* script */ = {isa = PBXFileReference; lastKnownFileType = folder; name = script; path = "../../cocos/scripting/js-bindings/script"; sourceTree = ""; }; + 507EE8741C24C94600839198 /* js-tests-memory-gc Mac.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "js-tests-memory-gc Mac.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 50921EAD1B746D5F00C085CC /* DownloaderTest.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = DownloaderTest.cpp; sourceTree = ""; }; 50921EAE1B746D5F00C085CC /* DownloaderTest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DownloaderTest.h; sourceTree = ""; }; + 50AC0E941C2A3CAA0065A4C7 /* js-tests-memory-gc iOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "js-tests-memory-gc iOS.app"; sourceTree = BUILT_PRODUCTS_DIR; }; + 50AC0E981C2A3EE90065A4C7 /* AVFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AVFoundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk/System/Library/Frameworks/AVFoundation.framework; sourceTree = DEVELOPER_DIR; }; + 50AC0E991C2A3EE90065A4C7 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk/System/Library/Frameworks/UIKit.framework; sourceTree = DEVELOPER_DIR; }; + 50AC0E9C1C2A3EFD0065A4C7 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; + 50AC0E9E1C2A3F070065A4C7 /* OpenGLES.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = OpenGLES.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk/System/Library/Frameworks/OpenGLES.framework; sourceTree = DEVELOPER_DIR; }; + 50AC0EA01C2A3F190065A4C7 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AudioToolbox.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk/System/Library/Frameworks/AudioToolbox.framework; sourceTree = DEVELOPER_DIR; }; + 50AC0EA21C2A3F2A0065A4C7 /* Security.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Security.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk/System/Library/Frameworks/Security.framework; sourceTree = DEVELOPER_DIR; }; + 50AC0EA41C2A3F350065A4C7 /* MediaPlayer.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = MediaPlayer.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk/System/Library/Frameworks/MediaPlayer.framework; sourceTree = DEVELOPER_DIR; }; + 50AC0EA61C2A3F450065A4C7 /* QuartzCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuartzCore.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk/System/Library/Frameworks/QuartzCore.framework; sourceTree = DEVELOPER_DIR; }; + 50AC0EAA1C2A3FCC0065A4C7 /* AppController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppController.h; sourceTree = ""; }; + 50AC0EAB1C2A3FCC0065A4C7 /* AppController.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = AppController.mm; sourceTree = ""; }; + 50AC0EAC1C2A3FCC0065A4C7 /* Default-568h@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default-568h@2x.png"; sourceTree = ""; }; + 50AC0EAD1C2A3FCC0065A4C7 /* Default.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Default.png; sourceTree = ""; }; + 50AC0EAE1C2A3FCC0065A4C7 /* Default@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default@2x.png"; sourceTree = ""; }; + 50AC0EAF1C2A3FCC0065A4C7 /* Icon-114.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Icon-114.png"; sourceTree = ""; }; + 50AC0EB01C2A3FCC0065A4C7 /* Icon-120.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Icon-120.png"; sourceTree = ""; }; + 50AC0EB11C2A3FCC0065A4C7 /* Icon-144.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Icon-144.png"; sourceTree = ""; }; + 50AC0EB21C2A3FCC0065A4C7 /* Icon-152.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Icon-152.png"; sourceTree = ""; }; + 50AC0EB31C2A3FCC0065A4C7 /* Icon-57.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Icon-57.png"; sourceTree = ""; }; + 50AC0EB41C2A3FCC0065A4C7 /* Icon-72.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Icon-72.png"; sourceTree = ""; }; + 50AC0EB51C2A3FCC0065A4C7 /* Icon-76.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Icon-76.png"; sourceTree = ""; }; + 50AC0EB61C2A3FCC0065A4C7 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 50AC0EB71C2A3FCC0065A4C7 /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; + 50AC0EB81C2A3FCC0065A4C7 /* NativeOcClass.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NativeOcClass.h; sourceTree = ""; }; + 50AC0EB91C2A3FCC0065A4C7 /* NativeOcClass.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = NativeOcClass.m; sourceTree = ""; }; + 50AC0EBA1C2A3FCC0065A4C7 /* Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Prefix.pch; sourceTree = ""; }; + 50AC0EBB1C2A3FCC0065A4C7 /* RootViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RootViewController.h; sourceTree = ""; }; + 50AC0EBC1C2A3FCC0065A4C7 /* RootViewController.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = RootViewController.mm; sourceTree = ""; }; + 50AC0ECC1C2A435C0065A4C7 /* libsqlite3.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = libsqlite3.tbd; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk/usr/lib/libsqlite3.tbd; sourceTree = DEVELOPER_DIR; }; + 50AC0ECE1C2A436E0065A4C7 /* libz.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = libz.tbd; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk/usr/lib/libz.tbd; sourceTree = DEVELOPER_DIR; }; + 50AC0ED01C2A437B0065A4C7 /* libiconv.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = libiconv.tbd; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk/usr/lib/libiconv.tbd; sourceTree = DEVELOPER_DIR; }; + 50AC0ED21C2A44280065A4C7 /* OpenAL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = OpenAL.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk/System/Library/Frameworks/OpenAL.framework; sourceTree = DEVELOPER_DIR; }; + 50AC0ED41C2A44790065A4C7 /* CoreMotion.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreMotion.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk/System/Library/Frameworks/CoreMotion.framework; sourceTree = DEVELOPER_DIR; }; + 50AC0ED61C2A449F0065A4C7 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk/System/Library/Frameworks/CoreGraphics.framework; sourceTree = DEVELOPER_DIR; }; 527B1F2E19EF9819000A1F82 /* Default-667h@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default-667h@2x.png"; sourceTree = ""; }; 527B1F2F19EF9819000A1F82 /* Default-736h@3x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default-736h@3x.png"; sourceTree = ""; }; 527B1F3219EF9CF8000A1F82 /* Default-667h@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default-667h@2x.png"; sourceTree = ""; }; @@ -2892,89 +2510,49 @@ ); runOnlyForDeploymentPostprocessing = 0; }; - 507B41FB1C31BEA60067B53E /* Frameworks */ = { + 507EE8571C24C94600839198 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - 507B42121C31C1710067B53E /* libcocos2d tvOS.a in Frameworks */, - 507B41FC1C31BEA60067B53E /* libiconv.dylib in Frameworks */, - 507B41FD1C31BEA60067B53E /* Security.framework in Frameworks */, - 507B41FE1C31BEA60067B53E /* MediaPlayer.framework in Frameworks */, - 507B42001C31BEA60067B53E /* CoreMotion.framework in Frameworks */, - 507B42011C31BEA60067B53E /* libz.dylib in Frameworks */, - 507B42021C31BEA60067B53E /* Foundation.framework in Frameworks */, - 507B42031C31BEA60067B53E /* AudioToolbox.framework in Frameworks */, - 507B42041C31BEA60067B53E /* OpenAL.framework in Frameworks */, - 507B42051C31BEA60067B53E /* QuartzCore.framework in Frameworks */, - 507B42061C31BEA60067B53E /* CoreGraphics.framework in Frameworks */, - 507B42071C31BEA60067B53E /* OpenGLES.framework in Frameworks */, - 507B42081C31BEA60067B53E /* UIKit.framework in Frameworks */, - 507B42091C31BEA60067B53E /* AVFoundation.framework in Frameworks */, + 507EE8581C24C94600839198 /* libsqlite3.dylib in Frameworks */, + 507EE8591C24C94600839198 /* AppKit.framework in Frameworks */, + 507EE85A1C24C94600839198 /* Cocoa.framework in Frameworks */, + 507EE85B1C24C94600839198 /* libcurl.dylib in Frameworks */, + 507EE85C1C24C94600839198 /* libjscocos2d Mac.a in Frameworks */, + 507EE85D1C24C94600839198 /* Security.framework in Frameworks */, + 507EE85E1C24C94600839198 /* libiconv.dylib in Frameworks */, + 507EE85F1C24C94600839198 /* libcocos2d Mac.a in Frameworks */, + 507EE8601C24C94600839198 /* libz.dylib in Frameworks */, + 507EE8611C24C94600839198 /* IOKit.framework in Frameworks */, + 507EE8621C24C94600839198 /* Foundation.framework in Frameworks */, + 507EE8631C24C94600839198 /* AudioToolbox.framework in Frameworks */, + 507EE8641C24C94600839198 /* ApplicationServices.framework in Frameworks */, + 507EE8651C24C94600839198 /* OpenAL.framework in Frameworks */, + 507EE8661C24C94600839198 /* QuartzCore.framework in Frameworks */, + 507EE8671C24C94600839198 /* OpenGL.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; - 507B428C1C31E6070067B53E /* Frameworks */ = { + 50AC0E771C2A3CAA0065A4C7 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - 507B42B91C31EC6A0067B53E /* libcocos2d tvOS.a in Frameworks */, - 507B42BA1C31EC6A0067B53E /* libjscocos2d tvOS.a in Frameworks */, - 507B428D1C31E6070067B53E /* libsqlite3.dylib in Frameworks */, - 507B428F1C31E6070067B53E /* Security.framework in Frameworks */, - 507B42911C31E6070067B53E /* MediaPlayer.framework in Frameworks */, - 507B42921C31E6070067B53E /* libz.dylib in Frameworks */, - 507B42931C31E6070067B53E /* libiconv.dylib in Frameworks */, - 507B42941C31E6070067B53E /* CoreMotion.framework in Frameworks */, - 507B42951C31E6070067B53E /* AudioToolbox.framework in Frameworks */, - 507B42961C31E6070067B53E /* OpenAL.framework in Frameworks */, - 507B42971C31E6070067B53E /* QuartzCore.framework in Frameworks */, - 507B42981C31E6070067B53E /* CoreGraphics.framework in Frameworks */, - 507B42991C31E6070067B53E /* OpenGLES.framework in Frameworks */, - 507B429A1C31E6070067B53E /* UIKit.framework in Frameworks */, - 507B429B1C31E6070067B53E /* AVFoundation.framework in Frameworks */, - 507B429C1C31E6070067B53E /* Foundation.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 507B436F1C31FB670067B53E /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 507B43BF1C31FB920067B53E /* libcocos2d tvOS.a in Frameworks */, - 507B43C01C31FB920067B53E /* libluacocos2d tvOS.a in Frameworks */, - 507B43701C31FB670067B53E /* Security.framework in Frameworks */, - 507B43731C31FB670067B53E /* MediaPlayer.framework in Frameworks */, - 507B43741C31FB670067B53E /* libz.dylib in Frameworks */, - 507B43751C31FB670067B53E /* CoreMotion.framework in Frameworks */, - 507B43761C31FB670067B53E /* AudioToolbox.framework in Frameworks */, - 507B43771C31FB670067B53E /* OpenAL.framework in Frameworks */, - 507B43781C31FB670067B53E /* QuartzCore.framework in Frameworks */, - 507B43791C31FB670067B53E /* libiconv.dylib in Frameworks */, - 507B437A1C31FB670067B53E /* CoreGraphics.framework in Frameworks */, - 507B437B1C31FB670067B53E /* OpenGLES.framework in Frameworks */, - 507B437C1C31FB670067B53E /* UIKit.framework in Frameworks */, - 507B437D1C31FB670067B53E /* AVFoundation.framework in Frameworks */, - 507B437E1C31FB670067B53E /* Foundation.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 507B43E11C3201360067B53E /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 507B43F61C3201780067B53E /* libcocos2d tvOS.a in Frameworks */, - 507B43E21C3201360067B53E /* GameController.framework in Frameworks */, - 507B43E41C3201360067B53E /* CoreMotion.framework in Frameworks */, - 507B43E51C3201360067B53E /* libiconv.dylib in Frameworks */, - 507B43E61C3201360067B53E /* libz.dylib in Frameworks */, - 507B43E71C3201360067B53E /* Foundation.framework in Frameworks */, - 507B43E81C3201360067B53E /* AudioToolbox.framework in Frameworks */, - 507B43E91C3201360067B53E /* OpenAL.framework in Frameworks */, - 507B43EA1C3201360067B53E /* QuartzCore.framework in Frameworks */, - 507B43EB1C3201360067B53E /* CoreGraphics.framework in Frameworks */, - 507B43EC1C3201360067B53E /* OpenGLES.framework in Frameworks */, - 507B43ED1C3201360067B53E /* UIKit.framework in Frameworks */, - 507B43EE1C3201360067B53E /* AVFoundation.framework in Frameworks */, + 50AC0ED71C2A449F0065A4C7 /* CoreGraphics.framework in Frameworks */, + 50AC0ED51C2A44790065A4C7 /* CoreMotion.framework in Frameworks */, + 50AC0ED31C2A44280065A4C7 /* OpenAL.framework in Frameworks */, + 50AC0ED11C2A437B0065A4C7 /* libiconv.tbd in Frameworks */, + 50AC0ECF1C2A436E0065A4C7 /* libz.tbd in Frameworks */, + 50AC0ECD1C2A435C0065A4C7 /* libsqlite3.tbd in Frameworks */, + 50AC0E9B1C2A3EE90065A4C7 /* UIKit.framework in Frameworks */, + 50AC0EA71C2A3F450065A4C7 /* QuartzCore.framework in Frameworks */, + 50AC0EA51C2A3F350065A4C7 /* MediaPlayer.framework in Frameworks */, + 50AC0EA31C2A3F2A0065A4C7 /* Security.framework in Frameworks */, + 50AC0EA11C2A3F190065A4C7 /* AudioToolbox.framework in Frameworks */, + 50AC0E9F1C2A3F070065A4C7 /* OpenGLES.framework in Frameworks */, + 50AC0E9D1C2A3EFD0065A4C7 /* Foundation.framework in Frameworks */, + 50AC0E9A1C2A3EE90065A4C7 /* AVFoundation.framework in Frameworks */, + 50AC0E961C2A3EE90065A4C7 /* libcocos2d iOS.a in Frameworks */, + 50AC0E971C2A3EE90065A4C7 /* libjscocos2d iOS.a in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -3132,7 +2710,6 @@ children = ( 1856630E1B41511B009EF2AE /* libjscocos2d Mac.a */, 185663101B41511B009EF2AE /* libjscocos2d iOS.a */, - 507B42B41C31E6080067B53E /* libjscocos2d tvOS.a */, ); name = Products; sourceTree = ""; @@ -3140,12 +2717,12 @@ 185663411B41553A009EF2AE /* js-tests */ = { isa = PBXGroup; children = ( - 185664541B42364E009EF2AE /* script */, 185664001B422F45009EF2AE /* project */, + 185663F41B422EA7009EF2AE /* res */, + 185664541B42364E009EF2AE /* script */, 185663FD1B422EF0009EF2AE /* src */, 185663FA1B422EE0009EF2AE /* project.json */, 185663F71B422ED6009EF2AE /* main.js */, - 185663F41B422EA7009EF2AE /* res */, ); name = "js-tests"; sourceTree = ""; @@ -3232,10 +2809,8 @@ 185663ED1B4155DD009EF2AE /* js-tests iOS.app */, FA94B0B41B8EF69A0074B261 /* performance-tests iOS.app */, FA94B1C71B8EF76D0074B261 /* performance-tests Mac.app */, - 507B420D1C31BEA60067B53E /* cpp-tests tvOS.app */, - 507B42B01C31E6070067B53E /* js-tests tvOS.app */, - 507B43B91C31FB670067B53E /* lua-tests tvOS.app */, - 507B43F21C3201360067B53E /* game-controller-test tvOS.app */, + 507EE8741C24C94600839198 /* js-tests-memory-gc Mac.app */, + 50AC0E941C2A3CAA0065A4C7 /* js-tests-memory-gc iOS.app */, ); name = Products; sourceTree = ""; @@ -3245,7 +2820,6 @@ children = ( 15EFA258198A4A24000C57D3 /* libluacocos2d Mac.a */, 15EFA665198B33EE000C57D3 /* libluacocos2d iOS.a */, - 507B43571C31FB350067B53E /* libluacocos2d tvOS.a */, ); name = Products; sourceTree = ""; @@ -4579,6 +4153,7 @@ 1AC35E0318CEE78300F37B72 /* tests */ = { isa = PBXGroup; children = ( + 507E00B51C24E50200839198 /* js-memory-gc-tests */, 185663411B41553A009EF2AE /* js-tests */, 15CBA087196EE66D005877BB /* lua-game-controller-test */, 3E6176B51960FA6300DE83F5 /* game-controller-test */, @@ -4871,6 +4446,20 @@ 29B97323FDCFA39411CA2CEA /* Frameworks */ = { isa = PBXGroup; children = ( + 50AC0ED61C2A449F0065A4C7 /* CoreGraphics.framework */, + 50AC0ED41C2A44790065A4C7 /* CoreMotion.framework */, + 50AC0ED21C2A44280065A4C7 /* OpenAL.framework */, + 50AC0ED01C2A437B0065A4C7 /* libiconv.tbd */, + 50AC0ECE1C2A436E0065A4C7 /* libz.tbd */, + 50AC0ECC1C2A435C0065A4C7 /* libsqlite3.tbd */, + 50AC0EA61C2A3F450065A4C7 /* QuartzCore.framework */, + 50AC0EA41C2A3F350065A4C7 /* MediaPlayer.framework */, + 50AC0EA21C2A3F2A0065A4C7 /* Security.framework */, + 50AC0EA01C2A3F190065A4C7 /* AudioToolbox.framework */, + 50AC0E9E1C2A3F070065A4C7 /* OpenGLES.framework */, + 50AC0E9C1C2A3EFD0065A4C7 /* Foundation.framework */, + 50AC0E981C2A3EE90065A4C7 /* AVFoundation.framework */, + 50AC0E991C2A3EE90065A4C7 /* UIKit.framework */, ED545A721B68A1AC00C3958E /* libiconv.dylib */, ED545A6C1B68A18300C3958E /* libiconv.dylib */, 18FC4D5E1B4257CD00B76F95 /* libsqlite3.dylib */, @@ -5110,7 +4699,6 @@ children = ( 46A15FB01807A4F9005B8026 /* libcocos2d Mac.a */, 46A15FBE1807A4F9005B8026 /* libcocos2d iOS.a */, - 507B42111C31BEA70067B53E /* libcocos2d tvOS.a */, ); name = Products; sourceTree = ""; @@ -5124,6 +4712,52 @@ path = MaterialSystemTest; sourceTree = ""; }; + 507E00B51C24E50200839198 /* js-memory-gc-tests */ = { + isa = PBXGroup; + children = ( + 507E01CE1C24E52E00839198 /* script */, + 507E01CA1C24E51900839198 /* res */, + 507E01CB1C24E51900839198 /* src */, + 507E00B71C24E50300839198 /* main.js */, + 507E00B81C24E50300839198 /* project */, + 507E01471C24E50300839198 /* project.json */, + ); + name = "js-memory-gc-tests"; + path = "../tests/js-memory-gc-tests"; + sourceTree = ""; + }; + 507E00B81C24E50300839198 /* project */ = { + isa = PBXGroup; + children = ( + 50AC0EA91C2A3FCC0065A4C7 /* proj.ios */, + 507E00B91C24E50300839198 /* Classes */, + 507E01151C24E50300839198 /* proj.mac */, + ); + path = project; + sourceTree = ""; + }; + 507E00B91C24E50300839198 /* Classes */ = { + isa = PBXGroup; + children = ( + 507E00BA1C24E50300839198 /* AppDelegate.cpp */, + 507E00BB1C24E50300839198 /* AppDelegate.h */, + ); + path = Classes; + sourceTree = ""; + }; + 507E01151C24E50300839198 /* proj.mac */ = { + isa = PBXGroup; + children = ( + 507E01161C24E50300839198 /* InfoPlist.strings */, + 507E01181C24E50300839198 /* MainMenu.xib */, + 507E011A1C24E50300839198 /* Icon.icns */, + 507E011B1C24E50300839198 /* main.cpp */, + 507E011C1C24E50300839198 /* Test_Info.plist */, + 507E011D1C24E50300839198 /* Test_Prefix.pch */, + ); + path = proj.mac; + sourceTree = ""; + }; 50921EAC1B746D5F00C085CC /* DownloaderTest */ = { isa = PBXGroup; children = ( @@ -5133,6 +4767,32 @@ path = DownloaderTest; sourceTree = ""; }; + 50AC0EA91C2A3FCC0065A4C7 /* proj.ios */ = { + isa = PBXGroup; + children = ( + 50AC0EAA1C2A3FCC0065A4C7 /* AppController.h */, + 50AC0EAB1C2A3FCC0065A4C7 /* AppController.mm */, + 50AC0EAC1C2A3FCC0065A4C7 /* Default-568h@2x.png */, + 50AC0EAD1C2A3FCC0065A4C7 /* Default.png */, + 50AC0EAE1C2A3FCC0065A4C7 /* Default@2x.png */, + 50AC0EAF1C2A3FCC0065A4C7 /* Icon-114.png */, + 50AC0EB01C2A3FCC0065A4C7 /* Icon-120.png */, + 50AC0EB11C2A3FCC0065A4C7 /* Icon-144.png */, + 50AC0EB21C2A3FCC0065A4C7 /* Icon-152.png */, + 50AC0EB31C2A3FCC0065A4C7 /* Icon-57.png */, + 50AC0EB41C2A3FCC0065A4C7 /* Icon-72.png */, + 50AC0EB51C2A3FCC0065A4C7 /* Icon-76.png */, + 50AC0EB61C2A3FCC0065A4C7 /* Info.plist */, + 50AC0EB71C2A3FCC0065A4C7 /* main.m */, + 50AC0EB81C2A3FCC0065A4C7 /* NativeOcClass.h */, + 50AC0EB91C2A3FCC0065A4C7 /* NativeOcClass.m */, + 50AC0EBA1C2A3FCC0065A4C7 /* Prefix.pch */, + 50AC0EBB1C2A3FCC0065A4C7 /* RootViewController.h */, + 50AC0EBC1C2A3FCC0065A4C7 /* RootViewController.mm */, + ); + path = proj.ios; + sourceTree = ""; + }; 6886696E1AE8E8A000C2CFD9 /* SpritePolygonTest */ = { isa = PBXGroup; children = ( @@ -5573,81 +5233,44 @@ productReference = 3E6177311960FAED00DE83F5 /* game-controller-test IOS.app */; productType = "com.apple.product-type.application"; }; - 507B40FE1C31BEA60067B53E /* cpp-tests tvOS */ = { + 507EE84B1C24C94600839198 /* js-tests-memory-gc Mac */ = { isa = PBXNativeTarget; - buildConfigurationList = 507B420A1C31BEA60067B53E /* Build configuration list for PBXNativeTarget "cpp-tests tvOS" */; + buildConfigurationList = 507EE8711C24C94600839198 /* Build configuration list for PBXNativeTarget "js-tests-memory-gc Mac" */; buildPhases = ( - 507B41011C31BEA60067B53E /* Resources */, - 507B413B1C31BEA60067B53E /* Sources */, - 507B41FB1C31BEA60067B53E /* Frameworks */, + 507EE8501C24C94600839198 /* ShellScript */, + 507EE8511C24C94600839198 /* Sources */, + 507EE8571C24C94600839198 /* Frameworks */, + 507EE8681C24C94600839198 /* Resources */, ); buildRules = ( ); dependencies = ( - 507B43601C31FB5E0067B53E /* PBXTargetDependency */, + 507EE84C1C24C94600839198 /* PBXTargetDependency */, + 507EE84E1C24C94600839198 /* PBXTargetDependency */, ); - name = "cpp-tests tvOS"; - productName = iphone; - productReference = 507B420D1C31BEA60067B53E /* cpp-tests tvOS.app */; + name = "js-tests-memory-gc Mac"; + productName = "Test lua Mac"; + productReference = 507EE8741C24C94600839198 /* js-tests-memory-gc Mac.app */; productType = "com.apple.product-type.application"; }; - 507B427E1C31E6070067B53E /* js-tests tvOS */ = { + 50AC0E6E1C2A3CAA0065A4C7 /* js-tests-memory-gc iOS */ = { isa = PBXNativeTarget; - buildConfigurationList = 507B42AD1C31E6070067B53E /* Build configuration list for PBXNativeTarget "js-tests tvOS" */; + buildConfigurationList = 50AC0E911C2A3CAA0065A4C7 /* Build configuration list for PBXNativeTarget "js-tests-memory-gc iOS" */; buildPhases = ( - 507B42831C31E6070067B53E /* ShellScript */, - 507B42841C31E6070067B53E /* Sources */, - 507B428C1C31E6070067B53E /* Frameworks */, - 507B429D1C31E6070067B53E /* Resources */, + 50AC0E731C2A3CAA0065A4C7 /* ShellScript */, + 50AC0E741C2A3CAA0065A4C7 /* Sources */, + 50AC0E771C2A3CAA0065A4C7 /* Frameworks */, + 50AC0E881C2A3CAA0065A4C7 /* Resources */, ); buildRules = ( ); dependencies = ( - 507B42B61C31E6210067B53E /* PBXTargetDependency */, - 507B42B81C31E6210067B53E /* PBXTargetDependency */, + 50AC0E6F1C2A3CAA0065A4C7 /* PBXTargetDependency */, + 50AC0E711C2A3CAA0065A4C7 /* PBXTargetDependency */, ); - name = "js-tests tvOS"; - productName = "Test lua iOS"; - productReference = 507B42B01C31E6070067B53E /* js-tests tvOS.app */; - productType = "com.apple.product-type.application"; - }; - 507B43611C31FB670067B53E /* lua-tests tvOS */ = { - isa = PBXNativeTarget; - buildConfigurationList = 507B43B61C31FB670067B53E /* Build configuration list for PBXNativeTarget "lua-tests tvOS" */; - buildPhases = ( - 507B43661C31FB670067B53E /* ShellScript */, - 507B43671C31FB670067B53E /* Sources */, - 507B436F1C31FB670067B53E /* Frameworks */, - 507B437F1C31FB670067B53E /* ShellScript */, - 507B43801C31FB670067B53E /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - 507B43BC1C31FB850067B53E /* PBXTargetDependency */, - 507B43BE1C31FB850067B53E /* PBXTargetDependency */, - ); - name = "lua-tests tvOS"; - productName = "Test lua iOS"; - productReference = 507B43B91C31FB670067B53E /* lua-tests tvOS.app */; - productType = "com.apple.product-type.application"; - }; - 507B43C31C3201360067B53E /* game-controller-test tvOS */ = { - isa = PBXNativeTarget; - buildConfigurationList = 507B43EF1C3201360067B53E /* Build configuration list for PBXNativeTarget "game-controller-test tvOS" */; - buildPhases = ( - 507B43C61C3201360067B53E /* Resources */, - 507B43DB1C3201360067B53E /* Sources */, - 507B43E11C3201360067B53E /* Frameworks */, - ); - buildRules = ( - ); - dependencies = ( - 507B43F81C3202300067B53E /* PBXTargetDependency */, - ); - name = "game-controller-test tvOS"; - productName = iphone; - productReference = 507B43F21C3201360067B53E /* game-controller-test tvOS.app */; + name = "js-tests-memory-gc iOS"; + productName = "Test lua Mac"; + productReference = 50AC0E941C2A3CAA0065A4C7 /* js-tests-memory-gc iOS.app */; productType = "com.apple.product-type.application"; }; A07A517F1783A1D20073F6A7 /* cpp-tests iOS */ = { @@ -5715,21 +5338,6 @@ 1D6058900D05DD3D006BFB54 = { DevelopmentTeam = U7E7529TA5; }; - 507B40FE1C31BEA60067B53E = { - DevelopmentTeam = MDDB52YB8L; - }; - 507B427E1C31E6070067B53E = { - DevelopmentTeam = MDDB52YB8L; - }; - 507B43541C31FB340067B53E = { - CreatedOnToolsVersion = 7.2; - }; - 507B43611C31FB670067B53E = { - DevelopmentTeam = MDDB52YB8L; - }; - 507B43C31C3201360067B53E = { - DevelopmentTeam = MDDB52YB8L; - }; }; }; buildConfigurationList = C01FCF4E08A954540054247B /* Build configuration list for PBXProject "cocos2d_tests" */; @@ -5768,6 +5376,7 @@ 1ABCA28518CD91510087CE3A /* lua-tests Mac */, 1A0EE2B818CDF733004CD58F /* lua-empty-test Mac */, 1856634B1B4155D3009EF2AE /* js-tests Mac */, + 507EE84B1C24C94600839198 /* js-tests-memory-gc Mac */, FA94B0C01B8EF76D0074B261 /* performance-tests Mac */, A07A517B1783A1CC0073F6A7 /* build all tests iOS */, A07A517F1783A1D20073F6A7 /* cpp-tests iOS */, @@ -5778,11 +5387,7 @@ 15CBA015196EE56C005877BB /* lua-game-controller-test iOS */, 185663961B4155DD009EF2AE /* js-tests iOS */, FA94AF961B8EF69A0074B261 /* performance-tests iOS */, - 507B43541C31FB340067B53E /* build all tests tvOS */, - 507B40FE1C31BEA60067B53E /* cpp-tests tvOS */, - 507B427E1C31E6070067B53E /* js-tests tvOS */, - 507B43611C31FB670067B53E /* lua-tests tvOS */, - 507B43C31C3201360067B53E /* game-controller-test tvOS */, + 50AC0E6E1C2A3CAA0065A4C7 /* js-tests-memory-gc iOS */, ); }; /* End PBXProject section */ @@ -5830,27 +5435,6 @@ remoteRef = 46A15FBD1807A4F9005B8026 /* PBXContainerItemProxy */; sourceTree = BUILT_PRODUCTS_DIR; }; - 507B42111C31BEA70067B53E /* libcocos2d tvOS.a */ = { - isa = PBXReferenceProxy; - fileType = archive.ar; - path = "libcocos2d tvOS.a"; - remoteRef = 507B42101C31BEA70067B53E /* PBXContainerItemProxy */; - sourceTree = BUILT_PRODUCTS_DIR; - }; - 507B42B41C31E6080067B53E /* libjscocos2d tvOS.a */ = { - isa = PBXReferenceProxy; - fileType = archive.ar; - path = "libjscocos2d tvOS.a"; - remoteRef = 507B42B31C31E6080067B53E /* PBXContainerItemProxy */; - sourceTree = BUILT_PRODUCTS_DIR; - }; - 507B43571C31FB350067B53E /* libluacocos2d tvOS.a */ = { - isa = PBXReferenceProxy; - fileType = archive.ar; - path = "libluacocos2d tvOS.a"; - remoteRef = 507B43561C31FB350067B53E /* PBXContainerItemProxy */; - sourceTree = BUILT_PRODUCTS_DIR; - }; /* End PBXReferenceProxy section */ /* Begin PBXResourcesBuildPhase section */ @@ -6165,176 +5749,40 @@ ); runOnlyForDeploymentPostprocessing = 0; }; - 507B41011C31BEA60067B53E /* Resources */ = { + 507EE8681C24C94600839198 /* Resources */ = { isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( - 507B41021C31BEA60067B53E /* components in Resources */, - 507B41031C31BEA60067B53E /* Icon-144.png in Resources */, - 507B41041C31BEA60067B53E /* Icon-50.png in Resources */, - 507B41051C31BEA60067B53E /* Particle3D in Resources */, - 507B41061C31BEA60067B53E /* effect1.wav in Resources */, - 507B41071C31BEA60067B53E /* Icon-76.png in Resources */, - 507B41081C31BEA60067B53E /* Default@2x.png in Resources */, - 507B41091C31BEA60067B53E /* effect1.raw in Resources */, - 507B410A1C31BEA60067B53E /* TerrainTest in Resources */, - 507B410B1C31BEA60067B53E /* ccs-res in Resources */, - 507B410C1C31BEA60067B53E /* Icon-29.png in Resources */, - 507B410D1C31BEA60067B53E /* TileMaps in Resources */, - 507B410E1C31BEA60067B53E /* Particles in Resources */, - 507B410F1C31BEA60067B53E /* Default-568h@2x.png in Resources */, - 507B41101C31BEA60067B53E /* Test.html in Resources */, - 507B41111C31BEA60067B53E /* ccb in Resources */, - 507B41121C31BEA60067B53E /* configs in Resources */, - 507B41131C31BEA60067B53E /* extensions in Resources */, - 507B41141C31BEA60067B53E /* audio in Resources */, - 507B41151C31BEA60067B53E /* Materials in Resources */, - 507B41161C31BEA60067B53E /* background.caf in Resources */, - 507B41171C31BEA60067B53E /* Icon-72.png in Resources */, - 507B41181C31BEA60067B53E /* Manifests in Resources */, - 507B41191C31BEA60067B53E /* zwoptex in Resources */, - 507B411A1C31BEA60067B53E /* Images in Resources */, - 507B411B1C31BEA60067B53E /* Icon-40.png in Resources */, - 507B411C1C31BEA60067B53E /* Icon-100.png in Resources */, - 507B411D1C31BEA60067B53E /* pew-pew-lei.wav in Resources */, - 507B411E1C31BEA60067B53E /* Shaders in Resources */, - 507B411F1C31BEA60067B53E /* background.ogg in Resources */, - 507B41201C31BEA60067B53E /* background.wav in Resources */, - 507B41211C31BEA60067B53E /* animations in Resources */, - 507B41221C31BEA60067B53E /* cocosvideo.mp4 in Resources */, - 507B41231C31BEA60067B53E /* Sprite3DTest in Resources */, - 507B41241C31BEA60067B53E /* Icon-114.png in Resources */, - 507B41251C31BEA60067B53E /* hd in Resources */, - 507B41261C31BEA60067B53E /* Icon-57.png in Resources */, - 507B41271C31BEA60067B53E /* Misc in Resources */, - 507B41281C31BEA60067B53E /* Hello.png in Resources */, - 507B41291C31BEA60067B53E /* Icon-152.png in Resources */, - 507B412A1C31BEA60067B53E /* effect2.ogg in Resources */, - 507B412B1C31BEA60067B53E /* ActionTimeline in Resources */, - 507B412C1C31BEA60067B53E /* NavMesh in Resources */, - 507B412D1C31BEA60067B53E /* Icon-80.png in Resources */, - 507B412E1C31BEA60067B53E /* fileLookup.plist in Resources */, - 507B412F1C31BEA60067B53E /* Default-736h@3x.png in Resources */, - 507B41301C31BEA60067B53E /* Default-667h@2x.png in Resources */, - 507B41311C31BEA60067B53E /* music.mid in Resources */, - 507B41321C31BEA60067B53E /* spine in Resources */, - 507B41331C31BEA60067B53E /* Icon-120.png in Resources */, - 507B41341C31BEA60067B53E /* Icon-58.png in Resources */, - 507B41351C31BEA60067B53E /* background.mp3 in Resources */, - 507B41361C31BEA60067B53E /* CocosBuilderExample.ccbresourcelog in Resources */, - 507B41371C31BEA60067B53E /* Shaders3D in Resources */, - 507B41381C31BEA60067B53E /* fonts in Resources */, - 507B41391C31BEA60067B53E /* CocosBuilderExample.ccbproj in Resources */, - 507B413A1C31BEA60067B53E /* Default.png in Resources */, + 507E01991C24E50300839198 /* Icon.icns in Resources */, + 507E01CF1C24E52E00839198 /* script in Resources */, + 507E01B91C24E50300839198 /* project.json in Resources */, + 507E01971C24E50300839198 /* InfoPlist.strings in Resources */, + 507E01981C24E50300839198 /* MainMenu.xib in Resources */, + 507E01CD1C24E51900839198 /* src in Resources */, + 507E01CC1C24E51900839198 /* res in Resources */, + 507E015C1C24E50300839198 /* main.js in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; - 507B429D1C31E6070067B53E /* Resources */ = { + 50AC0E881C2A3CAA0065A4C7 /* Resources */ = { isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( - 507B429E1C31E6070067B53E /* script in Resources */, - 507B429F1C31E6070067B53E /* Default-568h@2x.png in Resources */, - 507B42A01C31E6070067B53E /* Default.png in Resources */, - 507B42A11C31E6070067B53E /* Default@2x.png in Resources */, - 507B42A21C31E6070067B53E /* Icon-114.png in Resources */, - 507B42A31C31E6070067B53E /* Icon-120.png in Resources */, - 507B42A41C31E6070067B53E /* Icon-144.png in Resources */, - 507B42A51C31E6070067B53E /* Icon-152.png in Resources */, - 507B42A61C31E6070067B53E /* Icon-57.png in Resources */, - 507B42A71C31E6070067B53E /* Icon-72.png in Resources */, - 507B42A81C31E6070067B53E /* Icon-76.png in Resources */, - 507B42A91C31E6070067B53E /* src in Resources */, - 507B42AA1C31E6070067B53E /* project.json in Resources */, - 507B42AB1C31E6070067B53E /* main.js in Resources */, - 507B42AC1C31E6070067B53E /* res in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 507B43801C31FB670067B53E /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 507B43811C31FB670067B53E /* NavMesh in Resources */, - 507B43821C31FB670067B53E /* Materials in Resources */, - 507B43831C31FB670067B53E /* Shaders3D in Resources */, - 507B43841C31FB670067B53E /* Test.html in Resources */, - 507B43851C31FB670067B53E /* TerrainTest in Resources */, - 507B43861C31FB670067B53E /* Particle3D in Resources */, - 507B43871C31FB670067B53E /* Manifests in Resources */, - 507B43881C31FB670067B53E /* cocosvideo.mp4 in Resources */, - 507B43891C31FB670067B53E /* ActionTimeline in Resources */, - 507B438A1C31FB670067B53E /* Sprite3DTest in Resources */, - 507B438B1C31FB670067B53E /* Misc in Resources */, - 507B438C1C31FB670067B53E /* effect1.wav in Resources */, - 507B438D1C31FB670067B53E /* background.caf in Resources */, - 507B438E1C31FB670067B53E /* fonts in Resources */, - 507B438F1C31FB670067B53E /* ccb in Resources */, - 507B43901C31FB670067B53E /* hd in Resources */, - 507B43911C31FB670067B53E /* Particles in Resources */, - 507B43921C31FB670067B53E /* src in Resources */, - 507B43931C31FB670067B53E /* background.wav in Resources */, - 507B43941C31FB670067B53E /* Icon-120.png in Resources */, - 507B43951C31FB670067B53E /* Icon-57.png in Resources */, - 507B43961C31FB670067B53E /* fileLookup.plist in Resources */, - 507B43971C31FB670067B53E /* background.ogg in Resources */, - 507B43981C31FB670067B53E /* Icon-144.png in Resources */, - 507B43991C31FB670067B53E /* pew-pew-lei.wav in Resources */, - 507B439A1C31FB670067B53E /* Default-568h@2x.png in Resources */, - 507B439B1C31FB670067B53E /* Default-667h@2x.png in Resources */, - 507B439C1C31FB670067B53E /* Default@2x.png in Resources */, - 507B439D1C31FB670067B53E /* components in Resources */, - 507B439E1C31FB670067B53E /* zwoptex in Resources */, - 507B439F1C31FB670067B53E /* CocosBuilderExample.ccbresourcelog in Resources */, - 507B43A01C31FB670067B53E /* music.mid in Resources */, - 507B43A11C31FB670067B53E /* Default-736h@3x.png in Resources */, - 507B43A21C31FB670067B53E /* extensions in Resources */, - 507B43A31C31FB670067B53E /* Images in Resources */, - 507B43A41C31FB670067B53E /* effect2.ogg in Resources */, - 507B43A51C31FB670067B53E /* audio in Resources */, - 507B43A61C31FB670067B53E /* CocosBuilderExample.ccbproj in Resources */, - 507B43A71C31FB670067B53E /* animations in Resources */, - 507B43A81C31FB670067B53E /* ccs-res in Resources */, - 507B43A91C31FB670067B53E /* Icon-72.png in Resources */, - 507B43AA1C31FB670067B53E /* Icon-76.png in Resources */, - 507B43AB1C31FB670067B53E /* effect1.raw in Resources */, - 507B43AC1C31FB670067B53E /* Shaders in Resources */, - 507B43AD1C31FB670067B53E /* configs in Resources */, - 507B43AE1C31FB670067B53E /* spine in Resources */, - 507B43AF1C31FB670067B53E /* TileMaps in Resources */, - 507B43B01C31FB670067B53E /* Hello.png in Resources */, - 507B43B11C31FB670067B53E /* cocosbuilderRes in Resources */, - 507B43B21C31FB670067B53E /* Icon-114.png in Resources */, - 507B43B31C31FB670067B53E /* Icon-152.png in Resources */, - 507B43B41C31FB670067B53E /* background.mp3 in Resources */, - 507B43B51C31FB670067B53E /* Default.png in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 507B43C61C3201360067B53E /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 507B43C71C3201360067B53E /* ipadhd in Resources */, - 507B43C81C3201360067B53E /* Icon-152.png in Resources */, - 507B43C91C3201360067B53E /* Icon-80.png in Resources */, - 507B43CA1C3201360067B53E /* Default.png in Resources */, - 507B43CB1C3201360067B53E /* iphone in Resources */, - 507B43CC1C3201360067B53E /* Icon-57.png in Resources */, - 507B43CD1C3201360067B53E /* ipad in Resources */, - 507B43CE1C3201360067B53E /* Default-736h@3x.png in Resources */, - 507B43CF1C3201360067B53E /* Default-667h@2x.png in Resources */, - 507B43D01C3201360067B53E /* Default-568h@2x.png in Resources */, - 507B43D11C3201360067B53E /* Default@2x.png in Resources */, - 507B43D21C3201360067B53E /* Icon-100.png in Resources */, - 507B43D31C3201360067B53E /* Icon-40.png in Resources */, - 507B43D41C3201360067B53E /* Icon-144.png in Resources */, - 507B43D51C3201360067B53E /* Icon-114.png in Resources */, - 507B43D61C3201360067B53E /* Icon-76.png in Resources */, - 507B43D71C3201360067B53E /* Icon-120.png in Resources */, - 507B43D81C3201360067B53E /* Icon-72.png in Resources */, - 507B43D91C3201360067B53E /* fonts in Resources */, - 507B43DA1C3201360067B53E /* Icon-58.png in Resources */, + 50AC0EC51C2A3FCC0065A4C7 /* Icon-57.png in Resources */, + 50AC0EC01C2A3FCC0065A4C7 /* Default@2x.png in Resources */, + 50AC0EC71C2A3FCC0065A4C7 /* Icon-76.png in Resources */, + 50AC0EC41C2A3FCC0065A4C7 /* Icon-152.png in Resources */, + 50AC0E8A1C2A3CAA0065A4C7 /* script in Resources */, + 50AC0E8B1C2A3CAA0065A4C7 /* project.json in Resources */, + 50AC0EC61C2A3FCC0065A4C7 /* Icon-72.png in Resources */, + 50AC0E8E1C2A3CAA0065A4C7 /* src in Resources */, + 50AC0E8F1C2A3CAA0065A4C7 /* res in Resources */, + 50AC0EBF1C2A3FCC0065A4C7 /* Default.png in Resources */, + 50AC0E901C2A3CAA0065A4C7 /* main.js in Resources */, + 50AC0EC31C2A3FCC0065A4C7 /* Icon-144.png in Resources */, + 50AC0EC11C2A3FCC0065A4C7 /* Icon-114.png in Resources */, + 50AC0EC21C2A3FCC0065A4C7 /* Icon-120.png in Resources */, + 50AC0EBE1C2A3FCC0065A4C7 /* Default-568h@2x.png in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -6574,7 +6022,7 @@ shellPath = /bin/sh; shellScript = "#!/bin/bash\ncocos_dir=${SRCROOT}/../tests/js-tests/res\nif [ -d \"${cocos_dir}\" ]; then\nrm -rv \"${cocos_dir}\"\nmkdir \"${cocos_dir}\"\nelse\nmkdir \"${cocos_dir}\"\nfi\n\ncp -r \"${SRCROOT}/../tests/cpp-tests/Resources/\" \"${cocos_dir}\"\ncp -r \"${SRCROOT}/../tests/js-tests/resjs/\" \"${cocos_dir}/resjs\""; }; - 507B42831C31E6070067B53E /* ShellScript */ = { + 507EE8501C24C94600839198 /* ShellScript */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( @@ -6587,7 +6035,7 @@ shellPath = /bin/sh; shellScript = "#!/bin/bash\ncocos_dir=${SRCROOT}/../tests/js-tests/res\nif [ -d \"${cocos_dir}\" ]; then\nrm -rv \"${cocos_dir}\"\nmkdir \"${cocos_dir}\"\nelse\nmkdir \"${cocos_dir}\"\nfi\n\ncp -r \"${SRCROOT}/../tests/cpp-tests/Resources/\" \"${cocos_dir}\"\ncp -r \"${SRCROOT}/../tests/js-tests/resjs/\" \"${cocos_dir}/resjs\""; }; - 507B43661C31FB670067B53E /* ShellScript */ = { + 50AC0E731C2A3CAA0065A4C7 /* ShellScript */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( @@ -6598,20 +6046,7 @@ ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "find ${SRCROOT}/../tests/lua-tests/src/ -name \"*\" -exec touch -cm {} \\;"; - }; - 507B437F1C31FB670067B53E /* ShellScript */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputPaths = ( - ); - outputPaths = ( - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "#!/bin/bash\ncocos_dir=${SRCROOT}/../tests/lua-tests/src/cocos\nif [ -d \"${cocos_dir}\" ]; then\nrm -rv \"${cocos_dir}\"\nmkdir \"${cocos_dir}\"\nelse\nmkdir \"${cocos_dir}\"\nfi\n\ncp -r \"${SRCROOT}/../cocos/scripting/lua-bindings/script/\" \"${cocos_dir}\""; + shellScript = "#!/bin/bash\ncocos_dir=${SRCROOT}/../tests/js-tests/res\nif [ -d \"${cocos_dir}\" ]; then\nrm -rv \"${cocos_dir}\"\nmkdir \"${cocos_dir}\"\nelse\nmkdir \"${cocos_dir}\"\nfi\n\ncp -r \"${SRCROOT}/../tests/cpp-tests/Resources/\" \"${cocos_dir}\"\ncp -r \"${SRCROOT}/../tests/js-tests/resjs/\" \"${cocos_dir}/resjs\""; }; /* End PBXShellScriptBuildPhase section */ @@ -6929,239 +6364,24 @@ ); runOnlyForDeploymentPostprocessing = 0; }; - 507B413B1C31BEA60067B53E /* Sources */ = { + 507EE8511C24C94600839198 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( - 507B413C1C31BEA60067B53E /* GLES-Render.cpp in Sources */, - 507B413D1C31BEA60067B53E /* SpritePolygonTest.cpp in Sources */, - 507B413E1C31BEA60067B53E /* TextInputTest.cpp in Sources */, - 507B413F1C31BEA60067B53E /* Bug-886.cpp in Sources */, - 507B41401C31BEA60067B53E /* CCControlButtonTest.cpp in Sources */, - 507B41411C31BEA60067B53E /* CCControlSliderTest.cpp in Sources */, - 507B41421C31BEA60067B53E /* UILayoutTest_Editor.cpp in Sources */, - 507B41431C31BEA60067B53E /* SpineTest.cpp in Sources */, - 507B41441C31BEA60067B53E /* Physics3DTest.cpp in Sources */, - 507B41451C31BEA60067B53E /* NewRendererTest.cpp in Sources */, - 507B41461C31BEA60067B53E /* DrawNode3D.cpp in Sources */, - 507B41471C31BEA60067B53E /* UIRadioButtonTest.cpp in Sources */, - 507B41481C31BEA60067B53E /* AnimationsTestLayer.cpp in Sources */, - 507B41491C31BEA60067B53E /* CocosGUIScene.cpp in Sources */, - 507B414A1C31BEA60067B53E /* WebSocketTest.cpp in Sources */, - 507B414B1C31BEA60067B53E /* ActionTimelineTestScene.cpp in Sources */, - 507B414C1C31BEA60067B53E /* UIScale9SpriteTest.cpp in Sources */, - 507B414D1C31BEA60067B53E /* Particle3DTest.cpp in Sources */, - 507B414E1C31BEA60067B53E /* Bug-1174.cpp in Sources */, - 507B414F1C31BEA60067B53E /* CCControlColourPickerTest.cpp in Sources */, - 507B41501C31BEA60067B53E /* UITextAtlasTest.cpp in Sources */, - 507B41511C31BEA60067B53E /* ActionsEaseTest.cpp in Sources */, - 507B41521C31BEA60067B53E /* MutiTouchTest.cpp in Sources */, - 507B41531C31BEA60067B53E /* UIListViewTest_Editor.cpp in Sources */, - 507B41541C31BEA60067B53E /* UILoadingBarTest_Editor.cpp in Sources */, - 507B41551C31BEA60067B53E /* testsAppDelegate.mm in Sources */, - 507B41561C31BEA60067B53E /* CustomImageView.cpp in Sources */, - 507B41571C31BEA60067B53E /* AppDelegate.cpp in Sources */, - 507B41581C31BEA60067B53E /* Bug-1159.cpp in Sources */, - 507B41591C31BEA60067B53E /* UILoadingBarTest.cpp in Sources */, - 507B415A1C31BEA60067B53E /* CustomParticleWidget.cpp in Sources */, - 507B415B1C31BEA60067B53E /* SceneTest.cpp in Sources */, - 507B415C1C31BEA60067B53E /* CustomImageViewReader.cpp in Sources */, - 507B415D1C31BEA60067B53E /* UITextAtlasTest_Editor.cpp in Sources */, - 507B415E1C31BEA60067B53E /* MenuTestLayer.cpp in Sources */, - 507B415F1C31BEA60067B53E /* ClippingNodeTest.cpp in Sources */, - 507B41601C31BEA60067B53E /* LayerTest.cpp in Sources */, - 507B41611C31BEA60067B53E /* UITextBMFontTest.cpp in Sources */, - 507B41621C31BEA60067B53E /* NodeTest.cpp in Sources */, - 507B41631C31BEA60067B53E /* UIWidgetAddNodeTest.cpp in Sources */, - 507B41641C31BEA60067B53E /* RenderTextureTest.cpp in Sources */, - 507B41651C31BEA60067B53E /* MenuTest.cpp in Sources */, - 507B41661C31BEA60067B53E /* UserDefaultTest.cpp in Sources */, - 507B41671C31BEA60067B53E /* UITest.cpp in Sources */, - 507B41681C31BEA60067B53E /* Camera3DTest.cpp in Sources */, - 507B41691C31BEA60067B53E /* CustomReader.cpp in Sources */, - 507B416A1C31BEA60067B53E /* ParallaxTest.cpp in Sources */, - 507B416B1C31BEA60067B53E /* ZwoptexTest.cpp in Sources */, - 507B416C1C31BEA60067B53E /* VibrateTest.cpp in Sources */, - 507B416D1C31BEA60067B53E /* ComponentsTestScene.cpp in Sources */, - 507B416E1C31BEA60067B53E /* Bug-914.cpp in Sources */, - 507B416F1C31BEA60067B53E /* EffectsAdvancedTest.cpp in Sources */, - 507B41701C31BEA60067B53E /* Paddle.cpp in Sources */, - 507B41711C31BEA60067B53E /* UIPageViewTest.cpp in Sources */, - 507B41721C31BEA60067B53E /* SceneEditorTest.cpp in Sources */, - 507B41731C31BEA60067B53E /* Scene3DTest.cpp in Sources */, - 507B41741C31BEA60067B53E /* OpenURLTest.cpp in Sources */, - 507B41751C31BEA60067B53E /* BugsTest.cpp in Sources */, - 507B41761C31BEA60067B53E /* testBasic.cpp in Sources */, - 507B41771C31BEA60067B53E /* EnemyController.cpp in Sources */, - 507B41781C31BEA60067B53E /* UIWidgetAddNodeTest_Editor.cpp in Sources */, - 507B41791C31BEA60067B53E /* CocosBuilderTest.cpp in Sources */, - 507B417A1C31BEA60067B53E /* UITextFieldTest_Editor.cpp in Sources */, - 507B417B1C31BEA60067B53E /* QuestionContainerSprite.cpp in Sources */, - 507B417C1C31BEA60067B53E /* DrawPrimitivesTest.cpp in Sources */, - 507B417D1C31BEA60067B53E /* UITextFieldTest.cpp in Sources */, - 507B417E1C31BEA60067B53E /* MotionStreakTest.cpp in Sources */, - 507B417F1C31BEA60067B53E /* AllocatorTest.cpp in Sources */, - 507B41801C31BEA60067B53E /* FontTest.cpp in Sources */, - 507B41811C31BEA60067B53E /* RefPtrTest.cpp in Sources */, - 507B41821C31BEA60067B53E /* UIEditBoxTest.cpp in Sources */, - 507B41831C31BEA60067B53E /* ActionsTest.cpp in Sources */, - 507B41841C31BEA60067B53E /* ShaderTest.cpp in Sources */, - 507B41851C31BEA60067B53E /* BillBoardTest.cpp in Sources */, - 507B41861C31BEA60067B53E /* Bug-PageViewLayout.cpp in Sources */, - 507B41871C31BEA60067B53E /* TileMapTest2.cpp in Sources */, - 507B41881C31BEA60067B53E /* Bug-624.cpp in Sources */, - 507B41891C31BEA60067B53E /* SocketIOTest.cpp in Sources */, - 507B418A1C31BEA60067B53E /* SpriteTest.cpp in Sources */, - 507B418B1C31BEA60067B53E /* NewAudioEngineTest.cpp in Sources */, - 507B418C1C31BEA60067B53E /* FileUtilsTest.cpp in Sources */, - 507B418D1C31BEA60067B53E /* CustomRootNodeReader.cpp in Sources */, - 507B418E1C31BEA60067B53E /* CurlTest.cpp in Sources */, - 507B418F1C31BEA60067B53E /* CustomTableViewCell.cpp in Sources */, - 507B41901C31BEA60067B53E /* CustomGUIScene.cpp in Sources */, - 507B41911C31BEA60067B53E /* CCControlSwitchTest.cpp in Sources */, - 507B41921C31BEA60067B53E /* BaseTest.cpp in Sources */, - 507B41931C31BEA60067B53E /* PlayerController.cpp in Sources */, - 507B41941C31BEA60067B53E /* main.m in Sources */, - 507B41951C31BEA60067B53E /* UIScrollViewTest.cpp in Sources */, - 507B41961C31BEA60067B53E /* CCControlScene.cpp in Sources */, - 507B41971C31BEA60067B53E /* UICheckBoxTest_Editor.cpp in Sources */, - 507B41981C31BEA60067B53E /* DataVisitorTest.cpp in Sources */, - 507B41991C31BEA60067B53E /* CurrentLanguageTest.cpp in Sources */, - 507B419A1C31BEA60067B53E /* UITextTest_Editor.cpp in Sources */, - 507B419B1C31BEA60067B53E /* UICheckBoxTest.cpp in Sources */, - 507B419C1C31BEA60067B53E /* Bug-350.cpp in Sources */, - 507B419D1C31BEA60067B53E /* UITextBMFontTest_Editor.cpp in Sources */, - 507B419E1C31BEA60067B53E /* SchedulerTest.cpp in Sources */, - 507B419F1C31BEA60067B53E /* Texture2dTest.cpp in Sources */, - 507B41A01C31BEA60067B53E /* MouseTest.cpp in Sources */, - 507B41A11C31BEA60067B53E /* Ball.cpp in Sources */, - 507B41A21C31BEA60067B53E /* GameOverScene.cpp in Sources */, - 507B41A31C31BEA60067B53E /* ExtensionsTest.cpp in Sources */, - 507B41A41C31BEA60067B53E /* TestEntries.cpp in Sources */, - 507B41A51C31BEA60067B53E /* AssetsManagerExTest.cpp in Sources */, - 507B41A61C31BEA60067B53E /* Box2dTest.cpp in Sources */, - 507B41A71C31BEA60067B53E /* UISceneManager_Editor.cpp in Sources */, - 507B41A81C31BEA60067B53E /* LabelTestNew.cpp in Sources */, - 507B41A91C31BEA60067B53E /* ChipmunkTest.cpp in Sources */, - 507B41AA1C31BEA60067B53E /* cons.cpp in Sources */, - 507B41AB1C31BEA60067B53E /* ConsoleTest.cpp in Sources */, - 507B41AC1C31BEA60067B53E /* IntervalTest.cpp in Sources */, - 507B41AD1C31BEA60067B53E /* UISliderTest.cpp in Sources */, - 507B41AE1C31BEA60067B53E /* CCControlStepperTest.cpp in Sources */, - 507B41AF1C31BEA60067B53E /* UIButtonTest.cpp in Sources */, - 507B41B01C31BEA60067B53E /* TextureAtlasEncryptionTest.cpp in Sources */, - 507B41B11C31BEA60067B53E /* ConfigurationTest.cpp in Sources */, - 507B41B21C31BEA60067B53E /* CCControlPotentiometerTest.cpp in Sources */, - 507B41B31C31BEA60067B53E /* RootViewController.mm in Sources */, - 507B41B41C31BEA60067B53E /* TileMapTest.cpp in Sources */, - 507B41B51C31BEA60067B53E /* UIRichTextTest.cpp in Sources */, - 507B41B71C31BEA60067B53E /* Bug-899.cpp in Sources */, - 507B41B81C31BEA60067B53E /* NewEventDispatcherTest.cpp in Sources */, - 507B41B91C31BEA60067B53E /* UIScrollViewTest_Editor.cpp in Sources */, - 507B41BA1C31BEA60067B53E /* acts.cpp in Sources */, - 507B41BB1C31BEA60067B53E /* ArmatureScene.cpp in Sources */, - 507B41BC1C31BEA60067B53E /* SceneController.cpp in Sources */, - 507B41BD1C31BEA60067B53E /* UISliderTest_Editor.cpp in Sources */, - 507B41BE1C31BEA60067B53E /* Test.cpp in Sources */, - 507B41BF1C31BEA60067B53E /* ParticleTest.cpp in Sources */, - 507B41C01C31BEA60067B53E /* TouchesTest.cpp in Sources */, - 507B41C11C31BEA60067B53E /* UIImageViewTest_Editor.cpp in Sources */, - 507B41C21C31BEA60067B53E /* TransitionsTest.cpp in Sources */, - 507B41C31C31BEA60067B53E /* RotateWorldTest.cpp in Sources */, - 507B41C41C31BEA60067B53E /* ActionsProgressTest.cpp in Sources */, - 507B41C51C31BEA60067B53E /* EffectsTest.cpp in Sources */, - 507B41C61C31BEA60067B53E /* TestHeaderLayer.cpp in Sources */, - 507B41C71C31BEA60067B53E /* ActionManagerTest.cpp in Sources */, - 507B41C81C31BEA60067B53E /* CocoStudioGUITest.cpp in Sources */, - 507B41C91C31BEA60067B53E /* PhysicsTest.cpp in Sources */, - 507B41CA1C31BEA60067B53E /* CustomRootNode.cpp in Sources */, - 507B41CB1C31BEA60067B53E /* UIScene_Editor.cpp in Sources */, - 507B41CC1C31BEA60067B53E /* UILayoutTest.cpp in Sources */, - 507B41CD1C31BEA60067B53E /* ButtonTestLayer.cpp in Sources */, - 507B41CE1C31BEA60067B53E /* UIListViewTest.cpp in Sources */, - 507B41CF1C31BEA60067B53E /* MaterialSystemTest.cpp in Sources */, - 507B41D01C31BEA60067B53E /* Box2dView.cpp in Sources */, - 507B41D11C31BEA60067B53E /* UIImageViewTest.cpp in Sources */, - 507B41D21C31BEA60067B53E /* LabelTest.cpp in Sources */, - 507B41D31C31BEA60067B53E /* Bug-12847.cpp in Sources */, - 507B41D41C31BEA60067B53E /* Bug-Child.cpp in Sources */, - 507B41D51C31BEA60067B53E /* UISceneManager.cpp in Sources */, - 507B41D61C31BEA60067B53E /* VisibleRect.cpp in Sources */, - 507B41D71C31BEA60067B53E /* ReleasePoolTest.cpp in Sources */, - 507B41D81C31BEA60067B53E /* DownloaderTest.cpp in Sources */, - 507B41D91C31BEA60067B53E /* TextureCacheTest.cpp in Sources */, - 507B41DA1C31BEA60067B53E /* HelloCocosBuilderLayer.cpp in Sources */, - 507B41DB1C31BEA60067B53E /* CustomParticleWidgetTest.cpp in Sources */, - 507B41DC1C31BEA60067B53E /* UITextTest.cpp in Sources */, - 507B41DD1C31BEA60067B53E /* UIPageViewTest_Editor.cpp in Sources */, - 507B41DE1C31BEA60067B53E /* TableViewTestScene.cpp in Sources */, - 507B41DF1C31BEA60067B53E /* ShaderTest2.cpp in Sources */, - 507B41E01C31BEA60067B53E /* UnitTest.cpp in Sources */, - 507B41E11C31BEA60067B53E /* CocostudioParserTest.cpp in Sources */, - 507B41E21C31BEA60067B53E /* Bug-458.cpp in Sources */, - 507B41E31C31BEA60067B53E /* UIScene.cpp in Sources */, - 507B41E41C31BEA60067B53E /* CocosDenshionTest.cpp in Sources */, - 507B41E51C31BEA60067B53E /* ProjectileController.cpp in Sources */, - 507B41E61C31BEA60067B53E /* CustomWidgetCallbackBindTest.cpp in Sources */, - 507B41E71C31BEA60067B53E /* Sprite3DTest.cpp in Sources */, - 507B41E81C31BEA60067B53E /* controller.cpp in Sources */, - 507B41E91C31BEA60067B53E /* CCControlSceneManager.cpp in Sources */, - 507B41EA1C31BEA60067B53E /* CocosStudio3DTest.cpp in Sources */, - 507B41EB1C31BEA60067B53E /* TimelineCallbackTestLayer.cpp in Sources */, - 507B41EC1C31BEA60067B53E /* Bug-CCDrawNode.cpp in Sources */, - 507B41ED1C31BEA60067B53E /* CustomParticleWidgetReader.cpp in Sources */, - 507B41EE1C31BEA60067B53E /* NotificationCenterTest.cpp in Sources */, - 507B41EF1C31BEA60067B53E /* CocostudioParserJsonTest.cpp in Sources */, - 507B41F01C31BEA60067B53E /* NavMeshTest.cpp in Sources */, - 507B41F11C31BEA60067B53E /* LightTest.cpp in Sources */, - 507B41F21C31BEA60067B53E /* GUIEditorTest.cpp in Sources */, - 507B41F31C31BEA60067B53E /* CustomImageTest.cpp in Sources */, - 507B41F41C31BEA60067B53E /* Bug-422.cpp in Sources */, - 507B41F51C31BEA60067B53E /* UIFocusTest.cpp in Sources */, - 507B41F61C31BEA60067B53E /* HttpClientTest.cpp in Sources */, - 507B41F81C31BEA60067B53E /* UIButtonTest_Editor.cpp in Sources */, - 507B41F91C31BEA60067B53E /* ClickAndMoveTest.cpp in Sources */, - 507B41FA1C31BEA60067B53E /* TerrainTest.cpp in Sources */, + 507E019A1C24E50300839198 /* main.cpp in Sources */, + 507E015D1C24E50300839198 /* AppDelegate.cpp in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; - 507B42841C31E6070067B53E /* Sources */ = { + 50AC0E741C2A3CAA0065A4C7 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( - 507B42851C31E6070067B53E /* AppController.mm in Sources */, - 507B42861C31E6070067B53E /* main.m in Sources */, - 507B42871C31E6070067B53E /* NativeOcClass.m in Sources */, - 507B42881C31E6070067B53E /* js_Effect3D_bindings.cpp in Sources */, - 507B42891C31E6070067B53E /* js_DrawNode3D_bindings.cpp in Sources */, - 507B428A1C31E6070067B53E /* RootViewController.mm in Sources */, - 507B428B1C31E6070067B53E /* AppDelegate.cpp in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 507B43671C31FB670067B53E /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 507B43681C31FB670067B53E /* lua_test_bindings.cpp in Sources */, - 507B43691C31FB670067B53E /* main.m in Sources */, - 507B436A1C31FB670067B53E /* LuaObjectCBridgeTest.mm in Sources */, - 507B436B1C31FB670067B53E /* AppController.mm in Sources */, - 507B436C1C31FB670067B53E /* AppDelegate.cpp in Sources */, - 507B436D1C31FB670067B53E /* RootViewController.mm in Sources */, - 507B436E1C31FB670067B53E /* lua_assetsmanager_test_sample.cpp in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 507B43DB1C3201360067B53E /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 507B43DC1C3201360067B53E /* AppController.mm in Sources */, - 507B43DD1C3201360067B53E /* RootViewController.mm in Sources */, - 507B43DE1C3201360067B53E /* AppDelegate.cpp in Sources */, - 507B43DF1C3201360067B53E /* main.m in Sources */, - 507B43E01C3201360067B53E /* GameControllerTest.cpp in Sources */, + 50AC0E761C2A3CAA0065A4C7 /* AppDelegate.cpp in Sources */, + 50AC0ECB1C2A3FCC0065A4C7 /* RootViewController.mm in Sources */, + 50AC0ECA1C2A3FCC0065A4C7 /* NativeOcClass.m in Sources */, + 50AC0EC91C2A3FCC0065A4C7 /* main.m in Sources */, + 50AC0EBD1C2A3FCC0065A4C7 /* AppController.mm in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -7553,55 +6773,25 @@ name = "cocos2dx iOS"; targetProxy = 3E6177011960FAED00DE83F5 /* PBXContainerItemProxy */; }; - 507B42B61C31E6210067B53E /* PBXTargetDependency */ = { + 507EE84C1C24C94600839198 /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = "libjscocos2d tvOS"; - targetProxy = 507B42B51C31E6210067B53E /* PBXContainerItemProxy */; + name = "libjscocos2d Mac"; + targetProxy = 507EE84D1C24C94600839198 /* PBXContainerItemProxy */; }; - 507B42B81C31E6210067B53E /* PBXTargetDependency */ = { + 507EE84E1C24C94600839198 /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = "libcocos2d tvOS"; - targetProxy = 507B42B71C31E6210067B53E /* PBXContainerItemProxy */; + name = "cocos2dx Mac"; + targetProxy = 507EE84F1C24C94600839198 /* PBXContainerItemProxy */; }; - 507B435C1C31FB510067B53E /* PBXTargetDependency */ = { + 50AC0E6F1C2A3CAA0065A4C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; - target = 507B40FE1C31BEA60067B53E /* cpp-tests tvOS */; - targetProxy = 507B435B1C31FB510067B53E /* PBXContainerItemProxy */; + name = "libjscocos2d Mac"; + targetProxy = 50AC0E701C2A3CAA0065A4C7 /* PBXContainerItemProxy */; }; - 507B435E1C31FB510067B53E /* PBXTargetDependency */ = { + 50AC0E711C2A3CAA0065A4C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; - target = 507B427E1C31E6070067B53E /* js-tests tvOS */; - targetProxy = 507B435D1C31FB510067B53E /* PBXContainerItemProxy */; - }; - 507B43601C31FB5E0067B53E /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = "libcocos2d tvOS"; - targetProxy = 507B435F1C31FB5E0067B53E /* PBXContainerItemProxy */; - }; - 507B43BC1C31FB850067B53E /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = "libcocos2d tvOS"; - targetProxy = 507B43BB1C31FB850067B53E /* PBXContainerItemProxy */; - }; - 507B43BE1C31FB850067B53E /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = "libluacocos2d tvOS"; - targetProxy = 507B43BD1C31FB850067B53E /* PBXContainerItemProxy */; - }; - 507B43C21C31FC160067B53E /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 507B43611C31FB670067B53E /* lua-tests tvOS */; - targetProxy = 507B43C11C31FC160067B53E /* PBXContainerItemProxy */; - }; - 507B43F51C3201580067B53E /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 507B43C31C3201360067B53E /* game-controller-test tvOS */; - targetProxy = 507B43F41C3201580067B53E /* PBXContainerItemProxy */; - }; - 507B43F81C3202300067B53E /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = "libcocos2d tvOS"; - targetProxy = 507B43F71C3202300067B53E /* PBXContainerItemProxy */; + name = "cocos2dx Mac"; + targetProxy = 50AC0E721C2A3CAA0065A4C7 /* PBXContainerItemProxy */; }; A035ACC0178246BD00987F6C /* PBXTargetDependency */ = { isa = PBXTargetDependency; @@ -7706,6 +6896,22 @@ name = MainMenu.xib; sourceTree = ""; }; + 507E01161C24E50300839198 /* InfoPlist.strings */ = { + isa = PBXVariantGroup; + children = ( + 507E01171C24E50300839198 /* en */, + ); + name = InfoPlist.strings; + sourceTree = ""; + }; + 507E01181C24E50300839198 /* MainMenu.xib */ = { + isa = PBXVariantGroup; + children = ( + 507E01191C24E50300839198 /* en */, + ); + name = MainMenu.xib; + sourceTree = ""; + }; /* End PBXVariantGroup section */ /* Begin XCBuildConfiguration section */ @@ -7849,7 +7055,6 @@ isa = XCBuildConfiguration; buildSettings = { CODE_SIGN_IDENTITY = "iPhone Developer"; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; ENABLE_BITCODE = NO; GCC_INLINES_ARE_PRIVATE_EXTERN = NO; GCC_PRECOMPILE_PREFIX_HEADER = YES; @@ -7865,10 +7070,14 @@ "$(SRCROOT)/../external/curl/prebuilt/ios", "/Users/cocos2d/MyWork/cocos2d-x-develop/external/curl/prebuilt/ios", ); - MACOSX_DEPLOYMENT_TARGET = 10.10; + "OTHER_LDFLAGS[sdk=iphonesimulator*][arch=x86_64]" = ( + "-pagezero_size", + 10000, + "-image_base", + 100000000, + ); PRODUCT_BUNDLE_IDENTIFIER = "org.cocos2d-x.${PRODUCT_NAME:rfc1034identifier}"; PRODUCT_NAME = "js-tests iOS"; - PROVISIONING_PROFILE = ""; SCAN_ALL_SOURCE_FILES_FOR_INCLUDES = YES; SDKROOT = iphoneos; TARGETED_DEVICE_FAMILY = "1,2"; @@ -7881,7 +7090,6 @@ isa = XCBuildConfiguration; buildSettings = { CODE_SIGN_IDENTITY = "iPhone Developer"; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; ENABLE_BITCODE = NO; GCC_GENERATE_DEBUGGING_SYMBOLS = NO; GCC_INLINES_ARE_PRIVATE_EXTERN = NO; @@ -7898,10 +7106,14 @@ "$(SRCROOT)/../external/curl/prebuilt/ios", "/Users/cocos2d/MyWork/cocos2d-x-develop/external/curl/prebuilt/ios", ); - MACOSX_DEPLOYMENT_TARGET = 10.10; + "OTHER_LDFLAGS[sdk=iphonesimulator*][arch=x86_64]" = ( + "-pagezero_size", + 10000, + "-image_base", + 100000000, + ); PRODUCT_BUNDLE_IDENTIFIER = "org.cocos2d-x.${PRODUCT_NAME:rfc1034identifier}"; PRODUCT_NAME = "js-tests iOS"; - PROVISIONING_PROFILE = ""; SCAN_ALL_SOURCE_FILES_FOR_INCLUDES = YES; SDKROOT = iphoneos; TARGETED_DEVICE_FAMILY = "1,2"; @@ -8259,78 +7471,36 @@ }; name = Release; }; - 507B420B1C31BEA60067B53E /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = "../tests/cpp-tests/proj.ios/Prefix.pch"; - GCC_PREPROCESSOR_DEFINITIONS = ( - "$(inherited)", - CC_TARGET_OS_TVOS, - ); - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - INFOPLIST_FILE = "$(SRCROOT)/../tests/cpp-tests/proj.ios/Info.plist"; - LIBRARY_SEARCH_PATHS = ( - "$(inherited)", - "$(SRCROOT)/../external/curl/prebuilt/ios", - ); - PRODUCT_BUNDLE_IDENTIFIER = "org.cocos2d-x.${PRODUCT_NAME:rfc1034identifier}"; - PRODUCT_NAME = "$(TARGET_NAME)"; - SDKROOT = appletvos; - TVOS_DEPLOYMENT_TARGET = 9.1; - USER_HEADER_SEARCH_PATHS = "$(inherited) $(SRCROOT)/../cocos/platform/ios $(SRCROOT)/../cocos/platform/ios/Simulation $(SRCROOT)/../external/curl/include/ios"; - }; - name = Debug; - }; - 507B420C1C31BEA60067B53E /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = "../tests/cpp-tests/proj.ios/Prefix.pch"; - GCC_PREPROCESSOR_DEFINITIONS = ( - "$(inherited)", - CC_TARGET_OS_TVOS, - ); - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - INFOPLIST_FILE = "$(SRCROOT)/../tests/cpp-tests/proj.ios/Info.plist"; - LIBRARY_SEARCH_PATHS = ( - "$(inherited)", - "$(SRCROOT)/../external/curl/prebuilt/ios", - ); - PRODUCT_BUNDLE_IDENTIFIER = "org.cocos2d-x.${PRODUCT_NAME:rfc1034identifier}"; - PRODUCT_NAME = "$(TARGET_NAME)"; - SDKROOT = appletvos; - TVOS_DEPLOYMENT_TARGET = 9.1; - USER_HEADER_SEARCH_PATHS = "$(inherited) $(SRCROOT)/../cocos/platform/ios $(SRCROOT)/../cocos/platform/ios/Simulation $(SRCROOT)/../external/curl/include/ios"; - VALIDATE_PRODUCT = YES; - }; - name = Release; - }; - 507B42AE1C31E6070067B53E /* Debug */ = { + 507EE8721C24C94600839198 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { + GCC_GENERATE_DEBUGGING_SYMBOLS = YES; GCC_INLINES_ARE_PRIVATE_EXTERN = NO; GCC_PRECOMPILE_PREFIX_HEADER = YES; GCC_PREPROCESSOR_DEFINITIONS = ( "$(inherited)", - CC_TARGET_OS_TVOS, + CC_TARGET_OS_MAC, + CC_KEYBOARD_SUPPORT, COCOS2D_JAVASCRIPT, ); GCC_TREAT_WARNINGS_AS_ERRORS = NO; - INFOPLIST_FILE = "$(SRCROOT)/../tests/js-tests/project/proj.ios/Info.plist"; - LIBRARY_SEARCH_PATHS = ( - "$(SRCROOT)/../external/curl/prebuilt/ios", - "/Users/cocos2d/MyWork/cocos2d-x-develop/external/curl/prebuilt/ios", + INFOPLIST_FILE = "$(SRCROOT)/../tests/js-memory-gc-tests/project/proj.mac/Test_Info.plist"; + LD_RUNPATH_SEARCH_PATHS = "@loader_path/../Frameworks"; + MACOSX_DEPLOYMENT_TARGET = 10.7; + OTHER_LDFLAGS = ( + "-pagezero_size", + 10000, + "-image_base", + 100000000, ); - PRODUCT_BUNDLE_IDENTIFIER = "org.cocos2d-x.${PRODUCT_NAME:rfc1034identifier}"; + PRODUCT_BUNDLE_IDENTIFIER = "org.cocos2d-x.js-memory-gc-tests-Mac"; PRODUCT_NAME = "$(TARGET_NAME)"; SCAN_ALL_SOURCE_FILES_FOR_INCLUDES = YES; - SDKROOT = appletvos; - USER_HEADER_SEARCH_PATHS = "$(SRCROOT)/.. $(SRCROOT)/../cocos $(SRCROOT)/../cocos/base $(SRCROOT)/../cocos/2d $(SRCROOT)/../cocos/gui $(SRCROOT)/../cocos/network $(SRCROOT)/../cocos/audio/include $(SRCROOT)/../cocos/editor-support $(SRCROOT)/../extensions $(SRCROOT)/../external $(SRCROOT)/../external/chipmunk/include/chipmunk $(SRCROOT)/../cocos/scripting/js-bindings/auto $(SRCROOT)/../cocos/scripting/js-bindings/manual $(inherited) $(SRCROOT)/../cocos/platform/ios $(SRCROOT)/../external/spidermonkey/include/ios $(SRCROOT)/../external/curl/include/ios"; + USER_HEADER_SEARCH_PATHS = "$(inherited) $(SRCROOT)/../cocos/platform/mac $(SRCROOT)/../external/glfw3/include/mac $(SRCROOT)/../external/spidermonkey/include/mac $(SRCROOT)/.. $(SRCROOT)/../cocos $(SRCROOT)/../cocos/base $(SRCROOT)/../cocos/2d $(SRCROOT)/../cocos/gui $(SRCROOT)/../cocos/network $(SRCROOT)/../cocos/audio/include $(SRCROOT)/../cocos/editor-support $(SRCROOT)/../extensions $(SRCROOT)/../external $(SRCROOT)/../external/chipmunk/include/chipmunk $(SRCROOT)/../cocos/scripting/js-bindings/auto $(SRCROOT)/../cocos/scripting/js-bindings/manual"; }; name = Debug; }; - 507B42AF1C31E6070067B53E /* Release */ = { + 507EE8731C24C94600839198 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { GCC_GENERATE_DEBUGGING_SYMBOLS = NO; @@ -8338,111 +7508,79 @@ GCC_PRECOMPILE_PREFIX_HEADER = YES; GCC_PREPROCESSOR_DEFINITIONS = ( "$(inherited)", - CC_TARGET_OS_TVOS, + CC_TARGET_OS_MAC, + CC_KEYBOARD_SUPPORT, + COCOS2D_JAVASCRIPT, + ); + GCC_TREAT_WARNINGS_AS_ERRORS = NO; + INFOPLIST_FILE = "$(SRCROOT)/../tests/js-memory-gc-tests/project/proj.mac/Test_Info.plist"; + LD_RUNPATH_SEARCH_PATHS = "@loader_path/../Frameworks"; + MACOSX_DEPLOYMENT_TARGET = 10.7; + OTHER_LDFLAGS = ( + "-pagezero_size", + 10000, + "-image_base", + 100000000, + ); + PRODUCT_BUNDLE_IDENTIFIER = "org.cocos2d-x.js-memory-gc-tests-Mac"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SCAN_ALL_SOURCE_FILES_FOR_INCLUDES = YES; + USER_HEADER_SEARCH_PATHS = "$(inherited) $(SRCROOT)/../cocos/platform/mac $(SRCROOT)/../external/glfw3/include/mac $(SRCROOT)/../external/spidermonkey/include/mac $(SRCROOT)/.. $(SRCROOT)/../cocos $(SRCROOT)/../cocos/base $(SRCROOT)/../cocos/2d $(SRCROOT)/../cocos/gui $(SRCROOT)/../cocos/network $(SRCROOT)/../cocos/audio/include $(SRCROOT)/../cocos/editor-support $(SRCROOT)/../extensions $(SRCROOT)/../external $(SRCROOT)/../external/chipmunk/include/chipmunk $(SRCROOT)/../cocos/scripting/js-bindings/auto $(SRCROOT)/../cocos/scripting/js-bindings/manual"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 50AC0E921C2A3CAA0065A4C7 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + CODE_SIGN_IDENTITY = "iPhone Developer"; + ENABLE_BITCODE = NO; + GCC_INLINES_ARE_PRIVATE_EXTERN = NO; + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREPROCESSOR_DEFINITIONS = ( + "$(inherited)", + CC_TARGET_OS_IPHONE, + CC_KEYBOARD_SUPPORT, COCOS2D_JAVASCRIPT, ); GCC_TREAT_WARNINGS_AS_ERRORS = NO; INFOPLIST_FILE = "$(SRCROOT)/../tests/js-tests/project/proj.ios/Info.plist"; - LIBRARY_SEARCH_PATHS = ( - "$(SRCROOT)/../external/curl/prebuilt/ios", - "/Users/cocos2d/MyWork/cocos2d-x-develop/external/curl/prebuilt/ios", - ); - PRODUCT_BUNDLE_IDENTIFIER = "org.cocos2d-x.${PRODUCT_NAME:rfc1034identifier}"; + IPHONEOS_DEPLOYMENT_TARGET = 6.0; + PRODUCT_BUNDLE_IDENTIFIER = "org.cocos2d-x.js-memory-gc-tests-iOS"; PRODUCT_NAME = "$(TARGET_NAME)"; SCAN_ALL_SOURCE_FILES_FOR_INCLUDES = YES; - SDKROOT = appletvos; - USER_HEADER_SEARCH_PATHS = "$(SRCROOT)/.. $(SRCROOT)/../cocos $(SRCROOT)/../cocos/base $(SRCROOT)/../cocos/2d $(SRCROOT)/../cocos/gui $(SRCROOT)/../cocos/network $(SRCROOT)/../cocos/audio/include $(SRCROOT)/../cocos/editor-support $(SRCROOT)/../extensions $(SRCROOT)/../external $(SRCROOT)/../external/chipmunk/include/chipmunk $(SRCROOT)/../cocos/scripting/js-bindings/auto $(SRCROOT)/../cocos/scripting/js-bindings/manual $(inherited) $(SRCROOT)/../cocos/platform/ios $(SRCROOT)/../external/spidermonkey/include/ios $(SRCROOT)/../external/curl/include/ios"; - VALIDATE_PRODUCT = YES; - }; - name = Release; - }; - 507B43591C31FB350067B53E /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - PRODUCT_NAME = "$(TARGET_NAME)"; - }; - name = Debug; - }; - 507B435A1C31FB350067B53E /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - PRODUCT_NAME = "$(TARGET_NAME)"; - }; - name = Release; - }; - 507B43B71C31FB670067B53E /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - GCC_PREPROCESSOR_DEFINITIONS = ( - "$(inherited)", - CC_TARGET_OS_TVOS, - ); - INFOPLIST_FILE = "$(SRCROOT)/../tests/lua-tests/project/proj.ios_mac/ios/Info.plist"; - IPHONEOS_DEPLOYMENT_TARGET = 6.0; - LIBRARY_SEARCH_PATHS = ( - "$(SRCROOT)/../external/curl/prebuilt/ios", - "/Users/cocos2d/MyWork/cocos2d-x-develop/external/curl/prebuilt/ios", - ); - PRODUCT_BUNDLE_IDENTIFIER = "org.cocos2dx.${PRODUCT_NAME:rfc1034identifier}"; - PRODUCT_NAME = "$(TARGET_NAME)"; - SDKROOT = appletvos; + SDKROOT = iphoneos; TARGETED_DEVICE_FAMILY = "1,2"; - USER_HEADER_SEARCH_PATHS = "$(inherited) $(SRCROOT)/.. $(SRCROOT)/../cocos/platform/ios $(SRCROOT)/../external $(SRCROOT)/../external/lua/luajit/include $(SRCROOT)/../external/lua/tolua $(SRCROOT)/../cocos/scripting/lua-bindings/manual $(SRCROOT)/../cocos/scripting/lua-bindings/auto $(SRCROOT)/../external/curl/include/ios"; + USER_HEADER_SEARCH_PATHS = "$(inherited) $(SRCROOT)/../cocos/platform/ios $(SRCROOT)/../external/spidermonkey/include/ios $(SRCROOT)/.. $(SRCROOT)/../cocos $(SRCROOT)/../extensions $(SRCROOT)/../external $(SRCROOT)/../cocos/scripting/js-bindings/auto $(SRCROOT)/../cocos/scripting/js-bindings/manual $(SRCROOT)/../cocos/audio/include"; + VALID_ARCHS = "arm64 armv7"; }; name = Debug; }; - 507B43B81C31FB670067B53E /* Release */ = { + 50AC0E931C2A3CAA0065A4C7 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { + CODE_SIGN_IDENTITY = "iPhone Developer"; + ENABLE_BITCODE = NO; + GCC_GENERATE_DEBUGGING_SYMBOLS = NO; + GCC_INLINES_ARE_PRIVATE_EXTERN = NO; + GCC_PRECOMPILE_PREFIX_HEADER = YES; GCC_PREPROCESSOR_DEFINITIONS = ( "$(inherited)", - CC_TARGET_OS_TVOS, + CC_TARGET_OS_IPHONE, + CC_KEYBOARD_SUPPORT, + COCOS2D_JAVASCRIPT, ); - INFOPLIST_FILE = "$(SRCROOT)/../tests/lua-tests/project/proj.ios_mac/ios/Info.plist"; + GCC_TREAT_WARNINGS_AS_ERRORS = NO; + INFOPLIST_FILE = "$(SRCROOT)/../tests/js-tests/project/proj.ios/Info.plist"; IPHONEOS_DEPLOYMENT_TARGET = 6.0; - LIBRARY_SEARCH_PATHS = ( - "$(SRCROOT)/../external/curl/prebuilt/ios", - "/Users/cocos2d/MyWork/cocos2d-x-develop/external/curl/prebuilt/ios", - ); - PRODUCT_BUNDLE_IDENTIFIER = "org.cocos2dx.${PRODUCT_NAME:rfc1034identifier}"; + PRODUCT_BUNDLE_IDENTIFIER = "org.cocos2d-x.js-memory-gc-tests-iOS"; PRODUCT_NAME = "$(TARGET_NAME)"; - SDKROOT = appletvos; + SCAN_ALL_SOURCE_FILES_FOR_INCLUDES = YES; + SDKROOT = iphoneos; TARGETED_DEVICE_FAMILY = "1,2"; - USER_HEADER_SEARCH_PATHS = "$(inherited) $(SRCROOT)/.. $(SRCROOT)/../cocos/platform/ios $(SRCROOT)/../external $(SRCROOT)/../external/lua/luajit/include $(SRCROOT)/../external/lua/tolua $(SRCROOT)/../cocos/scripting/lua-bindings/manual $(SRCROOT)/../cocos/scripting/lua-bindings/auto $(SRCROOT)/../external/curl/include/ios"; - VALIDATE_PRODUCT = YES; - }; - name = Release; - }; - 507B43F01C3201360067B53E /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - GCC_PREPROCESSOR_DEFINITIONS = ( - "$(inherited)", - CC_TARGET_OS_TVOS, - ); - GCC_PREPROCESSOR_DEFINITIONS_NOT_USED_IN_PRECOMPS = ""; - INFOPLIST_FILE = "$(SRCROOT)/../tests/game-controller-test/proj.ios/Info.plist"; - PRODUCT_BUNDLE_IDENTIFIER = "org.cocos2d-x.${PRODUCT_NAME:rfc1034identifier}"; - PRODUCT_NAME = "$(TARGET_NAME)"; - SDKROOT = appletvos; - USER_HEADER_SEARCH_PATHS = "$(inherited) $(SRCROOT)/../cocos/platform/ios $(SRCROOT)/../cocos/platform/ios/Simulation $(SRCROOT)/../external/curl/include/ios"; - }; - name = Debug; - }; - 507B43F11C3201360067B53E /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - GCC_PREPROCESSOR_DEFINITIONS = ( - "$(inherited)", - CC_TARGET_OS_TVOS, - ); - GCC_PREPROCESSOR_DEFINITIONS_NOT_USED_IN_PRECOMPS = ""; - INFOPLIST_FILE = "$(SRCROOT)/../tests/game-controller-test/proj.ios/Info.plist"; - PRODUCT_BUNDLE_IDENTIFIER = "org.cocos2d-x.${PRODUCT_NAME:rfc1034identifier}"; - PRODUCT_NAME = "$(TARGET_NAME)"; - SDKROOT = appletvos; - USER_HEADER_SEARCH_PATHS = "$(inherited) $(SRCROOT)/../cocos/platform/ios $(SRCROOT)/../cocos/platform/ios/Simulation $(SRCROOT)/../external/curl/include/ios"; + USER_HEADER_SEARCH_PATHS = "$(inherited) $(SRCROOT)/../cocos/platform/ios $(SRCROOT)/../external/spidermonkey/include/ios $(SRCROOT)/.. $(SRCROOT)/../cocos $(SRCROOT)/../extensions $(SRCROOT)/../external $(SRCROOT)/../cocos/scripting/js-bindings/auto $(SRCROOT)/../cocos/scripting/js-bindings/manual $(SRCROOT)/../cocos/audio/include"; VALIDATE_PRODUCT = YES; + VALID_ARCHS = "arm64 armv7"; }; name = Release; }; @@ -8484,6 +7622,7 @@ isa = XCBuildConfiguration; buildSettings = { CODE_SIGN_IDENTITY = "iPhone Developer"; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; ENABLE_BITCODE = NO; GCC_PRECOMPILE_PREFIX_HEADER = YES; GCC_PREFIX_HEADER = "../tests/cpp-tests/proj.ios/Prefix.pch"; @@ -8510,6 +7649,7 @@ isa = XCBuildConfiguration; buildSettings = { CODE_SIGN_IDENTITY = "iPhone Developer"; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; ENABLE_BITCODE = NO; GCC_PRECOMPILE_PREFIX_HEADER = YES; GCC_PREFIX_HEADER = "../tests/cpp-tests/proj.ios/Prefix.pch"; @@ -8610,7 +7750,6 @@ ); PRODUCT_BUNDLE_IDENTIFIER = "org.cocos2d-x.${PRODUCT_NAME:rfc1034identifier}"; PRODUCT_NAME = "performance-tests iOS"; - PROVISIONING_PROFILE = ""; SDKROOT = iphoneos; TARGETED_DEVICE_FAMILY = "1,2"; USER_HEADER_SEARCH_PATHS = "$(inherited) $(SRCROOT)/../cocos/platform/ios $(SRCROOT)/../cocos/platform/ios/Simulation $(SRCROOT)/../external/curl/include/ios"; @@ -8639,7 +7778,6 @@ ); PRODUCT_BUNDLE_IDENTIFIER = "org.cocos2d-x.${PRODUCT_NAME:rfc1034identifier}"; PRODUCT_NAME = "performance-tests iOS"; - PROVISIONING_PROFILE = ""; SDKROOT = iphoneos; TARGETED_DEVICE_FAMILY = "1,2"; USER_HEADER_SEARCH_PATHS = "$(inherited) $(SRCROOT)/../cocos/platform/ios $(SRCROOT)/../cocos/platform/ios/Simulation $(SRCROOT)/../external/curl/include/ios"; @@ -8787,47 +7925,20 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = Debug; }; - 507B420A1C31BEA60067B53E /* Build configuration list for PBXNativeTarget "cpp-tests tvOS" */ = { + 507EE8711C24C94600839198 /* Build configuration list for PBXNativeTarget "js-tests-memory-gc Mac" */ = { isa = XCConfigurationList; buildConfigurations = ( - 507B420B1C31BEA60067B53E /* Debug */, - 507B420C1C31BEA60067B53E /* Release */, + 507EE8721C24C94600839198 /* Debug */, + 507EE8731C24C94600839198 /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Debug; }; - 507B42AD1C31E6070067B53E /* Build configuration list for PBXNativeTarget "js-tests tvOS" */ = { + 50AC0E911C2A3CAA0065A4C7 /* Build configuration list for PBXNativeTarget "js-tests-memory-gc iOS" */ = { isa = XCConfigurationList; buildConfigurations = ( - 507B42AE1C31E6070067B53E /* Debug */, - 507B42AF1C31E6070067B53E /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Debug; - }; - 507B43581C31FB350067B53E /* Build configuration list for PBXAggregateTarget "build all tests tvOS" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 507B43591C31FB350067B53E /* Debug */, - 507B435A1C31FB350067B53E /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Debug; - }; - 507B43B61C31FB670067B53E /* Build configuration list for PBXNativeTarget "lua-tests tvOS" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 507B43B71C31FB670067B53E /* Debug */, - 507B43B81C31FB670067B53E /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Debug; - }; - 507B43EF1C3201360067B53E /* Build configuration list for PBXNativeTarget "game-controller-test tvOS" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 507B43F01C3201360067B53E /* Debug */, - 507B43F11C3201360067B53E /* Release */, + 50AC0E921C2A3CAA0065A4C7 /* Debug */, + 50AC0E931C2A3CAA0065A4C7 /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Debug; diff --git a/build/cocos2d_tests.xcodeproj/xcshareddata/xcschemes/js-tests-memory-gc Mac.xcscheme b/build/cocos2d_tests.xcodeproj/xcshareddata/xcschemes/js-tests-memory-gc Mac.xcscheme new file mode 100644 index 0000000000..5733b208e8 --- /dev/null +++ b/build/cocos2d_tests.xcodeproj/xcshareddata/xcschemes/js-tests-memory-gc Mac.xcscheme @@ -0,0 +1,91 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/build/cocos2d_tests.xcodeproj/xcshareddata/xcschemes/js-tests-memory-gc iOS.xcscheme b/build/cocos2d_tests.xcodeproj/xcshareddata/xcschemes/js-tests-memory-gc iOS.xcscheme new file mode 100644 index 0000000000..ac1ed9615f --- /dev/null +++ b/build/cocos2d_tests.xcodeproj/xcshareddata/xcschemes/js-tests-memory-gc iOS.xcscheme @@ -0,0 +1,91 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/cocos/2d/CCSprite.cpp b/cocos/2d/CCSprite.cpp index 8851f9996a..1c6586d508 100644 --- a/cocos/2d/CCSprite.cpp +++ b/cocos/2d/CCSprite.cpp @@ -323,7 +323,7 @@ Sprite::Sprite(void) #endif //CC_SPRITE_DEBUG_DRAW } -Sprite::~Sprite(void) +Sprite::~Sprite() { CC_SAFE_RELEASE(_spriteFrame); CC_SAFE_RELEASE(_texture); diff --git a/cocos/2d/CCTransition.cpp b/cocos/2d/CCTransition.cpp index 1bb3fc785f..705f55953d 100644 --- a/cocos/2d/CCTransition.cpp +++ b/cocos/2d/CCTransition.cpp @@ -71,7 +71,7 @@ TransitionScene * TransitionScene::create(float t, Scene *scene) bool TransitionScene::initWithDuration(float t, Scene *scene) { - CCASSERT( scene != nullptr, "Argument scene must be non-nil"); + CCASSERT(scene != nullptr, "Argument scene must be non-nil"); if (Scene::init()) { diff --git a/cocos/base/CCDirector.cpp b/cocos/base/CCDirector.cpp index b7a3bb8635..9ca06869ff 100644 --- a/cocos/base/CCDirector.cpp +++ b/cocos/base/CCDirector.cpp @@ -1063,6 +1063,10 @@ void Director::setNextScene() { _runningScene->onEnter(); _runningScene->onEnterTransitionDidFinish(); + +#if CC_ENABLE_SCRIPT_BINDING + ScriptEngineManager::getInstance()->getScriptEngine()->garbageCollect(); +#endif // CC_ENABLE_SCRIPT_BINDING } } diff --git a/cocos/base/CCScriptSupport.h b/cocos/base/CCScriptSupport.h index d525744e3e..57e0b65244 100644 --- a/cocos/base/CCScriptSupport.h +++ b/cocos/base/CCScriptSupport.h @@ -761,6 +761,9 @@ public: It tells the Garbage Collector that the associated Scripting object can be collected */ virtual void unrootObject(Ref* obj) {} + + /** Triggers the garbage collector */ + virtual void garbageCollect() {} }; class Node; diff --git a/cocos/scripting/js-bindings/manual/ScriptingCore.cpp b/cocos/scripting/js-bindings/manual/ScriptingCore.cpp index 04a29dd4af..86ca3f4ad5 100644 --- a/cocos/scripting/js-bindings/manual/ScriptingCore.cpp +++ b/cocos/scripting/js-bindings/manual/ScriptingCore.cpp @@ -98,17 +98,21 @@ static void serverEntryPoint(unsigned int port); std::unordered_map _js_global_type_map; static std::unordered_map _native_js_global_map; static std::unordered_map _js_native_global_map; - +static std::unordered_map _extended_objects_map; static char *_js_log_buf = NULL; static std::vector registrationList; + // name ~> JSScript map static std::unordered_map filename_script; // port ~> socket map static std::unordered_map ports_sockets; +// forward declarations +static void js_register_nativefinalizeme(JSContext *cx, JS::HandleObject global); + static void cc_closesocket(int fd) { #if (CC_TARGET_PLATFORM == CC_PLATFORM_WIN32 || CC_TARGET_PLATFORM == CC_PLATFORM_WINRT) @@ -437,6 +441,8 @@ void registerDefaultClasses(JSContext* cx, JS::HandleObject global) { JS_DefineFunction(cx, global, "__restartVM", JSB_core_restartVM, 0, JSPROP_READONLY | JSPROP_PERMANENT | JSPROP_ENUMERATE ); JS_DefineFunction(cx, global, "__cleanScript", JSB_cleanScript, 1, JSPROP_READONLY | JSPROP_PERMANENT); JS_DefineFunction(cx, global, "__isObjectValid", ScriptingCore::isObjectValid, 1, JSPROP_READONLY | JSPROP_PERMANENT); + + js_register_nativefinalizeme(cx, jsc); } static void sc_finalize(JSFreeOp *freeOp, JSObject *obj) @@ -459,6 +465,92 @@ static const JSClass global_class = { JS_GlobalObjectTraceHook }; +static JSClass *jsb_nativefinalizeme_class; +static JSObject *jsb_nativefinalizeme_prototype; + +static bool js_nativefinalizeme_constructor(JSContext *cx, uint32_t argc, jsval *vp) +{ + JS::CallArgs args = JS::CallArgsFromVp(argc, vp); + +#if CC_ENABLE_GC_FOR_NATIVE_OBJECTS + + if (argc == 1) + { + auto extendedjsobj = args.get(0).toObjectOrNull(); + if (extendedjsobj) + { + JS::RootedObject proto(cx, jsb_nativefinalizeme_prototype); + JS::RootedObject obj(cx, JS_NewObject(cx, jsb_nativefinalizeme_class, proto, JS::NullPtr())); + args.rval().set(OBJECT_TO_JSVAL(obj)); + + if (_extended_objects_map.find(obj.get()) == _extended_objects_map.end()) + _extended_objects_map[obj.get()] = extendedjsobj; + else CCLOG("js_nativefinalizeme_constructor: obj = %p already added. ERROR! IMPOSSIBLE!", obj.get()); + return true; + } + } + CCLOG("js_nativefinalizeme_constructor: Invalid arguments"); + return false; + +#else // ! CC_ENABLE_GC_FOR_NATIVE_OBJECTS + // Don't create object if not using GC + args.rval().set(JS::NullValue()); + return true; +#endif +} + +static void js_nativefinalizeme_finalize(JSFreeOp* fop, JSObject* obj) +{ + auto it = _extended_objects_map.find(obj); + if (it != _extended_objects_map.end()) + { + auto extendedObj = it->second; + + // XXX: Only works for "ref" subclasses. + jsb_ref_finalize(fop, extendedObj); + + _extended_objects_map.erase(it); + } + else CCLOG("js_nativefinalizeme_finalize: obj = %p not found. ERROR!", obj); +} + +static void js_register_nativefinalizeme(JSContext *cx, JS::HandleObject global) +{ + jsb_nativefinalizeme_class = (JSClass *)calloc(1, sizeof(JSClass)); + jsb_nativefinalizeme_class->name = "NativeFinalizeMe"; + jsb_nativefinalizeme_class->addProperty = JS_PropertyStub; + jsb_nativefinalizeme_class->delProperty = JS_DeletePropertyStub; + jsb_nativefinalizeme_class->getProperty = JS_PropertyStub; + jsb_nativefinalizeme_class->setProperty = JS_StrictPropertyStub; + jsb_nativefinalizeme_class->enumerate = JS_EnumerateStub; + jsb_nativefinalizeme_class->resolve = JS_ResolveStub; + jsb_nativefinalizeme_class->convert = JS_ConvertStub; + jsb_nativefinalizeme_class->finalize = js_nativefinalizeme_finalize; + jsb_nativefinalizeme_class->flags = JSCLASS_HAS_RESERVED_SLOTS(2); + + static JSPropertySpec properties[] = { + JS_PS_END + }; + + static JSFunctionSpec funcs[] = { + JS_FS_END + }; + + static JSFunctionSpec st_funcs[] = { + JS_FS_END + }; + + jsb_nativefinalizeme_prototype = JS_InitClass( + cx, global, + JS::NullPtr(), + jsb_nativefinalizeme_class, + js_nativefinalizeme_constructor, 0, // constructor + properties, + funcs, + NULL, // no static properties + st_funcs); +} + ScriptingCore* ScriptingCore::getInstance() { static ScriptingCore* instance = nullptr; @@ -1207,7 +1299,7 @@ bool ScriptingCore::handleTouchesEvent(void* nativeObj, cocos2d::EventTouch::Eve for (const auto& touch : touches) { - JS::RootedValue jsret(_cx, OBJECT_TO_JSVAL(jsb_ref_get_or_create_jsobject(_cx, touch, typeClassTouch, "cocos2d::Touch"))); + JS::RootedValue jsret(_cx, OBJECT_TO_JSVAL(jsb_get_or_create_weak_jsobject(_cx, touch, typeClassTouch, "cocos2d::Touch"))); if (!JS_SetElement(this->_cx, jsretArr, count, jsret)) { break; @@ -1220,7 +1312,7 @@ bool ScriptingCore::handleTouchesEvent(void* nativeObj, cocos2d::EventTouch::Eve { jsval dataVal[2]; dataVal[0] = OBJECT_TO_JSVAL(jsretArr); - dataVal[1] = OBJECT_TO_JSVAL(jsb_ref_get_or_create_jsobject(_cx, event, typeClassEvent, "cocos2d::Event")); + dataVal[1] = OBJECT_TO_JSVAL(jsb_get_or_create_weak_jsobject(_cx, event, typeClassEvent, "cocos2d::Event")); ret = executeFunctionWithOwner(OBJECT_TO_JSVAL(p->obj), funcName.c_str(), 2, dataVal, jsvalRet); } @@ -1254,8 +1346,8 @@ bool ScriptingCore::handleTouchEvent(void* nativeObj, cocos2d::EventTouch::Event js_type_class_t *typeClassEvent = js_get_type_from_native(event); jsval dataVal[2]; - dataVal[0] = OBJECT_TO_JSVAL(jsb_ref_get_or_create_jsobject(_cx, touch, typeClassTouch, "cocos2d::Touch")); - dataVal[1] = OBJECT_TO_JSVAL(jsb_ref_get_or_create_jsobject(_cx, event, typeClassEvent, "cocos2d::Event")); + dataVal[0] = OBJECT_TO_JSVAL(jsb_get_or_create_weak_jsobject(_cx, touch, typeClassTouch, "cocos2d::Touch")); + dataVal[1] = OBJECT_TO_JSVAL(jsb_get_or_create_weak_jsobject(_cx, event, typeClassEvent, "cocos2d::Event")); ret = executeFunctionWithOwner(OBJECT_TO_JSVAL(p->obj), funcName.c_str(), 2, dataVal, jsvalRet); } @@ -1283,7 +1375,7 @@ bool ScriptingCore::handleMouseEvent(void* nativeObj, cocos2d::EventMouse::Mouse if (p) { js_type_class_t *typeClass = js_get_type_from_native(event); - jsval dataVal = OBJECT_TO_JSVAL(jsb_ref_get_or_create_jsobject(_cx, event, typeClass, "cocos2d::Event")); + jsval dataVal = OBJECT_TO_JSVAL(jsb_get_or_create_weak_jsobject(_cx, event, typeClass, "cocos2d::Event")); ret = executeFunctionWithOwner(OBJECT_TO_JSVAL(p->obj), funcName.c_str(), 1, &dataVal, jsvalRet); removeJSObject(_cx, event); @@ -1375,7 +1467,7 @@ bool ScriptingCore::handleKeybardEvent(void* nativeObj, cocos2d::EventKeyboard:: js_type_class_t *typeClass = js_get_type_from_native(event); jsval args[2] = { int32_to_jsval(_cx, (int32_t)keyCode), - OBJECT_TO_JSVAL(jsb_ref_get_or_create_jsobject(_cx, event, typeClass, "cocos2d::Event")) + OBJECT_TO_JSVAL(jsb_get_or_create_weak_jsobject(_cx, event, typeClass, "cocos2d::Event")) }; if (isPressed) @@ -1404,8 +1496,8 @@ bool ScriptingCore::handleFocusEvent(void* nativeObj, cocos2d::ui::Widget* widge js_type_class_t *typeClass = js_get_type_from_native(widgetLoseFocus); jsval args[2] = { - OBJECT_TO_JSVAL(jsb_ref_get_or_create_jsobject(_cx, widgetLoseFocus, typeClass, "cocos2d::ui::Widget")), - OBJECT_TO_JSVAL(jsb_ref_get_or_create_jsobject(_cx, widgetGetFocus, typeClass, "cocos2d::ui::Widget")) + OBJECT_TO_JSVAL(jsb_get_or_create_weak_jsobject(_cx, widgetLoseFocus, typeClass, "cocos2d::ui::Widget")), + OBJECT_TO_JSVAL(jsb_get_or_create_weak_jsobject(_cx, widgetGetFocus, typeClass, "cocos2d::ui::Widget")) }; bool ret = executeFunctionWithOwner(OBJECT_TO_JSVAL(p->obj), "onFocusChanged", 2, args); @@ -1426,7 +1518,7 @@ int ScriptingCore::executeCustomTouchesEvent(EventTouch::EventCode eventType, { js_type_class_t *typeClass = js_get_type_from_native(touch); - jsval jsret = OBJECT_TO_JSVAL(jsb_ref_get_or_create_jsobject(this->_cx, touch, typeClass, "cocos2d::Touch")); + jsval jsret = OBJECT_TO_JSVAL(jsb_get_or_create_weak_jsobject(this->_cx, touch, typeClass, "cocos2d::Touch")); JS::RootedValue jsval(_cx, jsret); if (!JS_SetElement(this->_cx, jsretArr, count, jsval)) { break; @@ -1455,7 +1547,7 @@ int ScriptingCore::executeCustomTouchEvent(EventTouch::EventCode eventType, Touc std::string funcName = getTouchFuncName(eventType); js_type_class_t *typeClass = js_get_type_from_native(touch); - jsval jsTouch = OBJECT_TO_JSVAL(jsb_ref_get_or_create_jsobject(this->_cx, touch, typeClass, "cocos2d::Touch")); + jsval jsTouch = OBJECT_TO_JSVAL(jsb_get_or_create_weak_jsobject(this->_cx, touch, typeClass, "cocos2d::Touch")); executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), funcName.c_str(), 1, &jsTouch, &retval); @@ -1476,7 +1568,7 @@ int ScriptingCore::executeCustomTouchEvent(EventTouch::EventCode eventType, std::string funcName = getTouchFuncName(eventType); js_type_class_t *typeClass = js_get_type_from_native(touch); - jsval jsTouch = OBJECT_TO_JSVAL(jsb_ref_get_or_create_jsobject(this->_cx, touch, typeClass, "cocos2d::Touch")); + jsval jsTouch = OBJECT_TO_JSVAL(jsb_get_or_create_weak_jsobject(this->_cx, touch, typeClass, "cocos2d::Touch")); executeFunctionWithOwner(OBJECT_TO_JSVAL(obj), funcName.c_str(), 1, &jsTouch, retval); @@ -1576,7 +1668,7 @@ void ScriptingCore::rootObject(Ref* ref) JS::AddNamedObjectRoot(cx, &proxy->obj, typeid(*ref).name()); ref->_rooted = true; } - else CCLOG("rootObject: BUG. native not found: %p", ref); + else CCLOG("rootObject: BUG. native not found: %p (%s)", ref, typeid(*ref).name()); } void ScriptingCore::unrootObject(Ref* ref) @@ -1587,7 +1679,19 @@ void ScriptingCore::unrootObject(Ref* ref) JS::RemoveObjectRoot(cx, &proxy->obj); ref->_rooted = false; } - else CCLOG("unrootObject: BUG. native not found: %p", ref); + else CCLOG("unrootObject: BUG. native not found: %p (%s)", ref, typeid(*ref).name()); +} + +void ScriptingCore::garbageCollect() +{ +#if CC_TARGET_PLATFORM != CC_PLATFORM_WIN32 + auto runtime = JS_GetRuntime(_cx); + // twice: yep, call it twice since this is a generational GC + // and we want to collect as much as possible when this is being called + // from replaceScene(). + JS_GC(runtime); + JS_GC(runtime); +#endif } #pragma mark - Debug @@ -2029,11 +2133,13 @@ JSObject* jsb_ref_autoreleased_create_jsobject(JSContext *cx, cocos2d::Ref *ref, } // get_or_create -JSObject* jsb_ref_get_or_create_jsobject(JSContext *cx, cocos2d::Ref *ref, js_type_class_t *typeClass, const char* debug) +JS::HandleObject jsb_ref_get_or_create_jsobject(JSContext *cx, cocos2d::Ref *ref, js_type_class_t *typeClass, const char* debug) { auto proxy = jsb_get_native_proxy(ref); - if (proxy) - return proxy->obj; + if (proxy) { + JS::RootedObject obj(cx, proxy->obj); + return obj; + } // don't auto-release, don't retain. JS::RootedObject proto(cx, typeClass->proto.ref()); @@ -2055,6 +2161,30 @@ JSObject* jsb_ref_get_or_create_jsobject(JSContext *cx, cocos2d::Ref *ref, js_ty return js_obj; } +// get_or_create: when native object isn't a ref object or when the native object life cycle don't need to be managed by js object +JS::HandleObject jsb_get_or_create_weak_jsobject(JSContext *cx, void *native, js_type_class_t *typeClass, const char* debug) +{ + auto proxy = jsb_get_native_proxy(native); + if (proxy) + { + JS::RootedObject obj(cx, proxy->obj); + return obj; + } + + // don't auto-release, don't retain. + JS::RootedObject proto(cx, typeClass->proto.ref()); + JS::RootedObject parent(cx, typeClass->parentProto.ref()); + JS::RootedObject jsObj(cx, JS_NewObject(cx, typeClass->jsclass, proto, parent)); + proxy = jsb_new_proxy(native, jsObj); + +#if CC_ENABLE_GC_FOR_NATIVE_OBJECTS + // do nothing +#else + JS::AddNamedObjectRoot(cx, &proxy->obj, debug); +#endif // CC_ENABLE_GC_FOR_NATIVE_OBJECTS + return jsObj; +} + // get_or_create: REf is already autoreleased (or created) JSObject* jsb_ref_autoreleased_get_or_create_jsobject(JSContext *cx, cocos2d::Ref *ref, js_type_class_t *typeClass, const char* debug) { @@ -2105,14 +2235,14 @@ void jsb_ref_finalize(JSFreeOp* fop, JSObject* obj) if (proxy) { auto ref = static_cast(proxy->ptr); + + CCLOG("jsb_ref_finalize: %s", typeid(*ref).name()); + jsb_remove_proxy(proxy); if (ref) ref->release(); } - else - { - CCLOG("jsb_ref_finalize: BUG: proxy not found for %p (%s)", obj, JS_GetClass(obj)->name); - } +// else CCLOG("jsb_ref_finalize: BUG: proxy not found for %p (%s)", obj, JS_GetClass(obj)->name); #else // CCLOG("jsb_ref_finalize: JSObject address = %p", obj); #endif @@ -2121,6 +2251,8 @@ void jsb_ref_finalize(JSFreeOp* fop, JSObject* obj) // rebind void jsb_ref_rebind(JSContext* cx, JS::HandleObject jsobj, js_proxy_t *proxy, cocos2d::Ref* oldRef, cocos2d::Ref* newRef, const char* debug) { + oldRef->_scriptOwned = false; + #if not CC_ENABLE_GC_FOR_NATIVE_OBJECTS JS::RemoveObjectRoot(cx, &proxy->obj); #endif diff --git a/cocos/scripting/js-bindings/manual/ScriptingCore.h b/cocos/scripting/js-bindings/manual/ScriptingCore.h index bb03a5fac8..96d24c3ea9 100644 --- a/cocos/scripting/js-bindings/manual/ScriptingCore.h +++ b/cocos/scripting/js-bindings/manual/ScriptingCore.h @@ -508,6 +508,11 @@ public: */ virtual void unrootObject(cocos2d::Ref* ref) override; + /** + * Calls the Garbage Collector + */ + virtual void garbageCollect() override; + private: void string_report(JS::HandleValue val); void initRegister(); @@ -616,7 +621,7 @@ JSObject* jsb_ref_autoreleased_create_jsobject(JSContext *cx, cocos2d::Ref *ref, If it can't find it, it will create a new one associating it to Ref. Call this function for objects that were already created and initialized, when returning `getChild()` */ -JSObject* jsb_ref_get_or_create_jsobject(JSContext *cx, cocos2d::Ref *ref, js_type_class_t *typeClass, const char* debug); +JS::HandleObject jsb_ref_get_or_create_jsobject(JSContext *cx, cocos2d::Ref *ref, js_type_class_t *typeClass, const char* debug); /** It will try to get the associated JSObjct for ref. @@ -625,4 +630,7 @@ JSObject* jsb_ref_get_or_create_jsobject(JSContext *cx, cocos2d::Ref *ref, js_ty */ JSObject* jsb_ref_autoreleased_get_or_create_jsobject(JSContext *cx, cocos2d::Ref *ref, js_type_class_t *typeClass, const char* debug); + +JS::HandleObject jsb_get_or_create_weak_jsobject(JSContext *cx, void *native, js_type_class_t *typeClass, const char* debug); + #endif /* __SCRIPTING_CORE_H__ */ diff --git a/cocos/scripting/js-bindings/manual/cocos2d_specifics.cpp b/cocos/scripting/js-bindings/manual/cocos2d_specifics.cpp index 66fdd989c3..a111f12826 100644 --- a/cocos/scripting/js-bindings/manual/cocos2d_specifics.cpp +++ b/cocos/scripting/js-bindings/manual/cocos2d_specifics.cpp @@ -2446,7 +2446,10 @@ bool js_cocos2dx_ActionInterval_repeat(JSContext *cx, uint32_t argc, jsval *vp) if (timesInt <= 0) { JS_ReportError(cx, "js_cocos2dx_ActionInterval_repeat : Repeat times must be greater than 0"); } - + + // no longer owned since it will be re-bound + cobj->_scriptOwned = false; + cocos2d::Repeat* action = new (std::nothrow) cocos2d::Repeat; action->initWithAction(cobj, timesInt); jsb_ref_rebind(cx, obj, proxy, cobj, action, "cocos2d::Repeat"); @@ -2468,10 +2471,15 @@ bool js_cocos2dx_ActionInterval_repeatForever(JSContext *cx, uint32_t argc, jsva JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_ActionInterval_repeatForever : Invalid Native Object"); if (argc == 0) { + + // no longer owned. + cobj->_scriptOwned = false; + cocos2d::RepeatForever* action = new (std::nothrow) cocos2d::RepeatForever; action->initWithAction(cobj); jsb_ref_rebind(cx, jsobj, proxy, cobj, action, "cocos2d::RepeatForever"); + args.rval().set(OBJECT_TO_JSVAL(jsobj)); return true; } @@ -2498,7 +2506,10 @@ bool js_cocos2dx_ActionInterval_speed(JSContext *cx, uint32_t argc, jsval *vp) JS_ReportError(cx, "js_cocos2dx_ActionInterval_speed : Speed must not be negative"); return false; } - + + // no longer owned since it is going to be re-bound + cobj->_scriptOwned = false; + cocos2d::Speed* action = new (std::nothrow) cocos2d::Speed; action->initWithAction(cobj, speed); jsb_ref_rebind(cx, obj, proxy, cobj, action, "cocos2d::Speed"); @@ -2564,6 +2575,9 @@ bool js_cocos2dx_ActionInterval_easing(JSContext *cx, uint32_t argc, jsval *vp) double tag; double parameter; + // no longer owned since it will be re-bound + oldAction->_scriptOwned = false; + for (int i = 0; i < argc; i++) { // jsval vpi = argv[i]; diff --git a/cocos/scripting/js-bindings/script/jsb_prepare.js b/cocos/scripting/js-bindings/script/jsb_prepare.js index 6795d6c683..0f306f668b 100644 --- a/cocos/scripting/js-bindings/script/jsb_prepare.js +++ b/cocos/scripting/js-bindings/script/jsb_prepare.js @@ -278,6 +278,10 @@ cc.Class.extend = function (prop) { cc.log("No ctor function found! Please check whether `classes_need_extend` section in `ini` file like which in `tools/tojs/cocos2dx.ini`"); } else { + // "extended" object won't use the native finalize + // will will guarantee that the clean-up of the native + // object will called + this.__finalizeMe = new __jsc__.NativeFinalizeMe(this); this.ctor.apply(this, arguments); } } diff --git a/tests/js-memory-gc-tests/.cocos-project.json b/tests/js-memory-gc-tests/.cocos-project.json new file mode 100644 index 0000000000..b62bcef23e --- /dev/null +++ b/tests/js-memory-gc-tests/.cocos-project.json @@ -0,0 +1,58 @@ +{ + "project_type": "js", + "has_native": true, + "win32_cfg": { + "project_path": "../../build", + "sln_file": "cocos2d-win32.sln", + "project_name": "js-tests", + "build_cfg_path": "project/proj.win32", + "exe_out_dir": "js-tests" + }, + "ios_cfg": { + "project_path": "../../build", + "project_file": "cocos2d_tests.xcodeproj", + "target_name": "js-tests iOS" + }, + "mac_cfg": { + "project_path": "../../build", + "project_file": "cocos2d_tests.xcodeproj", + "target_name": "js-tests Mac" + }, + "android_cfg": { + "project_path": "project/proj.android", + "studio_proj_path" : "project/proj.android-studio" + }, + "web_cfg": { + "project_path": "", + "run_root_dir": "../../", + "sub_url": "/tests/js-tests/", + "copy_resources": [ + { + "from": "../cpp-tests/Resources/", + "to": "res/" + }, + { + "from": "resjs", + "to": "res/" + } + ] + }, + "linux_cfg": { + "project_path": "project/proj.linux", + "project_name": "js-tests", + "cmake_path": "../../", + "build_dir": "../../build/linux-build", + "build_result_dir": "js-tests" + }, + "wp8_1_cfg" : { + "project_path": "../../build", + "sln_file": "cocos2d-win8.1-universal.sln", + "project_name": "js-tests.WindowsPhone" + }, + "metro_cfg" : { + "project_path": "../../build", + "sln_file": "cocos2d-win8.1-universal.sln", + "project_name": "js-tests.Windows" + }, + "engine_dir": "../../" +} diff --git a/tests/js-memory-gc-tests/main.js b/tests/js-memory-gc-tests/main.js new file mode 100644 index 0000000000..625d5f58ed --- /dev/null +++ b/tests/js-memory-gc-tests/main.js @@ -0,0 +1,130 @@ +/**************************************************************************** + Copyright (c) 2010-2012 cocos2d-x.org + Copyright (c) 2008-2010 Ricardo Quesada + Copyright (c) 2011 Zynga Inc. + + http://www.cocos2d-x.org + + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. + ****************************************************************************/ + +/** + * A brief explanation for "project.json": + * Here is the content of project.json file, this is the global configuration for your game, you can modify it to customize some behavior. + * The detail of each field is under it. + { + "debugMode" : 1, + // "debugMode" possible values : + // 0 - No message will be printed. + // 1 - cc.error, cc.assert, cc.warn, cc.log will print in console. + // 2 - cc.error, cc.assert, cc.warn will print in console. + // 3 - cc.error, cc.assert will print in console. + // 4 - cc.error, cc.assert, cc.warn, cc.log will print on canvas, available only on web. + // 5 - cc.error, cc.assert, cc.warn will print on canvas, available only on web. + // 6 - cc.error, cc.assert will print on canvas, available only on web. + + "showFPS" : true, + // Left bottom corner fps information will show when "showFPS" equals true, otherwise it will be hide. + + "frameRate" : 60, + // "frameRate" set the wanted frame rate for your game, but the real fps depends on your game implementation and the running environment. + + "noCache" : false, + // "noCache" set whether your resources will be loaded with a timestamp suffix in the url. + // In this way, your resources will be force updated even if the browser holds a cache of it. + // It's very useful for mobile browser debuging. + + "id" : "gameCanvas", + // "gameCanvas" sets the id of your canvas element on the web page, it's useful only on web. + + "renderMode" : 0, + // "renderMode" sets the renderer type, only useful on web : + // 0 - Automatically chosen by engine + // 1 - Forced to use canvas renderer + // 2 - Forced to use WebGL renderer, but this will be ignored on mobile browsers + + "engineDir" : "../../frameworks/cocos2d-html5/", + // In debug mode, if you use the whole engine to develop your game, you should specify its relative path with "engineDir", + // but if you are using a single engine file, you can ignore it. + + "modules" : ["cocos2d", "extensions", "external"], + // "modules" defines which modules you will need in your game, it's useful only on web, + // using this can greatly reduce your game's resource size, and the cocos console tool can package your game with only the modules you set. + // For details about modules definitions, you can refer to "../../frameworks/cocos2d-html5/modulesConfig.json". + + "plugin": { + "facebook": { + "appId" : "1426774790893461", + "xfbml" : true, + "version" : "v2.0" + } + }, + // "plugin" is used by plugin-x for its settings, if you don't use it, you can ignore it. + + "jsList" : [ + ] + // "jsList" sets the list of js files in your game. + } + * + */ + +if(cc.sys){ + var scene3SearchPaths = cc.sys.localStorage.getItem("Scene3SearchPaths"); + if (scene3SearchPaths) + jsb.fileUtils.setSearchPaths(JSON.parse(scene3SearchPaths)); +} + +cc.game.onStart = function(){ + cc.view.enableRetina(false); + if (cc.sys.isNative) { + var resolutionPolicy = (cc.sys.os == cc.sys.OS_WP8 || cc.sys.os == cc.sys.OS_WINRT) ? cc.ResolutionPolicy.SHOW_ALL : cc.ResolutionPolicy.FIXED_HEIGHT; + cc.view.setDesignResolutionSize(800, 450, resolutionPolicy); + cc.view.resizeWithBrowserSize(true); + var searchPaths = jsb.fileUtils.getSearchPaths(); + searchPaths.push('script'); + searchPaths.push('src'); + var paths = [ + 'res' + ]; + for (var i = 0; i < paths.length; i++) { + searchPaths.push(paths[i]); + } + jsb.fileUtils.setSearchPaths(searchPaths); + } + else + { + cc.view.setDesignResolutionSize(800, 450, cc.ResolutionPolicy.SHOW_ALL); + cc.view.resizeWithBrowserSize(true); + // js-test use cpptest resource in debug mode , and in the release mode, console will copy the resource into the res dir + // so the respath will modify to res, + if (cc.game.config[cc.game.CONFIG_KEY.engineDir] !== "frameworks/cocos2d-html5") { + cc.loader.resPath = '../cpp-tests/Resources'; + } + else { + cc.loader.resPath = 'res'; + document.getElementById("cocosbanner").src = "res/Images/cocos2dbanner.png"; + } + } + + cc.LoaderScene.preload([], function () { + runMain(); + }, this); +}; +cc.game.run(); diff --git a/tests/js-memory-gc-tests/project.json b/tests/js-memory-gc-tests/project.json new file mode 100644 index 0000000000..8393725f40 --- /dev/null +++ b/tests/js-memory-gc-tests/project.json @@ -0,0 +1,23 @@ +{ + "debugMode" : 1, + "showFPS" : true, + "frameRate" : 60, + "noCache" : false, + "id" : "gameCanvas", + "renderMode" : 0, + "engineDir" : "../../web/", + + "modules" : ["cocos2d", "extensions", "external"], + + "plugin": { + "facebook": { + "appId" : "1426774790893461", + "xfbml" : true, + "version" : "v2.0" + } + }, + + "jsList" : [ + "src/tests-main.js" + ] +} diff --git a/tests/js-memory-gc-tests/project/CMakeLists.txt b/tests/js-memory-gc-tests/project/CMakeLists.txt new file mode 100644 index 0000000000..04afe8b7e9 --- /dev/null +++ b/tests/js-memory-gc-tests/project/CMakeLists.txt @@ -0,0 +1,87 @@ +#/**************************************************************************** +# Copyright (c) 2015 Chukong Technologies Inc. +# +# http://www.cocos2d-x.org +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: + +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. + +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +# THE SOFTWARE. +# ****************************************************************************/ + +set(APP_NAME js-tests) + +if(WIN32) + +else() + set(PLATFORM_SRC + proj.linux/main.cpp + ) +endif() + +set(SAMPLE_SRC + Classes/AppDelegate.cpp + Classes/js_DrawNode3D_bindings.cpp + Classes/js_Effect3D_bindings.cpp + ${PLATFORM_SRC} +) + +include_directories( + Classes + ../../../cocos/scripting/js-bindings/auto + ../../../cocos/scripting/js-bindings/manual + ../../../cocos/base + ../../../cocos/editor-support + ../../../cocos/audio/include + ../../../external/spidermonkey/include/${PLATFORM_FOLDER} + ../../../external/chipmunk/include/chipmunk +) + +# add the executable +add_executable(${APP_NAME} + ${SAMPLE_SRC} +) + +target_link_libraries(${APP_NAME} + jscocos2d + cocos2d +) + +set(APP_BIN_DIR "${CMAKE_BINARY_DIR}/bin/${APP_NAME}") + +set_target_properties(${APP_NAME} PROPERTIES + RUNTIME_OUTPUT_DIRECTORY "${APP_BIN_DIR}") + + +if(LINUX) + set(RES_PREFIX "/Resources") +else() + set(RES_PREFIX "") +endif() + +pre_build(${APP_NAME} + COMMAND ${CMAKE_COMMAND} -E remove_directory ${APP_BIN_DIR}${RES_PREFIX}/script + COMMAND ${CMAKE_COMMAND} -E remove_directory ${APP_BIN_DIR}${RES_PREFIX}/res + COMMAND ${CMAKE_COMMAND} -E remove_directory ${APP_BIN_DIR}${RES_PREFIX}/src + COMMAND ${CMAKE_COMMAND} -E remove ${APP_BIN_DIR}${RES_PREFIX}/*.js + COMMAND ${CMAKE_COMMAND} -E remove ${APP_BIN_DIR}${RES_PREFIX}/*.json + COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_SOURCE_DIR}/../../cpp-tests/Resources ${APP_BIN_DIR}${RES_PREFIX}/res + COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_SOURCE_DIR}/../res ${APP_BIN_DIR}${RES_PREFIX}/res + COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_SOURCE_DIR}/../src ${APP_BIN_DIR}${RES_PREFIX}/src + COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_SOURCE_DIR}/../../../cocos/scripting/js-bindings/script ${APP_BIN_DIR}${RES_PREFIX}/script + COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/../main.js ${APP_BIN_DIR}${RES_PREFIX}/main.js + COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/../project.json ${APP_BIN_DIR}${RES_PREFIX}/project.json + ) diff --git a/tests/js-memory-gc-tests/project/Classes/AppDelegate.cpp b/tests/js-memory-gc-tests/project/Classes/AppDelegate.cpp new file mode 100644 index 0000000000..e35b31fc04 --- /dev/null +++ b/tests/js-memory-gc-tests/project/Classes/AppDelegate.cpp @@ -0,0 +1,185 @@ +#include "AppDelegate.h" + +#include "cocos2d.h" +#include "SimpleAudioEngine.h" +#include "ScriptingCore.h" +#include "jsb_cocos2dx_auto.hpp" +#include "jsb_cocos2dx_extension_auto.hpp" +#include "jsb_cocos2dx_builder_auto.hpp" +#include "jsb_cocos2dx_spine_auto.hpp" +#include "jsb_cocos2dx_3d_auto.hpp" +#include "jsb_cocos2dx_3d_extension_auto.hpp" +#include "jsb_cocos2dx_physics3d_auto.hpp" +#include "physics3d/jsb_cocos2dx_physics3d_manual.h" +#include "jsb_cocos2dx_navmesh_auto.hpp" +#include "navmesh/jsb_cocos2dx_navmesh_manual.h" +#include "3d/jsb_cocos2dx_3d_manual.h" +#include "extension/jsb_cocos2dx_extension_manual.h" +#include "cocostudio/jsb_cocos2dx_studio_manual.h" +#include "jsb_cocos2dx_studio_auto.hpp" +#include "jsb_cocos2dx_ui_auto.hpp" +#include "ui/jsb_cocos2dx_ui_manual.h" +#include "spine/jsb_cocos2dx_spine_manual.h" +#include "cocos2d_specifics.hpp" +#include "cocosbuilder/cocosbuilder_specifics.hpp" +#include "chipmunk/js_bindings_chipmunk_registration.h" +#include "localstorage/js_bindings_system_registration.h" +#include "jsb_opengl_registration.h" +#include "network/XMLHTTPRequest.h" +#include "network/jsb_websocket.h" +#include "network/jsb_socketio.h" +#include "cocosbuilder/js_bindings_ccbreader.h" + +#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID) +#include "platform/android/CCJavascriptJavaBridge.h" +#elif (CC_TARGET_PLATFORM == CC_PLATFORM_IOS || CC_TARGET_PLATFORM == CC_PLATFORM_MAC) +#include "platform/ios/JavaScriptObjCBridge.h" +#endif + +#include "js_Effect3D_bindings.h" + +#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS || CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID) +#include "jsb_cocos2dx_experimental_webView_auto.hpp" +#include "experimental/jsb_cocos2dx_experimental_webView_manual.h" +#endif + +#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS || CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID) +#include "jsb_cocos2dx_experimental_video_auto.hpp" +#include "experimental/jsb_cocos2dx_experimental_video_manual.h" +#endif + +#if (CC_TARGET_PLATFORM == CC_PLATFORM_WINRT || CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID || CC_TARGET_PLATFORM == CC_PLATFORM_IOS || CC_TARGET_PLATFORM == CC_PLATFORM_MAC || CC_TARGET_PLATFORM == CC_PLATFORM_WIN32) +#include "jsb_cocos2dx_audioengine_auto.hpp" +#endif + +USING_NS_CC; +USING_NS_CC_EXT; +using namespace CocosDenshion; + +AppDelegate::AppDelegate() +{ +} + +AppDelegate::~AppDelegate() +{ + ScriptEngineManager::destroyInstance(); +} + +void AppDelegate::initGLContextAttrs() +{ + GLContextAttrs glContextAttrs = {8, 8, 8, 8, 24, 8}; + + GLView::setGLContextAttrs(glContextAttrs); +} + +bool AppDelegate::applicationDidFinishLaunching() +{ + // initialize director + auto director = Director::getInstance(); + auto glview = director->getOpenGLView(); + if(!glview) { +#if(CC_TARGET_PLATFORM == CC_PLATFORM_WINRT) + glview = cocos2d::GLViewImpl::create("js-tests"); +#else + glview = cocos2d::GLViewImpl::createWithRect("js-tests", Rect(0,0,900,640)); +#endif + director->setOpenGLView(glview); + } + + // set FPS. the default value is 1.0/60 if you don't call this + director->setAnimationInterval(1.0 / 60); + + ScriptingCore* sc = ScriptingCore::getInstance(); + sc->addRegisterCallback(register_all_cocos2dx); + sc->addRegisterCallback(register_cocos2dx_js_core); + sc->addRegisterCallback(jsb_register_system); + + sc->addRegisterCallback(register_all_cocos2dx_extension); + sc->addRegisterCallback(register_all_cocos2dx_extension_manual); + + sc->addRegisterCallback(jsb_register_chipmunk); + sc->addRegisterCallback(JSB_register_opengl); + + sc->addRegisterCallback(MinXmlHttpRequest::_js_register); + sc->addRegisterCallback(register_jsb_websocket); + sc->addRegisterCallback(register_jsb_socketio); + + sc->addRegisterCallback(register_all_cocos2dx_builder); + sc->addRegisterCallback(register_CCBuilderReader); + + sc->addRegisterCallback(register_all_cocos2dx_ui); + sc->addRegisterCallback(register_all_cocos2dx_ui_manual); + sc->addRegisterCallback(register_all_cocos2dx_studio); + sc->addRegisterCallback(register_all_cocos2dx_studio_manual); + + sc->addRegisterCallback(register_all_cocos2dx_spine); + sc->addRegisterCallback(register_all_cocos2dx_spine_manual); + + sc->addRegisterCallback(register_all_cocos2dx_3d); + sc->addRegisterCallback(register_all_cocos2dx_3d_manual); + + sc->addRegisterCallback(register_all_cocos2dx_3d_extension); + +#if CC_USE_3D_PHYSICS && CC_ENABLE_BULLET_INTEGRATION + sc->addRegisterCallback(register_all_cocos2dx_physics3d); + sc->addRegisterCallback(register_all_cocos2dx_physics3d_manual); +#endif + +#if CC_USE_NAVMESH + sc->addRegisterCallback(register_all_cocos2dx_navmesh); + sc->addRegisterCallback(register_all_cocos2dx_navmesh_manual); +#endif + +#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID) + sc->addRegisterCallback(JavascriptJavaBridge::_js_register); +#elif (CC_TARGET_PLATFORM == CC_PLATFORM_IOS || CC_TARGET_PLATFORM == CC_PLATFORM_MAC) + sc->addRegisterCallback(JavaScriptObjCBridge::_js_register); +#endif + +#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS || CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID) + sc->addRegisterCallback(register_all_cocos2dx_experimental_webView); + sc->addRegisterCallback(register_all_cocos2dx_experimental_webView_manual); +#endif + +#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS || CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID) + sc->addRegisterCallback(register_all_cocos2dx_experimental_video); + sc->addRegisterCallback(register_all_cocos2dx_experimental_video_manual); +#endif + +#if (CC_TARGET_PLATFORM == CC_PLATFORM_WINRT || CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID || CC_TARGET_PLATFORM == CC_PLATFORM_IOS || CC_TARGET_PLATFORM == CC_PLATFORM_MAC || CC_TARGET_PLATFORM == CC_PLATFORM_WIN32) + sc->addRegisterCallback(register_all_cocos2dx_audioengine); +#endif + + sc->start(); + sc->runScript("script/jsb_boot.js"); +#if defined(COCOS2D_DEBUG) && (COCOS2D_DEBUG > 0) + sc->enableDebugger(); +#endif + + auto pEngine = ScriptingCore::getInstance(); + ScriptEngineManager::getInstance()->setScriptEngine(pEngine); + + ScriptingCore::getInstance()->runScript("main.js"); + + return true; +} + +// This function will be called when the app is inactive. When comes a phone call,it's be invoked too +void AppDelegate::applicationDidEnterBackground() +{ + auto director = Director::getInstance(); + director->stopAnimation(); + director->getEventDispatcher()->dispatchCustomEvent("game_on_hide"); + SimpleAudioEngine::getInstance()->pauseBackgroundMusic(); + SimpleAudioEngine::getInstance()->pauseAllEffects(); +} + +// this function will be called when the app is active again +void AppDelegate::applicationWillEnterForeground() +{ + auto director = Director::getInstance(); + director->startAnimation(); + director->getEventDispatcher()->dispatchCustomEvent("game_on_show"); + SimpleAudioEngine::getInstance()->resumeBackgroundMusic(); + SimpleAudioEngine::getInstance()->resumeAllEffects(); +} diff --git a/tests/js-memory-gc-tests/project/Classes/AppDelegate.h b/tests/js-memory-gc-tests/project/Classes/AppDelegate.h new file mode 100644 index 0000000000..aabb7fa2f4 --- /dev/null +++ b/tests/js-memory-gc-tests/project/Classes/AppDelegate.h @@ -0,0 +1,39 @@ +#ifndef _APP_DELEGATE_H_ +#define _APP_DELEGATE_H_ + +#include "platform/CCApplication.h" +/** + @brief The cocos2d Application. + + The reason for implement as private inheritance is to hide some interface call by Director. + */ +class AppDelegate : private cocos2d::Application +{ +public: + AppDelegate(); + virtual ~AppDelegate(); + + void initGLContextAttrs() override; + + /** + @brief Implement Director and Scene init code here. + @return true Initialize success, app continue. + @return false Initialize failed, app terminate. + */ + virtual bool applicationDidFinishLaunching() override; + + /** + @brief The function be called when the application enter background + @param the pointer of the application + */ + virtual void applicationDidEnterBackground() override; + + /** + @brief The function be called when the application enter foreground + @param the pointer of the application + */ + virtual void applicationWillEnterForeground() override; +}; + +#endif // _APP_DELEGATE_H_ + diff --git a/tests/js-memory-gc-tests/project/proj.android-studio/.gitignore b/tests/js-memory-gc-tests/project/proj.android-studio/.gitignore new file mode 100644 index 0000000000..9c4de5825b --- /dev/null +++ b/tests/js-memory-gc-tests/project/proj.android-studio/.gitignore @@ -0,0 +1,7 @@ +.gradle +/local.properties +/.idea/workspace.xml +/.idea/libraries +.DS_Store +/build +/captures diff --git a/tests/js-memory-gc-tests/project/proj.android-studio/app/.gitignore b/tests/js-memory-gc-tests/project/proj.android-studio/app/.gitignore new file mode 100644 index 0000000000..1de99493d6 --- /dev/null +++ b/tests/js-memory-gc-tests/project/proj.android-studio/app/.gitignore @@ -0,0 +1,2 @@ +/build +/jniLibs diff --git a/tests/js-memory-gc-tests/project/proj.android-studio/app/AndroidManifest.xml b/tests/js-memory-gc-tests/project/proj.android-studio/app/AndroidManifest.xml new file mode 100644 index 0000000000..e7922a2b1e --- /dev/null +++ b/tests/js-memory-gc-tests/project/proj.android-studio/app/AndroidManifest.xml @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/js-memory-gc-tests/project/proj.android-studio/app/build.gradle b/tests/js-memory-gc-tests/project/proj.android-studio/app/build.gradle new file mode 100644 index 0000000000..e840b5a973 --- /dev/null +++ b/tests/js-memory-gc-tests/project/proj.android-studio/app/build.gradle @@ -0,0 +1,50 @@ +apply plugin: 'com.android.application' + +android { + compileSdkVersion 22 + buildToolsVersion "22.0.1" + + defaultConfig { + applicationId "org.cocos2dx.js_tests" + minSdkVersion 10 + targetSdkVersion 22 + versionCode 1 + versionName "1.0" + + } + + sourceSets.main { + java.srcDir "src" + res.srcDir "res" + jniLibs.srcDir "libs" + manifest.srcFile "AndroidManifest.xml" + assets.srcDir "assets" + } + + signingConfigs { + + release { + if (project.hasProperty("RELEASE_STORE_FILE")) { + storeFile file(RELEASE_STORE_FILE) + storePassword RELEASE_STORE_PASSWORD + keyAlias RELEASE_KEY_ALIAS + keyPassword RELEASE_KEY_PASSWORD + } + } + } + + buildTypes { + release { + minifyEnabled false + proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' + if (project.hasProperty("RELEASE_STORE_FILE")) { + signingConfig signingConfigs.release + } + } + } +} + +dependencies { + compile fileTree(dir: 'libs', include: ['*.jar']) + compile project(':libcocos2dx') +} diff --git a/tests/js-memory-gc-tests/project/proj.android-studio/app/jni/Android.mk b/tests/js-memory-gc-tests/project/proj.android-studio/app/jni/Android.mk new file mode 100644 index 0000000000..dab475af1c --- /dev/null +++ b/tests/js-memory-gc-tests/project/proj.android-studio/app/jni/Android.mk @@ -0,0 +1,23 @@ +LOCAL_PATH := $(call my-dir) + +include $(CLEAR_VARS) + +LOCAL_MODULE := js_tests_shared + +LOCAL_MODULE_FILENAME := libjs_tests + +LOCAL_SRC_FILES := main.cpp \ + ../../../Classes/AppDelegate.cpp \ + ../../../Classes/js_DrawNode3D_bindings.cpp \ + ../../../Classes/js_Effect3D_bindings.cpp + +LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../../Classes + +LOCAL_STATIC_LIBRARIES := cocos2d_js_static + + +LOCAL_EXPORT_CFLAGS := -DCOCOS2D_DEBUG=1 + +include $(BUILD_SHARED_LIBRARY) + +$(call import-module,scripting/js-bindings/proj.android) diff --git a/tests/js-memory-gc-tests/project/proj.android-studio/app/jni/Application.mk b/tests/js-memory-gc-tests/project/proj.android-studio/app/jni/Application.mk new file mode 100644 index 0000000000..81ca21b08f --- /dev/null +++ b/tests/js-memory-gc-tests/project/proj.android-studio/app/jni/Application.mk @@ -0,0 +1,17 @@ +APP_STL := gnustl_static + +# Uncomment this line to compile to armeabi-v7a, your application will run faster but support less devices +#APP_ABI := armeabi-v7a + +APP_CPPFLAGS := -frtti -DCC_ENABLE_CHIPMUNK_INTEGRATION=1 -std=c++11 -fsigned-char +APP_LDFLAGS := -latomic + +USE_ARM_MODE := 1 + +ifeq ($(NDK_DEBUG),1) + APP_CPPFLAGS += -DCOCOS2D_DEBUG=1 + APP_OPTIM := debug +else + APP_CPPFLAGS += -DNDEBUG + APP_OPTIM := release +endif diff --git a/tests/js-memory-gc-tests/project/proj.android-studio/app/jni/main.cpp b/tests/js-memory-gc-tests/project/proj.android-studio/app/jni/main.cpp new file mode 100644 index 0000000000..2d9745860d --- /dev/null +++ b/tests/js-memory-gc-tests/project/proj.android-studio/app/jni/main.cpp @@ -0,0 +1,17 @@ +#include "AppDelegate.h" +#include "cocos2d.h" +#include "platform/android/jni/JniHelper.h" +#include +#include + +#define LOG_TAG "main" +#define LOGD(...) __android_log_print(ANDROID_LOG_DEBUG,LOG_TAG,__VA_ARGS__) + +using namespace cocos2d; + +void cocos_android_app_init (JNIEnv* env) { + LOGD("cocos_android_app_init"); + AppDelegate *pAppDelegate = new AppDelegate(); + JavaVM* vm; + env->GetJavaVM(&vm); +} diff --git a/tests/js-memory-gc-tests/project/proj.android-studio/app/proguard-rules.pro b/tests/js-memory-gc-tests/project/proj.android-studio/app/proguard-rules.pro new file mode 100644 index 0000000000..6618e28017 --- /dev/null +++ b/tests/js-memory-gc-tests/project/proj.android-studio/app/proguard-rules.pro @@ -0,0 +1,17 @@ +# Add project specific ProGuard rules here. +# By default, the flags in this file are appended to flags specified +# in E:\developSoftware\Android\SDK/tools/proguard/proguard-android.txt +# You can edit the include path and order by changing the proguardFiles +# directive in build.gradle. +# +# For more details, see +# http://developer.android.com/guide/developing/tools/proguard.html + +# Add any project specific keep options here: + +# If your project uses WebView with JS, uncomment the following +# and specify the fully qualified class name to the JavaScript interface +# class: +#-keepclassmembers class fqcn.of.javascript.interface.for.webview { +# public *; +#} diff --git a/tests/js-memory-gc-tests/project/proj.android-studio/app/res/mipmap-hdpi/ic_launcher.png b/tests/js-memory-gc-tests/project/proj.android-studio/app/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 0000000000..45ee51d15f Binary files /dev/null and b/tests/js-memory-gc-tests/project/proj.android-studio/app/res/mipmap-hdpi/ic_launcher.png differ diff --git a/tests/js-memory-gc-tests/project/proj.android-studio/app/res/mipmap-mdpi/ic_launcher.png b/tests/js-memory-gc-tests/project/proj.android-studio/app/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 0000000000..0dd2a60899 Binary files /dev/null and b/tests/js-memory-gc-tests/project/proj.android-studio/app/res/mipmap-mdpi/ic_launcher.png differ diff --git a/tests/js-memory-gc-tests/project/proj.android-studio/app/res/mipmap-xhdpi/ic_launcher.png b/tests/js-memory-gc-tests/project/proj.android-studio/app/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 0000000000..a32f16f930 Binary files /dev/null and b/tests/js-memory-gc-tests/project/proj.android-studio/app/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/tests/js-memory-gc-tests/project/proj.android-studio/app/res/mipmap-xxhdpi/ic_launcher.png b/tests/js-memory-gc-tests/project/proj.android-studio/app/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 0000000000..332f268edc Binary files /dev/null and b/tests/js-memory-gc-tests/project/proj.android-studio/app/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/tests/js-memory-gc-tests/project/proj.android-studio/app/res/values/strings.xml b/tests/js-memory-gc-tests/project/proj.android-studio/app/res/values/strings.xml new file mode 100644 index 0000000000..e0eefac763 --- /dev/null +++ b/tests/js-memory-gc-tests/project/proj.android-studio/app/res/values/strings.xml @@ -0,0 +1,3 @@ + + JSTests + diff --git a/tests/js-memory-gc-tests/project/proj.android-studio/app/src/org/cocos2dx/js_tests/AppActivity.java b/tests/js-memory-gc-tests/project/proj.android-studio/app/src/org/cocos2dx/js_tests/AppActivity.java new file mode 100644 index 0000000000..72a437b604 --- /dev/null +++ b/tests/js-memory-gc-tests/project/proj.android-studio/app/src/org/cocos2dx/js_tests/AppActivity.java @@ -0,0 +1,80 @@ +/**************************************************************************** +Copyright (c) 2015 Chukong Technologies Inc. + +http://www.cocos2d-x.org + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +****************************************************************************/ +package org.cocos2dx.js_tests; + +import org.cocos2dx.js_tests.R; +import org.cocos2dx.lib.Cocos2dxActivity; +import org.cocos2dx.lib.Cocos2dxGLSurfaceView; +import org.cocos2dx.lib.Cocos2dxJavascriptJavaBridge; + +import android.app.AlertDialog; +import android.content.DialogInterface; +import android.content.Intent; +import android.os.Bundle; + +public class AppActivity extends Cocos2dxActivity { + + private static AppActivity app = null; + + @Override + public void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + app = this; + } + + @Override + public Cocos2dxGLSurfaceView onCreateView() { + Cocos2dxGLSurfaceView glSurfaceView = new Cocos2dxGLSurfaceView(this); + // TestCpp should create stencil buffer + glSurfaceView.setEGLConfigChooser(5, 6, 5, 0, 16, 8); + + return glSurfaceView; + } + + public static void showAlertDialog(final String title, final String message) { + app.runOnUiThread(new Runnable() { + @Override + public void run() { + AlertDialog alertDialog = new AlertDialog.Builder(app).create(); + alertDialog.setTitle(title); + alertDialog.setMessage(message); + alertDialog.setCancelable(true); + alertDialog.setIcon(R.mipmap.ic_launcher); + alertDialog.setButton("OK", new DialogInterface.OnClickListener() { + public void onClick(DialogInterface dialog, int which) { + app.runOnGLThread(new Runnable() { + @Override + public void run() { + + Cocos2dxJavascriptJavaBridge.evalString("cc.log(\"Javascript Java bridge!\")"); + } + }); + } + }); + alertDialog.show(); + } + }); + } + +} diff --git a/tests/js-memory-gc-tests/project/proj.android-studio/build-cfg.json b/tests/js-memory-gc-tests/project/proj.android-studio/build-cfg.json new file mode 100644 index 0000000000..80c2622870 --- /dev/null +++ b/tests/js-memory-gc-tests/project/proj.android-studio/build-cfg.json @@ -0,0 +1,36 @@ +{ + "copy_resources": [ + { + "from": "../../src", + "to": "src" + }, + { + "from": "../../../cpp-tests/Resources/", + "to": "res/", + "exclude": [ + "*.gz" + ] + }, + { + "from": "../../main.js", + "to": "" + }, + { + "from": "../../project.json", + "to": "" + }, + { + "from": "../../../../cocos/scripting/js-bindings/script", + "to": "script" + }, + { + "from": "../../resjs", + "to": "res/resjs/" + } + ], + "ndk_module_path": [ + "../../../..", + "../../../../cocos", + "../../../../external" + ] +} diff --git a/tests/js-memory-gc-tests/project/proj.android-studio/build.gradle b/tests/js-memory-gc-tests/project/proj.android-studio/build.gradle new file mode 100644 index 0000000000..1b7886d148 --- /dev/null +++ b/tests/js-memory-gc-tests/project/proj.android-studio/build.gradle @@ -0,0 +1,19 @@ +// Top-level build file where you can add configuration options common to all sub-projects/modules. + +buildscript { + repositories { + jcenter() + } + dependencies { + classpath 'com.android.tools.build:gradle:1.3.0' + + // NOTE: Do not place your application dependencies here; they belong + // in the individual module build.gradle files + } +} + +allprojects { + repositories { + jcenter() + } +} diff --git a/tests/js-memory-gc-tests/project/proj.android-studio/gradle.properties b/tests/js-memory-gc-tests/project/proj.android-studio/gradle.properties new file mode 100644 index 0000000000..1d3591c8a4 --- /dev/null +++ b/tests/js-memory-gc-tests/project/proj.android-studio/gradle.properties @@ -0,0 +1,18 @@ +# Project-wide Gradle settings. + +# IDE (e.g. Android Studio) users: +# Gradle settings configured through the IDE *will override* +# any settings specified in this file. + +# For more details on how to configure your build environment visit +# http://www.gradle.org/docs/current/userguide/build_environment.html + +# Specifies the JVM arguments used for the daemon process. +# The setting is particularly useful for tweaking memory settings. +# Default value: -Xmx10248m -XX:MaxPermSize=256m +# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 + +# When configured, Gradle will run in incubating parallel mode. +# This option should only be used with decoupled projects. More details, visit +# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects +# org.gradle.parallel=true \ No newline at end of file diff --git a/tests/js-memory-gc-tests/project/proj.android-studio/gradle/wrapper/gradle-wrapper.jar b/tests/js-memory-gc-tests/project/proj.android-studio/gradle/wrapper/gradle-wrapper.jar new file mode 100644 index 0000000000..8c0fb64a86 Binary files /dev/null and b/tests/js-memory-gc-tests/project/proj.android-studio/gradle/wrapper/gradle-wrapper.jar differ diff --git a/tests/js-memory-gc-tests/project/proj.android-studio/gradle/wrapper/gradle-wrapper.properties b/tests/js-memory-gc-tests/project/proj.android-studio/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 0000000000..1d87c27c59 --- /dev/null +++ b/tests/js-memory-gc-tests/project/proj.android-studio/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,6 @@ +#Fri Jul 31 20:40:49 CST 2015 +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-2.4-all.zip diff --git a/tests/js-memory-gc-tests/project/proj.android-studio/gradlew b/tests/js-memory-gc-tests/project/proj.android-studio/gradlew new file mode 100755 index 0000000000..91a7e269e1 --- /dev/null +++ b/tests/js-memory-gc-tests/project/proj.android-studio/gradlew @@ -0,0 +1,164 @@ +#!/usr/bin/env bash + +############################################################################## +## +## Gradle start up script for UN*X +## +############################################################################## + +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS="" + +APP_NAME="Gradle" +APP_BASE_NAME=`basename "$0"` + +# Use the maximum available, or set MAX_FD != -1 to use that value. +MAX_FD="maximum" + +warn ( ) { + echo "$*" +} + +die ( ) { + echo + echo "$*" + echo + exit 1 +} + +# OS specific support (must be 'true' or 'false'). +cygwin=false +msys=false +darwin=false +case "`uname`" in + CYGWIN* ) + cygwin=true + ;; + Darwin* ) + darwin=true + ;; + MINGW* ) + msys=true + ;; +esac + +# For Cygwin, ensure paths are in UNIX format before anything is touched. +if $cygwin ; then + [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"` +fi + +# Attempt to set APP_HOME +# Resolve links: $0 may be a link +PRG="$0" +# Need this for relative symlinks. +while [ -h "$PRG" ] ; do + ls=`ls -ld "$PRG"` + link=`expr "$ls" : '.*-> \(.*\)$'` + if expr "$link" : '/.*' > /dev/null; then + PRG="$link" + else + PRG=`dirname "$PRG"`"/$link" + fi +done +SAVED="`pwd`" +cd "`dirname \"$PRG\"`/" >&- +APP_HOME="`pwd -P`" +cd "$SAVED" >&- + +CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar + +# Determine the Java command to use to start the JVM. +if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD="$JAVA_HOME/jre/sh/java" + else + JAVACMD="$JAVA_HOME/bin/java" + fi + if [ ! -x "$JAVACMD" ] ; then + die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +else + JAVACMD="java" + which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." +fi + +# Increase the maximum file descriptors if we can. +if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then + MAX_FD_LIMIT=`ulimit -H -n` + if [ $? -eq 0 ] ; then + if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then + MAX_FD="$MAX_FD_LIMIT" + fi + ulimit -n $MAX_FD + if [ $? -ne 0 ] ; then + warn "Could not set maximum file descriptor limit: $MAX_FD" + fi + else + warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" + fi +fi + +# For Darwin, add options to specify how the application appears in the dock +if $darwin; then + GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" +fi + +# For Cygwin, switch paths to Windows format before running java +if $cygwin ; then + APP_HOME=`cygpath --path --mixed "$APP_HOME"` + CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` + + # We build the pattern for arguments to be converted via cygpath + ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` + SEP="" + for dir in $ROOTDIRSRAW ; do + ROOTDIRS="$ROOTDIRS$SEP$dir" + SEP="|" + done + OURCYGPATTERN="(^($ROOTDIRS))" + # Add a user-defined pattern to the cygpath arguments + if [ "$GRADLE_CYGPATTERN" != "" ] ; then + OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" + fi + # Now convert the arguments - kludge to limit ourselves to /bin/sh + i=0 + for arg in "$@" ; do + CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` + CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option + + if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition + eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` + else + eval `echo args$i`="\"$arg\"" + fi + i=$((i+1)) + done + case $i in + (0) set -- ;; + (1) set -- "$args0" ;; + (2) set -- "$args0" "$args1" ;; + (3) set -- "$args0" "$args1" "$args2" ;; + (4) set -- "$args0" "$args1" "$args2" "$args3" ;; + (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; + (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; + (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; + (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; + (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; + esac +fi + +# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules +function splitJvmOpts() { + JVM_OPTS=("$@") +} +eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS +JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME" + +exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@" diff --git a/tests/js-memory-gc-tests/project/proj.android-studio/gradlew.bat b/tests/js-memory-gc-tests/project/proj.android-studio/gradlew.bat new file mode 100644 index 0000000000..8a0b282aa6 --- /dev/null +++ b/tests/js-memory-gc-tests/project/proj.android-studio/gradlew.bat @@ -0,0 +1,90 @@ +@if "%DEBUG%" == "" @echo off +@rem ########################################################################## +@rem +@rem Gradle startup script for Windows +@rem +@rem ########################################################################## + +@rem Set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" setlocal + +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +set DEFAULT_JVM_OPTS= + +set DIRNAME=%~dp0 +if "%DIRNAME%" == "" set DIRNAME=. +set APP_BASE_NAME=%~n0 +set APP_HOME=%DIRNAME% + +@rem Find java.exe +if defined JAVA_HOME goto findJavaFromJavaHome + +set JAVA_EXE=java.exe +%JAVA_EXE% -version >NUL 2>&1 +if "%ERRORLEVEL%" == "0" goto init + +echo. +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:findJavaFromJavaHome +set JAVA_HOME=%JAVA_HOME:"=% +set JAVA_EXE=%JAVA_HOME%/bin/java.exe + +if exist "%JAVA_EXE%" goto init + +echo. +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:init +@rem Get command-line arguments, handling Windowz variants + +if not "%OS%" == "Windows_NT" goto win9xME_args +if "%@eval[2+2]" == "4" goto 4NT_args + +:win9xME_args +@rem Slurp the command line arguments. +set CMD_LINE_ARGS= +set _SKIP=2 + +:win9xME_args_slurp +if "x%~1" == "x" goto execute + +set CMD_LINE_ARGS=%* +goto execute + +:4NT_args +@rem Get arguments from the 4NT Shell from JP Software +set CMD_LINE_ARGS=%$ + +:execute +@rem Setup the command line + +set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar + +@rem Execute Gradle +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% + +:end +@rem End local scope for the variables with windows NT shell +if "%ERRORLEVEL%"=="0" goto mainEnd + +:fail +rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of +rem the _cmd.exe /c_ return code! +if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 +exit /b 1 + +:mainEnd +if "%OS%"=="Windows_NT" endlocal + +:omega diff --git a/tests/js-memory-gc-tests/project/proj.android-studio/settings.gradle b/tests/js-memory-gc-tests/project/proj.android-studio/settings.gradle new file mode 100644 index 0000000000..05e6a4191f --- /dev/null +++ b/tests/js-memory-gc-tests/project/proj.android-studio/settings.gradle @@ -0,0 +1,4 @@ +include ':libcocos2dx' +project(':libcocos2dx').projectDir = new File(settingsDir, '../../../../cocos/platform/android/libcocos2dx') +include ':JSTests' +project(':JSTests').projectDir = new File(settingsDir, 'app') diff --git a/tests/js-memory-gc-tests/project/proj.android/.classpath b/tests/js-memory-gc-tests/project/proj.android/.classpath new file mode 100644 index 0000000000..3cd35c958e --- /dev/null +++ b/tests/js-memory-gc-tests/project/proj.android/.classpath @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/tests/js-memory-gc-tests/project/proj.android/.project b/tests/js-memory-gc-tests/project/proj.android/.project new file mode 100644 index 0000000000..0649734c25 --- /dev/null +++ b/tests/js-memory-gc-tests/project/proj.android/.project @@ -0,0 +1,49 @@ + + + JSTests + + + + + + org.eclipse.wst.jsdt.core.javascriptValidator + + + + + com.android.ide.eclipse.adt.ResourceManagerBuilder + + + + + com.android.ide.eclipse.adt.PreCompilerBuilder + + + + + org.eclipse.jdt.core.javabuilder + + + + + com.android.ide.eclipse.adt.ApkBuilder + + + + + org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder + full,incremental, + + + + + + com.android.ide.eclipse.adt.AndroidNature + org.eclipse.jdt.core.javanature + org.eclipse.cdt.core.cnature + org.eclipse.cdt.core.ccnature + org.eclipse.cdt.managedbuilder.core.managedBuildNature + org.eclipse.cdt.managedbuilder.core.ScannerConfigNature + org.eclipse.wst.jsdt.core.jsNature + + diff --git a/tests/js-memory-gc-tests/project/proj.android/AndroidManifest.xml b/tests/js-memory-gc-tests/project/proj.android/AndroidManifest.xml new file mode 100644 index 0000000000..5fce9d7109 --- /dev/null +++ b/tests/js-memory-gc-tests/project/proj.android/AndroidManifest.xml @@ -0,0 +1,43 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/js-memory-gc-tests/project/proj.android/ant.properties b/tests/js-memory-gc-tests/project/proj.android/ant.properties new file mode 100644 index 0000000000..f8af38bfb4 --- /dev/null +++ b/tests/js-memory-gc-tests/project/proj.android/ant.properties @@ -0,0 +1 @@ +aapt.ignore.assets="!*.pvr.gz:!*.gz:!.svn:!.git:.*:_*:!CVS:!thumbs.db:!picasa.ini:!*.scc:*~" diff --git a/tests/js-memory-gc-tests/project/proj.android/build-cfg.json b/tests/js-memory-gc-tests/project/proj.android/build-cfg.json new file mode 100644 index 0000000000..80c2622870 --- /dev/null +++ b/tests/js-memory-gc-tests/project/proj.android/build-cfg.json @@ -0,0 +1,36 @@ +{ + "copy_resources": [ + { + "from": "../../src", + "to": "src" + }, + { + "from": "../../../cpp-tests/Resources/", + "to": "res/", + "exclude": [ + "*.gz" + ] + }, + { + "from": "../../main.js", + "to": "" + }, + { + "from": "../../project.json", + "to": "" + }, + { + "from": "../../../../cocos/scripting/js-bindings/script", + "to": "script" + }, + { + "from": "../../resjs", + "to": "res/resjs/" + } + ], + "ndk_module_path": [ + "../../../..", + "../../../../cocos", + "../../../../external" + ] +} diff --git a/tests/js-memory-gc-tests/project/proj.android/build.xml b/tests/js-memory-gc-tests/project/proj.android/build.xml new file mode 100644 index 0000000000..2f46f6e914 --- /dev/null +++ b/tests/js-memory-gc-tests/project/proj.android/build.xml @@ -0,0 +1,92 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/js-memory-gc-tests/project/proj.android/jni/Android.mk b/tests/js-memory-gc-tests/project/proj.android/jni/Android.mk new file mode 100644 index 0000000000..4ea163a5bb --- /dev/null +++ b/tests/js-memory-gc-tests/project/proj.android/jni/Android.mk @@ -0,0 +1,23 @@ +LOCAL_PATH := $(call my-dir) + +include $(CLEAR_VARS) + +LOCAL_MODULE := js_tests_shared + +LOCAL_MODULE_FILENAME := libjs_tests + +LOCAL_SRC_FILES := main.cpp \ + ../../Classes/AppDelegate.cpp \ + ../../Classes/js_DrawNode3D_bindings.cpp \ + ../../Classes/js_Effect3D_bindings.cpp + +LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../Classes + +LOCAL_STATIC_LIBRARIES := cocos2d_js_static + + +LOCAL_EXPORT_CFLAGS := -DCOCOS2D_DEBUG=1 + +include $(BUILD_SHARED_LIBRARY) + +$(call import-module,scripting/js-bindings/proj.android) diff --git a/tests/js-memory-gc-tests/project/proj.android/jni/Application.mk b/tests/js-memory-gc-tests/project/proj.android/jni/Application.mk new file mode 100644 index 0000000000..81ca21b08f --- /dev/null +++ b/tests/js-memory-gc-tests/project/proj.android/jni/Application.mk @@ -0,0 +1,17 @@ +APP_STL := gnustl_static + +# Uncomment this line to compile to armeabi-v7a, your application will run faster but support less devices +#APP_ABI := armeabi-v7a + +APP_CPPFLAGS := -frtti -DCC_ENABLE_CHIPMUNK_INTEGRATION=1 -std=c++11 -fsigned-char +APP_LDFLAGS := -latomic + +USE_ARM_MODE := 1 + +ifeq ($(NDK_DEBUG),1) + APP_CPPFLAGS += -DCOCOS2D_DEBUG=1 + APP_OPTIM := debug +else + APP_CPPFLAGS += -DNDEBUG + APP_OPTIM := release +endif diff --git a/tests/js-memory-gc-tests/project/proj.android/jni/main.cpp b/tests/js-memory-gc-tests/project/proj.android/jni/main.cpp new file mode 100644 index 0000000000..2d9745860d --- /dev/null +++ b/tests/js-memory-gc-tests/project/proj.android/jni/main.cpp @@ -0,0 +1,17 @@ +#include "AppDelegate.h" +#include "cocos2d.h" +#include "platform/android/jni/JniHelper.h" +#include +#include + +#define LOG_TAG "main" +#define LOGD(...) __android_log_print(ANDROID_LOG_DEBUG,LOG_TAG,__VA_ARGS__) + +using namespace cocos2d; + +void cocos_android_app_init (JNIEnv* env) { + LOGD("cocos_android_app_init"); + AppDelegate *pAppDelegate = new AppDelegate(); + JavaVM* vm; + env->GetJavaVM(&vm); +} diff --git a/tests/js-memory-gc-tests/project/proj.android/ndkgdb.sh b/tests/js-memory-gc-tests/project/proj.android/ndkgdb.sh new file mode 100644 index 0000000000..b8b83e024f --- /dev/null +++ b/tests/js-memory-gc-tests/project/proj.android/ndkgdb.sh @@ -0,0 +1,47 @@ +APPNAME="JSTests" +APP_ANDROID_NAME="org.cocos2dx.js_tests" + +if [ -z "${SDK_ROOT+aaa}" ]; then +# ... if SDK_ROOT is not set, use "$HOME/bin/android-sdk" + SDK_ROOT="$HOME/bin/android-sdk" +fi + +if [ -z "${NDK_ROOT+aaa}" ]; then +# ... if NDK_ROOT is not set, use "$HOME/bin/android-ndk" + NDK_ROOT="$HOME/bin/android-ndk" +fi + +if [ -z "${COCOS2DX_ROOT+aaa}" ]; then +# ... if COCOS2DX_ROOT is not set +# ... find current working directory + DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" +# ... use paths relative to current directory + COCOS2DX_ROOT="$DIR/../../.." + APP_ROOT="$DIR/.." + APP_ANDROID_ROOT="$DIR" +else + APP_ROOT="$COCOS2DX_ROOT/samples/$APPNAME" + APP_ANDROID_ROOT="$COCOS2DX_ROOT/samples/$APPNAME/proj.android" +fi + +echo "NDK_ROOT = $NDK_ROOT" +echo "SDK_ROOT = $SDK_ROOT" +echo "COCOS2DX_ROOT = $COCOS2DX_ROOT" +echo "APP_ROOT = $APP_ROOT" +echo "APP_ANDROID_ROOT = $APP_ANDROID_ROOT" +echo "APP_ANDROID_NAME = $APP_ANDROID_NAME" + +echo +echo "Killing and restarting ${APP_ANDROID_NAME}" +echo + +set -x + +"${SDK_ROOT}"/platform-tools/adb shell am force-stop "${APP_ANDROID_NAME}" + +NDK_MODULE_PATH="${COCOS2DX_ROOT}":"${COCOS2DX_ROOT}"/cocos2dx/platform/third_party/android/prebuilt \ + "${NDK_ROOT}"/ndk-gdb \ + --adb="${SDK_ROOT}"/platform-tools/adb \ + --verbose \ + --start \ + --force diff --git a/tests/js-memory-gc-tests/project/proj.android/proguard-project.txt b/tests/js-memory-gc-tests/project/proj.android/proguard-project.txt new file mode 100644 index 0000000000..f2fe1559a2 --- /dev/null +++ b/tests/js-memory-gc-tests/project/proj.android/proguard-project.txt @@ -0,0 +1,20 @@ +# To enable ProGuard in your project, edit project.properties +# to define the proguard.config property as described in that file. +# +# Add project specific ProGuard rules here. +# By default, the flags in this file are appended to flags specified +# in ${sdk.dir}/tools/proguard/proguard-android.txt +# You can edit the include path and order by changing the ProGuard +# include property in project.properties. +# +# For more details, see +# http://developer.android.com/guide/developing/tools/proguard.html + +# Add any project specific keep options here: + +# If your project uses WebView with JS, uncomment the following +# and specify the fully qualified class name to the JavaScript interface +# class: +#-keepclassmembers class fqcn.of.javascript.interface.for.webview { +# public *; +#} diff --git a/tests/js-memory-gc-tests/project/proj.android/res/drawable-hdpi/icon.png b/tests/js-memory-gc-tests/project/proj.android/res/drawable-hdpi/icon.png new file mode 100644 index 0000000000..8aa4767c2f Binary files /dev/null and b/tests/js-memory-gc-tests/project/proj.android/res/drawable-hdpi/icon.png differ diff --git a/tests/js-memory-gc-tests/project/proj.android/res/drawable-ldpi/icon.png b/tests/js-memory-gc-tests/project/proj.android/res/drawable-ldpi/icon.png new file mode 100644 index 0000000000..17ce11a085 Binary files /dev/null and b/tests/js-memory-gc-tests/project/proj.android/res/drawable-ldpi/icon.png differ diff --git a/tests/js-memory-gc-tests/project/proj.android/res/drawable-mdpi/icon.png b/tests/js-memory-gc-tests/project/proj.android/res/drawable-mdpi/icon.png new file mode 100644 index 0000000000..3780aac46c Binary files /dev/null and b/tests/js-memory-gc-tests/project/proj.android/res/drawable-mdpi/icon.png differ diff --git a/tests/js-memory-gc-tests/project/proj.android/res/values/strings.xml b/tests/js-memory-gc-tests/project/proj.android/res/values/strings.xml new file mode 100644 index 0000000000..4717131918 --- /dev/null +++ b/tests/js-memory-gc-tests/project/proj.android/res/values/strings.xml @@ -0,0 +1,5 @@ + + + JSTests + 1426774790893461 + diff --git a/tests/js-memory-gc-tests/project/proj.android/src/org/cocos2dx/js_tests/AppActivity.java b/tests/js-memory-gc-tests/project/proj.android/src/org/cocos2dx/js_tests/AppActivity.java new file mode 100644 index 0000000000..6d97e1c13d --- /dev/null +++ b/tests/js-memory-gc-tests/project/proj.android/src/org/cocos2dx/js_tests/AppActivity.java @@ -0,0 +1,121 @@ +/**************************************************************************** +Copyright (c) 2010-2012 cocos2d-x.org + +http://www.cocos2d-x.org + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +****************************************************************************/ +package org.cocos2dx.js_tests; + +import org.cocos2dx.js_tests.R; +import org.cocos2dx.lib.Cocos2dxActivity; +import org.cocos2dx.lib.Cocos2dxGLSurfaceView; +import org.cocos2dx.lib.Cocos2dxJavascriptJavaBridge; + +import android.app.AlertDialog; +import android.content.DialogInterface; +import android.content.Intent; +import android.os.Bundle; + +public class AppActivity extends Cocos2dxActivity { + + private static AppActivity app = null; + + @Override + public void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + app = this; + } + + @Override + public Cocos2dxGLSurfaceView onCreateView() { + Cocos2dxGLSurfaceView glSurfaceView = new Cocos2dxGLSurfaceView(this); + // TestCpp should create stencil buffer + glSurfaceView.setEGLConfigChooser(5, 6, 5, 0, 16, 8); + + return glSurfaceView; + } + + public static void showAlertDialog(final String title, final String message) { + app.runOnUiThread(new Runnable() { + @Override + public void run() { + AlertDialog alertDialog = new AlertDialog.Builder(app).create(); + alertDialog.setTitle(title); + alertDialog.setMessage(message); + alertDialog.setCancelable(true); + alertDialog.setIcon(R.drawable.icon); + alertDialog.setButton("OK", new DialogInterface.OnClickListener() { + public void onClick(DialogInterface dialog, int which) { + app.runOnGLThread(new Runnable() { + @Override + public void run() { + + Cocos2dxJavascriptJavaBridge.evalString("cc.log(\"Javascript Java bridge!\")"); + } + }); + } + }); + alertDialog.show(); + } + }); + } + public static void showAlertDialog(final String title, final String message, final boolean logicSwitch) { + app.runOnUiThread(new Runnable() { + @Override + public void run() { + AlertDialog alertDialog = new AlertDialog.Builder(app).create(); + alertDialog.setTitle(title); + alertDialog.setMessage(message); + alertDialog.setCancelable(true); + alertDialog.setIcon(R.drawable.icon); + String buttonStr = "it's false"; + if (logicSwitch) + { + buttonStr = "it's true"; + } + alertDialog.setButton(buttonStr, new DialogInterface.OnClickListener() { + public void onClick(DialogInterface dialog, int which) { + app.runOnGLThread(new Runnable() { + @Override + public void run() { + + Cocos2dxJavascriptJavaBridge.evalString("cc.log(\"Javascript Java bridge!\")"); + } + }); + } + }); + alertDialog.show(); + } + }); + } + + public static String getUtfStr() { + final String utf8Str = "you will see emotion:💝"; + app.runOnGLThread(new Runnable() { + @Override + public void run() { + + Cocos2dxJavascriptJavaBridge.evalString("cc.log(\"" + utf8Str + "\")"); + } + }); + return utf8Str; + } + +} diff --git a/tests/js-memory-gc-tests/project/proj.ios/AppController.h b/tests/js-memory-gc-tests/project/proj.ios/AppController.h new file mode 100644 index 0000000000..34545808e4 --- /dev/null +++ b/tests/js-memory-gc-tests/project/proj.ios/AppController.h @@ -0,0 +1,35 @@ +/**************************************************************************** + Copyright (c) 2010-2013 cocos2d-x.org + Copyright (c) 2013-2014 Chukong Technologies Inc. + + http://www.cocos2d-x.org + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. + ****************************************************************************/ + +@class RootViewController; + +@interface AppController : NSObject +{ + UIWindow *window; + RootViewController *viewController; +} + +@end + diff --git a/tests/js-memory-gc-tests/project/proj.ios/AppController.mm b/tests/js-memory-gc-tests/project/proj.ios/AppController.mm new file mode 100644 index 0000000000..f146131894 --- /dev/null +++ b/tests/js-memory-gc-tests/project/proj.ios/AppController.mm @@ -0,0 +1,144 @@ +/**************************************************************************** + Copyright (c) 2010-2013 cocos2d-x.org + Copyright (c) 2013-2014 Chukong Technologies Inc. + + http://www.cocos2d-x.org + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. + ****************************************************************************/ + +#import +#import "cocos2d.h" +#import "AppController.h" +#import "AppDelegate.h" +#import "RootViewController.h" +#import "platform/ios/CCEAGLView-ios.h" +//#import +@implementation AppController + +#pragma mark - +#pragma mark Application lifecycle + +// cocos2d application instance +static AppDelegate s_sharedApplication; + +- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions +{ + + // Override point for customization after application launch. + + // Add the view controller's view to the window and display. + window = [[UIWindow alloc] initWithFrame: [[UIScreen mainScreen] bounds]]; + CCEAGLView *eaglView = [CCEAGLView viewWithFrame: [window bounds] + pixelFormat: kEAGLColorFormatRGBA8 + depthFormat: GL_DEPTH24_STENCIL8_OES + preserveBackbuffer: NO + sharegroup: nil + multiSampling: NO + numberOfSamples: 0 ]; + + [eaglView setMultipleTouchEnabled:YES]; + + // Use RootViewController manage CCEAGLView + viewController = [[RootViewController alloc] initWithNibName:nil bundle:nil]; + viewController.wantsFullScreenLayout = YES; + viewController.view = eaglView; + + // Set RootViewController to window + if ( [[UIDevice currentDevice].systemVersion floatValue] < 6.0) + { + // warning: addSubView doesn't work on iOS6 + [window addSubview: viewController.view]; + } + else + { + // use this method on ios6 + [window setRootViewController:viewController]; + } + + [window makeKeyAndVisible]; + + [[UIApplication sharedApplication] setStatusBarHidden: YES]; + + // IMPORTANT: Setting the GLView should be done after creating the RootViewController + cocos2d::GLView *glview = cocos2d::GLViewImpl::createWithEAGLView(eaglView); + cocos2d::Director::getInstance()->setOpenGLView(glview); + + cocos2d::Application::getInstance()->run(); + return YES; +} +- (void)applicationWillResignActive:(UIApplication *)application { + /* + Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. + Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. + */ + cocos2d::Director::getInstance()->pause(); +} +//- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation +//{ +// return [FBSession.activeSession handleOpenURL:url]; +//} +- (void)applicationDidBecomeActive:(UIApplication *)application { + /* + Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. + */ +// [FBAppCall handleDidBecomeActive]; + cocos2d::Director::getInstance()->resume(); +} + +- (void)applicationDidEnterBackground:(UIApplication *)application { + /* + Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. + If your application supports background execution, called instead of applicationWillTerminate: when the user quits. + */ + cocos2d::Application::getInstance()->applicationDidEnterBackground(); +} + +- (void)applicationWillEnterForeground:(UIApplication *)application { + /* + Called as part of transition from the background to the inactive state: here you can undo many of the changes made on entering the background. + */ + cocos2d::Application::getInstance()->applicationWillEnterForeground(); +} + +- (void)applicationWillTerminate:(UIApplication *)application { + /* + Called when the application is about to terminate. + See also applicationDidEnterBackground:. + */ +} + + +#pragma mark - +#pragma mark Memory management + +- (void)applicationDidReceiveMemoryWarning:(UIApplication *)application { + /* + Free up as much memory as possible by purging cached data objects that can be recreated (or reloaded from disk) later. + */ + cocos2d::Director::getInstance()->purgeCachedData(); +} + + +- (void)dealloc { + [super dealloc]; +} + +@end + diff --git a/tests/js-memory-gc-tests/project/proj.ios/Default-568h@2x.png b/tests/js-memory-gc-tests/project/proj.ios/Default-568h@2x.png new file mode 100644 index 0000000000..66c6d1cead Binary files /dev/null and b/tests/js-memory-gc-tests/project/proj.ios/Default-568h@2x.png differ diff --git a/tests/js-memory-gc-tests/project/proj.ios/Default.png b/tests/js-memory-gc-tests/project/proj.ios/Default.png new file mode 100644 index 0000000000..dcb80725de Binary files /dev/null and b/tests/js-memory-gc-tests/project/proj.ios/Default.png differ diff --git a/tests/js-memory-gc-tests/project/proj.ios/Default@2x.png b/tests/js-memory-gc-tests/project/proj.ios/Default@2x.png new file mode 100644 index 0000000000..84689888a1 Binary files /dev/null and b/tests/js-memory-gc-tests/project/proj.ios/Default@2x.png differ diff --git a/tests/js-memory-gc-tests/project/proj.ios/Icon-114.png b/tests/js-memory-gc-tests/project/proj.ios/Icon-114.png new file mode 100644 index 0000000000..c3807861ad Binary files /dev/null and b/tests/js-memory-gc-tests/project/proj.ios/Icon-114.png differ diff --git a/tests/js-memory-gc-tests/project/proj.ios/Icon-120.png b/tests/js-memory-gc-tests/project/proj.ios/Icon-120.png new file mode 100644 index 0000000000..a5b49ccbb1 Binary files /dev/null and b/tests/js-memory-gc-tests/project/proj.ios/Icon-120.png differ diff --git a/tests/js-memory-gc-tests/project/proj.ios/Icon-144.png b/tests/js-memory-gc-tests/project/proj.ios/Icon-144.png new file mode 100644 index 0000000000..1526615c02 Binary files /dev/null and b/tests/js-memory-gc-tests/project/proj.ios/Icon-144.png differ diff --git a/tests/js-memory-gc-tests/project/proj.ios/Icon-152.png b/tests/js-memory-gc-tests/project/proj.ios/Icon-152.png new file mode 100644 index 0000000000..8aa82506d0 Binary files /dev/null and b/tests/js-memory-gc-tests/project/proj.ios/Icon-152.png differ diff --git a/tests/js-memory-gc-tests/project/proj.ios/Icon-57.png b/tests/js-memory-gc-tests/project/proj.ios/Icon-57.png new file mode 100644 index 0000000000..4fcc6fddff Binary files /dev/null and b/tests/js-memory-gc-tests/project/proj.ios/Icon-57.png differ diff --git a/tests/js-memory-gc-tests/project/proj.ios/Icon-72.png b/tests/js-memory-gc-tests/project/proj.ios/Icon-72.png new file mode 100644 index 0000000000..2c573c8df4 Binary files /dev/null and b/tests/js-memory-gc-tests/project/proj.ios/Icon-72.png differ diff --git a/tests/js-memory-gc-tests/project/proj.ios/Icon-76.png b/tests/js-memory-gc-tests/project/proj.ios/Icon-76.png new file mode 100644 index 0000000000..8a1fa1850c Binary files /dev/null and b/tests/js-memory-gc-tests/project/proj.ios/Icon-76.png differ diff --git a/tests/js-memory-gc-tests/project/proj.ios/Info.plist b/tests/js-memory-gc-tests/project/proj.ios/Info.plist new file mode 100644 index 0000000000..2a4c9dabd3 --- /dev/null +++ b/tests/js-memory-gc-tests/project/proj.ios/Info.plist @@ -0,0 +1,113 @@ + + + + + NSAppTransportSecurity + + NSAllowsArbitraryLoads + + NSExceptionDomains + + cocos2d-x.org + + NSIncludesSubdomains + + NSTemporaryExceptionAllowsInsecureHTTPLoads + + NSTemporaryExceptionMinimumTLSVersion + TLSv1.1 + + + + CFBundleDevelopmentRegion + English + CFBundleDisplayName + ${PRODUCT_NAME} + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleIconFiles + + Icon-72.png + Icon.png + Icon@2x.png + Icon-57.png + Icon-114.png + Icon-144.png + + CFBundleIcons + + CFBundlePrimaryIcon + + CFBundleIconFiles + + Icon-72.png + Icon.png + Icon@2x.png + Icon-57.png + Icon-114.png + Icon-144.png + + UIPrerenderedIcon + + + + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + ${PRODUCT_NAME} + CFBundlePackageType + APPL + CFBundleSignature + ???? + CFBundleURLTypes + + + CFBundleURLSchemes + + fb1426774790893461 + + + + CFBundleVersion + 1.0 + FacebookAppID + 1426774790893461 + FacebookDisplayName + myFc + LSRequiresIPhoneOS + + UIAppFonts + + res/fonts/A Damn Mess.ttf + res/fonts/Abberancy.ttf + res/fonts/Abduction.ttf + res/fonts/American Typewriter.ttf + res/fonts/Courier New.ttf + res/fonts/Marker Felt.ttf + res/fonts/Paint Boy.ttf + res/fonts/Schwarzwald Regular.ttf + res/fonts/Scissor Cuts.ttf + res/fonts/tahoma.ttf + res/fonts/Thonburi.ttf + res/fonts/ThonburiBold.ttf + + UIPrerenderedIcon + + UIRequiredDeviceCapabilities + + accelerometer + + opengles-1 + + + UIStatusBarHidden + + UISupportedInterfaceOrientations + + UIInterfaceOrientationLandscapeRight + UIInterfaceOrientationLandscapeLeft + + + diff --git a/tests/js-memory-gc-tests/project/proj.ios/NativeOcClass.h b/tests/js-memory-gc-tests/project/proj.ios/NativeOcClass.h new file mode 100644 index 0000000000..64e92cc0ab --- /dev/null +++ b/tests/js-memory-gc-tests/project/proj.ios/NativeOcClass.h @@ -0,0 +1,34 @@ +/* + * Copyright (c) 2013-2014 Chukong Technologies Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ + + +#import + +@interface NativeOcClass : NSObject + ++(float) callNative:(NSNumber *)a andInt:(NSString *)str; ++(void) callNativeWithParam:(NSString *)str; ++(NSString *)callNativeWithReturnString; ++(BOOL)callNativeUIWithTitle:(NSString *) title andContent:(NSString *)content; ++(BOOL)callNativeUIWithTitle:(NSString *) title andContent:(NSString *)content addBool:(BOOL)logicSwitch; ++(int)callNativeWithAdd:(NSNumber *)num1 and:(NSNumber *)num2; +@end diff --git a/tests/js-memory-gc-tests/project/proj.ios/NativeOcClass.m b/tests/js-memory-gc-tests/project/proj.ios/NativeOcClass.m new file mode 100644 index 0000000000..0bcfd9c355 --- /dev/null +++ b/tests/js-memory-gc-tests/project/proj.ios/NativeOcClass.m @@ -0,0 +1,99 @@ +/* + * Copyright (c) 2013-2014 Chukong Technologies Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ + +#import "NativeOcClass.h" +#if TARGET_OS_IPHONE +#import +#elif TARGET_OS_MAC +#import +#endif +@implementation NativeOcClass ++(float) callNative:(NSNumber *)a andInt:(NSString *)str{ + float b = [a floatValue]+111.3333; + NSLog(@"callNative string is %@ and int value is %f",str,b); + return b; +} ++(void)callNativeWithParam:(NSString *)str{ + NSLog(@"callNativeWithParam: str is %@ ",str); +} ++(NSString *)callNativeWithReturnString{ + return @"yes is a return string form objective-c"; +} ++(BOOL)callNativeWithReturnBool{ + return true; +} ++(int)callNativeWithAdd:(NSNumber *)num1 and:(NSNumber *)num2{ + return [num1 intValue]+[num2 intValue]; +} +#if TARGET_OS_IPHONE ++(BOOL)callNativeUIWithTitle:(NSString *) title andContent:(NSString *)content{ + UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:title message:content delegate:self cancelButtonTitle:@"Cancel" otherButtonTitles:@"OK", nil]; + [alertView show]; + return true; +} ++(BOOL)callNativeUIWithTitle:(NSString *) title andContent:(NSString *)content addBool:(BOOL)logicSwitch{ + if (logicSwitch) + { + UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:title message:content delegate:self cancelButtonTitle:@"Cancel" otherButtonTitles:@"it's true", nil]; + [alertView show]; + } + else + { + UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:title message:content delegate:self cancelButtonTitle:@"Cancel" otherButtonTitles:@"it's false", nil]; + [alertView show]; + } + return true; +} +#elif TARGET_OS_MAC + ++(BOOL)callNativeUIWithTitle:(NSString *) title andContent:(NSString *)content{ + NSAlert *alert = [[NSAlert alloc] init]; + [alert addButtonWithTitle:@"OK"]; + [alert addButtonWithTitle:@"Cancel"]; + [alert setMessageText:title]; + [alert setInformativeText:content]; + [alert setAlertStyle:NSWarningAlertStyle]; + [alert runModal]; + return true; +} + ++(BOOL)callNativeUIWithTitle:(NSString *) title andContent:(NSString *)content addBool:(BOOL)logicSwitch{ + NSAlert *alert = [[NSAlert alloc] init]; + if (logicSwitch) + { + [alert addButtonWithTitle:@"it's true"]; + [alert addButtonWithTitle:@"Cancel"]; + } + else + { + [alert addButtonWithTitle:@"it's false"]; + [alert addButtonWithTitle:@"Cancel"]; + } + + [alert setMessageText:title]; + [alert setInformativeText:content]; + [alert setAlertStyle:NSWarningAlertStyle]; + [alert runModal]; + return true; +} +#endif +@end diff --git a/tests/js-memory-gc-tests/project/proj.ios/Prefix.pch b/tests/js-memory-gc-tests/project/proj.ios/Prefix.pch new file mode 100644 index 0000000000..b056d8694a --- /dev/null +++ b/tests/js-memory-gc-tests/project/proj.ios/Prefix.pch @@ -0,0 +1,8 @@ +// +// Prefix header for all source files of the 'testjs' target in the 'testjs' project +// + +#ifdef __OBJC__ + #import + #import +#endif diff --git a/tests/js-memory-gc-tests/project/proj.ios/RootViewController.h b/tests/js-memory-gc-tests/project/proj.ios/RootViewController.h new file mode 100644 index 0000000000..11dfc4bf88 --- /dev/null +++ b/tests/js-memory-gc-tests/project/proj.ios/RootViewController.h @@ -0,0 +1,33 @@ +/**************************************************************************** + Copyright (c) 2010-2011 cocos2d-x.org + Copyright (c) 2010 Ricardo Quesada + + http://www.cocos2d-x.org + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. + ****************************************************************************/ + +#import + + +@interface RootViewController : UIViewController { + +} +- (BOOL)prefersStatusBarHidden; +@end diff --git a/tests/js-memory-gc-tests/project/proj.ios/RootViewController.mm b/tests/js-memory-gc-tests/project/proj.ios/RootViewController.mm new file mode 100644 index 0000000000..8438d7a420 --- /dev/null +++ b/tests/js-memory-gc-tests/project/proj.ios/RootViewController.mm @@ -0,0 +1,79 @@ +// +// testjsAppController.h +// testjs +// +// Created by Rolando Abarca on 3/19/12. +// Copyright __MyCompanyName__ 2012. All rights reserved. +// + +#import "RootViewController.h" + + +@implementation RootViewController + +/* + // The designated initializer. Override if you create the controller programmatically and want to perform customization that is not appropriate for viewDidLoad. +- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil { + if ((self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil])) { + // Custom initialization + } + return self; +} +*/ + +/* +// Implement loadView to create a view hierarchy programmatically, without using a nib. +- (void)loadView { +} +*/ + +/* +// Implement viewDidLoad to do additional setup after loading the view, typically from a nib. +- (void)viewDidLoad { + [super viewDidLoad]; +} + +*/ +// Override to allow orientations other than the default portrait orientation. +// This method is deprecated on ios6 +- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { + return UIInterfaceOrientationIsLandscape( interfaceOrientation ); +} + +// For ios6, use supportedInterfaceOrientations & shouldAutorotate instead +- (NSUInteger) supportedInterfaceOrientations{ +#ifdef __IPHONE_6_0 + return UIInterfaceOrientationMaskAllButUpsideDown; +#endif +} + +- (BOOL) shouldAutorotate { + return YES; +} + +//fix not hide status on ios7 +- (BOOL)prefersStatusBarHidden +{ + return YES; +} + +- (void)didReceiveMemoryWarning { + // Releases the view if it doesn't have a superview. + [super didReceiveMemoryWarning]; + + // Release any cached data, images, etc that aren't in use. +} + +- (void)viewDidUnload { + [super viewDidUnload]; + // Release any retained subviews of the main view. + // e.g. self.myOutlet = nil; +} + + +- (void)dealloc { + [super dealloc]; +} + + +@end diff --git a/tests/js-memory-gc-tests/project/proj.ios/main.m b/tests/js-memory-gc-tests/project/proj.ios/main.m new file mode 100644 index 0000000000..e3dedca28b --- /dev/null +++ b/tests/js-memory-gc-tests/project/proj.ios/main.m @@ -0,0 +1,17 @@ +// +// main.m +// testjs +// +// Created by Rolando Abarca on 3/19/12. +// Copyright __MyCompanyName__ 2012. All rights reserved. +// + +#import + +int main(int argc, char *argv[]) { + + NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; + int retVal = UIApplicationMain(argc, argv, nil, @"AppController"); + [pool release]; + return retVal; +} diff --git a/tests/js-memory-gc-tests/project/proj.linux/main.cpp b/tests/js-memory-gc-tests/project/proj.linux/main.cpp new file mode 100644 index 0000000000..e236a953b3 --- /dev/null +++ b/tests/js-memory-gc-tests/project/proj.linux/main.cpp @@ -0,0 +1,10 @@ +#include "../Classes/AppDelegate.h" + +USING_NS_CC; + +int main(int argc, char **argv) +{ + // create the application instance + AppDelegate app; + return Application::getInstance()->run(); +} diff --git a/tests/js-memory-gc-tests/project/proj.mac/Icon.icns b/tests/js-memory-gc-tests/project/proj.mac/Icon.icns new file mode 100644 index 0000000000..3d09e8fb4f Binary files /dev/null and b/tests/js-memory-gc-tests/project/proj.mac/Icon.icns differ diff --git a/tests/js-memory-gc-tests/project/proj.mac/Test_Info.plist b/tests/js-memory-gc-tests/project/proj.mac/Test_Info.plist new file mode 100644 index 0000000000..608a82cdac --- /dev/null +++ b/tests/js-memory-gc-tests/project/proj.mac/Test_Info.plist @@ -0,0 +1,34 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleIconFile + Icon + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + ${PRODUCT_NAME} + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1 + LSMinimumSystemVersion + ${MACOSX_DEPLOYMENT_TARGET} + NSHumanReadableCopyright + Copyright © 2012. All rights reserved. + NSMainNibFile + MainMenu + NSPrincipalClass + NSApplication + + diff --git a/tests/js-memory-gc-tests/project/proj.mac/Test_Prefix.pch b/tests/js-memory-gc-tests/project/proj.mac/Test_Prefix.pch new file mode 100644 index 0000000000..46c36a7e99 --- /dev/null +++ b/tests/js-memory-gc-tests/project/proj.mac/Test_Prefix.pch @@ -0,0 +1,7 @@ +// +// Prefix header for all source files of the 'Paralaxer' target in the 'Paralaxer' project +// + +#ifdef __OBJC__ + #import +#endif diff --git a/tests/js-memory-gc-tests/project/proj.mac/en.lproj/InfoPlist.strings b/tests/js-memory-gc-tests/project/proj.mac/en.lproj/InfoPlist.strings new file mode 100644 index 0000000000..477b28ff8f --- /dev/null +++ b/tests/js-memory-gc-tests/project/proj.mac/en.lproj/InfoPlist.strings @@ -0,0 +1,2 @@ +/* Localized versions of Info.plist keys */ + diff --git a/tests/js-memory-gc-tests/project/proj.mac/en.lproj/MainMenu.xib b/tests/js-memory-gc-tests/project/proj.mac/en.lproj/MainMenu.xib new file mode 100644 index 0000000000..3dacdedbd0 --- /dev/null +++ b/tests/js-memory-gc-tests/project/proj.mac/en.lproj/MainMenu.xib @@ -0,0 +1,812 @@ + + + + 1060 + 10K549 + 1938 + 1038.36 + 461.00 + + com.apple.InterfaceBuilder.CocoaPlugin + 1938 + + + YES + NSMenuItem + NSCustomObject + NSMenu + + + YES + com.apple.InterfaceBuilder.CocoaPlugin + + + PluginDependencyRecalculationVersion + + + + YES + + NSApplication + + + FirstResponder + + + NSApplication + + + AMainMenu + + YES + + + TestCpp + + 1048576 + 2147483647 + + NSImage + NSMenuCheckmark + + + NSImage + NSMenuMixedState + + submenuAction: + + TestCpp + + YES + + + About TestCpp + + 2147483647 + + + + + + YES + YES + + + 1048576 + 2147483647 + + + + + + Preferences… + , + 1048576 + 2147483647 + + + + + + YES + YES + + + 1048576 + 2147483647 + + + + + + Services + + 1048576 + 2147483647 + + + submenuAction: + + Services + + YES + + _NSServicesMenu + + + + + YES + YES + + + 1048576 + 2147483647 + + + + + + Hide TestCpp + h + 1048576 + 2147483647 + + + + + + Hide Others + h + 1572864 + 2147483647 + + + + + + Show All + + 1048576 + 2147483647 + + + + + + YES + YES + + + 1048576 + 2147483647 + + + + + + Quit TestCpp + q + 1048576 + 2147483647 + + + + + _NSAppleMenu + + + + + View + + 1048576 + 2147483647 + + + submenuAction: + + View + + YES + + + Toggle Fullscreen + f + 1048576 + 2147483647 + + + + + + + + + Window + + 1048576 + 2147483647 + + + submenuAction: + + Window + + YES + + + Minimize + m + 1048576 + 2147483647 + + + + + + Zoom + + 1048576 + 2147483647 + + + + + + YES + YES + + + 1048576 + 2147483647 + + + + + + Bring All to Front + + 1048576 + 2147483647 + + + + + _NSWindowsMenu + + + + + Help + + 2147483647 + + + submenuAction: + + Help + + YES + + + TestCpp Help + ? + 1048576 + 2147483647 + + + + + _NSHelpMenu + + + + _NSMainMenu + + + AppController + + + NSFontManager + + + + + YES + + + terminate: + + + + 449 + + + + orderFrontStandardAboutPanel: + + + + 142 + + + + delegate + + + + 495 + + + + performMiniaturize: + + + + 37 + + + + arrangeInFront: + + + + 39 + + + + performZoom: + + + + 240 + + + + hide: + + + + 367 + + + + hideOtherApplications: + + + + 368 + + + + unhideAllApplications: + + + + 370 + + + + showHelp: + + + + 493 + + + + toggleFullScreen: + + + + 537 + + + + + YES + + 0 + + YES + + + + + + -2 + + + File's Owner + + + -1 + + + First Responder + + + -3 + + + Application + + + 29 + + + YES + + + + + + + + + 19 + + + YES + + + + + + 56 + + + YES + + + + + + 57 + + + YES + + + + + + + + + + + + + + + + 58 + + + + + 134 + + + + + 150 + + + + + 136 + + + + + 144 + + + + + 129 + + + + + 143 + + + + + 236 + + + + + 131 + + + YES + + + + + + 149 + + + + + 145 + + + + + 130 + + + + + 24 + + + YES + + + + + + + + + 92 + + + + + 5 + + + + + 239 + + + + + 23 + + + + + 295 + + + YES + + + + + + 296 + + + YES + + + + + + 420 + + + + + 490 + + + YES + + + + + + 491 + + + YES + + + + + + 492 + + + + + 494 + + + + + 536 + + + + + + + YES + + YES + -1.IBPluginDependency + -2.IBPluginDependency + -3.IBPluginDependency + 129.IBPluginDependency + 130.IBPluginDependency + 131.IBPluginDependency + 134.IBPluginDependency + 136.IBPluginDependency + 143.IBPluginDependency + 144.IBPluginDependency + 145.IBPluginDependency + 149.IBPluginDependency + 150.IBPluginDependency + 19.IBPluginDependency + 23.IBPluginDependency + 236.IBPluginDependency + 239.IBPluginDependency + 24.IBPluginDependency + 29.IBPluginDependency + 295.IBPluginDependency + 296.IBPluginDependency + 420.IBPluginDependency + 490.IBPluginDependency + 491.IBPluginDependency + 492.IBPluginDependency + 494.IBPluginDependency + 5.IBPluginDependency + 536.IBPluginDependency + 56.IBPluginDependency + 57.IBPluginDependency + 58.IBPluginDependency + 92.IBPluginDependency + + + YES + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + + + + YES + + + + + + YES + + + + + 541 + + + + YES + + AppController + NSObject + + YES + + YES + exitFullScreen: + toggleFullScreen: + + + YES + id + id + + + + YES + + YES + exitFullScreen: + toggleFullScreen: + + + YES + + exitFullScreen: + id + + + toggleFullScreen: + id + + + + + YES + + YES + glView + window + + + YES + EAGLView + NSWindow + + + + YES + + YES + glView + window + + + YES + + glView + EAGLView + + + window + NSWindow + + + + + IBProjectSource + ./Classes/AppController.h + + + + EAGLView + NSOpenGLView + + IBProjectSource + ./Classes/EAGLView.h + + + + + 0 + IBCocoaFramework + + com.apple.InterfaceBuilder.CocoaPlugin.InterfaceBuilder3 + + + YES + 3 + + YES + + YES + NSMenuCheckmark + NSMenuMixedState + + + YES + {9, 8} + {7, 2} + + + + diff --git a/tests/js-memory-gc-tests/project/proj.mac/main.cpp b/tests/js-memory-gc-tests/project/proj.mac/main.cpp new file mode 100644 index 0000000000..4b6a1e9021 --- /dev/null +++ b/tests/js-memory-gc-tests/project/proj.mac/main.cpp @@ -0,0 +1,35 @@ +/**************************************************************************** + Copyright (c) 2010 cocos2d-x.org + + http://www.cocos2d-x.org + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. + ****************************************************************************/ + +#include "AppDelegate.h" +#include "cocos2d.h" + +USING_NS_CC; + +int main(int argc, char *argv[]) +{ + AppDelegate app; + return Application::getInstance()->run(); +} + diff --git a/tests/js-memory-gc-tests/project/proj.win32/build-cfg.json b/tests/js-memory-gc-tests/project/proj.win32/build-cfg.json new file mode 100644 index 0000000000..d1965344bc --- /dev/null +++ b/tests/js-memory-gc-tests/project/proj.win32/build-cfg.json @@ -0,0 +1,24 @@ +{ + "copy_resources": [ + { + "from": "../../src", + "to": "src" + }, + { + "from": "../../../cpp-tests/Resources", + "to": "res" + }, + { + "from": "../../main.js", + "to": "" + }, + { + "from": "../../project.json", + "to": "" + }, + { + "from": "../../../../cocos/scripting/js-bindings/script", + "to": "script" + } + ] +} diff --git a/tests/js-memory-gc-tests/project/proj.win32/js-tests.rc b/tests/js-memory-gc-tests/project/proj.win32/js-tests.rc new file mode 100644 index 0000000000..3d664e8370 --- /dev/null +++ b/tests/js-memory-gc-tests/project/proj.win32/js-tests.rc @@ -0,0 +1,86 @@ +// Microsoft Visual C++ generated resource script. +// +#include "resource.h" + +#define APSTUDIO_READONLY_SYMBOLS +///////////////////////////////////////////////////////////////////////////// +// +// Generated from the TEXTINCLUDE 2 resource. +// +#define APSTUDIO_HIDDEN_SYMBOLS +#include "windows.h" +#undef APSTUDIO_HIDDEN_SYMBOLS +///////////////////////////////////////////////////////////////////////////// +#undef APSTUDIO_READONLY_SYMBOLS + +///////////////////////////////////////////////////////////////////////////// +// English (U.S.) resources + +#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) +#ifdef _WIN32 +LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US +#pragma code_page(1252) +#endif //_WIN32 + +#ifdef APSTUDIO_INVOKED +///////////////////////////////////////////////////////////////////////////// +// +// TEXTINCLUDE +// + +1 TEXTINCLUDE +BEGIN + "resource.h\0" +END + +#endif // APSTUDIO_INVOKED + +///////////////////////////////////////////////////////////////////////////// +// +// Icon +// + +// Icon with lowest ID value placed first to ensure application icon +// remains consistent on all systems. +IDR_MAINFRAME ICON "res\\js-tests.ico" + +///////////////////////////////////////////////////////////////////////////// +// +// Version +// + +VS_VERSION_INFO VERSIONINFO + FILEVERSION 1,0,0,1 + PRODUCTVERSION 1,0,0,1 + FILEFLAGSMASK 0x3fL +#ifdef _DEBUG + FILEFLAGS 0x1L +#else + FILEFLAGS 0x0L +#endif + FILEOS 0x4L + FILETYPE 0x2L + FILESUBTYPE 0x0L +BEGIN + BLOCK "StringFileInfo" + BEGIN + BLOCK "040904B0" + BEGIN + VALUE "CompanyName", "\0" + VALUE "FileDescription", "js-tests Module\0" + VALUE "FileVersion", "1, 0, 0, 1\0" + VALUE "InternalName", "js-tests\0" + VALUE "LegalCopyright", "Copyright \0" + VALUE "OriginalFilename", "js-tests.exe\0" + VALUE "ProductName", "js-tests Module\0" + VALUE "ProductVersion", "1, 0, 0, 1\0" + END + END + BLOCK "VarFileInfo" + BEGIN + VALUE "Translation", 0x0409, 0x04B0 + END +END + +///////////////////////////////////////////////////////////////////////////// +#endif // !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) diff --git a/tests/js-memory-gc-tests/project/proj.win32/js-tests.vcxproj b/tests/js-memory-gc-tests/project/proj.win32/js-tests.vcxproj new file mode 100644 index 0000000000..7fb7e1ac10 --- /dev/null +++ b/tests/js-memory-gc-tests/project/proj.win32/js-tests.vcxproj @@ -0,0 +1,218 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + {D0F06A44-A245-4D13-A498-0120C203B539} + js-tests + + + + Application + Unicode + v120 + v120_xp + v140 + v140_xp + + + Application + Unicode + v120 + v120_xp + v140 + v140_xp + + + + + + + + + + + + + + + + + <_ProjectFileVersion>12.0.21005.1 + $(SolutionDir)$(Configuration).win32\js-tests\ + $(Configuration).win32\ + false + $(SolutionDir)$(Configuration).win32\js-tests\ + $(Configuration).win32\ + false + AllRules.ruleset + + + AllRules.ruleset + + + + + $(MSBuildProgramFiles32)\Microsoft SDKs\Windows\v7.1A\lib;$(LibraryPath) + + + $(MSBuildProgramFiles32)\Microsoft SDKs\Windows\v7.1A\lib;$(LibraryPath) + + + + _DEBUG;%(PreprocessorDefinitions) + false + Win32 + true + $(IntDir)js-tests.tlb + js-tests.h + + + js-tests_i.c + js-tests_p.c + + + Disabled + $(EngineRoot);$(EngineRoot)cocos;$(EngineRoot)cocos\base;$(EngineRoot)cocos\storage;$(EngineRoot)cocos\editor-support;$(EngineRoot)cocos\audio\include;$(EngineRoot)external\chipmunk\include\chipmunk;$(EngineRoot)extensions;$(ProjectDir)..\Classes;$(EngineRoot)external\spidermonkey\include\win32;$(EngineRoot)cocos\scripting\js-bindings\auto;$(EngineRoot)cocos\scripting\js-bindings\manual;%(AdditionalIncludeDirectories) + WIN32;_WINDOWS;STRICT;_DEBUG;XP_WIN;JS_HAVE___INTN;JS_INTPTR_TYPE=int;COCOS2D_DEBUG=1;COCOS2D_JAVASCRIPT=1;CC_ENABLE_CHIPMUNK_INTEGRATION=1;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) + false + EnableFastChecks + MultiThreadedDebugDLL + + + Level3 + EditAndContinue + 4267;4251;4244;%(DisableSpecificWarnings) + true + + + _DEBUG;%(PreprocessorDefinitions) + 0x0409 + $(MSBuildProgramFiles32)\Microsoft SDKs\Windows\v7.1A\include;$(IntDir);%(AdditionalIncludeDirectories) + + + if not exist "$(OutDir)" mkdir "$(OutDir)" +xcopy /Y /Q "$(ProjectDir)..\..\..\..\external\spidermonkey\prebuilt\win32\*.*" "$(OutDir)" +xcopy /Y /Q "$(ProjectDir)..\..\..\..\external\websockets\prebuilt\win32\*.*" "$(OutDir)" + + + libcurl_imp.lib;mozjs-33.lib;ws2_32.lib;sqlite3.lib;websockets.lib;%(AdditionalDependencies) + $(OutDir);$(SolutionDir)$(Configuration).win32;%(AdditionalLibraryDirectories) + true + Windows + MachineX86 + + + if not exist "$(OutDir)" mkdir "$(OutDir)" + +mkdir "$(OutDir)\script" +mkdir "$(OutDir)\src" +mkdir "$(OutDir)\res" +xcopy "$(OutDir)..\*.dll" "$(OutDir)" /D /Y +xcopy "$(ProjectDir)..\..\..\..\cocos\scripting\js-bindings\script\*" "$(OutDir)\script" /e /Y +xcopy "$(ProjectDir)..\..\src" "$(OutDir)\src\" /e /Y +xcopy "$(ProjectDir)..\..\..\cpp-tests\Resources" "$(OutDir)\res\" /e /Y +copy "$(ProjectDir)..\..\main.js" "$(OutDir)" +copy "$(ProjectDir)..\..\project.json" "$(OutDir)" +xcopy "$(ProjectDir)..\..\resjs" "$(OutDir)\res\resjs\" /e /Y + + + Copy js and resource files. + + + + + NDEBUG;%(PreprocessorDefinitions) + false + Win32 + true + $(IntDir)js-tests.tlb + js-tests.h + + + js-tests_i.c + js-tests_p.c + + + $(EngineRoot);$(EngineRoot)cocos;$(EngineRoot)cocos\base;$(EngineRoot)cocos\storage;$(EngineRoot)cocos\editor-support;$(EngineRoot)cocos\audio\include;$(EngineRoot)external\chipmunk\include\chipmunk;$(EngineRoot)extensions;$(ProjectDir)..\Classes;$(EngineRoot)external\spidermonkey\include\win32;$(EngineRoot)cocos\scripting\js-bindings\auto;$(EngineRoot)cocos\scripting\js-bindings\manual;%(AdditionalIncludeDirectories) + WIN32;_WINDOWS;STRICT;NDEBUG;XP_WIN;JS_HAVE___INTN;JS_INTPTR_TYPE=int;COCOS2D_JAVASCRIPT=1;CC_ENABLE_CHIPMUNK_INTEGRATION=1;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) + + + MultiThreadedDLL + + + Level3 + + + 4267;4251;4244;%(DisableSpecificWarnings) + true + + + NDEBUG;%(PreprocessorDefinitions) + 0x0409 + $(MSBuildProgramFiles32)\Microsoft SDKs\Windows\v7.1A\include;$(IntDir);%(AdditionalIncludeDirectories) + + + if not exist "$(OutDir)" mkdir "$(OutDir)" +xcopy /Y /Q "$(ProjectDir)..\..\..\..\external\spidermonkey\prebuilt\win32\*.*" "$(OutDir)" +xcopy /Y /Q "$(ProjectDir)..\..\..\..\external\websockets\prebuilt\win32\*.*" "$(OutDir)" + + + libcurl_imp.lib;mozjs-33.lib;ws2_32.lib;sqlite3.lib;websockets.lib;%(AdditionalDependencies) + $(OutDir);$(SolutionDir)$(Configuration).win32;%(AdditionalLibraryDirectories) + Windows + MachineX86 + true + + + if not exist "$(OutDir)" mkdir "$(OutDir)" + +mkdir "$(OutDir)\script" +mkdir "$(OutDir)\src" +mkdir "$(OutDir)\res" +xcopy "$(OutDir)..\*.dll" "$(OutDir)" /D /Y +xcopy "$(ProjectDir)..\..\..\..\cocos\scripting\js-bindings\script\*" "$(OutDir)\script" /e /Y +xcopy "$(ProjectDir)..\..\src" "$(OutDir)\src\" /e /Y +xcopy "$(ProjectDir)..\..\..\cpp-tests\Resources" "$(OutDir)\res\" /e /Y +copy "$(ProjectDir)..\..\main.js" "$(OutDir)" +copy "$(ProjectDir)..\..\project.json" "$(OutDir)" +xcopy "$(ProjectDir)..\..\resjs" "$(OutDir)\res\" /e /Y + Copy js and resource files. + + + + + + + + + + + + + + + + + + + + + + + + {39379840-825a-45a0-b363-c09ffef864bd} + + + + + + diff --git a/tests/js-memory-gc-tests/project/proj.win32/js-tests.vcxproj.filters b/tests/js-memory-gc-tests/project/proj.win32/js-tests.vcxproj.filters new file mode 100644 index 0000000000..b66e775a2e --- /dev/null +++ b/tests/js-memory-gc-tests/project/proj.win32/js-tests.vcxproj.filters @@ -0,0 +1,55 @@ + + + + + Classes + + + win32 + + + Classes + + + Classes + + + + + Classes + + + win32 + + + win32 + + + Classes + + + Classes + + + + + {73cd069e-e032-4051-8d30-65b08ab4f954} + + + {abaf0468-14d3-43ce-8d1a-8a4a34dba59b} + + + {bbe7342c-1f30-4512-b00a-841aa2d4ca9f} + + + + + resource + + + + + resource + + + \ No newline at end of file diff --git a/tests/js-memory-gc-tests/project/proj.win32/main.cpp b/tests/js-memory-gc-tests/project/proj.win32/main.cpp new file mode 100644 index 0000000000..f5ce0656ed --- /dev/null +++ b/tests/js-memory-gc-tests/project/proj.win32/main.cpp @@ -0,0 +1,34 @@ +#include "main.h" +#include "AppDelegate.h" + +USING_NS_CC; + +// uncomment below line, open debug console +// #define USE_WIN32_CONSOLE + +int APIENTRY _tWinMain(HINSTANCE hInstance, + HINSTANCE hPrevInstance, + LPTSTR lpCmdLine, + int nCmdShow) +{ + UNREFERENCED_PARAMETER(hPrevInstance); + UNREFERENCED_PARAMETER(lpCmdLine); + +#ifdef USE_WIN32_CONSOLE + AllocConsole(); + freopen("CONIN$", "r", stdin); + freopen("CONOUT$", "w", stdout); + freopen("CONOUT$", "w", stderr); +#endif + + // create the application instance + AppDelegate app; + + int ret = Application::getInstance()->run(); + +#ifdef USE_WIN32_CONSOLE + FreeConsole(); +#endif + + return ret; +} diff --git a/tests/js-memory-gc-tests/project/proj.win32/main.h b/tests/js-memory-gc-tests/project/proj.win32/main.h new file mode 100644 index 0000000000..e29aeedb3a --- /dev/null +++ b/tests/js-memory-gc-tests/project/proj.win32/main.h @@ -0,0 +1,12 @@ +#ifndef __MAIN_H__ +#define __MAIN_H__ + +#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers + +// Windows Header Files: +#include + +// C RunTime Header Files +#include "CCStdC.h" + +#endif // __WINMAIN_H__ diff --git a/tests/js-memory-gc-tests/project/proj.win32/res/js-tests.ico b/tests/js-memory-gc-tests/project/proj.win32/res/js-tests.ico new file mode 100644 index 0000000000..feaf932a74 Binary files /dev/null and b/tests/js-memory-gc-tests/project/proj.win32/res/js-tests.ico differ diff --git a/tests/js-memory-gc-tests/project/proj.win32/resource.h b/tests/js-memory-gc-tests/project/proj.win32/resource.h new file mode 100644 index 0000000000..3436133bc7 --- /dev/null +++ b/tests/js-memory-gc-tests/project/proj.win32/resource.h @@ -0,0 +1,20 @@ +//{{NO_DEPENDENCIES}} +// Microsoft Visual C++ generated include file. +// Used by js-tests.RC +// + +#define IDS_PROJNAME 100 +#define IDR_TESTJS 100 + +#define ID_FILE_NEW_WINDOW 32771 + +// Next default values for new objects +// +#ifdef APSTUDIO_INVOKED +#ifndef APSTUDIO_READONLY_SYMBOLS +#define _APS_NEXT_RESOURCE_VALUE 201 +#define _APS_NEXT_CONTROL_VALUE 1000 +#define _APS_NEXT_SYMED_VALUE 101 +#define _APS_NEXT_COMMAND_VALUE 32775 +#endif +#endif diff --git a/tests/js-memory-gc-tests/project/proj.win8.1-universal/App.Shared/App.xaml b/tests/js-memory-gc-tests/project/proj.win8.1-universal/App.Shared/App.xaml new file mode 100644 index 0000000000..c0ea91604b --- /dev/null +++ b/tests/js-memory-gc-tests/project/proj.win8.1-universal/App.Shared/App.xaml @@ -0,0 +1,13 @@ + + + + + cpp_tests + + + diff --git a/tests/js-memory-gc-tests/project/proj.win8.1-universal/App.Shared/App.xaml.cpp b/tests/js-memory-gc-tests/project/proj.win8.1-universal/App.Shared/App.xaml.cpp new file mode 100644 index 0000000000..988ffe74de --- /dev/null +++ b/tests/js-memory-gc-tests/project/proj.win8.1-universal/App.Shared/App.xaml.cpp @@ -0,0 +1,143 @@ +#include "App.xaml.h" +#include "OpenGLESPage.xaml.h" + +using namespace Platform; +using namespace Windows::ApplicationModel; +using namespace Windows::ApplicationModel::Activation; +using namespace Windows::Foundation; +using namespace Windows::Foundation::Collections; +using namespace Windows::UI::Xaml::Media::Animation; +using namespace Windows::UI::Xaml; +using namespace Windows::UI::Xaml::Controls; +using namespace Windows::UI::Xaml::Controls::Primitives; +using namespace Windows::UI::Xaml::Data; +using namespace Windows::UI::Xaml::Input; +using namespace Windows::UI::Xaml::Interop; +using namespace Windows::UI::Xaml::Media; +using namespace Windows::UI::Xaml::Navigation; +using namespace cocos2d; +using namespace CocosAppWinRT; + +App::App() +{ + InitializeComponent(); + Suspending += ref new SuspendingEventHandler(this, &App::OnSuspending); + Resuming += ref new EventHandler(this, &App::OnResuming); +} + +/// +/// Invoked when the application is launched normally by the end user. Other entry points +/// will be used when the application is launched to open a specific file, to display +/// search results, and so forth. +/// +/// Details about the launch request and process. +void App::OnLaunched(LaunchActivatedEventArgs^ e) +{ + auto rootFrame = dynamic_cast(Window::Current->Content); + + // Do not repeat app initialization when the Window already has content, + // just ensure that the window is active. + if (rootFrame == nullptr) + { + // Create a Frame to act as the navigation context and associate it with + // a SuspensionManager key + rootFrame = ref new Frame(); + + // TODO: Change this value to a cache size that is appropriate for your application. + rootFrame->CacheSize = 1; + + if (e->PreviousExecutionState == ApplicationExecutionState::Terminated) + { + // TODO: Restore the saved session state only when appropriate, scheduling the + // final launch steps after the restore is complete. + } + + // Place the frame in the current Window + Window::Current->Content = rootFrame; + } + + if (rootFrame->Content == nullptr) + { +#if WINAPI_FAMILY==WINAPI_FAMILY_PHONE_APP + // Removes the turnstile navigation for startup. + if (rootFrame->ContentTransitions != nullptr) + { + _transitions = ref new TransitionCollection(); + for (auto transition : rootFrame->ContentTransitions) + { + _transitions->Append(transition); + } + } + + rootFrame->ContentTransitions = nullptr; + _firstNavigatedToken = rootFrame->Navigated += ref new NavigatedEventHandler(this, &App::RootFrame_FirstNavigated); +#endif + + // When the navigation stack isn't restored navigate to the first page, + // configuring the new page by passing required information as a navigation + // parameter. + + rootFrame->Content = mPage = ref new OpenGLESPage(&mOpenGLES); + +#if 0 + if (!rootFrame->Navigate(OpenGLESPage::typeid, e->Arguments)) + { + throw ref new FailureException("Failed to create initial page"); + } +#endif + } + + // Ensure the current window is active + Window::Current->Activate(); +} + +#if WINAPI_FAMILY==WINAPI_FAMILY_PHONE_APP +/// +/// Restores the content transitions after the app has launched. +/// +void App::RootFrame_FirstNavigated(Object^ sender, NavigationEventArgs^ e) +{ + auto rootFrame = safe_cast(sender); + + TransitionCollection^ newTransitions; + if (_transitions == nullptr) + { + newTransitions = ref new TransitionCollection(); + newTransitions->Append(ref new NavigationThemeTransition()); + } + else + { + newTransitions = _transitions; + } + + rootFrame->ContentTransitions = newTransitions; + + rootFrame->Navigated -= _firstNavigatedToken; +} +#endif + +/// +/// Invoked when application execution is being suspended. Application state is saved +/// without knowing whether the application will be terminated or resumed with the contents +/// of memory still intact. +/// +void App::OnSuspending(Object^ sender, SuspendingEventArgs^ e) +{ + (void)sender; // Unused parameter + (void)e; // Unused parameter + + mPage->SetVisibility(false); +} + +/// +/// Invoked when application execution is being resumed. +/// +/// The source of the resume request. +/// Details about the resume request. +void App::OnResuming(Object ^sender, Object ^args) +{ + (void)sender; // Unused parameter + (void)args; // Unused parameter + + mPage->SetVisibility(true); +} diff --git a/tests/js-memory-gc-tests/project/proj.win8.1-universal/App.Shared/App.xaml.h b/tests/js-memory-gc-tests/project/proj.win8.1-universal/App.Shared/App.xaml.h new file mode 100644 index 0000000000..c177eab651 --- /dev/null +++ b/tests/js-memory-gc-tests/project/proj.win8.1-universal/App.Shared/App.xaml.h @@ -0,0 +1,30 @@ +#pragma once + +#include "app.g.h" +#include "OpenGLES.h" +#include "openglespage.xaml.h" + +namespace CocosAppWinRT +{ + ref class App sealed + { + public: + App(); + virtual void OnLaunched(Windows::ApplicationModel::Activation::LaunchActivatedEventArgs^ e) override; + + private: + +#if WINAPI_FAMILY==WINAPI_FAMILY_PHONE_APP + Windows::UI::Xaml::Media::Animation::TransitionCollection^ _transitions; + Windows::Foundation::EventRegistrationToken _firstNavigatedToken; + + void RootFrame_FirstNavigated(Platform::Object^ sender, Windows::UI::Xaml::Navigation::NavigationEventArgs^ e); +#endif + + void OnSuspending(Platform::Object^ sender, Windows::ApplicationModel::SuspendingEventArgs^ e); + void OnResuming(Platform::Object ^sender, Platform::Object ^args); + + OpenGLESPage^ mPage; + OpenGLES mOpenGLES; + }; +} diff --git a/tests/js-memory-gc-tests/project/proj.win8.1-universal/App.Shared/js-tests.Shared.vcxitems b/tests/js-memory-gc-tests/project/proj.win8.1-universal/App.Shared/js-tests.Shared.vcxitems new file mode 100644 index 0000000000..4a353710a9 --- /dev/null +++ b/tests/js-memory-gc-tests/project/proj.win8.1-universal/App.Shared/js-tests.Shared.vcxitems @@ -0,0 +1,64 @@ + + + + $(MSBuildAllProjects);$(MSBuildThisFileFullPath) + true + e956c24b-f04e-47bf-bf00-746681ae1301 + {AE6763F6-1549-441E-AFB5-377BE1C776DC} + js-tests + + + + %(AdditionalIncludeDirectories);$(MSBuildThisFileDirectory) + + + + + Designer + + + + + $(MSBuildThisFileDirectory)..\..\..\..\..\cocos\platform\win8.1-universal\OpenGLESPage.xaml + + + + + + $(MSBuildThisFileDirectory)App.xaml + + + + + $(MSBuildThisFileDirectory)..\..\..\..\..\cocos\platform\win8.1-universal\OpenGLESPage.xaml + + + + + + $(MSBuildThisFileDirectory)App.xaml + + + Create + + + + + + + + <_CustomResource Include="$(MSBuildThisFileDirectory)..\..\Resources\**\*"> + Assets\Resources\%(RecursiveDir)%(FileName)%(Extension) + true + + + + + + + + + + + + \ No newline at end of file diff --git a/tests/js-memory-gc-tests/project/proj.win8.1-universal/App.Shared/js-tests.Shared.vcxitems.filters b/tests/js-memory-gc-tests/project/proj.win8.1-universal/App.Shared/js-tests.Shared.vcxitems.filters new file mode 100644 index 0000000000..841a3ae6ee --- /dev/null +++ b/tests/js-memory-gc-tests/project/proj.win8.1-universal/App.Shared/js-tests.Shared.vcxitems.filters @@ -0,0 +1,46 @@ + + + + + + + + + Classes + + + Classes + + + Classes + + + + + + + + + + + {38ad799c-8c3c-44a2-8e41-516c8f62f556} + + + + + Classes + + + Classes + + + Classes + + + + + + + + + \ No newline at end of file diff --git a/tests/js-memory-gc-tests/project/proj.win8.1-universal/App.Shared/pch.cpp b/tests/js-memory-gc-tests/project/proj.win8.1-universal/App.Shared/pch.cpp new file mode 100644 index 0000000000..bcb5590be1 --- /dev/null +++ b/tests/js-memory-gc-tests/project/proj.win8.1-universal/App.Shared/pch.cpp @@ -0,0 +1 @@ +#include "pch.h" diff --git a/tests/js-memory-gc-tests/project/proj.win8.1-universal/App.Shared/pch.h b/tests/js-memory-gc-tests/project/proj.win8.1-universal/App.Shared/pch.h new file mode 100644 index 0000000000..087ce3bf18 --- /dev/null +++ b/tests/js-memory-gc-tests/project/proj.win8.1-universal/App.Shared/pch.h @@ -0,0 +1,12 @@ +// +// pch.h +// Header for standard system include files. +// + +#pragma once + +#include "mozilla\Char16.h" +#include "cocos2d.h" +#include "cocos-ext.h" + + diff --git a/tests/js-memory-gc-tests/project/proj.win8.1-universal/App.Windows/Package.appxmanifest b/tests/js-memory-gc-tests/project/proj.win8.1-universal/App.Windows/Package.appxmanifest new file mode 100644 index 0000000000..e0dd7cb7a3 --- /dev/null +++ b/tests/js-memory-gc-tests/project/proj.win8.1-universal/App.Windows/Package.appxmanifest @@ -0,0 +1,30 @@ + + + + + js-tests.Windows + msopentech + Assets\StoreLogo.png + + + 6.3.0 + 6.3.0 + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/tests/js-memory-gc-tests/project/proj.win8.1-universal/App.Windows/js-tests.Windows.vcxproj b/tests/js-memory-gc-tests/project/proj.win8.1-universal/App.Windows/js-tests.Windows.vcxproj new file mode 100644 index 0000000000..2cbd6c135d --- /dev/null +++ b/tests/js-memory-gc-tests/project/proj.win8.1-universal/App.Windows/js-tests.Windows.vcxproj @@ -0,0 +1,338 @@ + + + + + Debug + ARM + + + Debug + Win32 + + + Debug + x64 + + + Release + ARM + + + Release + Win32 + + + Release + x64 + + + + {70914FC8-7709-4CD6-B86B-C63FDE5478DB} + CocosAppWinRT + en-US + 12.0 + true + Windows Store + 8.1 + + + + Application + true + v120 + + + Application + true + v120 + + + Application + true + v120 + + + Application + false + false + v120 + + + Application + false + false + v120 + + + Application + false + false + v120 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + js-tests.Windows_TemporaryKey.pfx + True + x86 + 2D1A6993BB7DD73FD4EDC183F0FA7F9A1B7AD3C3 + + + + /bigobj /Zm200 %(AdditionalOptions) + 4800;4101;%(DisableSpecificWarnings) + pch.h + $(ProjectDir)..\..\Classes;$(EngineRoot)cocos\platform\win8.1-universal;%(AdditionalIncludeDirectories) + false + CC_ENABLE_CHIPMUNK_INTEGRATION=1;COCOS2D_DEBUG=1;%(PreprocessorDefinitions) + ProgramDatabase + + + + + + + MSVCRT;%(IgnoreSpecificDefaultLibraries) + + + echo "Copying Windows 8.1 Universal App JavaScript template files" +xcopy "$(EngineRoot)tests\js-tests\project\proj.win8.1-universal\App.Shared\App.xaml" "$(EngineRoot)templates\js-template-default\frameworks\runtime-src\proj.win8.1-universal\App.Shared\*" /iycq +xcopy "$(EngineRoot)tests\js-tests\project\proj.win8.1-universal\App.Shared\App.xaml.cpp" "$(EngineRoot)templates\js-template-default\frameworks\runtime-src\proj.win8.1-universal\App.Shared\*" /iycq +xcopy "$(EngineRoot)tests\js-tests\project\proj.win8.1-universal\App.Shared\App.xaml.h" "$(EngineRoot)templates\js-template-default\frameworks\runtime-src\proj.win8.1-universal\App.Shared\*" /iycq +xcopy "$(EngineRoot)cocos\platform\win8.1-universal\OpenGLESPage.xaml" "$(EngineRoot)templates\js-template-default\frameworks\runtime-src\proj.win8.1-universal\App.Shared\*" /iycq +xcopy "$(EngineRoot)cocos\platform\win8.1-universal\OpenGLESPage.xaml.cpp" "$(EngineRoot)templates\js-template-default\frameworks\runtime-src\proj.win8.1-universal\App.Shared\*" /iycq +xcopy "$(EngineRoot)cocos\platform\win8.1-universal\OpenGLESPage.xaml.h" "$(EngineRoot)templates\js-template-default\frameworks\runtime-src\proj.win8.1-universal\App.Shared\*" /iycq +xcopy "$(EngineRoot)cocos\platform\win8.1-universal\OpenGLES.cpp" "$(EngineRoot)templates\js-template-default\frameworks\runtime-src\proj.win8.1-universal\App.Shared\*" /iycq +xcopy "$(EngineRoot)cocos\platform\win8.1-universal\OpenGLES.h" "$(EngineRoot)templates\js-template-default\frameworks\runtime-src\proj.win8.1-universal\App.Shared\*" /iycq +xcopy "$(EngineRoot)cocos\platform\win8.1-universal\Cocos2dRenderer.cpp" "$(EngineRoot)templates\js-template-default\frameworks\runtime-src\proj.win8.1-universal\App.Shared\*" /iycq +xcopy "$(EngineRoot)cocos\platform\win8.1-universal\Cocos2dRenderer.h" "$(EngineRoot)templates\js-template-default\frameworks\runtime-src\proj.win8.1-universal\App.Shared\*" /iycq +xcopy "$(EngineRoot)cocos\platform\win8.1-universal\pch.cpp" "$(EngineRoot)templates\js-template-default\frameworks\runtime-src\proj.win8.1-universal\App.Shared\*" /iycq +xcopy "$(EngineRoot)cocos\platform\win8.1-universal\cocos2d-js\pch.h" "$(EngineRoot)templates\js-template-default\frameworks\runtime-src\proj.win8.1-universal\App.Shared\*" /iycq + + + + + /bigobj /Zm200 %(AdditionalOptions) + 4800;4101;%(DisableSpecificWarnings) + pch.h + $(ProjectDir)..\..\Classes;$(EngineRoot)cocos\platform\win8.1-universal;%(AdditionalIncludeDirectories) + false + CC_ENABLE_CHIPMUNK_INTEGRATION=1;%(PreprocessorDefinitions) + ProgramDatabase + + + + + + + echo "Copying Windows 8.1 Universal App JavaScript template files" +xcopy "$(EngineRoot)tests\js-tests\project\proj.win8.1-universal\App.Shared\App.xaml" "$(EngineRoot)templates\js-template-default\frameworks\runtime-src\proj.win8.1-universal\App.Shared\*" /iycq +xcopy "$(EngineRoot)tests\js-tests\project\proj.win8.1-universal\App.Shared\App.xaml.cpp" "$(EngineRoot)templates\js-template-default\frameworks\runtime-src\proj.win8.1-universal\App.Shared\*" /iycq +xcopy "$(EngineRoot)tests\js-tests\project\proj.win8.1-universal\App.Shared\App.xaml.h" "$(EngineRoot)templates\js-template-default\frameworks\runtime-src\proj.win8.1-universal\App.Shared\*" /iycq +xcopy "$(EngineRoot)cocos\platform\win8.1-universal\OpenGLESPage.xaml" "$(EngineRoot)templates\js-template-default\frameworks\runtime-src\proj.win8.1-universal\App.Shared\*" /iycq +xcopy "$(EngineRoot)cocos\platform\win8.1-universal\OpenGLESPage.xaml.cpp" "$(EngineRoot)templates\js-template-default\frameworks\runtime-src\proj.win8.1-universal\App.Shared\*" /iycq +xcopy "$(EngineRoot)cocos\platform\win8.1-universal\OpenGLESPage.xaml.h" "$(EngineRoot)templates\js-template-default\frameworks\runtime-src\proj.win8.1-universal\App.Shared\*" /iycq +xcopy "$(EngineRoot)cocos\platform\win8.1-universal\OpenGLES.cpp" "$(EngineRoot)templates\js-template-default\frameworks\runtime-src\proj.win8.1-universal\App.Shared\*" /iycq +xcopy "$(EngineRoot)cocos\platform\win8.1-universal\OpenGLES.h" "$(EngineRoot)templates\js-template-default\frameworks\runtime-src\proj.win8.1-universal\App.Shared\*" /iycq +xcopy "$(EngineRoot)cocos\platform\win8.1-universal\Cocos2dRenderer.cpp" "$(EngineRoot)templates\js-template-default\frameworks\runtime-src\proj.win8.1-universal\App.Shared\*" /iycq +xcopy "$(EngineRoot)cocos\platform\win8.1-universal\Cocos2dRenderer.h" "$(EngineRoot)templates\js-template-default\frameworks\runtime-src\proj.win8.1-universal\App.Shared\*" /iycq +xcopy "$(EngineRoot)cocos\platform\win8.1-universal\pch.cpp" "$(EngineRoot)templates\js-template-default\frameworks\runtime-src\proj.win8.1-universal\App.Shared\*" /iycq +xcopy "$(EngineRoot)cocos\platform\win8.1-universal\cocos2d-js\pch.h" "$(EngineRoot)templates\js-template-default\frameworks\runtime-src\proj.win8.1-universal\App.Shared\*" /iycq + + + + + /bigobj /Zm200 %(AdditionalOptions) + 4800;4101;%(DisableSpecificWarnings) + pch.h + $(ProjectDir)..\..\Classes;$(EngineRoot)cocos\platform\win8.1-universal;%(AdditionalIncludeDirectories) + false + CC_ENABLE_CHIPMUNK_INTEGRATION=1;COCOS2D_DEBUG=1;%(PreprocessorDefinitions) + ProgramDatabase + + + + + + + MSVCRT;%(IgnoreSpecificDefaultLibraries) + + + echo "Copying Windows 8.1 Universal App JavaScript template files" +xcopy "$(EngineRoot)tests\js-tests\project\proj.win8.1-universal\App.Shared\App.xaml" "$(EngineRoot)templates\js-template-default\frameworks\runtime-src\proj.win8.1-universal\App.Shared\*" /iycq +xcopy "$(EngineRoot)tests\js-tests\project\proj.win8.1-universal\App.Shared\App.xaml.cpp" "$(EngineRoot)templates\js-template-default\frameworks\runtime-src\proj.win8.1-universal\App.Shared\*" /iycq +xcopy "$(EngineRoot)tests\js-tests\project\proj.win8.1-universal\App.Shared\App.xaml.h" "$(EngineRoot)templates\js-template-default\frameworks\runtime-src\proj.win8.1-universal\App.Shared\*" /iycq +xcopy "$(EngineRoot)cocos\platform\win8.1-universal\OpenGLESPage.xaml" "$(EngineRoot)templates\js-template-default\frameworks\runtime-src\proj.win8.1-universal\App.Shared\*" /iycq +xcopy "$(EngineRoot)cocos\platform\win8.1-universal\OpenGLESPage.xaml.cpp" "$(EngineRoot)templates\js-template-default\frameworks\runtime-src\proj.win8.1-universal\App.Shared\*" /iycq +xcopy "$(EngineRoot)cocos\platform\win8.1-universal\OpenGLESPage.xaml.h" "$(EngineRoot)templates\js-template-default\frameworks\runtime-src\proj.win8.1-universal\App.Shared\*" /iycq +xcopy "$(EngineRoot)cocos\platform\win8.1-universal\OpenGLES.cpp" "$(EngineRoot)templates\js-template-default\frameworks\runtime-src\proj.win8.1-universal\App.Shared\*" /iycq +xcopy "$(EngineRoot)cocos\platform\win8.1-universal\OpenGLES.h" "$(EngineRoot)templates\js-template-default\frameworks\runtime-src\proj.win8.1-universal\App.Shared\*" /iycq +xcopy "$(EngineRoot)cocos\platform\win8.1-universal\Cocos2dRenderer.cpp" "$(EngineRoot)templates\js-template-default\frameworks\runtime-src\proj.win8.1-universal\App.Shared\*" /iycq +xcopy "$(EngineRoot)cocos\platform\win8.1-universal\Cocos2dRenderer.h" "$(EngineRoot)templates\js-template-default\frameworks\runtime-src\proj.win8.1-universal\App.Shared\*" /iycq +xcopy "$(EngineRoot)cocos\platform\win8.1-universal\pch.cpp" "$(EngineRoot)templates\js-template-default\frameworks\runtime-src\proj.win8.1-universal\App.Shared\*" /iycq +xcopy "$(EngineRoot)cocos\platform\win8.1-universal\cocos2d-js\pch.h" "$(EngineRoot)templates\js-template-default\frameworks\runtime-src\proj.win8.1-universal\App.Shared\*" /iycq + + + + + /bigobj /Zm200 %(AdditionalOptions) + 4800;4101;%(DisableSpecificWarnings) + pch.h + $(ProjectDir)..\..\Classes;$(EngineRoot)cocos\platform\win8.1-universal;%(AdditionalIncludeDirectories) + false + CC_ENABLE_CHIPMUNK_INTEGRATION=1;%(PreprocessorDefinitions) + ProgramDatabase + + + + + + + echo "Copying Windows 8.1 Universal App JavaScript template files" +xcopy "$(EngineRoot)tests\js-tests\project\proj.win8.1-universal\App.Shared\App.xaml" "$(EngineRoot)templates\js-template-default\frameworks\runtime-src\proj.win8.1-universal\App.Shared\*" /iycq +xcopy "$(EngineRoot)tests\js-tests\project\proj.win8.1-universal\App.Shared\App.xaml.cpp" "$(EngineRoot)templates\js-template-default\frameworks\runtime-src\proj.win8.1-universal\App.Shared\*" /iycq +xcopy "$(EngineRoot)tests\js-tests\project\proj.win8.1-universal\App.Shared\App.xaml.h" "$(EngineRoot)templates\js-template-default\frameworks\runtime-src\proj.win8.1-universal\App.Shared\*" /iycq +xcopy "$(EngineRoot)cocos\platform\win8.1-universal\OpenGLESPage.xaml" "$(EngineRoot)templates\js-template-default\frameworks\runtime-src\proj.win8.1-universal\App.Shared\*" /iycq +xcopy "$(EngineRoot)cocos\platform\win8.1-universal\OpenGLESPage.xaml.cpp" "$(EngineRoot)templates\js-template-default\frameworks\runtime-src\proj.win8.1-universal\App.Shared\*" /iycq +xcopy "$(EngineRoot)cocos\platform\win8.1-universal\OpenGLESPage.xaml.h" "$(EngineRoot)templates\js-template-default\frameworks\runtime-src\proj.win8.1-universal\App.Shared\*" /iycq +xcopy "$(EngineRoot)cocos\platform\win8.1-universal\OpenGLES.cpp" "$(EngineRoot)templates\js-template-default\frameworks\runtime-src\proj.win8.1-universal\App.Shared\*" /iycq +xcopy "$(EngineRoot)cocos\platform\win8.1-universal\OpenGLES.h" "$(EngineRoot)templates\js-template-default\frameworks\runtime-src\proj.win8.1-universal\App.Shared\*" /iycq +xcopy "$(EngineRoot)cocos\platform\win8.1-universal\Cocos2dRenderer.cpp" "$(EngineRoot)templates\js-template-default\frameworks\runtime-src\proj.win8.1-universal\App.Shared\*" /iycq +xcopy "$(EngineRoot)cocos\platform\win8.1-universal\Cocos2dRenderer.h" "$(EngineRoot)templates\js-template-default\frameworks\runtime-src\proj.win8.1-universal\App.Shared\*" /iycq +xcopy "$(EngineRoot)cocos\platform\win8.1-universal\pch.cpp" "$(EngineRoot)templates\js-template-default\frameworks\runtime-src\proj.win8.1-universal\App.Shared\*" /iycq +xcopy "$(EngineRoot)cocos\platform\win8.1-universal\cocos2d-js\pch.h" "$(EngineRoot)templates\js-template-default\frameworks\runtime-src\proj.win8.1-universal\App.Shared\*" /iycq + + + + + /bigobj /Zm200 %(AdditionalOptions) + 4800;4101;%(DisableSpecificWarnings) + pch.h + $(ProjectDir)..\..\Classes;$(EngineRoot)cocos\platform\win8.1-universal;%(AdditionalIncludeDirectories) + false + CC_ENABLE_CHIPMUNK_INTEGRATION=1;COCOS2D_DEBUG=1;%(PreprocessorDefinitions) + ProgramDatabase + + + + + MSVCRT;%(IgnoreSpecificDefaultLibraries) + + + echo "Copying Windows 8.1 Universal App JavaScript template files" +xcopy "$(EngineRoot)tests\js-tests\project\proj.win8.1-universal\App.Shared\App.xaml" "$(EngineRoot)templates\js-template-default\frameworks\runtime-src\proj.win8.1-universal\App.Shared\*" /iycq +xcopy "$(EngineRoot)tests\js-tests\project\proj.win8.1-universal\App.Shared\App.xaml.cpp" "$(EngineRoot)templates\js-template-default\frameworks\runtime-src\proj.win8.1-universal\App.Shared\*" /iycq +xcopy "$(EngineRoot)tests\js-tests\project\proj.win8.1-universal\App.Shared\App.xaml.h" "$(EngineRoot)templates\js-template-default\frameworks\runtime-src\proj.win8.1-universal\App.Shared\*" /iycq +xcopy "$(EngineRoot)cocos\platform\win8.1-universal\OpenGLESPage.xaml" "$(EngineRoot)templates\js-template-default\frameworks\runtime-src\proj.win8.1-universal\App.Shared\*" /iycq +xcopy "$(EngineRoot)cocos\platform\win8.1-universal\OpenGLESPage.xaml.cpp" "$(EngineRoot)templates\js-template-default\frameworks\runtime-src\proj.win8.1-universal\App.Shared\*" /iycq +xcopy "$(EngineRoot)cocos\platform\win8.1-universal\OpenGLESPage.xaml.h" "$(EngineRoot)templates\js-template-default\frameworks\runtime-src\proj.win8.1-universal\App.Shared\*" /iycq +xcopy "$(EngineRoot)cocos\platform\win8.1-universal\OpenGLES.cpp" "$(EngineRoot)templates\js-template-default\frameworks\runtime-src\proj.win8.1-universal\App.Shared\*" /iycq +xcopy "$(EngineRoot)cocos\platform\win8.1-universal\OpenGLES.h" "$(EngineRoot)templates\js-template-default\frameworks\runtime-src\proj.win8.1-universal\App.Shared\*" /iycq +xcopy "$(EngineRoot)cocos\platform\win8.1-universal\Cocos2dRenderer.cpp" "$(EngineRoot)templates\js-template-default\frameworks\runtime-src\proj.win8.1-universal\App.Shared\*" /iycq +xcopy "$(EngineRoot)cocos\platform\win8.1-universal\Cocos2dRenderer.h" "$(EngineRoot)templates\js-template-default\frameworks\runtime-src\proj.win8.1-universal\App.Shared\*" /iycq +xcopy "$(EngineRoot)cocos\platform\win8.1-universal\pch.cpp" "$(EngineRoot)templates\js-template-default\frameworks\runtime-src\proj.win8.1-universal\App.Shared\*" /iycq +xcopy "$(EngineRoot)cocos\platform\win8.1-universal\cocos2d-js\pch.h" "$(EngineRoot)templates\js-template-default\frameworks\runtime-src\proj.win8.1-universal\App.Shared\*" /iycq + + + + + /bigobj /Zm200 %(AdditionalOptions) + 4800;4101;%(DisableSpecificWarnings) + pch.h + $(ProjectDir)..\..\Classes;$(EngineRoot)cocos\platform\win8.1-universal;%(AdditionalIncludeDirectories) + false + CC_ENABLE_CHIPMUNK_INTEGRATION=1;%(PreprocessorDefinitions) + ProgramDatabase + + + echo "Copying Windows 8.1 Universal App CPP template files" +xcopy "$(EngineRoot)external\win8.1-universal\OpenGLESPage.xaml" "$(EngineRoot)templates\js-template-default\frameworks\runtime-src\proj.win8.1-universal\App.Shared\*" /eiycq +xcopy "$(EngineRoot)external\win8.1-universal\OpenGLESPage.xaml.cpp" "$(EngineRoot)templates\js-template-default\frameworks\runtime-src\proj.win8.1-universal\App.Shared\*" /eiycq +xcopy "$(EngineRoot)external\win8.1-universal\OpenGLESPage.xaml.h" "$(EngineRoot)templates\js-template-default\frameworks\runtime-src\proj.win8.1-universal\App.Shared\*" /eiycq + + + + echo "Copying Windows 8.1 Universal App JavaScript template files" +xcopy "$(EngineRoot)tests\js-tests\project\proj.win8.1-universal\App.Shared\App.xaml" "$(EngineRoot)templates\js-template-default\frameworks\runtime-src\proj.win8.1-universal\App.Shared\*" /iycq +xcopy "$(EngineRoot)tests\js-tests\project\proj.win8.1-universal\App.Shared\App.xaml.cpp" "$(EngineRoot)templates\js-template-default\frameworks\runtime-src\proj.win8.1-universal\App.Shared\*" /iycq +xcopy "$(EngineRoot)tests\js-tests\project\proj.win8.1-universal\App.Shared\App.xaml.h" "$(EngineRoot)templates\js-template-default\frameworks\runtime-src\proj.win8.1-universal\App.Shared\*" /iycq +xcopy "$(EngineRoot)cocos\platform\win8.1-universal\OpenGLESPage.xaml" "$(EngineRoot)templates\js-template-default\frameworks\runtime-src\proj.win8.1-universal\App.Shared\*" /iycq +xcopy "$(EngineRoot)cocos\platform\win8.1-universal\OpenGLESPage.xaml.cpp" "$(EngineRoot)templates\js-template-default\frameworks\runtime-src\proj.win8.1-universal\App.Shared\*" /iycq +xcopy "$(EngineRoot)cocos\platform\win8.1-universal\OpenGLESPage.xaml.h" "$(EngineRoot)templates\js-template-default\frameworks\runtime-src\proj.win8.1-universal\App.Shared\*" /iycq +xcopy "$(EngineRoot)cocos\platform\win8.1-universal\OpenGLES.cpp" "$(EngineRoot)templates\js-template-default\frameworks\runtime-src\proj.win8.1-universal\App.Shared\*" /iycq +xcopy "$(EngineRoot)cocos\platform\win8.1-universal\OpenGLES.h" "$(EngineRoot)templates\js-template-default\frameworks\runtime-src\proj.win8.1-universal\App.Shared\*" /iycq +xcopy "$(EngineRoot)cocos\platform\win8.1-universal\Cocos2dRenderer.cpp" "$(EngineRoot)templates\js-template-default\frameworks\runtime-src\proj.win8.1-universal\App.Shared\*" /iycq +xcopy "$(EngineRoot)cocos\platform\win8.1-universal\Cocos2dRenderer.h" "$(EngineRoot)templates\js-template-default\frameworks\runtime-src\proj.win8.1-universal\App.Shared\*" /iycq +xcopy "$(EngineRoot)cocos\platform\win8.1-universal\pch.cpp" "$(EngineRoot)templates\js-template-default\frameworks\runtime-src\proj.win8.1-universal\App.Shared\*" /iycq +xcopy "$(EngineRoot)cocos\platform\win8.1-universal\cocos2d-js\pch.h" "$(EngineRoot)templates\js-template-default\frameworks\runtime-src\proj.win8.1-universal\App.Shared\*" /iycq + + + + + Designer + + + + + + + + + + + + {bcf5546d-66a0-4998-afd6-c5514f618930} + + + {9335005f-678e-4e8e-9b84-50037216aec8} + + + {f3550fe0-c795-44f6-8feb-093eb68143ae} + + + {3b26a12d-3a44-47ea-82d2-282660fc844d} + + + + + + \ No newline at end of file diff --git a/tests/js-memory-gc-tests/project/proj.win8.1-universal/App.Windows/js-tests.Windows.vcxproj.filters b/tests/js-memory-gc-tests/project/proj.win8.1-universal/App.Windows/js-tests.Windows.vcxproj.filters new file mode 100644 index 0000000000..0391f8dd5a --- /dev/null +++ b/tests/js-memory-gc-tests/project/proj.win8.1-universal/App.Windows/js-tests.Windows.vcxproj.filters @@ -0,0 +1,29 @@ + + + + + {1a9fa652-867e-41d2-8588-962f108d2d8f} + bmp;fbx;gif;jpg;jpeg;tga;tiff;tif;png + + + + + + + + + + + Assets + + + Assets + + + Assets + + + Assets + + + \ No newline at end of file diff --git a/tests/js-memory-gc-tests/project/proj.win8.1-universal/App.Windows/js-tests.Windows_TemporaryKey.pfx b/tests/js-memory-gc-tests/project/proj.win8.1-universal/App.Windows/js-tests.Windows_TemporaryKey.pfx new file mode 100644 index 0000000000..4d25179d42 Binary files /dev/null and b/tests/js-memory-gc-tests/project/proj.win8.1-universal/App.Windows/js-tests.Windows_TemporaryKey.pfx differ diff --git a/tests/js-memory-gc-tests/project/proj.win8.1-universal/App.WindowsPhone/Package.appxmanifest b/tests/js-memory-gc-tests/project/proj.win8.1-universal/App.WindowsPhone/Package.appxmanifest new file mode 100644 index 0000000000..0568af1b21 --- /dev/null +++ b/tests/js-memory-gc-tests/project/proj.win8.1-universal/App.WindowsPhone/Package.appxmanifest @@ -0,0 +1,33 @@ + + + + + + js-tests.WindowsPhone + dalestam + Assets\StoreLogo.png + + + 6.3.1 + 6.3.1 + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/tests/js-memory-gc-tests/project/proj.win8.1-universal/App.WindowsPhone/js-tests.WindowsPhone.vcxproj b/tests/js-memory-gc-tests/project/proj.win8.1-universal/App.WindowsPhone/js-tests.WindowsPhone.vcxproj new file mode 100644 index 0000000000..07385eb555 --- /dev/null +++ b/tests/js-memory-gc-tests/project/proj.win8.1-universal/App.WindowsPhone/js-tests.WindowsPhone.vcxproj @@ -0,0 +1,165 @@ + + + + + Debug + ARM + + + Debug + Win32 + + + Release + ARM + + + Release + Win32 + + + + {94874B5B-398F-448A-A366-35A35DC1DB9C} + CocosAppWinRT + en-US + 12.0 + true + Windows Phone + 8.1 + + + + Application + true + v120_wp81 + + + Application + true + v120_wp81 + + + Application + false + false + v120_wp81 + + + Application + false + false + v120_wp81 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + True + arm + + + + /bigobj /Zm200 %(AdditionalOptions) + 4800;4101;%(DisableSpecificWarnings) + pch.h + $(ProjectDir)..\..\Classes;$(EngineRoot)cocos\platform\win8.1-universal;%(AdditionalIncludeDirectories) + false + CC_ENABLE_CHIPMUNK_INTEGRATION=1;COCOS2D_DEBUG=1;%(PreprocessorDefinitions) + ProgramDatabase + + + MSVCRT;%(IgnoreSpecificDefaultLibraries) + + + + + /bigobj /Zm200 %(AdditionalOptions) + 4800;4101;%(DisableSpecificWarnings) + pch.h + $(ProjectDir)..\..\Classes;$(EngineRoot)cocos\platform\win8.1-universal;%(AdditionalIncludeDirectories) + false + CC_ENABLE_CHIPMUNK_INTEGRATION=1;%(PreprocessorDefinitions) + ProgramDatabase + + + + + /bigobj /Zm200 %(AdditionalOptions) + 4800;4101;%(DisableSpecificWarnings) + pch.h + $(ProjectDir)..\..\Classes;$(EngineRoot)cocos\platform\win8.1-universal;%(AdditionalIncludeDirectories) + false + CC_ENABLE_CHIPMUNK_INTEGRATION=1;COCOS2D_DEBUG=1;%(PreprocessorDefinitions) + ProgramDatabase + + + MSVCRT;%(IgnoreSpecificDefaultLibraries) + + + + + /bigobj /Zm200 %(AdditionalOptions) + 4800;4101;%(DisableSpecificWarnings) + pch.h + $(ProjectDir)..\..\Classes;$(EngineRoot)cocos\platform\win8.1-universal;%(AdditionalIncludeDirectories) + false + CC_ENABLE_CHIPMUNK_INTEGRATION=1;%(PreprocessorDefinitions) + ProgramDatabase + + + + + Designer + + + + + + + + + + + + + {ca082ec4-17ce-430b-8207-d1e947a5d1e9} + + + {22f3b9df-1209-4574-8331-003966f562bf} + + + {cc1da216-a80d-4be4-b309-acb6af313aff} + + + {22f798d8-bfff-4754-996f-a5395343d5ec} + + + + + + \ No newline at end of file diff --git a/tests/js-memory-gc-tests/project/proj.win8.1-universal/App.WindowsPhone/js-tests.WindowsPhone.vcxproj.filters b/tests/js-memory-gc-tests/project/proj.win8.1-universal/App.WindowsPhone/js-tests.WindowsPhone.vcxproj.filters new file mode 100644 index 0000000000..eb71f325ca --- /dev/null +++ b/tests/js-memory-gc-tests/project/proj.win8.1-universal/App.WindowsPhone/js-tests.WindowsPhone.vcxproj.filters @@ -0,0 +1,30 @@ + + + + + {c8beb60d-689b-4aaa-9749-99bd3e2dcf75} + bmp;fbx;gif;jpg;jpeg;tga;tiff;tif;png + + + Assets + + + Assets + + + Assets + + + Assets + + + Assets + + + Assets + + + + + + \ No newline at end of file diff --git a/tests/js-memory-gc-tests/project/proj.win8.1-universal/resources.props b/tests/js-memory-gc-tests/project/proj.win8.1-universal/resources.props new file mode 100644 index 0000000000..bee92bbc47 --- /dev/null +++ b/tests/js-memory-gc-tests/project/proj.win8.1-universal/resources.props @@ -0,0 +1,69 @@ + + + + + + + $(EngineRoot)cocos\scripting\js-bindings\manual;$(EngineRoot)cocos\scripting\js-bindings\auto;$(EngineRoot)external\spidermonkey\include\$(COCOS2D_PLATFORM);$(EngineRoot)cocos\base;%(AdditionalIncludeDirectories); + + + mozjs-33.lib;%(AdditionalDependencies) + $(EngineRoot)external\spidermonkey\prebuilt\$(COCOS2D_PLATFORM)\$(Platform);%(AdditionalLibraryDirectories); + + + + + $(EngineRoot)external\spidermonkey\prebuilt\$(COCOS2D_PLATFORM)\$(Platform)\ + + + + + true + + + + + <_CustomResource Include="..\..\..\..\cpp-tests\Resources\**\*"> + Assets\Resources\res\%(RecursiveDir)%(FileName)%(Extension) + true + + + + <_CustomResource Include="..\..\..\src\**\*"> + Assets\Resources\src\%(RecursiveDir)%(FileName)%(Extension) + true + + + + <_CustomResource Include="..\..\..\..\..\cocos\scripting\js-bindings\script\**\*"> + Assets\Resources\script\%(RecursiveDir)%(FileName)%(Extension) + true + + + + <_CustomResource Include="..\..\..\main.js"> + Assets\Resources\%(RecursiveDir)%(FileName)%(Extension) + true + + + + <_CustomResource Include="..\..\..\project.json"> + Assets\Resources\%(RecursiveDir)%(FileName)%(Extension) + true + + + + <_CustomResource Include="..\..\..\resjs\**\*"> + Assets\Resources\res\resjs\%(RecursiveDir)%(FileName)%(Extension) + true + Always + + + + + + + + + + diff --git a/tests/js-memory-gc-tests/res/.gitignore b/tests/js-memory-gc-tests/res/.gitignore new file mode 100755 index 0000000000..1d65afe366 --- /dev/null +++ b/tests/js-memory-gc-tests/res/.gitignore @@ -0,0 +1,2 @@ +#Do now ignore Marmalade icf files +!*.icf diff --git a/tests/js-memory-gc-tests/res/Images/grossini_dance_01.png b/tests/js-memory-gc-tests/res/Images/grossini_dance_01.png new file mode 100755 index 0000000000..93aa6e983a Binary files /dev/null and b/tests/js-memory-gc-tests/res/Images/grossini_dance_01.png differ diff --git a/tests/js-memory-gc-tests/res/Images/grossini_dance_02.png b/tests/js-memory-gc-tests/res/Images/grossini_dance_02.png new file mode 100755 index 0000000000..bf03d3312c Binary files /dev/null and b/tests/js-memory-gc-tests/res/Images/grossini_dance_02.png differ diff --git a/tests/js-memory-gc-tests/res/Images/grossini_dance_03.png b/tests/js-memory-gc-tests/res/Images/grossini_dance_03.png new file mode 100755 index 0000000000..e01c593b40 Binary files /dev/null and b/tests/js-memory-gc-tests/res/Images/grossini_dance_03.png differ diff --git a/tests/js-memory-gc-tests/res/Images/grossini_dance_04.png b/tests/js-memory-gc-tests/res/Images/grossini_dance_04.png new file mode 100755 index 0000000000..c9b0ae2529 Binary files /dev/null and b/tests/js-memory-gc-tests/res/Images/grossini_dance_04.png differ diff --git a/tests/js-memory-gc-tests/res/Images/grossini_dance_05.png b/tests/js-memory-gc-tests/res/Images/grossini_dance_05.png new file mode 100755 index 0000000000..e65e6b2feb Binary files /dev/null and b/tests/js-memory-gc-tests/res/Images/grossini_dance_05.png differ diff --git a/tests/js-memory-gc-tests/res/Images/grossini_dance_06.png b/tests/js-memory-gc-tests/res/Images/grossini_dance_06.png new file mode 100755 index 0000000000..4c3be2334f Binary files /dev/null and b/tests/js-memory-gc-tests/res/Images/grossini_dance_06.png differ diff --git a/tests/js-memory-gc-tests/res/Images/grossini_dance_07.png b/tests/js-memory-gc-tests/res/Images/grossini_dance_07.png new file mode 100755 index 0000000000..4c38de3a78 Binary files /dev/null and b/tests/js-memory-gc-tests/res/Images/grossini_dance_07.png differ diff --git a/tests/js-memory-gc-tests/res/Images/grossini_dance_08.png b/tests/js-memory-gc-tests/res/Images/grossini_dance_08.png new file mode 100755 index 0000000000..fad80b8e9a Binary files /dev/null and b/tests/js-memory-gc-tests/res/Images/grossini_dance_08.png differ diff --git a/tests/js-memory-gc-tests/res/Images/grossini_dance_09.png b/tests/js-memory-gc-tests/res/Images/grossini_dance_09.png new file mode 100755 index 0000000000..b0fa9aded3 Binary files /dev/null and b/tests/js-memory-gc-tests/res/Images/grossini_dance_09.png differ diff --git a/tests/js-memory-gc-tests/res/Images/grossini_dance_10.png b/tests/js-memory-gc-tests/res/Images/grossini_dance_10.png new file mode 100755 index 0000000000..0abb6eab93 Binary files /dev/null and b/tests/js-memory-gc-tests/res/Images/grossini_dance_10.png differ diff --git a/tests/js-memory-gc-tests/res/Images/grossini_dance_11.png b/tests/js-memory-gc-tests/res/Images/grossini_dance_11.png new file mode 100755 index 0000000000..7285fd6c76 Binary files /dev/null and b/tests/js-memory-gc-tests/res/Images/grossini_dance_11.png differ diff --git a/tests/js-memory-gc-tests/res/Images/grossini_dance_12.png b/tests/js-memory-gc-tests/res/Images/grossini_dance_12.png new file mode 100755 index 0000000000..ce7d672004 Binary files /dev/null and b/tests/js-memory-gc-tests/res/Images/grossini_dance_12.png differ diff --git a/tests/js-memory-gc-tests/res/Images/grossini_dance_13.png b/tests/js-memory-gc-tests/res/Images/grossini_dance_13.png new file mode 100755 index 0000000000..92cbbd4da1 Binary files /dev/null and b/tests/js-memory-gc-tests/res/Images/grossini_dance_13.png differ diff --git a/tests/js-memory-gc-tests/res/Images/grossini_dance_14.png b/tests/js-memory-gc-tests/res/Images/grossini_dance_14.png new file mode 100755 index 0000000000..ee7d1bba0a Binary files /dev/null and b/tests/js-memory-gc-tests/res/Images/grossini_dance_14.png differ diff --git a/tests/js-memory-gc-tests/src/tests-main.js b/tests/js-memory-gc-tests/src/tests-main.js new file mode 100644 index 0000000000..52cddc0fb1 --- /dev/null +++ b/tests/js-memory-gc-tests/src/tests-main.js @@ -0,0 +1,174 @@ +// Custom Sprite +var MySprite = cc.Sprite.extend({ + ctor: function (path) { + this._super(path); + }, + something: function (x, y) { + this.setPosition(x,y); + } +}); + +// +// Scene Test 1 +// +function runScene1(sender) { + + var scene = new cc.Scene(); + + for (i = 0; i < 5; i++) { + var sprite = new MySprite("res/Images/grossini_dance_01.png"); + sprite.something(50 + 50*i,200); + scene.addChild(sprite); + } + + // menu + var button = new cc.MenuItemFont("Go to Scene 2", runScene2); + button.fontSize = 20; + button.fontName = "Arial"; + var menu = new cc.Menu(); + menu.addChild(button); + menu.setPosition(300,20); + scene.addChild(menu); + + cc.director.replaceScene(scene); +} + +// +// Scene Test 2 +// +function runScene2(sender) { + + var scene = new cc.Scene(); + + for (i = 0; i < 5; i++) { + var sprite = new cc.Sprite("res/Images/grossini_dance_08.png"); + sprite.setPosition(50 + 50*i,200); + scene.addChild(sprite); + } + + // menu + var button = new cc.MenuItemFont("Go to Scene 3", runScene3); + button.fontSize = 20; + button.fontName = "Arial"; + var menu = new cc.Menu(); + menu.addChild(button); + menu.setPosition(300,20); + scene.addChild(menu); + + cc.director.replaceScene(scene); +} + +// +// Scene Test 3 +// +function runScene3(sender) { + + var scene = new cc.Scene(); + + var fontDef = new cc.FontDefinition(); + fontDef.fontName = "Arial"; + fontDef.fontSize = 32; + this.label = new cc.LabelTTF("See console!", fontDef); + this.label.setPosition(300,300); + scene.addChild(this.label); + + // menu + var button = new cc.MenuItemFont("Go to Scene 4", runScene4); + button.fontSize = 20; + button.fontName = "Arial"; + var menu = new cc.Menu(); + menu.addChild(button); + menu.setPosition(300,20); + scene.addChild(menu); + + // 'browser' can use touches or mouse. + // The benefit of using 'touches' in a browser, is that it works both with mouse events or touches events + if ('touches' in cc.sys.capabilities) { + cc.eventManager.addListener({ + event: cc.EventListener.TOUCH_ALL_AT_ONCE, + onTouchesMoved: function (touches, event) { + var delta = touches[0].getDelta(); + cc.log("onTouchesMoved:" + delta); + return true; + } + }, + 10); + } else if ('mouse' in cc.sys.capabilities) { + cc.eventManager.addListener({ + event: cc.EventListener.MOUSE, + onMouseMove: function (event) { + if(event.getButton() == cc.EventMouse.BUTTON_LEFT) + cc.log("onMouseMove" + event.getDelta()); + }, + onMouseScroll: function (event) { + var delta = cc.sys.isNative ? event.getScrollY() * 6 : -event.getScrollY(); + cc.log("onMouseScroll:" + delta); + return true; + } + }, + 10); + } + + cc.director.replaceScene(scene); +} + + +function runScene4(sender) { + + var scene = new cc.Scene(); + + var actionTo = cc.jumpTo(2, cc.p(300, 300), 50, 4); + var actionBy = cc.jumpBy(2, cc.p(300, 0), 50, 4); + var actionUp = cc.jumpBy(2, cc.p(0, 0), 80, 4); + var actionByBack = actionBy.reverse(); + + var delay = cc.delayTime(0.25); + + var sprite1 = new cc.Sprite("res/Images/grossini_dance_08.png"); + sprite1.setPosition(10,10); + var sprite2 = new cc.Sprite("res/Images/grossini_dance_01.png"); + sprite2.setPosition(200,10); + var sprite3 = new cc.Sprite("res/Images/grossini_dance_04.png"); + sprite3.setPosition(400,10); + + scene.addChild(sprite1); + scene.addChild(sprite2); + scene.addChild(sprite3); + + sprite1.runAction(actionTo); + sprite2.runAction(cc.sequence(actionBy, delay, actionByBack)); + + var action = cc.sequence(actionUp, delay.clone()).repeatForever(); + sprite3.runAction(action); + + + // menu + var button = new cc.MenuItemFont("Go to Scene 1", runScene1); + button.fontSize = 20; + button.fontName = "Arial"; + var menu = new cc.Menu(); + menu.addChild(button); + menu.setPosition(300,20); + scene.addChild(menu); + + cc.director.replaceScene(scene); +} + +// +// Main Entry point +// +function runMain() { + + var scene = new cc.Scene(); + + // menu + var button = new cc.MenuItemFont("Start Test", runScene1); + button.fontSize = 20; + button.fontName = "Arial"; + var menu = new cc.Menu(); + menu.addChild(button); + menu.setPosition(300,300); + + scene.addChild(menu); + cc.director.runScene(scene); +} diff --git a/tests/js-tests/main.js b/tests/js-tests/main.js index 6f55df4164..4c2749925c 100644 --- a/tests/js-tests/main.js +++ b/tests/js-tests/main.js @@ -27,7 +27,7 @@ /** * A brief explanation for "project.json": - * Here is the content of project.json file, this is the global configuration for your game, you can modify it to customize some behavior. + * Here is the content ofproject.json file, this is the global configuration for your game, you can modify it to customize some behavior. * The detail of each field is under it. { "debugMode" : 1,