diff --git a/templates/multi-platform-cpp/CMakeLists.txt b/templates/cpp-template-default/CMakeLists.txt similarity index 100% rename from templates/multi-platform-cpp/CMakeLists.txt rename to templates/cpp-template-default/CMakeLists.txt diff --git a/templates/multi-platform-cpp/Classes/AppDelegate.cpp b/templates/cpp-template-default/Classes/AppDelegate.cpp similarity index 100% rename from templates/multi-platform-cpp/Classes/AppDelegate.cpp rename to templates/cpp-template-default/Classes/AppDelegate.cpp diff --git a/templates/multi-platform-cpp/Classes/AppDelegate.h b/templates/cpp-template-default/Classes/AppDelegate.h similarity index 100% rename from templates/multi-platform-cpp/Classes/AppDelegate.h rename to templates/cpp-template-default/Classes/AppDelegate.h diff --git a/templates/multi-platform-cpp/Classes/HelloWorldScene.cpp b/templates/cpp-template-default/Classes/HelloWorldScene.cpp similarity index 100% rename from templates/multi-platform-cpp/Classes/HelloWorldScene.cpp rename to templates/cpp-template-default/Classes/HelloWorldScene.cpp diff --git a/templates/multi-platform-cpp/Classes/HelloWorldScene.h b/templates/cpp-template-default/Classes/HelloWorldScene.h similarity index 100% rename from templates/multi-platform-cpp/Classes/HelloWorldScene.h rename to templates/cpp-template-default/Classes/HelloWorldScene.h diff --git a/templates/multi-platform-cpp/Resources/HelloWorld.png.REMOVED.git-id b/templates/cpp-template-default/Resources/HelloWorld.png.REMOVED.git-id similarity index 100% rename from templates/multi-platform-cpp/Resources/HelloWorld.png.REMOVED.git-id rename to templates/cpp-template-default/Resources/HelloWorld.png.REMOVED.git-id diff --git a/templates/multi-platform-cpp/proj.android/.classpath b/templates/cpp-template-default/proj.android/.classpath similarity index 100% rename from templates/multi-platform-cpp/proj.android/.classpath rename to templates/cpp-template-default/proj.android/.classpath diff --git a/templates/multi-platform-cpp/proj.android/.project b/templates/cpp-template-default/proj.android/.project similarity index 100% rename from templates/multi-platform-cpp/proj.android/.project rename to templates/cpp-template-default/proj.android/.project diff --git a/templates/multi-platform-cpp/proj.android/AndroidManifest.xml b/templates/cpp-template-default/proj.android/AndroidManifest.xml similarity index 100% rename from templates/multi-platform-cpp/proj.android/AndroidManifest.xml rename to templates/cpp-template-default/proj.android/AndroidManifest.xml diff --git a/templates/multi-platform-cpp/proj.android/README.md b/templates/cpp-template-default/proj.android/README.md similarity index 100% rename from templates/multi-platform-cpp/proj.android/README.md rename to templates/cpp-template-default/proj.android/README.md diff --git a/templates/multi-platform-cpp/proj.android/ant.properties b/templates/cpp-template-default/proj.android/ant.properties similarity index 100% rename from templates/multi-platform-cpp/proj.android/ant.properties rename to templates/cpp-template-default/proj.android/ant.properties diff --git a/templates/multi-platform-cpp/proj.android/build.xml b/templates/cpp-template-default/proj.android/build.xml similarity index 100% rename from templates/multi-platform-cpp/proj.android/build.xml rename to templates/cpp-template-default/proj.android/build.xml diff --git a/templates/multi-platform-cpp/proj.android/build_native.py b/templates/cpp-template-default/proj.android/build_native.py similarity index 100% rename from templates/multi-platform-cpp/proj.android/build_native.py rename to templates/cpp-template-default/proj.android/build_native.py diff --git a/templates/multi-platform-cpp/proj.android/jni/Android.mk b/templates/cpp-template-default/proj.android/jni/Android.mk similarity index 100% rename from templates/multi-platform-cpp/proj.android/jni/Android.mk rename to templates/cpp-template-default/proj.android/jni/Android.mk diff --git a/templates/multi-platform-cpp/proj.android/jni/Application.mk b/templates/cpp-template-default/proj.android/jni/Application.mk similarity index 100% rename from templates/multi-platform-cpp/proj.android/jni/Application.mk rename to templates/cpp-template-default/proj.android/jni/Application.mk diff --git a/templates/multi-platform-cpp/proj.android/jni/hellocpp/main.cpp b/templates/cpp-template-default/proj.android/jni/hellocpp/main.cpp similarity index 100% rename from templates/multi-platform-cpp/proj.android/jni/hellocpp/main.cpp rename to templates/cpp-template-default/proj.android/jni/hellocpp/main.cpp diff --git a/templates/multi-platform-cpp/proj.android/proguard-project.txt b/templates/cpp-template-default/proj.android/proguard-project.txt similarity index 100% rename from templates/multi-platform-cpp/proj.android/proguard-project.txt rename to templates/cpp-template-default/proj.android/proguard-project.txt diff --git a/templates/multi-platform-cpp/proj.android/project.properties b/templates/cpp-template-default/proj.android/project.properties similarity index 100% rename from templates/multi-platform-cpp/proj.android/project.properties rename to templates/cpp-template-default/proj.android/project.properties diff --git a/templates/multi-platform-cpp/proj.android/res/values/strings.xml b/templates/cpp-template-default/proj.android/res/values/strings.xml similarity index 100% rename from templates/multi-platform-cpp/proj.android/res/values/strings.xml rename to templates/cpp-template-default/proj.android/res/values/strings.xml diff --git a/templates/multi-platform-cpp/proj.android/src/org/cocos2dx/cpp/Cocos2dxActivity.java b/templates/cpp-template-default/proj.android/src/org/cocos2dx/cpp/Cocos2dxActivity.java similarity index 100% rename from templates/multi-platform-cpp/proj.android/src/org/cocos2dx/cpp/Cocos2dxActivity.java rename to templates/cpp-template-default/proj.android/src/org/cocos2dx/cpp/Cocos2dxActivity.java diff --git a/templates/multi-platform-cpp/proj.ios_mac/HelloCpp.xcodeproj/project.pbxproj b/templates/cpp-template-default/proj.ios_mac/HelloCpp.xcodeproj/project.pbxproj similarity index 100% rename from templates/multi-platform-cpp/proj.ios_mac/HelloCpp.xcodeproj/project.pbxproj rename to templates/cpp-template-default/proj.ios_mac/HelloCpp.xcodeproj/project.pbxproj diff --git a/templates/multi-platform-cpp/proj.ios_mac/ios/AppController.h b/templates/cpp-template-default/proj.ios_mac/ios/AppController.h similarity index 100% rename from templates/multi-platform-cpp/proj.ios_mac/ios/AppController.h rename to templates/cpp-template-default/proj.ios_mac/ios/AppController.h diff --git a/templates/multi-platform-cpp/proj.ios_mac/ios/AppController.mm b/templates/cpp-template-default/proj.ios_mac/ios/AppController.mm similarity index 100% rename from templates/multi-platform-cpp/proj.ios_mac/ios/AppController.mm rename to templates/cpp-template-default/proj.ios_mac/ios/AppController.mm diff --git a/templates/multi-platform-cpp/proj.ios_mac/ios/Default-568h@2x.png.REMOVED.git-id b/templates/cpp-template-default/proj.ios_mac/ios/Default-568h@2x.png.REMOVED.git-id similarity index 100% rename from templates/multi-platform-cpp/proj.ios_mac/ios/Default-568h@2x.png.REMOVED.git-id rename to templates/cpp-template-default/proj.ios_mac/ios/Default-568h@2x.png.REMOVED.git-id diff --git a/templates/multi-platform-cpp/proj.ios_mac/ios/Default@2x.png.REMOVED.git-id b/templates/cpp-template-default/proj.ios_mac/ios/Default@2x.png.REMOVED.git-id similarity index 100% rename from templates/multi-platform-cpp/proj.ios_mac/ios/Default@2x.png.REMOVED.git-id rename to templates/cpp-template-default/proj.ios_mac/ios/Default@2x.png.REMOVED.git-id diff --git a/templates/multi-platform-cpp/proj.ios_mac/ios/Prefix.pch b/templates/cpp-template-default/proj.ios_mac/ios/Prefix.pch similarity index 100% rename from templates/multi-platform-cpp/proj.ios_mac/ios/Prefix.pch rename to templates/cpp-template-default/proj.ios_mac/ios/Prefix.pch diff --git a/templates/multi-platform-cpp/proj.ios_mac/ios/RootViewController.h b/templates/cpp-template-default/proj.ios_mac/ios/RootViewController.h similarity index 100% rename from templates/multi-platform-cpp/proj.ios_mac/ios/RootViewController.h rename to templates/cpp-template-default/proj.ios_mac/ios/RootViewController.h diff --git a/templates/multi-platform-cpp/proj.ios_mac/ios/RootViewController.mm b/templates/cpp-template-default/proj.ios_mac/ios/RootViewController.mm similarity index 100% rename from templates/multi-platform-cpp/proj.ios_mac/ios/RootViewController.mm rename to templates/cpp-template-default/proj.ios_mac/ios/RootViewController.mm diff --git a/templates/multi-platform-cpp/proj.ios_mac/ios/main.m b/templates/cpp-template-default/proj.ios_mac/ios/main.m similarity index 100% rename from templates/multi-platform-cpp/proj.ios_mac/ios/main.m rename to templates/cpp-template-default/proj.ios_mac/ios/main.m diff --git a/templates/multi-platform-cpp/proj.ios_mac/mac/Icon.icns.REMOVED.git-id b/templates/cpp-template-default/proj.ios_mac/mac/Icon.icns.REMOVED.git-id similarity index 100% rename from templates/multi-platform-cpp/proj.ios_mac/mac/Icon.icns.REMOVED.git-id rename to templates/cpp-template-default/proj.ios_mac/mac/Icon.icns.REMOVED.git-id diff --git a/templates/multi-platform-cpp/proj.ios_mac/mac/Prefix.pch b/templates/cpp-template-default/proj.ios_mac/mac/Prefix.pch similarity index 100% rename from templates/multi-platform-cpp/proj.ios_mac/mac/Prefix.pch rename to templates/cpp-template-default/proj.ios_mac/mac/Prefix.pch diff --git a/templates/multi-platform-cpp/proj.ios_mac/mac/main.cpp b/templates/cpp-template-default/proj.ios_mac/mac/main.cpp similarity index 100% rename from templates/multi-platform-cpp/proj.ios_mac/mac/main.cpp rename to templates/cpp-template-default/proj.ios_mac/mac/main.cpp diff --git a/templates/multi-platform-cpp/proj.linux/main.cpp b/templates/cpp-template-default/proj.linux/main.cpp similarity index 100% rename from templates/multi-platform-cpp/proj.linux/main.cpp rename to templates/cpp-template-default/proj.linux/main.cpp diff --git a/templates/multi-platform-cpp/proj.win32/HelloCpp.sln b/templates/cpp-template-default/proj.win32/HelloCpp.sln similarity index 100% rename from templates/multi-platform-cpp/proj.win32/HelloCpp.sln rename to templates/cpp-template-default/proj.win32/HelloCpp.sln diff --git a/templates/multi-platform-cpp/proj.win32/HelloCpp.vcxproj b/templates/cpp-template-default/proj.win32/HelloCpp.vcxproj similarity index 100% rename from templates/multi-platform-cpp/proj.win32/HelloCpp.vcxproj rename to templates/cpp-template-default/proj.win32/HelloCpp.vcxproj diff --git a/templates/multi-platform-cpp/proj.win32/HelloCpp.vcxproj.filters b/templates/cpp-template-default/proj.win32/HelloCpp.vcxproj.filters similarity index 100% rename from templates/multi-platform-cpp/proj.win32/HelloCpp.vcxproj.filters rename to templates/cpp-template-default/proj.win32/HelloCpp.vcxproj.filters diff --git a/templates/multi-platform-cpp/proj.win32/HelloCpp.vcxproj.user b/templates/cpp-template-default/proj.win32/HelloCpp.vcxproj.user similarity index 100% rename from templates/multi-platform-cpp/proj.win32/HelloCpp.vcxproj.user rename to templates/cpp-template-default/proj.win32/HelloCpp.vcxproj.user diff --git a/templates/multi-platform-cpp/proj.win32/game.rc b/templates/cpp-template-default/proj.win32/game.rc similarity index 100% rename from templates/multi-platform-cpp/proj.win32/game.rc rename to templates/cpp-template-default/proj.win32/game.rc diff --git a/templates/multi-platform-cpp/proj.win32/main.cpp b/templates/cpp-template-default/proj.win32/main.cpp similarity index 100% rename from templates/multi-platform-cpp/proj.win32/main.cpp rename to templates/cpp-template-default/proj.win32/main.cpp diff --git a/templates/multi-platform-cpp/proj.win32/main.h b/templates/cpp-template-default/proj.win32/main.h similarity index 100% rename from templates/multi-platform-cpp/proj.win32/main.h rename to templates/cpp-template-default/proj.win32/main.h diff --git a/templates/multi-platform-cpp/proj.win32/res/game.ico b/templates/cpp-template-default/proj.win32/res/game.ico similarity index 100% rename from templates/multi-platform-cpp/proj.win32/res/game.ico rename to templates/cpp-template-default/proj.win32/res/game.ico diff --git a/templates/multi-platform-cpp/proj.win32/resource.h b/templates/cpp-template-default/proj.win32/resource.h similarity index 100% rename from templates/multi-platform-cpp/proj.win32/resource.h rename to templates/cpp-template-default/proj.win32/resource.h diff --git a/templates/multi-platform-js-runtime/cocos2d-jsb.js b/templates/multi-platform-js-runtime/cocos2d-jsb.js deleted file mode 100644 index a5f7cb7c62..0000000000 --- a/templates/multi-platform-js-runtime/cocos2d-jsb.js +++ /dev/null @@ -1,35 +0,0 @@ - -// boot code needed for cocos2d + JS bindings. -// Not needed by cocos2d-html5 - -require("jsb.js"); - -var appFiles = [ - 'src/resource.js', - 'src/app.js' -]; - -cc.dumpConfig(); - -for( var i=0; i < appFiles.length; i++) { - require( appFiles[i] ); -} - -var director = cc.Director.getInstance(); -director.setDisplayStats(true); - -// set FPS. the default value is 1.0/60 if you don't call this -director.setAnimationInterval(1.0 / 60); - -// create a scene. it's an autorelease object -var myScene = new MyScene(); - -// run -if (director.getRunningScene()) -{ - director.replaceScene(myScene); -} -else -{ - director.runWithScene(myScene); -} diff --git a/templates/multi-platform-js-runtime/framework/Classes/AppDelegate.cpp b/templates/multi-platform-js-runtime/framework/Classes/AppDelegate.cpp deleted file mode 100644 index 5d1d7d7350..0000000000 --- a/templates/multi-platform-js-runtime/framework/Classes/AppDelegate.cpp +++ /dev/null @@ -1,72 +0,0 @@ -#include "AppDelegate.h" - -#include "cocosbuilder/js_bindings_ccbreader.h" -#include "SimpleAudioEngine.h" -#include "jsb_cocos2dx_auto.hpp" -#include "jsb_cocos2dx_extension_auto.hpp" -#include "jsb_cocos2dx_builder_auto.hpp" -#include "extension/jsb_cocos2dx_extension_manual.h" -#include "localstorage/js_bindings_system_registration.h" -#include "chipmunk/js_bindings_chipmunk_registration.h" -#include "jsb_opengl_registration.h" -#include "Runtime.h" - -USING_NS_CC; -using namespace CocosDenshion; - -AppDelegate::AppDelegate() -{ -} - -AppDelegate::~AppDelegate() -{ - ScriptEngineManager::destroyInstance(); -} - -bool AppDelegate::applicationDidFinishLaunching() -{ - // initialize director - auto director = Director::getInstance(); - auto glview = director->getOpenGLView(); - if(!glview) { - glview = GLView::createWithRect("Test Lua", Rect(0,0,900,640)); - director->setOpenGLView(glview); - } - - // turn on display FPS - director->setDisplayStats(true); - auto designSize = Size(480, 320); - glview->setDesignResolutionSize(designSize.width, designSize.height, ResolutionPolicy::EXACT_FIT); - // 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_all_cocos2dx_extension); - sc->addRegisterCallback(register_cocos2dx_js_extensions); - sc->addRegisterCallback(register_all_cocos2dx_extension_manual); - sc->addRegisterCallback(register_all_cocos2dx_builder); - sc->addRegisterCallback(register_CCBuilderReader); - sc->addRegisterCallback(jsb_register_system); - sc->addRegisterCallback(JSB_register_opengl); - sc->addRegisterCallback(jsb_register_chipmunk); - - startRuntime(); - 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() -{ - Director::getInstance()->stopAnimation(); - SimpleAudioEngine::getInstance()->pauseBackgroundMusic(); - SimpleAudioEngine::getInstance()->pauseAllEffects(); -} - -// this function will be called when the app is active again -void AppDelegate::applicationWillEnterForeground() -{ - Director::getInstance()->startAnimation(); - SimpleAudioEngine::getInstance()->resumeBackgroundMusic(); - SimpleAudioEngine::getInstance()->resumeAllEffects(); -} diff --git a/templates/multi-platform-js-runtime/framework/Classes/AppDelegate.h b/templates/multi-platform-js-runtime/framework/Classes/AppDelegate.h deleted file mode 100644 index df8f12f70f..0000000000 --- a/templates/multi-platform-js-runtime/framework/Classes/AppDelegate.h +++ /dev/null @@ -1,45 +0,0 @@ -// -// GCTestAppDelegate.h -// GCTest -// -// Created by Rohan Kuruvilla on 06/08/2012. -// Copyright __MyCompanyName__ 2012. All rights reserved. -// - -#ifndef _APP_DELEGATE_H_ -#define _APP_DELEGATE_H_ - -#include "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(); - - /** - @brief Implement Director and Scene init code here. - @return true Initialize success, app continue. - @return false Initialize failed, app terminate. - */ - virtual bool applicationDidFinishLaunching(); - - /** - @brief The function be called when the application enter background - @param the pointer of the application - */ - virtual void applicationDidEnterBackground(); - - /** - @brief The function be called when the application enter foreground - @param the pointer of the application - */ - virtual void applicationWillEnterForeground(); -}; - -#endif // _APP_DELEGATE_H_ - diff --git a/templates/multi-platform-js-runtime/framework/Classes/Runtime.cpp b/templates/multi-platform-js-runtime/framework/Classes/Runtime.cpp deleted file mode 100644 index 0bc4b5e553..0000000000 --- a/templates/multi-platform-js-runtime/framework/Classes/Runtime.cpp +++ /dev/null @@ -1,347 +0,0 @@ -/**************************************************************************** -Copyright (c) 2013 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 "Runtime.h" - -#include "SimpleAudioEngine.h" -#include "jsb_cocos2dx_auto.hpp" -#include "jsb_cocos2dx_extension_auto.hpp" -#include "jsb_cocos2dx_builder_auto.hpp" -#include "extension/jsb_cocos2dx_extension_manual.h" -#include "cocosbuilder/js_bindings_ccbreader.h" -#include "localstorage/js_bindings_system_registration.h" -#include "chipmunk/js_bindings_chipmunk_registration.h" -#include "jsb_opengl_registration.h" -#include "CCScheduler.h" - -#ifdef _WIN32 -#define realpath(dir,fuldir) _fullpath(fuldir,dir,_MAX_PATH_) -#else -#include -#include -#include -#include -#include -#include -#endif - -#include -#include - -using namespace std; -using namespace cocos2d; - -extern string getDotWaitFilePath(); -extern string getProjSearchPath(); -extern vector getSearchPath(); -extern bool browseDir(const char *dir,const char *filespec,vector &filterArray,vector &fileList); - -/*@brief use "|" splite string */ -vector splitFilter(const char *str) -{ - vector filterArray; - if (str) - { - char *token=NULL; - char szFilterFile[_MAX_PATH_]={0}; - strcpy(szFilterFile,str); - token = strtok(szFilterFile, "|" ); - while( token != NULL ) - { - filterArray.push_back(token); - token = strtok( NULL, "|"); - } - } - return filterArray; -} - -/*@brief wildcard funciton*/ -bool wildcardMatches(const char *wildcard, const char *str) -{ - while (1) { - if (*wildcard == '\0') - { - return *str == '\0'; - } - if (*wildcard == '?') - { - ++wildcard; ++str; - } - else if (*wildcard == '*') - { - for (++wildcard; *str; ++str) - { - if (wildcardMatches(wildcard, str)) - { - return true; - } - } - return *wildcard == '\0'; - } - else - { - if (*wildcard != *str) - { - return false; - } - ++wildcard; ++str; - } - } -} - - -#ifndef _WIN32 -/* -*@brief iterator directory and process file. -*/ -bool browseDir(const char *dir,const char *filespec,vector &filterArray,vector &fileList) -{ - DIR *dp=NULL; - struct dirent *entry=NULL; - struct stat statbuf; - if((dp = opendir(dir)) == NULL) - { - return false; - } - - if (chdir(dir) != 0) - { - return false; - } - - while((entry = readdir(dp)) != NULL) - { - lstat(entry->d_name,&statbuf); - if(S_ISDIR(statbuf.st_mode)) - { - if(strcmp(".",entry->d_name) == 0 ||strcmp("..",entry->d_name) == 0) - { - continue; - } - - if (find(filterArray.begin(),filterArray.end(),entry->d_name) != filterArray.end()) - { - continue; - } - - char subdir[_MAX_PATH_]={0}; - sprintf(subdir,"%s%s/",dir,entry->d_name); - if (!browseDir(subdir,filespec,filterArray,fileList)) - { - closedir(dp); - return false; - } - } - else - { - - if (!wildcardMatches(filespec,entry->d_name)) - { - continue; - } - - char *pszexten=strrchr(entry->d_name,'.'); - char szextension[_MAX_PATH_]={0}; - if (pszexten) - { - strcpy(szextension,"*"); - strcat(szextension,pszexten); - if (find(filterArray.begin(),filterArray.end(),szextension) != filterArray.end()) - { - continue; - } - } - - strcpy(szextension,entry->d_name); - if (find(filterArray.begin(),filterArray.end(),szextension) != filterArray.end()) - { - continue; - } - - char fullFileName[_MAX_PATH_] ={0}; - sprintf(fullFileName,"%s%s",dir,entry->d_name); - fileList.push_back(fullFileName); - } - } - chdir(".."); - closedir(dp); - return true; -} -#endif - - -/************************ -* Get file list from specified directory. -* -*@param dir search directory -*@param filespec search specified type file -*@param filterfile filter file or folder -* -*Like this: -* searchFileList("/home","*.*",".svn|.jpg|"); -*********************************/ -vector searchFileList(string &dir,const char *filespec="*.*",const char *filterfile=NULL) -{ - char fulldir[_MAX_PATH_]={0}; - vector _filterArray; - vector _lfileList; - _filterArray = splitFilter(filterfile); - - if (realpath(dir.c_str(), fulldir)== NULL) - { - return _lfileList; - } - - int len=strlen(fulldir); - if (fulldir[len-1] != '/') - { - strcat(fulldir,"/"); - } - - browseDir(fulldir,filespec,_filterArray,_lfileList); - dir =fulldir; - return _lfileList; -} - -void startScript() -{ - ScriptEngineProtocol *engine = ScriptingCore::getInstance(); - ScriptEngineManager::getInstance()->setScriptEngine(engine); - ScriptingCore::getInstance()->runScript("cocos2d-jsb.js"); -} - -void reloadScript() -{ - -} - -class ConnectWaiter: public Ref -{ -public: - static ConnectWaiter& getInstance() - { - static ConnectWaiter instance; - return instance; - } - void updateConnect(float delta) - { - FileUtils::getInstance()->purgeCachedEntries(); - if (!FileUtils::getInstance()->isFileExist(_dotwaitFile)) - { - _scheduler->unscheduleSelector(SEL_SCHEDULE(&ConnectWaiter::updateConnect),this); - startScript(); - } - } - void waitDebugConnect(void) - { - _dotwaitFile = getDotWaitFilePath(); - _jsSearchPath = getProjSearchPath(); - vector fileInfoList = searchFileList(_jsSearchPath,"*.js","runtime|framework|"); - for (unsigned i = 0; i < fileInfoList.size(); i++) - { - ScriptingCore::getInstance()->compileScript(fileInfoList[i].substr(_jsSearchPath.length(),-1).c_str()); - } - - if (!FileUtils::getInstance()->isFileExist(_dotwaitFile)) - { - startScript(); - return; - } - - if (_scheduler) - { - _scheduler->scheduleSelector(SEL_SCHEDULE(&ConnectWaiter::updateConnect), this,0.5f, false); - } - } -private: - ConnectWaiter() - { - _scheduler = CCDirector::sharedDirector()->getScheduler(); - } - - cocos2d::Scheduler *_scheduler; - string _dotwaitFile; - string _jsSearchPath; -}; - -void startRuntime() -{ - vector searchPathArray; - searchPathArray = getSearchPath(); - for (unsigned i = 0; i < searchPathArray.size(); i++) - { - FileUtils::getInstance()->addSearchPath(searchPathArray[i]); - } -#ifdef COCOS2D_DEBUG - ScriptingCore::getInstance()->start(); - ScriptingCore::getInstance()->enableDebugger(); - ScriptEngineProtocol *engine = ScriptingCore::getInstance(); - ScriptEngineManager::getInstance()->setScriptEngine(engine); - ScriptingCore::getInstance()->runScript("jsb.js"); - ConnectWaiter::getInstance().waitDebugConnect(); -#else - ScriptingCore::getInstance()->start(); - startScript(); -#endif -} - - - - -// SimulatorConfig -SimulatorConfig *SimulatorConfig::s_sharedInstance = NULL; -SimulatorConfig *SimulatorConfig::getInstance(void) -{ - if (!s_sharedInstance) - { - s_sharedInstance = new SimulatorConfig(); - } - return s_sharedInstance; -} - -SimulatorConfig::SimulatorConfig(void) -{ - m_screenSizeArray.push_back(SimulatorScreenSize("iPhone 3Gs (480x320)", 480, 320)); - m_screenSizeArray.push_back(SimulatorScreenSize("iPhone 4 (960x640)", 960, 640)); - m_screenSizeArray.push_back(SimulatorScreenSize("iPhone 5 (1136x640)", 1136, 640)); - m_screenSizeArray.push_back(SimulatorScreenSize("iPad (1024x768)", 1024, 768)); - m_screenSizeArray.push_back(SimulatorScreenSize("iPad Retina (2048x1536)", 2048, 1536)); - m_screenSizeArray.push_back(SimulatorScreenSize("Android (800x480)", 800, 480)); - m_screenSizeArray.push_back(SimulatorScreenSize("Android (854x480)", 854, 480)); - m_screenSizeArray.push_back(SimulatorScreenSize("Android (960x540)", 960, 540)); - m_screenSizeArray.push_back(SimulatorScreenSize("Android (1024x600)", 1024, 600)); - m_screenSizeArray.push_back(SimulatorScreenSize("Android (1280x720)", 1280, 720)); - m_screenSizeArray.push_back(SimulatorScreenSize("Android (1280x800)", 1280, 800)); - m_screenSizeArray.push_back(SimulatorScreenSize("Android (1920x1080)", 1920, 1080)); -} - -int SimulatorConfig::getScreenSizeCount(void) -{ - return (int)m_screenSizeArray.size(); -} - -const SimulatorScreenSize SimulatorConfig::getScreenSize(int index) -{ - return m_screenSizeArray.at(index); -} \ No newline at end of file diff --git a/templates/multi-platform-js-runtime/framework/Classes/Runtime.h b/templates/multi-platform-js-runtime/framework/Classes/Runtime.h deleted file mode 100644 index 5cfb0a38e4..0000000000 --- a/templates/multi-platform-js-runtime/framework/Classes/Runtime.h +++ /dev/null @@ -1,69 +0,0 @@ -/**************************************************************************** -Copyright (c) 2013 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. -****************************************************************************/ - -#ifndef _RUNTIME__H_ -#define _RUNTIME__H_ - -#include -#include -using namespace std; - -#define _MAX_PATH_ 512 - -void startRuntime(); - -void reloadScript(); - -// SimulatorConfig -typedef struct _SimulatorScreenSize { - string title; - int width; - int height; - - _SimulatorScreenSize(const string title_, int width_, int height_) - { - title = title_; - width = width_; - height = height_; - } -} SimulatorScreenSize; - -typedef vector ScreenSizeArray; -class SimulatorConfig -{ -public: - static SimulatorConfig *getInstance(void); - - // predefined screen size - int getScreenSizeCount(void); - const SimulatorScreenSize getScreenSize(int index); - -private: - SimulatorConfig(void); - static SimulatorConfig *s_sharedInstance; - ScreenSizeArray m_screenSizeArray; -}; - -#endif // _RUNTIME__H_ - diff --git a/templates/multi-platform-js-runtime/framework/build_runtime.py b/templates/multi-platform-js-runtime/framework/build_runtime.py deleted file mode 100644 index 06b0dc9d5a..0000000000 --- a/templates/multi-platform-js-runtime/framework/build_runtime.py +++ /dev/null @@ -1,419 +0,0 @@ -#! /usr/bin/env python -# coding=utf-8 -# filename=build_runtime.py - -import os -import re -import sys -import shutil -import platform -import subprocess - -if platform.system() == 'Windows': - import _winreg - - -def checkParams(): - """Custom and check param list. - """ - from optparse import OptionParser - # set the parser to parse input params - # the correspond variable name of "-x, --xxx" is parser.xxx - - if platform.system() == "Darwin": - parser = OptionParser( - usage="Usage: %prog -p \n\ - Sample: %prog -p ios" - ) - parser.add_option( - "-p", - "--platform", - metavar="PLATFORM", - type="choice", - choices=["android", "ios", "mac"], - help="Set build runtime's platform" - ) - elif platform.system() == "Windows": - parser = OptionParser( - usage="Usage: %prog -p \n\ - Sample: %prog -p win32" - ) - parser.add_option( - "-p", - "--platform", - metavar="PLATFORM", - type="choice", - choices=["win32", "android"], - help="Set build runtime's platform" - ) - - parser.add_option( - "-u", - "--pure", - dest="pure", - action="store_true", - help="parameter for copy resource" - ) - - # parse the params - (opts, args) = parser.parse_args() - if not opts.platform: - parser.error("-p or --platform is not specified") - if not opts.pure: - return opts.platform, None - return opts.platform, opts.pure - - -class BuildRuntime: - - def __init__(self, platform, pure): - self.projectPath = None - self.projectName = None - self.runtimePlatform = platform - self.pure = pure - - scriptPath = os.path.abspath(os.path.dirname(__file__)) - if platform == 'win32': - self.projectPath = os.path.join(scriptPath, "proj.win32") - elif platform == 'android': - self.projectPath = os.path.join(scriptPath, "proj.android") - elif platform == 'ios': - self.projectPath = os.path.join(scriptPath, "proj.ios_mac") - elif platform == 'mac': - self.projectPath = os.path.join(scriptPath, "proj.ios_mac") - - def buildRuntime(self): - if self.runtimePlatform == 'win32': - self.win32Runtime() - elif self.runtimePlatform == 'android': - self.androidRuntime() - if self.runtimePlatform == 'ios': - self.iosRuntime() - if self.runtimePlatform == 'mac': - self.macRuntime() - - def macRuntime(self): - commands = [ - "xcodebuild", - "-version" - ] - child = subprocess.Popen(commands, stdout=subprocess.PIPE) - - xcode = None - version = None - for line in child.stdout: - if 'Xcode' in line: - xcode, version = str.split(line, ' ') - - child.wait() - - if xcode is None: - print ("Xcode wasn't installed") - return False - - if version <= '5': - print ("Update xcode please") - return False - - res = self.checkFileByExtention(".xcodeproj") - if not res: - print ("Can't find the \".xcodeproj\" file") - return False - - projectPath = os.path.join(self.projectPath, self.projectName) - pbxprojectPath = os.path.join(projectPath, "project.pbxproj") - print(pbxprojectPath) - - f = file(pbxprojectPath) - contents = f.read() - - section = re.search( - r"Begin PBXProject section.*End PBXProject section", - contents, - re.S - ) - - if section is None: - print ("Can't find Mac target") - return False - - targets = re.search(r"targets = (.*);", section.group(), re.S) - if targets is None: - print ("Can't find Mac target") - return False - - targetName = None - names = re.split("\*", targets.group()) - for name in names: - if "Mac" in name: - targetName = str.strip(name) - - if targetName is None: - print ("Can't find Mac target") - return False - - macFolder = os.path.join(self.projectPath, "..", "..", "runtime", "mac") - if os.path.isdir(macFolder): - shutil.rmtree(macFolder) - - commands = [ - "xcodebuild", - "-project", - projectPath, - "-configuration", - "Debug", - "-target", - targetName, - "CONFIGURATION_BUILD_DIR=%s" % (macFolder) - ] - child = subprocess.Popen(commands, stdout=subprocess.PIPE) - for line in child.stdout: - print (line) - - child.wait() - - filelist = os.listdir(macFolder) - for filename in filelist: - name, extention = os.path.splitext(filename) - if extention == '.a': - filename = os.path.join(macFolder, filename) - os.remove(filename) - if extention == '.app': - filename = os.path.join(macFolder, filename) - if ' ' in name: - newname = os.path.join(macFolder, name[:name.find(' ')]+extention) - os.rename(filename, newname) - - def iosRuntime(self): - commands = [ - "xcodebuild", - "-version" - ] - child = subprocess.Popen(commands, stdout=subprocess.PIPE) - - xcode = None - version = None - for line in child.stdout: - if 'Xcode' in line: - xcode, version = str.split(line, ' ') - - child.wait() - - if xcode is None: - print ("Xcode wasn't installed") - return False - - if version <= '5': - print ("Update xcode please") - return False - - res = self.checkFileByExtention(".xcodeproj") - if not res: - print ("Can't find the \".xcodeproj\" file") - return False - - projectPath = os.path.join(self.projectPath, self.projectName) - pbxprojectPath = os.path.join(projectPath, "project.pbxproj") - print(pbxprojectPath) - - f = file(pbxprojectPath) - contents = f.read() - - section = re.search(r"Begin PBXProject section.*End PBXProject section", contents, re.S) - - if section is None: - print ("Can't find iOS target") - return False - - targets = re.search(r"targets = (.*);", section.group(), re.S) - if targets is None: - print ("Can't find iOS target") - return False - - targetName = None - names = re.split("\*", targets.group()) - for name in names: - if "iOS" in name: - targetName = str.strip(name) - - if targetName is None: - print ("Can't find iOS target") - return False - - iosFolder = os.path.join(self.projectPath, "..", "..", "runtime", "ios") - if os.path.isdir(iosFolder): - filelist = os.listdir(iosFolder) - for filename in filelist: - if ".app" in filename: - f = os.path.join(iosFolder, filename) - shutil.rmtree(f) - - commands = [ - "xcodebuild", - "-project", - projectPath, - "-configuration", - "Debug", - "-target", - targetName, - "-sdk", - "iphonesimulator", - "CONFIGURATION_BUILD_DIR=%s" % (iosFolder) - ] - child = subprocess.Popen(commands, stdout=subprocess.PIPE) - for line in child.stdout: - print (line) - - child.wait() - - filelist = os.listdir(iosFolder) - - for filename in filelist: - name, extention = os.path.splitext(filename) - if extention == '.a': - filename = os.path.join(iosFolder, filename) - os.remove(filename) - if extention == '.app': - filename = os.path.join(iosFolder, filename) - newname = os.path.join(iosFolder, name[:name.find(' ')]+extention) - os.rename(filename, newname) - - def androidRuntime(self): - try: - SDK_ROOT = os.environ['ANDROID_SDK_ROOT'] - except Exception: - print ("ANDROID_SDK_ROOT not defined.\ - Please define ANDROID_SDK_ROOT in your environment") - return False - - try: - NDK_ROOT = os.environ['NDK_ROOT'] - except Exception: - print ("NDK_ROOT not defined.\ - Please define NDK_ROOT in your environment") - return False - - platformsPath = os.path.join(SDK_ROOT,"platforms") - if not os.path.isdir(platformsPath): - print ("Can't find android platforms") - return False - - platforms = os.listdir(platformsPath) - versions = [] - for platform in platforms: - if "android-" in platform: - version = platform[platform.find('-')+1:] - versions.append(version) - - maxVersion = max(map(float, versions)) - if maxVersion <= 10.0: - print ("Update android sdk please") - return False - - buildNative = os.path.join(self.projectPath, "build_native.py") - if not os.path.isdir(self.projectPath) or not os.path.isfile(buildNative): - print ("Can't find the build_native.py") - return False - - sys.path.append(self.projectPath) - from build_native import build - build(None, str(int(maxVersion)), None, self.pure) - - def win32Runtime(self): - try: - vs = _winreg.OpenKey( - _winreg.HKEY_LOCAL_MACHINE, - r"SOFTWARE\Microsoft\VisualStudio" - ) - - msbuild = _winreg.OpenKey( - _winreg.HKEY_LOCAL_MACHINE, - r"SOFTWARE\Microsoft\MSBuild\ToolsVersions" - ) - - except WindowsError: - print ("Visual Studio wasn't installed") - return False - - vsPath = None - i = 0 - try: - while True: - version = _winreg.EnumKey(vs, i) - try: - if float(version) >= 11.0: - key = _winreg.OpenKey(vs, r"SxS\VS7") - vsPath,type = _winreg.QueryValueEx(key, version) - except: - pass - i += 1 - except WindowsError: - pass - - if vsPath is None: - print("Can't find the Visual Studio's path in the regedit") - return False - - msbuildPath = None - i = 0 - try: - while True: - version = _winreg.EnumKey(msbuild,i) - try: - if float(version) >= 4.0: - key = _winreg.OpenKey(msbuild, version) - msbuildPath, type = _winreg.QueryValueEx( - key, - "MSBuildToolsPath" - ) - except: - pass - i += 1 - except WindowsError: - pass - - if msbuildPath is None: - print ("Can't find the MSBuildTools' path in the regedit") - return False - - res = self.checkFileByExtention(".sln") - if not res: - print ("Can't find the \".sln\" file") - return False - - msbuildPath = os.path.join(msbuildPath, "MSBuild.exe") - projectPath = os.path.join(self.projectPath, self.projectName) - commands = [ - msbuildPath, - projectPath, - "/maxcpucount:4", - "/t:build", - "/p:configuration=Debug" - ] - - child = subprocess.Popen(commands, stdout=subprocess.PIPE) - for line in child.stdout: - print (line) - - child.wait() - - return True - - def checkFileByExtention(self, ext, path=None): - filelist = "" - if path is None: - filelist = os.listdir(self.projectPath) - else: - filelist = os.listdir(path) - - for file in filelist: - name, extention = os.path.splitext(file) - if extention == ext: - self.projectName = file - return True - return False - -if __name__ == '__main__': - platform, pure = checkParams(); - buildRuntime = BuildRuntime(platform, pure) - buildRuntime.buildRuntime() diff --git a/templates/multi-platform-js-runtime/framework/proj.android/.classpath b/templates/multi-platform-js-runtime/framework/proj.android/.classpath deleted file mode 100644 index 0b08408342..0000000000 --- a/templates/multi-platform-js-runtime/framework/proj.android/.classpath +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/templates/multi-platform-js-runtime/framework/proj.android/.project b/templates/multi-platform-js-runtime/framework/proj.android/.project deleted file mode 100644 index df461895c5..0000000000 --- a/templates/multi-platform-js-runtime/framework/proj.android/.project +++ /dev/null @@ -1,65 +0,0 @@ - - - HelloJavascript - - - - - - 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 - - - - Classes - 2 - COCOS2DX/projects/HelloJavascript/Classes - - - cocos2dx - 2 - COCOS2DX/cocos2dx - - - extensions - 2 - COCOS2DX/extensions - - - scripting - 2 - COCOS2DX/scripting - - - diff --git a/templates/multi-platform-js-runtime/framework/proj.android/AndroidManifest.xml b/templates/multi-platform-js-runtime/framework/proj.android/AndroidManifest.xml deleted file mode 100644 index 0f79a7e741..0000000000 --- a/templates/multi-platform-js-runtime/framework/proj.android/AndroidManifest.xml +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/templates/multi-platform-js-runtime/framework/proj.android/README.md b/templates/multi-platform-js-runtime/framework/proj.android/README.md deleted file mode 100644 index 312835611a..0000000000 --- a/templates/multi-platform-js-runtime/framework/proj.android/README.md +++ /dev/null @@ -1,87 +0,0 @@ -## Prerequisites: - -* Android NDK -* Android SDK **OR** Eclipse ADT Bundle -* Android AVD target installed - -## Building project - -There are two ways of building Android projects. - -1. Eclipse -2. Command Line - -### Import Project in Eclipse - -#### Features: - -1. Complete workflow from Eclipse, including: - * Build C++. - * Clean C++. - * Build and Run whole project. - * Logcat view. - * Debug Java code. - * Javascript editor. - * Project management. -2. True C++ editing, including: - * Code completion. - * Jump to definition. - * Refactoring tools etc. - * Quick open C++ files. - - -#### Setup Eclipse Environment (only once) - - -**NOTE:** This step needs to be done only once to setup the Eclipse environment for cocos2d-x projects. Skip this section if you've done this before. - -1. Download Eclipse ADT bundle from [Google ADT homepage](http://developer.android.com/sdk/index.html) - - **OR** - - Install Eclipse with Java. Add ADT and CDT plugins. - -2. Only for Windows - 1. Install [Cygwin](http://www.cygwin.com/) with make (select make package from the list during the install). - 2. Add `Cygwin\bin` directory to system PATH variable. - 3. Add this line `none /cygdrive cygdrive binary,noacl,posix=0,user 0 0` to `Cygwin\etc\fstab` file. - -3. Set up Variables: - 1. Path Variable `COCOS2DX`: - * Eclipse->Preferences->General->Workspace->**Linked Resources** - * Click **New** button to add a Path Variable `COCOS2DX` pointing to the root cocos2d-x directory. - ![Example](https://lh5.googleusercontent.com/-oPpk9kg3e5w/UUOYlq8n7aI/AAAAAAAAsdQ/zLA4eghBH9U/s400/cocos2d-x-eclipse-vars.png) - - 2. C/C++ Environment Variable `NDK_ROOT`: - * Eclipse->Preferences->C/C++->Build->**Environment**. - * Click **Add** button and add a new variable `NDK_ROOT` pointing to the root NDK directory. - ![Example](https://lh3.googleusercontent.com/-AVcY8IAT0_g/UUOYltoRobI/AAAAAAAAsdM/22D2J9u3sig/s400/cocos2d-x-eclipse-ndk.png) - * Only for Windows: Add new variables **CYGWIN** with value `nodosfilewarning` and **SHELLOPTS** with value `igncr` - -4. Import libcocos2dx library project: - 1. File->New->Project->Android Project From Existing Code. - 2. Click **Browse** button and open `cocos2d-x/cocos2dx/platform/android/java` directory. - 3. Click **Finish** to add project. - -#### Adding and running from Eclipse - -![Example](https://lh3.googleusercontent.com/-SLBOu6e3QbE/UUOcOXYaGqI/AAAAAAAAsdo/tYBY2SylOSM/s288/cocos2d-x-eclipse-project-from-code.png) ![Import](https://lh5.googleusercontent.com/-XzC9Pn65USc/UUOcOTAwizI/AAAAAAAAsdk/4b6YM-oim9Y/s400/cocos2d-x-eclipse-import-project.png) - -1. File->New->Project->Android Project From Existing Code -2. **Browse** to your project directory. eg: `cocos2d-x/cocos2dx/samples/Cpp/TestCpp/proj.android/` -3. Add the project -4. Click **Run** or **Debug** to compile C++ followed by Java and to run on connected device or emulator. - - -### Running project from Command Line - - $ cd cocos2d-x/samples/Cpp/TestCpp/proj.android/ - $ export NDK_ROOT=/path/to/ndk - $ ./build_native.sh - $ ant debug install - -If the last command results in sdk.dir missing error then do: - - $ android list target - $ android update project -p . -t (id from step 6) - $ android update project -p cocos2d-x/cocos2dx/platform/android/java/ -t (id from step 6) diff --git a/templates/multi-platform-js-runtime/framework/proj.android/ant.properties b/templates/multi-platform-js-runtime/framework/proj.android/ant.properties deleted file mode 100644 index f8af38bfb4..0000000000 --- a/templates/multi-platform-js-runtime/framework/proj.android/ant.properties +++ /dev/null @@ -1 +0,0 @@ -aapt.ignore.assets="!*.pvr.gz:!*.gz:!.svn:!.git:.*:_*:!CVS:!thumbs.db:!picasa.ini:!*.scc:*~" diff --git a/templates/multi-platform-js-runtime/framework/proj.android/build.xml b/templates/multi-platform-js-runtime/framework/proj.android/build.xml deleted file mode 100644 index b46375fda9..0000000000 --- a/templates/multi-platform-js-runtime/framework/proj.android/build.xml +++ /dev/null @@ -1,92 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/templates/multi-platform-js-runtime/framework/proj.android/build_native.py b/templates/multi-platform-js-runtime/framework/proj.android/build_native.py deleted file mode 100644 index 7e08a0a94a..0000000000 --- a/templates/multi-platform-js-runtime/framework/proj.android/build_native.py +++ /dev/null @@ -1,200 +0,0 @@ -#!/usr/bin/python -# build_native.py -# Build native codes - - -import sys -import os, os.path -import shutil -from optparse import OptionParser - -def get_num_of_cpu(): - ''' The build process can be accelerated by running multiple concurrent job processes using the -j-option. - ''' - try: - platform = sys.platform - if platform == 'win32': - if 'NUMBER_OF_PROCESSORS' in os.environ: - return int(os.environ['NUMBER_OF_PROCESSORS']) - else: - return 1 - else: - from numpy.distutils import cpuinfo - return cpuinfo.cpu._getNCPUs() - except Exception: - print "Can't know cpuinfo, use default 1 cpu" - return 1 -def check_environment_variables_sdk(): - ''' Checking the environment ANDROID_SDK_ROOT, which will be used for building - ''' - - try: - SDK_ROOT = os.environ['ANDROID_SDK_ROOT'] - except Exception: - print "ANDROID_SDK_ROOT not defined. Please define ANDROID_SDK_ROOT in your environment" - sys.exit(1) - - return SDK_ROOT - -def check_environment_variables(): - ''' Checking the environment NDK_ROOT, which will be used for building - ''' - - try: - NDK_ROOT = os.environ['NDK_ROOT'] - except Exception: - print "NDK_ROOT not defined. Please define NDK_ROOT in your environment" - sys.exit(1) - - return NDK_ROOT - -def select_toolchain_version(): - '''Because ndk-r8e uses gcc4.6 as default. gcc4.6 doesn't support c++11. So we should select gcc4.7 when - using ndk-r8e. But gcc4.7 is removed in ndk-r9, so we should determine whether gcc4.7 exist. - Conclution: - ndk-r8e -> use gcc4.7 - ndk-r9 -> use gcc4.8 - ''' - - ndk_root = check_environment_variables() - if os.path.isdir(os.path.join(ndk_root,"toolchains/arm-linux-androideabi-4.8")): - os.environ['NDK_TOOLCHAIN_VERSION'] = '4.8' - print "The Selected NDK toolchain version was 4.8 !" - elif os.path.isdir(os.path.join(ndk_root,"toolchains/arm-linux-androideabi-4.7")): - os.environ['NDK_TOOLCHAIN_VERSION'] = '4.7' - print "The Selected NDK toolchain version was 4.7 !" - else: - print "Couldn't find the gcc toolchain." - exit(1) - -def check_ant_variables(): - ''' Checking the environment ANT, which will be used for package - ''' - try: - ANT_PATH = os.environ['ANT_PATH'] - except Exception: - print "ANT_PATH not defined. Please define ANT_PATH in your environment" - sys.exit(1) - - return ANT_PATH - -def do_build(cocos_root, ndk_root, app_android_root,ndk_build_param,sdk_root,android_platform,build_mode): - - ndk_path = os.path.join(ndk_root, "ndk-build") - - # windows should use ";" to seperate module paths - platform = sys.platform - if platform == 'win32': - ndk_module_path = 'NDK_MODULE_PATH=%s;%s/external;%s/cocos' % (cocos_root, cocos_root, cocos_root) - else: - ndk_module_path = 'NDK_MODULE_PATH=%s:%s/external:%s/cocos' % (cocos_root, cocos_root, cocos_root) - - num_of_cpu = get_num_of_cpu() - if ndk_build_param == None: - command = '%s -j%d -C %s %s' % (ndk_path, num_of_cpu, app_android_root, ndk_module_path) - else: - command = '%s -j%d -C %s %s %s' % (ndk_path, num_of_cpu, app_android_root, ''.join(str(e) for e in ndk_build_param), ndk_module_path) - if os.system(command) != 0: - raise Exception("Build dynamic library for project [ " + app_android_root + " ] fails!") - elif android_platform is not None: - sdk_tool_path = os.path.join(sdk_root, "tools/android") - cocoslib_path = os.path.join(cocos_root, "cocos/2d/platform/android/java") - command = '%s update lib-project -t %s -p %s' % (sdk_tool_path,android_platform,cocoslib_path) - if os.system(command) != 0: - raise Exception("update cocos lib-project [ " + cocoslib_path + " ] fails!") - command = '%s update project -t %s -p %s -s' % (sdk_tool_path,android_platform,app_android_root) - if os.system(command) != 0: - raise Exception("update project [ " + app_android_root + " ] fails!") - ant_path=check_ant_variables() - ant_path = os.path.join(ant_path, "ant") - buildfile_path = os.path.join(app_android_root, "build.xml") - command = '%s clean %s -f %s -Dsdk.dir=%s' % (ant_path,build_mode,buildfile_path,sdk_root) - os.system(command) - -def copy_files(src, dst): - - for item in os.listdir(src): - path = os.path.join(src, item) - # Android can not package the file that ends with ".gz" - if not item.startswith('.') and not item.endswith('.gz') and os.path.isfile(path): - shutil.copy(path, dst) - if os.path.isdir(path): - new_dst = os.path.join(dst, item) - os.makedirs(new_dst) - copy_files(path, new_dst) - -def copy_resources(app_android_root, build_mode, pure): - - # remove app_android_root/assets if it exists - assets_dir = os.path.join(app_android_root, "assets") - if os.path.isdir(assets_dir): - shutil.rmtree(assets_dir) - - #""" - os.makedirs(assets_dir) - if pure is None: - jsResource = os.path.join(app_android_root, "../../") - dirlist = os.listdir(jsResource) - for line in dirlist: - if line == "framework" or line == "runtime" or line == ".project": - continue - fullpath = os.path.join(jsResource, line) - if os.path.isfile(fullpath): - shutil.copy(fullpath, assets_dir) - else: - dstDir = "%s/%s" %(assets_dir,line) - os.makedirs(dstDir) - copy_files(fullpath, dstDir) - #""" - # copy resources - """ - os.mkdir(assets_dir) - resources_dir = os.path.join(app_android_root, "../Resources") - if os.path.isdir(resources_dir): - copy_files(resources_dir, assets_dir) - """ - - # jsb project should copy javascript files and resources(shared with cocos2d-html5) - resources_dir = os.path.join(app_android_root, "../cocos2d/cocos/scripting/javascript/script") - copy_files(resources_dir, assets_dir) - -def build(ndk_build_param,android_platform,build_mode,pure): - - ndk_root = check_environment_variables() - sdk_root = None - select_toolchain_version() - - current_dir = os.path.dirname(os.path.realpath(__file__)) - cocos_root = os.path.join(current_dir, "../cocos2d") - - app_android_root = current_dir - copy_resources(app_android_root, build_mode, pure) - - if android_platform is not None: - sdk_root = check_environment_variables_sdk() - if android_platform.isdigit(): - android_platform = 'android-'+android_platform - else: - print 'please use vaild android platform' - exit(1) - - if build_mode is None: - build_mode = 'debug' - elif build_mode != 'release': - build_mode = 'debug' - - do_build(cocos_root, ndk_root, app_android_root,ndk_build_param,sdk_root,android_platform,build_mode) - -# -------------- main -------------- -if __name__ == '__main__': - - parser = OptionParser() - parser.add_option("-n", "--ndk", dest="ndk_build_param", help='parameter for ndk-build') - parser.add_option("-p", "--platform", dest="android_platform", - help='parameter for android-update.Without the parameter,the script just build dynamic library for project. Valid android-platform are:[10|11|12|13|14|15|16|17|18|19]') - parser.add_option("-b", "--build", dest="build_mode", - help='the build mode for java project,debug[default] or release.Get more information,please refer to http://developer.android.com/tools/building/building-cmdline.html') - parser.add_option("-u", "--pure", dest="pure", help='parameter for copy resource') - (opts, args) = parser.parse_args() - - build(opts.ndk_build_param,opts.android_platform,opts.build_mode,opts.pure) diff --git a/templates/multi-platform-js-runtime/framework/proj.android/custom_rules.xml b/templates/multi-platform-js-runtime/framework/proj.android/custom_rules.xml deleted file mode 100644 index 3cc45b7a2f..0000000000 --- a/templates/multi-platform-js-runtime/framework/proj.android/custom_rules.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - - - - diff --git a/templates/multi-platform-js-runtime/framework/proj.android/jni/Android.mk b/templates/multi-platform-js-runtime/framework/proj.android/jni/Android.mk deleted file mode 100644 index e0c5dbaa8c..0000000000 --- a/templates/multi-platform-js-runtime/framework/proj.android/jni/Android.mk +++ /dev/null @@ -1,33 +0,0 @@ -LOCAL_PATH := $(call my-dir) - -include $(CLEAR_VARS) - -LOCAL_MODULE := cocos2djs_shared - -LOCAL_MODULE_FILENAME := libcocos2djs - -LOCAL_SRC_FILES := hellojavascript/main.cpp \ - hellojavascript/Runtime_android.cpp \ - ../../Classes/AppDelegate.cpp \ - ../../Classes/Runtime.cpp - -LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../Classes - -LOCAL_WHOLE_STATIC_LIBRARIES := cocos_jsb_static -LOCAL_WHOLE_STATIC_LIBRARIES += jsb_extension_static -LOCAL_WHOLE_STATIC_LIBRARIES += jsb_chipmunk_static -LOCAL_WHOLE_STATIC_LIBRARIES += jsb_localstorage_static -LOCAL_WHOLE_STATIC_LIBRARIES += jsb_network_static -LOCAL_WHOLE_STATIC_LIBRARIES += jsb_builder_static - -LOCAL_EXPORT_CFLAGS := -DCOCOS2D_DEBUG=2 -DCOCOS2D_JAVASCRIPT - -include $(BUILD_SHARED_LIBRARY) - - -$(call import-module,scripting/javascript/bindings) -$(call import-module,scripting/javascript/bindings/extension) -$(call import-module,scripting/javascript/bindings/chipmunk) -$(call import-module,scripting/javascript/bindings/localstorage) -$(call import-module,scripting/javascript/bindings/network) -$(call import-module,scripting/javascript/bindings/cocosbuilder) \ No newline at end of file diff --git a/templates/multi-platform-js-runtime/framework/proj.android/jni/Application.mk b/templates/multi-platform-js-runtime/framework/proj.android/jni/Application.mk deleted file mode 100644 index 76c0f20fca..0000000000 --- a/templates/multi-platform-js-runtime/framework/proj.android/jni/Application.mk +++ /dev/null @@ -1,4 +0,0 @@ -APP_STL := gnustl_static -APP_CPPFLAGS := -frtti -APP_CPPFLAGS += -DCOCOS2D_DEBUG=1 -DCC_ENABLE_CHIPMUNK_INTEGRATION=1 -std=c++11 -fsigned-char - diff --git a/templates/multi-platform-js-runtime/framework/proj.android/jni/hellojavascript/Runtime_android.cpp b/templates/multi-platform-js-runtime/framework/proj.android/jni/hellojavascript/Runtime_android.cpp deleted file mode 100644 index 8c1e608d2d..0000000000 --- a/templates/multi-platform-js-runtime/framework/proj.android/jni/hellojavascript/Runtime_android.cpp +++ /dev/null @@ -1,29 +0,0 @@ -#include -#include -using namespace std; - -string getProjSearchPath() -{ - extern std::string getPackageNameJNI(); - string searchPath = "/mnt/sdcard/"; - searchPath += getPackageNameJNI(); - return searchPath; -} - -vector getSearchPath() -{ - extern std::string getPackageNameJNI(); - vector searchPathArray; - searchPathArray.push_back(getProjSearchPath()); - return searchPathArray; -} - -string getDotWaitFilePath() -{ - extern std::string getPackageNameJNI(); - string searchPath = getPackageNameJNI(); - string dotwaitFile = "/mnt/sdcard/"; - dotwaitFile += searchPath; - dotwaitFile += "/.wait"; - return dotwaitFile; -} diff --git a/templates/multi-platform-js-runtime/framework/proj.android/jni/hellojavascript/main.cpp b/templates/multi-platform-js-runtime/framework/proj.android/jni/hellojavascript/main.cpp deleted file mode 100644 index 9793beefb1..0000000000 --- a/templates/multi-platform-js-runtime/framework/proj.android/jni/hellojavascript/main.cpp +++ /dev/null @@ -1,16 +0,0 @@ -#include "AppDelegate.h" -#include "cocos2d.h" -#include "platform/android/jni/JniHelper.h" -#include "CCEventType.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 (struct android_app* app) { - LOGD("cocos_android_app_init"); - AppDelegate *pAppDelegate = new AppDelegate(); -} diff --git a/templates/multi-platform-js-runtime/framework/proj.android/proguard-project.txt b/templates/multi-platform-js-runtime/framework/proj.android/proguard-project.txt deleted file mode 100644 index f2fe1559a2..0000000000 --- a/templates/multi-platform-js-runtime/framework/proj.android/proguard-project.txt +++ /dev/null @@ -1,20 +0,0 @@ -# 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/templates/multi-platform-js-runtime/framework/proj.android/project.properties b/templates/multi-platform-js-runtime/framework/proj.android/project.properties deleted file mode 100644 index 5c817aa115..0000000000 --- a/templates/multi-platform-js-runtime/framework/proj.android/project.properties +++ /dev/null @@ -1,13 +0,0 @@ -# This file is automatically generated by Android Tools. -# Do not modify this file -- YOUR CHANGES WILL BE ERASED! -# -# This file must be checked in Version Control Systems. -# -# To customize properties used by the Ant build system use, -# "ant.properties", and override values to adapt the script to your -# project structure. - -# Project target. -target=android-19 - -android.library.reference.1=../cocos2d/cocos/2d/platform/android/java diff --git a/templates/multi-platform-js-runtime/framework/proj.android/res/values/strings.xml b/templates/multi-platform-js-runtime/framework/proj.android/res/values/strings.xml deleted file mode 100644 index c847de2851..0000000000 --- a/templates/multi-platform-js-runtime/framework/proj.android/res/values/strings.xml +++ /dev/null @@ -1,4 +0,0 @@ - - - HelloJavascript - diff --git a/templates/multi-platform-js-runtime/framework/proj.android/src/org/cocos2dx/javascript/Cocos2dxActivity.java b/templates/multi-platform-js-runtime/framework/proj.android/src/org/cocos2dx/javascript/Cocos2dxActivity.java deleted file mode 100644 index 928da4653a..0000000000 --- a/templates/multi-platform-js-runtime/framework/proj.android/src/org/cocos2dx/javascript/Cocos2dxActivity.java +++ /dev/null @@ -1,32 +0,0 @@ -package org.cocos2dx.javascript; - -import android.app.NativeActivity; -import android.os.Bundle; - -public class Cocos2dxActivity extends NativeActivity{ - - @Override - protected void onCreate(Bundle savedInstanceState) { - // TODO Auto-generated method stub - super.onCreate(savedInstanceState); - - //For supports translucency - - //1.change "attribs" in cocos\2d\platform\android\nativeactivity.cpp - /*const EGLint attribs[] = { - EGL_SURFACE_TYPE, EGL_WINDOW_BIT, - EGL_RENDERABLE_TYPE, EGL_OPENGL_ES2_BIT, - //EGL_BLUE_SIZE, 5, -->delete - //EGL_GREEN_SIZE, 6, -->delete - //EGL_RED_SIZE, 5, -->delete - EGL_BUFFER_SIZE, 32, //-->new field - EGL_DEPTH_SIZE, 16, - EGL_STENCIL_SIZE, 8, - EGL_NONE - };*/ - - //2.Set the format of window - // getWindow().setFormat(PixelFormat.TRANSLUCENT); - - } -} diff --git a/templates/multi-platform-js-runtime/framework/proj.ios_mac/HelloJavascript.xcodeproj/project.pbxproj b/templates/multi-platform-js-runtime/framework/proj.ios_mac/HelloJavascript.xcodeproj/project.pbxproj deleted file mode 100644 index 1eba8ad60f..0000000000 --- a/templates/multi-platform-js-runtime/framework/proj.ios_mac/HelloJavascript.xcodeproj/project.pbxproj +++ /dev/null @@ -1,1137 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 46; - objects = { - -/* Begin PBXBuildFile section */ - 013F8DBC1887C10F008B7106 /* cocos2d-jsb.js in Sources */ = {isa = PBXBuildFile; fileRef = 013F8DB91887C10F008B7106 /* cocos2d-jsb.js */; }; - 013F8DBD1887C10F008B7106 /* cocos2d-jsb.js in Sources */ = {isa = PBXBuildFile; fileRef = 013F8DB91887C10F008B7106 /* cocos2d-jsb.js */; }; - 013F8DBE1887C10F008B7106 /* res in Resources */ = {isa = PBXBuildFile; fileRef = 013F8DBA1887C10F008B7106 /* res */; }; - 013F8DBF1887C10F008B7106 /* res in Resources */ = {isa = PBXBuildFile; fileRef = 013F8DBA1887C10F008B7106 /* res */; }; - 013F8DC01887C10F008B7106 /* src in Resources */ = {isa = PBXBuildFile; fileRef = 013F8DBB1887C10F008B7106 /* src */; }; - 013F8DC11887C10F008B7106 /* src in Resources */ = {isa = PBXBuildFile; fileRef = 013F8DBB1887C10F008B7106 /* src */; }; - 01A11FDC1887C40500ADD6C1 /* cocos2d-jsb.js in Resources */ = {isa = PBXBuildFile; fileRef = 013F8DB91887C10F008B7106 /* cocos2d-jsb.js */; }; - 01A11FDD1887C43300ADD6C1 /* cocos2d-jsb.js in Resources */ = {isa = PBXBuildFile; fileRef = 013F8DB91887C10F008B7106 /* cocos2d-jsb.js */; }; - 15FD5C6B183A6170005CFF55 /* jsb_cocos2d_gui.js in Resources */ = {isa = PBXBuildFile; fileRef = 15FD5C69183A6170005CFF55 /* jsb_cocos2d_gui.js */; }; - 15FD5C6C183A6170005CFF55 /* jsb_cocos2d_studio.js in Resources */ = {isa = PBXBuildFile; fileRef = 15FD5C6A183A6170005CFF55 /* jsb_cocos2d_studio.js */; }; - 15FD5C6F183A618A005CFF55 /* jsb_cocos2d_gui.js in Resources */ = {isa = PBXBuildFile; fileRef = 15FD5C6D183A6189005CFF55 /* jsb_cocos2d_gui.js */; }; - 15FD5C70183A618A005CFF55 /* jsb_cocos2d_studio.js in Resources */ = {isa = PBXBuildFile; fileRef = 15FD5C6E183A6189005CFF55 /* jsb_cocos2d_studio.js */; }; - 1A6767FA180E9B160076BC67 /* debugger in Resources */ = {isa = PBXBuildFile; fileRef = 1A6767ED180E9B160076BC67 /* debugger */; }; - 1A6767FB180E9B160076BC67 /* debugger in Resources */ = {isa = PBXBuildFile; fileRef = 1A6767ED180E9B160076BC67 /* debugger */; }; - 1A676829180E9C060076BC67 /* libchipmunk Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 1AC6FB4C180E9ACB004C840B /* libchipmunk Mac.a */; }; - 1A67682A180E9C060076BC67 /* libcocos2dx Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 1AC6FB48180E9ACB004C840B /* libcocos2dx Mac.a */; }; - 1A67682B180E9C060076BC67 /* libcocos2dx-extensions Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 1AC6FB4A180E9ACB004C840B /* libcocos2dx-extensions Mac.a */; }; - 1A67682C180E9C060076BC67 /* libCocosDenshion Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 1AC6FB50180E9ACB004C840B /* libCocosDenshion Mac.a */; }; - 1A67682D180E9C060076BC67 /* libjsbindings Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 1AC6FB52180E9ACB004C840B /* libjsbindings Mac.a */; }; - 1A676838180E9C1E0076BC67 /* libchipmunk iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 1AC6FB5A180E9ACB004C840B /* libchipmunk iOS.a */; }; - 1A676839180E9C1E0076BC67 /* libcocos2dx iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 1AC6FB56180E9ACB004C840B /* libcocos2dx iOS.a */; }; - 1A67683A180E9C1E0076BC67 /* libcocos2dx-extensions iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 1AC6FB58180E9ACB004C840B /* libcocos2dx-extensions iOS.a */; }; - 1A67683B180E9C1E0076BC67 /* libCocosDenshion iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 1AC6FB5E180E9ACB004C840B /* libCocosDenshion iOS.a */; }; - 1A67683C180E9C1E0076BC67 /* libjsbindings iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 1AC6FB60180E9ACB004C840B /* libjsbindings iOS.a */; }; - 1A67683E180E9CE90076BC67 /* jsb_chipmunk_constants.js in Resources */ = {isa = PBXBuildFile; fileRef = 1A6767EE180E9B160076BC67 /* jsb_chipmunk_constants.js */; }; - 1A67683F180E9CE90076BC67 /* jsb_chipmunk.js in Resources */ = {isa = PBXBuildFile; fileRef = 1A6767EF180E9B160076BC67 /* jsb_chipmunk.js */; }; - 1A676840180E9CE90076BC67 /* jsb_cocos2d_constants.js in Resources */ = {isa = PBXBuildFile; fileRef = 1A6767F0180E9B160076BC67 /* jsb_cocos2d_constants.js */; }; - 1A676841180E9CE90076BC67 /* jsb_cocos2d_extension.js in Resources */ = {isa = PBXBuildFile; fileRef = 1A6767F1180E9B160076BC67 /* jsb_cocos2d_extension.js */; }; - 1A676842180E9CE90076BC67 /* jsb_cocos2d.js in Resources */ = {isa = PBXBuildFile; fileRef = 1A6767F2180E9B160076BC67 /* jsb_cocos2d.js */; }; - 1A676843180E9CE90076BC67 /* jsb_cocosbuilder.js in Resources */ = {isa = PBXBuildFile; fileRef = 1A6767F3180E9B160076BC67 /* jsb_cocosbuilder.js */; }; - 1A676844180E9CE90076BC67 /* jsb_debugger.js in Resources */ = {isa = PBXBuildFile; fileRef = 1A6767F4180E9B160076BC67 /* jsb_debugger.js */; }; - 1A676845180E9CE90076BC67 /* jsb_deprecated.js in Resources */ = {isa = PBXBuildFile; fileRef = 1A6767F5180E9B160076BC67 /* jsb_deprecated.js */; }; - 1A676846180E9CE90076BC67 /* jsb_opengl_constants.js in Resources */ = {isa = PBXBuildFile; fileRef = 1A6767F6180E9B160076BC67 /* jsb_opengl_constants.js */; }; - 1A676847180E9CE90076BC67 /* jsb_opengl.js in Resources */ = {isa = PBXBuildFile; fileRef = 1A6767F7180E9B160076BC67 /* jsb_opengl.js */; }; - 1A676848180E9CE90076BC67 /* jsb_sys.js in Resources */ = {isa = PBXBuildFile; fileRef = 1A6767F8180E9B160076BC67 /* jsb_sys.js */; }; - 1A676849180E9CE90076BC67 /* jsb.js in Resources */ = {isa = PBXBuildFile; fileRef = 1A6767F9180E9B160076BC67 /* jsb.js */; }; - 1A67684A180E9CF10076BC67 /* jsb_chipmunk_constants.js in Resources */ = {isa = PBXBuildFile; fileRef = 1A6767EE180E9B160076BC67 /* jsb_chipmunk_constants.js */; }; - 1A67684B180E9CF10076BC67 /* jsb_chipmunk.js in Resources */ = {isa = PBXBuildFile; fileRef = 1A6767EF180E9B160076BC67 /* jsb_chipmunk.js */; }; - 1A67684C180E9CF10076BC67 /* jsb_cocos2d_constants.js in Resources */ = {isa = PBXBuildFile; fileRef = 1A6767F0180E9B160076BC67 /* jsb_cocos2d_constants.js */; }; - 1A67684D180E9CF10076BC67 /* jsb_cocos2d_extension.js in Resources */ = {isa = PBXBuildFile; fileRef = 1A6767F1180E9B160076BC67 /* jsb_cocos2d_extension.js */; }; - 1A67684E180E9CF10076BC67 /* jsb_cocos2d.js in Resources */ = {isa = PBXBuildFile; fileRef = 1A6767F2180E9B160076BC67 /* jsb_cocos2d.js */; }; - 1A67684F180E9CF10076BC67 /* jsb_cocosbuilder.js in Resources */ = {isa = PBXBuildFile; fileRef = 1A6767F3180E9B160076BC67 /* jsb_cocosbuilder.js */; }; - 1A676850180E9CF10076BC67 /* jsb_debugger.js in Resources */ = {isa = PBXBuildFile; fileRef = 1A6767F4180E9B160076BC67 /* jsb_debugger.js */; }; - 1A676851180E9CF10076BC67 /* jsb_deprecated.js in Resources */ = {isa = PBXBuildFile; fileRef = 1A6767F5180E9B160076BC67 /* jsb_deprecated.js */; }; - 1A676852180E9CF10076BC67 /* jsb_opengl_constants.js in Resources */ = {isa = PBXBuildFile; fileRef = 1A6767F6180E9B160076BC67 /* jsb_opengl_constants.js */; }; - 1A676853180E9CF10076BC67 /* jsb_opengl.js in Resources */ = {isa = PBXBuildFile; fileRef = 1A6767F7180E9B160076BC67 /* jsb_opengl.js */; }; - 1A676854180E9CF10076BC67 /* jsb_sys.js in Resources */ = {isa = PBXBuildFile; fileRef = 1A6767F8180E9B160076BC67 /* jsb_sys.js */; }; - 1A676855180E9CF10076BC67 /* jsb.js in Resources */ = {isa = PBXBuildFile; fileRef = 1A6767F9180E9B160076BC67 /* jsb.js */; }; - 1A82F5FB169AC92500C4B13A /* libsqlite3.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 1A82F5FA169AC92500C4B13A /* libsqlite3.dylib */; }; - 502380DC17EBB88200990C9B /* libcurl.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 502380DB17EBB88200990C9B /* libcurl.dylib */; }; - 5091731A17ECDF7A00D62437 /* Icon-29.png in Resources */ = {isa = PBXBuildFile; fileRef = 5091731417ECDF7A00D62437 /* Icon-29.png */; }; - 5091731B17ECDF7A00D62437 /* Icon-40.png in Resources */ = {isa = PBXBuildFile; fileRef = 5091731517ECDF7A00D62437 /* Icon-40.png */; }; - 5091731C17ECDF7A00D62437 /* Icon-50.png in Resources */ = {isa = PBXBuildFile; fileRef = 5091731617ECDF7A00D62437 /* Icon-50.png */; }; - 5091731D17ECDF7A00D62437 /* Icon-58.png in Resources */ = {isa = PBXBuildFile; fileRef = 5091731717ECDF7A00D62437 /* Icon-58.png */; }; - 5091731E17ECDF7A00D62437 /* Icon-80.png in Resources */ = {isa = PBXBuildFile; fileRef = 5091731817ECDF7A00D62437 /* Icon-80.png */; }; - 5091731F17ECDF7A00D62437 /* Icon-100.png in Resources */ = {isa = PBXBuildFile; fileRef = 5091731917ECDF7A00D62437 /* Icon-100.png */; }; - 509D4A8117EBB24E00697056 /* AppDelegate.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D4545215156E28EF00887EB5 /* AppDelegate.cpp */; }; - 509D4A8817EBB24E00697056 /* libsqlite3.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 1A82F5FA169AC92500C4B13A /* libsqlite3.dylib */; }; - 509D4A8917EBB24E00697056 /* libz.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = D454520B156E22BD00887EB5 /* libz.dylib */; }; - 509D4A8A17EBB24E00697056 /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A92275411517C094001B78AA /* QuartzCore.framework */; }; - 509D4A8C17EBB24E00697056 /* OpenAL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A92275451517C094001B78AA /* OpenAL.framework */; }; - 509D4A8D17EBB24E00697056 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A92275471517C094001B78AA /* AudioToolbox.framework */; }; - 509D4A8E17EBB24E00697056 /* AVFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A92275491517C094001B78AA /* AVFoundation.framework */; }; - 509D4A9017EBB24E00697056 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A922754D1517C094001B78AA /* Foundation.framework */; }; - 509D4A9117EBB24E00697056 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A922754F1517C094001B78AA /* CoreGraphics.framework */; }; - 509D4ABC17EBB2AB00697056 /* AppController.mm in Sources */ = {isa = PBXBuildFile; fileRef = 509D4AAC17EBB2AB00697056 /* AppController.mm */; }; - 509D4ABD17EBB2AB00697056 /* Default-568h@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 509D4AAD17EBB2AB00697056 /* Default-568h@2x.png */; }; - 509D4ABE17EBB2AB00697056 /* Default.png in Resources */ = {isa = PBXBuildFile; fileRef = 509D4AAE17EBB2AB00697056 /* Default.png */; }; - 509D4ABF17EBB2AB00697056 /* Default@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 509D4AAF17EBB2AB00697056 /* Default@2x.png */; }; - 509D4AC017EBB2AB00697056 /* Icon-57.png in Resources */ = {isa = PBXBuildFile; fileRef = 509D4AB017EBB2AB00697056 /* Icon-57.png */; }; - 509D4AC117EBB2AB00697056 /* Icon-72.png in Resources */ = {isa = PBXBuildFile; fileRef = 509D4AB117EBB2AB00697056 /* Icon-72.png */; }; - 509D4AC217EBB2AB00697056 /* Icon-76.png in Resources */ = {isa = PBXBuildFile; fileRef = 509D4AB217EBB2AB00697056 /* Icon-76.png */; }; - 509D4AC317EBB2AB00697056 /* Icon-114.png in Resources */ = {isa = PBXBuildFile; fileRef = 509D4AB317EBB2AB00697056 /* Icon-114.png */; }; - 509D4AC417EBB2AB00697056 /* Icon-120.png in Resources */ = {isa = PBXBuildFile; fileRef = 509D4AB417EBB2AB00697056 /* Icon-120.png */; }; - 509D4AC517EBB2AB00697056 /* Icon-144.png in Resources */ = {isa = PBXBuildFile; fileRef = 509D4AB517EBB2AB00697056 /* Icon-144.png */; }; - 509D4AC617EBB2AB00697056 /* Icon-152.png in Resources */ = {isa = PBXBuildFile; fileRef = 509D4AB617EBB2AB00697056 /* Icon-152.png */; }; - 509D4AC817EBB2AB00697056 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 509D4AB817EBB2AB00697056 /* main.m */; }; - 509D4AC917EBB2AB00697056 /* RootViewController.mm in Sources */ = {isa = PBXBuildFile; fileRef = 509D4ABB17EBB2AB00697056 /* RootViewController.mm */; }; - 509D4ACF17EBB2BE00697056 /* Icon.icns in Resources */ = {isa = PBXBuildFile; fileRef = 509D4ACB17EBB2BE00697056 /* Icon.icns */; }; - 509D4AE717EBB81800697056 /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 509D4AE617EBB81800697056 /* OpenGL.framework */; }; - 509D4AE917EBB82000697056 /* AppKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 509D4AE817EBB82000697056 /* AppKit.framework */; }; - 509D4AEB17EBB82600697056 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 509D4AEA17EBB82600697056 /* IOKit.framework */; }; - A92275421517C094001B78AA /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A92275411517C094001B78AA /* QuartzCore.framework */; }; - A92275441517C094001B78AA /* OpenGLES.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A92275431517C094001B78AA /* OpenGLES.framework */; }; - A92275461517C094001B78AA /* OpenAL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A92275451517C094001B78AA /* OpenAL.framework */; }; - A92275481517C094001B78AA /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A92275471517C094001B78AA /* AudioToolbox.framework */; }; - A922754A1517C094001B78AA /* AVFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A92275491517C094001B78AA /* AVFoundation.framework */; }; - A922754C1517C094001B78AA /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A922754B1517C094001B78AA /* UIKit.framework */; }; - A922754E1517C094001B78AA /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A922754D1517C094001B78AA /* Foundation.framework */; }; - A92275501517C094001B78AA /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A922754F1517C094001B78AA /* CoreGraphics.framework */; }; - C026DCC618928A1A00B3EDE8 /* Runtime.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C026DCC518928A1A00B3EDE8 /* Runtime.cpp */; }; - C026DCC718928A1A00B3EDE8 /* Runtime.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C026DCC518928A1A00B3EDE8 /* Runtime.cpp */; }; - C026DCC918928A2400B3EDE8 /* Runtime_ios-mac.mm in Sources */ = {isa = PBXBuildFile; fileRef = C026DCC818928A2400B3EDE8 /* Runtime_ios-mac.mm */; }; - C026DCCA18928A2400B3EDE8 /* Runtime_ios-mac.mm in Sources */ = {isa = PBXBuildFile; fileRef = C026DCC818928A2400B3EDE8 /* Runtime_ios-mac.mm */; }; - C03C8B4B18A770DD00723415 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = C03C8B4818A770DD00723415 /* main.m */; }; - C03C8B4C18A770DD00723415 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = C03C8B4918A770DD00723415 /* MainMenu.xib */; }; - C0C2F37418AA0C66003976DA /* SimulatorApp.mm in Sources */ = {isa = PBXBuildFile; fileRef = C0C2F37318AA0C66003976DA /* SimulatorApp.mm */; }; - D454520C156E22BD00887EB5 /* libz.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = D454520B156E22BD00887EB5 /* libz.dylib */; }; - D4545227156E28EF00887EB5 /* AppDelegate.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D4545215156E28EF00887EB5 /* AppDelegate.cpp */; }; - D6B061241803AB9F0077942B /* CoreMotion.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D6B061231803AB9F0077942B /* CoreMotion.framework */; }; -/* End PBXBuildFile section */ - -/* Begin PBXContainerItemProxy section */ - 1A67681F180E9BF70076BC67 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 1AC6FB34180E9ACB004C840B /* cocos2d_libs.xcodeproj */; - proxyType = 1; - remoteGlobalIDString = 1551A33E158F2AB200E66CFE; - remoteInfo = "cocos2dx Mac"; - }; - 1A676821180E9BF70076BC67 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 1AC6FB34180E9ACB004C840B /* cocos2d_libs.xcodeproj */; - proxyType = 1; - remoteGlobalIDString = A03F2FC117814595006731B9; - remoteInfo = "cocos2dx-extensions Mac"; - }; - 1A676823180E9BF70076BC67 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 1AC6FB34180E9ACB004C840B /* cocos2d_libs.xcodeproj */; - proxyType = 1; - remoteGlobalIDString = A03F2B781780BD04006731B9; - remoteInfo = "chipmunk Mac"; - }; - 1A676825180E9BF70076BC67 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 1AC6FB34180E9ACB004C840B /* cocos2d_libs.xcodeproj */; - proxyType = 1; - remoteGlobalIDString = A03F2E9817814268006731B9; - remoteInfo = "CocosDenshion Mac"; - }; - 1A676827180E9BF70076BC67 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 1AC6FB34180E9ACB004C840B /* cocos2d_libs.xcodeproj */; - proxyType = 1; - remoteGlobalIDString = A03F31E81781479B006731B9; - remoteInfo = "jsbindings Mac"; - }; - 1A67682E180E9C110076BC67 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 1AC6FB34180E9ACB004C840B /* cocos2d_libs.xcodeproj */; - proxyType = 1; - remoteGlobalIDString = A07A4C241783777C0073F6A7; - remoteInfo = "cocos2dx iOS"; - }; - 1A676830180E9C110076BC67 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 1AC6FB34180E9ACB004C840B /* cocos2d_libs.xcodeproj */; - proxyType = 1; - remoteGlobalIDString = A07A4E111783867C0073F6A7; - remoteInfo = "cocos2dx-extensions iOS"; - }; - 1A676832180E9C110076BC67 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 1AC6FB34180E9ACB004C840B /* cocos2d_libs.xcodeproj */; - proxyType = 1; - remoteGlobalIDString = A07A4EFD178387670073F6A7; - remoteInfo = "chipmunk iOS"; - }; - 1A676834180E9C110076BC67 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 1AC6FB34180E9ACB004C840B /* cocos2d_libs.xcodeproj */; - proxyType = 1; - remoteGlobalIDString = A07A4F9F178387730073F6A7; - remoteInfo = "CocosDenshion iOS"; - }; - 1A676836180E9C110076BC67 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 1AC6FB34180E9ACB004C840B /* cocos2d_libs.xcodeproj */; - proxyType = 1; - remoteGlobalIDString = A07A4FB5178387750073F6A7; - remoteInfo = "jsbindings iOS"; - }; - 1AC6FB47180E9ACB004C840B /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 1AC6FB34180E9ACB004C840B /* cocos2d_libs.xcodeproj */; - proxyType = 2; - remoteGlobalIDString = 1551A33F158F2AB200E66CFE; - remoteInfo = "cocos2dx Mac"; - }; - 1AC6FB49180E9ACB004C840B /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 1AC6FB34180E9ACB004C840B /* cocos2d_libs.xcodeproj */; - proxyType = 2; - remoteGlobalIDString = A03F2FD617814595006731B9; - remoteInfo = "cocos2dx-extensions Mac"; - }; - 1AC6FB4B180E9ACB004C840B /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 1AC6FB34180E9ACB004C840B /* cocos2d_libs.xcodeproj */; - proxyType = 2; - remoteGlobalIDString = A03F2CB81780BD04006731B9; - remoteInfo = "chipmunk Mac"; - }; - 1AC6FB4D180E9ACB004C840B /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 1AC6FB34180E9ACB004C840B /* cocos2d_libs.xcodeproj */; - proxyType = 2; - remoteGlobalIDString = A03F2D9B1780BDF7006731B9; - remoteInfo = "box2d Mac"; - }; - 1AC6FB4F180E9ACB004C840B /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 1AC6FB34180E9ACB004C840B /* cocos2d_libs.xcodeproj */; - proxyType = 2; - remoteGlobalIDString = A03F2ED617814268006731B9; - remoteInfo = "CocosDenshion Mac"; - }; - 1AC6FB51180E9ACB004C840B /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 1AC6FB34180E9ACB004C840B /* cocos2d_libs.xcodeproj */; - proxyType = 2; - remoteGlobalIDString = A03F31FD1781479B006731B9; - remoteInfo = "jsbindings Mac"; - }; - 1AC6FB53180E9ACB004C840B /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 1AC6FB34180E9ACB004C840B /* cocos2d_libs.xcodeproj */; - proxyType = 2; - remoteGlobalIDString = 1A6FB53017854BC300CDF010; - remoteInfo = "luabindings Mac"; - }; - 1AC6FB55180E9ACB004C840B /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 1AC6FB34180E9ACB004C840B /* cocos2d_libs.xcodeproj */; - proxyType = 2; - remoteGlobalIDString = A07A4D641783777C0073F6A7; - remoteInfo = "cocos2dx iOS"; - }; - 1AC6FB57180E9ACB004C840B /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 1AC6FB34180E9ACB004C840B /* cocos2d_libs.xcodeproj */; - proxyType = 2; - remoteGlobalIDString = A07A4EFC1783867C0073F6A7; - remoteInfo = "cocos2dx-extensions iOS"; - }; - 1AC6FB59180E9ACB004C840B /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 1AC6FB34180E9ACB004C840B /* cocos2d_libs.xcodeproj */; - proxyType = 2; - remoteGlobalIDString = A07A4F3B178387670073F6A7; - remoteInfo = "chipmunk iOS"; - }; - 1AC6FB5B180E9ACB004C840B /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 1AC6FB34180E9ACB004C840B /* cocos2d_libs.xcodeproj */; - proxyType = 2; - remoteGlobalIDString = A07A4F9E1783876B0073F6A7; - remoteInfo = "box2d iOS"; - }; - 1AC6FB5D180E9ACB004C840B /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 1AC6FB34180E9ACB004C840B /* cocos2d_libs.xcodeproj */; - proxyType = 2; - remoteGlobalIDString = A07A4FB4178387730073F6A7; - remoteInfo = "CocosDenshion iOS"; - }; - 1AC6FB5F180E9ACB004C840B /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 1AC6FB34180E9ACB004C840B /* cocos2d_libs.xcodeproj */; - proxyType = 2; - remoteGlobalIDString = A07A5030178387750073F6A7; - remoteInfo = "jsbindings iOS"; - }; - 1AC6FB61180E9ACB004C840B /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 1AC6FB34180E9ACB004C840B /* cocos2d_libs.xcodeproj */; - proxyType = 2; - remoteGlobalIDString = 1A119791178526AA00D62A44; - remoteInfo = "luabindings iOS"; - }; -/* End PBXContainerItemProxy section */ - -/* Begin PBXFileReference section */ - 013F8DB91887C10F008B7106 /* cocos2d-jsb.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; name = "cocos2d-jsb.js"; path = "../../cocos2d-jsb.js"; sourceTree = ""; }; - 013F8DBA1887C10F008B7106 /* res */ = {isa = PBXFileReference; lastKnownFileType = folder; name = res; path = ../../res; sourceTree = ""; }; - 013F8DBB1887C10F008B7106 /* src */ = {isa = PBXFileReference; lastKnownFileType = folder; name = src; path = ../../src; sourceTree = ""; }; - 15FD5C69183A6170005CFF55 /* jsb_cocos2d_gui.js */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.javascript; name = jsb_cocos2d_gui.js; path = ../cocos2d/cocos/scripting/javascript/script/jsb_cocos2d_gui.js; sourceTree = ""; }; - 15FD5C6A183A6170005CFF55 /* jsb_cocos2d_studio.js */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.javascript; name = jsb_cocos2d_studio.js; path = ../cocos2d/cocos/scripting/javascript/script/jsb_cocos2d_studio.js; sourceTree = ""; }; - 15FD5C6D183A6189005CFF55 /* jsb_cocos2d_gui.js */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.javascript; name = jsb_cocos2d_gui.js; path = ../cocos2d/cocos/scripting/javascript/script/jsb_cocos2d_gui.js; sourceTree = ""; }; - 15FD5C6E183A6189005CFF55 /* jsb_cocos2d_studio.js */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.javascript; name = jsb_cocos2d_studio.js; path = ../cocos2d/cocos/scripting/javascript/script/jsb_cocos2d_studio.js; sourceTree = ""; }; - 1A6767ED180E9B160076BC67 /* debugger */ = {isa = PBXFileReference; lastKnownFileType = folder; name = debugger; path = ../cocos2d/cocos/scripting/javascript/script/debugger; sourceTree = ""; }; - 1A6767EE180E9B160076BC67 /* jsb_chipmunk_constants.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; name = jsb_chipmunk_constants.js; path = ../cocos2d/cocos/scripting/javascript/script/jsb_chipmunk_constants.js; sourceTree = ""; }; - 1A6767EF180E9B160076BC67 /* jsb_chipmunk.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; name = jsb_chipmunk.js; path = ../cocos2d/cocos/scripting/javascript/script/jsb_chipmunk.js; sourceTree = ""; }; - 1A6767F0180E9B160076BC67 /* jsb_cocos2d_constants.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; name = jsb_cocos2d_constants.js; path = ../cocos2d/cocos/scripting/javascript/script/jsb_cocos2d_constants.js; sourceTree = ""; }; - 1A6767F1180E9B160076BC67 /* jsb_cocos2d_extension.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; name = jsb_cocos2d_extension.js; path = ../cocos2d/cocos/scripting/javascript/script/jsb_cocos2d_extension.js; sourceTree = ""; }; - 1A6767F2180E9B160076BC67 /* jsb_cocos2d.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; name = jsb_cocos2d.js; path = ../cocos2d/cocos/scripting/javascript/script/jsb_cocos2d.js; sourceTree = ""; }; - 1A6767F3180E9B160076BC67 /* jsb_cocosbuilder.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; name = jsb_cocosbuilder.js; path = ../cocos2d/cocos/scripting/javascript/script/jsb_cocosbuilder.js; sourceTree = ""; }; - 1A6767F4180E9B160076BC67 /* jsb_debugger.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; name = jsb_debugger.js; path = ../cocos2d/cocos/scripting/javascript/script/jsb_debugger.js; sourceTree = ""; }; - 1A6767F5180E9B160076BC67 /* jsb_deprecated.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; name = jsb_deprecated.js; path = ../cocos2d/cocos/scripting/javascript/script/jsb_deprecated.js; sourceTree = ""; }; - 1A6767F6180E9B160076BC67 /* jsb_opengl_constants.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; name = jsb_opengl_constants.js; path = ../cocos2d/cocos/scripting/javascript/script/jsb_opengl_constants.js; sourceTree = ""; }; - 1A6767F7180E9B160076BC67 /* jsb_opengl.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; name = jsb_opengl.js; path = ../cocos2d/cocos/scripting/javascript/script/jsb_opengl.js; sourceTree = ""; }; - 1A6767F8180E9B160076BC67 /* jsb_sys.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; name = jsb_sys.js; path = ../cocos2d/cocos/scripting/javascript/script/jsb_sys.js; sourceTree = ""; }; - 1A6767F9180E9B160076BC67 /* jsb.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; name = jsb.js; path = ../cocos2d/cocos/scripting/javascript/script/jsb.js; sourceTree = ""; }; - 1A82F5FA169AC92500C4B13A /* libsqlite3.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libsqlite3.dylib; path = usr/lib/libsqlite3.dylib; sourceTree = SDKROOT; }; - 1A96A4F2174A3432008653A9 /* libcurl.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libcurl.a; path = ../cocos2d/cocos2dx/platform/third_party/ios/libraries/libcurl.a; sourceTree = ""; }; - 1AC6FB34180E9ACB004C840B /* cocos2d_libs.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = cocos2d_libs.xcodeproj; path = ../cocos2d/build/cocos2d_libs.xcodeproj; sourceTree = ""; }; - 502380DB17EBB88200990C9B /* libcurl.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libcurl.dylib; path = usr/lib/libcurl.dylib; sourceTree = SDKROOT; }; - 5091731417ECDF7A00D62437 /* Icon-29.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "Icon-29.png"; path = "ios/Icon-29.png"; sourceTree = ""; }; - 5091731517ECDF7A00D62437 /* Icon-40.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "Icon-40.png"; path = "ios/Icon-40.png"; sourceTree = ""; }; - 5091731617ECDF7A00D62437 /* Icon-50.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "Icon-50.png"; path = "ios/Icon-50.png"; sourceTree = ""; }; - 5091731717ECDF7A00D62437 /* Icon-58.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "Icon-58.png"; path = "ios/Icon-58.png"; sourceTree = ""; }; - 5091731817ECDF7A00D62437 /* Icon-80.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "Icon-80.png"; path = "ios/Icon-80.png"; sourceTree = ""; }; - 5091731917ECDF7A00D62437 /* Icon-100.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "Icon-100.png"; path = "ios/Icon-100.png"; sourceTree = ""; }; - 509D4AAA17EBB24E00697056 /* HelloJavascript Mac.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "HelloJavascript Mac.app"; sourceTree = BUILT_PRODUCTS_DIR; }; - 509D4AAB17EBB2AB00697056 /* AppController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppController.h; path = ios/AppController.h; sourceTree = ""; }; - 509D4AAC17EBB2AB00697056 /* AppController.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = AppController.mm; path = ios/AppController.mm; sourceTree = ""; }; - 509D4AAD17EBB2AB00697056 /* Default-568h@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "Default-568h@2x.png"; path = "ios/Default-568h@2x.png"; sourceTree = ""; }; - 509D4AAE17EBB2AB00697056 /* Default.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = Default.png; path = ios/Default.png; sourceTree = ""; }; - 509D4AAF17EBB2AB00697056 /* Default@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "Default@2x.png"; path = "ios/Default@2x.png"; sourceTree = ""; }; - 509D4AB017EBB2AB00697056 /* Icon-57.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "Icon-57.png"; path = "ios/Icon-57.png"; sourceTree = ""; }; - 509D4AB117EBB2AB00697056 /* Icon-72.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "Icon-72.png"; path = "ios/Icon-72.png"; sourceTree = ""; }; - 509D4AB217EBB2AB00697056 /* Icon-76.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "Icon-76.png"; path = "ios/Icon-76.png"; sourceTree = ""; }; - 509D4AB317EBB2AB00697056 /* Icon-114.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "Icon-114.png"; path = "ios/Icon-114.png"; sourceTree = ""; }; - 509D4AB417EBB2AB00697056 /* Icon-120.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "Icon-120.png"; path = "ios/Icon-120.png"; sourceTree = ""; }; - 509D4AB517EBB2AB00697056 /* Icon-144.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "Icon-144.png"; path = "ios/Icon-144.png"; sourceTree = ""; }; - 509D4AB617EBB2AB00697056 /* Icon-152.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "Icon-152.png"; path = "ios/Icon-152.png"; sourceTree = ""; }; - 509D4AB717EBB2AB00697056 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = ios/Info.plist; sourceTree = ""; }; - 509D4AB817EBB2AB00697056 /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = ios/main.m; sourceTree = ""; }; - 509D4AB917EBB2AB00697056 /* Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Prefix.pch; path = ios/Prefix.pch; sourceTree = ""; }; - 509D4ABA17EBB2AB00697056 /* RootViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = RootViewController.h; path = ios/RootViewController.h; sourceTree = ""; }; - 509D4ABB17EBB2AB00697056 /* RootViewController.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = RootViewController.mm; path = ios/RootViewController.mm; sourceTree = ""; }; - 509D4ACB17EBB2BE00697056 /* Icon.icns */ = {isa = PBXFileReference; lastKnownFileType = image.icns; path = Icon.icns; sourceTree = ""; }; - 509D4ACC17EBB2BE00697056 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - 509D4ACE17EBB2BE00697056 /* Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Prefix.pch; sourceTree = ""; }; - 509D4AE617EBB81800697056 /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = OpenGL.framework; path = System/Library/Frameworks/OpenGL.framework; sourceTree = SDKROOT; }; - 509D4AE817EBB82000697056 /* AppKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AppKit.framework; path = System/Library/Frameworks/AppKit.framework; sourceTree = SDKROOT; }; - 509D4AEA17EBB82600697056 /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = IOKit.framework; path = System/Library/Frameworks/IOKit.framework; sourceTree = SDKROOT; }; - A922753D1517C094001B78AA /* HelloJavascript iOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "HelloJavascript iOS.app"; sourceTree = BUILT_PRODUCTS_DIR; }; - A92275411517C094001B78AA /* QuartzCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuartzCore.framework; path = System/Library/Frameworks/QuartzCore.framework; sourceTree = SDKROOT; }; - A92275431517C094001B78AA /* OpenGLES.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = OpenGLES.framework; path = System/Library/Frameworks/OpenGLES.framework; sourceTree = SDKROOT; }; - A92275451517C094001B78AA /* OpenAL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = OpenAL.framework; path = System/Library/Frameworks/OpenAL.framework; sourceTree = SDKROOT; }; - A92275471517C094001B78AA /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AudioToolbox.framework; path = System/Library/Frameworks/AudioToolbox.framework; sourceTree = SDKROOT; }; - A92275491517C094001B78AA /* AVFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AVFoundation.framework; path = System/Library/Frameworks/AVFoundation.framework; sourceTree = SDKROOT; }; - A922754B1517C094001B78AA /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; - A922754D1517C094001B78AA /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; - A922754F1517C094001B78AA /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; - C014EAEB188EA65400753BDC /* Runtime.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Runtime.h; sourceTree = ""; }; - C026DCC518928A1A00B3EDE8 /* Runtime.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Runtime.cpp; sourceTree = ""; }; - C026DCC818928A2400B3EDE8 /* Runtime_ios-mac.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = "Runtime_ios-mac.mm"; sourceTree = SOURCE_ROOT; }; - C03C8B4818A770DD00723415 /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; - C03C8B4918A770DD00723415 /* MainMenu.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = MainMenu.xib; sourceTree = ""; }; - C0C2F37218AA0C66003976DA /* SimulatorApp.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SimulatorApp.h; sourceTree = ""; }; - C0C2F37318AA0C66003976DA /* SimulatorApp.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = SimulatorApp.mm; sourceTree = ""; }; - D454520B156E22BD00887EB5 /* libz.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libz.dylib; path = usr/lib/libz.dylib; sourceTree = SDKROOT; }; - D4545215156E28EF00887EB5 /* AppDelegate.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = AppDelegate.cpp; sourceTree = ""; }; - D4545216156E28EF00887EB5 /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; - D6B061231803AB9F0077942B /* CoreMotion.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreMotion.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/CoreMotion.framework; sourceTree = DEVELOPER_DIR; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - 509D4A8217EBB24E00697056 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 1A676829180E9C060076BC67 /* libchipmunk Mac.a in Frameworks */, - 1A67682A180E9C060076BC67 /* libcocos2dx Mac.a in Frameworks */, - 1A67682B180E9C060076BC67 /* libcocos2dx-extensions Mac.a in Frameworks */, - 1A67682C180E9C060076BC67 /* libCocosDenshion Mac.a in Frameworks */, - 1A67682D180E9C060076BC67 /* libjsbindings Mac.a in Frameworks */, - 502380DC17EBB88200990C9B /* libcurl.dylib in Frameworks */, - 509D4A8817EBB24E00697056 /* libsqlite3.dylib in Frameworks */, - 509D4A8917EBB24E00697056 /* libz.dylib in Frameworks */, - 509D4AEB17EBB82600697056 /* IOKit.framework in Frameworks */, - 509D4AE917EBB82000697056 /* AppKit.framework in Frameworks */, - 509D4AE717EBB81800697056 /* OpenGL.framework in Frameworks */, - 509D4A8A17EBB24E00697056 /* QuartzCore.framework in Frameworks */, - 509D4A8C17EBB24E00697056 /* OpenAL.framework in Frameworks */, - 509D4A8D17EBB24E00697056 /* AudioToolbox.framework in Frameworks */, - 509D4A8E17EBB24E00697056 /* AVFoundation.framework in Frameworks */, - 509D4A9017EBB24E00697056 /* Foundation.framework in Frameworks */, - 509D4A9117EBB24E00697056 /* CoreGraphics.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - A922753A1517C094001B78AA /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 1A676838180E9C1E0076BC67 /* libchipmunk iOS.a in Frameworks */, - 1A676839180E9C1E0076BC67 /* libcocos2dx iOS.a in Frameworks */, - 1A67683A180E9C1E0076BC67 /* libcocos2dx-extensions iOS.a in Frameworks */, - 1A67683B180E9C1E0076BC67 /* libCocosDenshion iOS.a in Frameworks */, - 1A67683C180E9C1E0076BC67 /* libjsbindings iOS.a in Frameworks */, - D6B061241803AB9F0077942B /* CoreMotion.framework in Frameworks */, - 1A82F5FB169AC92500C4B13A /* libsqlite3.dylib in Frameworks */, - D454520C156E22BD00887EB5 /* libz.dylib in Frameworks */, - A92275421517C094001B78AA /* QuartzCore.framework in Frameworks */, - A92275441517C094001B78AA /* OpenGLES.framework in Frameworks */, - A92275461517C094001B78AA /* OpenAL.framework in Frameworks */, - A92275481517C094001B78AA /* AudioToolbox.framework in Frameworks */, - A922754A1517C094001B78AA /* AVFoundation.framework in Frameworks */, - A922754C1517C094001B78AA /* UIKit.framework in Frameworks */, - A922754E1517C094001B78AA /* Foundation.framework in Frameworks */, - A92275501517C094001B78AA /* CoreGraphics.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 15628F5B15F0F5C2000CF24B /* Resources */ = { - isa = PBXGroup; - children = ( - 013F8DB91887C10F008B7106 /* cocos2d-jsb.js */, - 013F8DBA1887C10F008B7106 /* res */, - 013F8DBB1887C10F008B7106 /* src */, - ); - name = Resources; - sourceTree = ""; - }; - 1A6767EC180E9AF00076BC67 /* JS Common */ = { - isa = PBXGroup; - children = ( - 1A6767ED180E9B160076BC67 /* debugger */, - 1A6767EE180E9B160076BC67 /* jsb_chipmunk_constants.js */, - 1A6767EF180E9B160076BC67 /* jsb_chipmunk.js */, - 1A6767F0180E9B160076BC67 /* jsb_cocos2d_constants.js */, - 1A6767F1180E9B160076BC67 /* jsb_cocos2d_extension.js */, - 1A6767F2180E9B160076BC67 /* jsb_cocos2d.js */, - 1A6767F3180E9B160076BC67 /* jsb_cocosbuilder.js */, - 1A6767F4180E9B160076BC67 /* jsb_debugger.js */, - 1A6767F5180E9B160076BC67 /* jsb_deprecated.js */, - 1A6767F6180E9B160076BC67 /* jsb_opengl_constants.js */, - 1A6767F7180E9B160076BC67 /* jsb_opengl.js */, - 1A6767F8180E9B160076BC67 /* jsb_sys.js */, - 1A6767F9180E9B160076BC67 /* jsb.js */, - ); - name = "JS Common"; - sourceTree = ""; - }; - 1AC6FB35180E9ACB004C840B /* Products */ = { - isa = PBXGroup; - children = ( - 1AC6FB48180E9ACB004C840B /* libcocos2dx Mac.a */, - 1AC6FB4A180E9ACB004C840B /* libcocos2dx-extensions Mac.a */, - 1AC6FB4C180E9ACB004C840B /* libchipmunk Mac.a */, - 1AC6FB4E180E9ACB004C840B /* libbox2d Mac.a */, - 1AC6FB50180E9ACB004C840B /* libCocosDenshion Mac.a */, - 1AC6FB52180E9ACB004C840B /* libjsbindings Mac.a */, - 1AC6FB54180E9ACB004C840B /* libluabindings Mac.a */, - 1AC6FB56180E9ACB004C840B /* libcocos2dx iOS.a */, - 1AC6FB58180E9ACB004C840B /* libcocos2dx-extensions iOS.a */, - 1AC6FB5A180E9ACB004C840B /* libchipmunk iOS.a */, - 1AC6FB5C180E9ACB004C840B /* libbox2d iOS.a */, - 1AC6FB5E180E9ACB004C840B /* libCocosDenshion iOS.a */, - 1AC6FB60180E9ACB004C840B /* libjsbindings iOS.a */, - 1AC6FB62180E9ACB004C840B /* libluabindings iOS.a */, - ); - name = Products; - sourceTree = ""; - }; - 5091732E17ECDF8A00D62437 /* Icons */ = { - isa = PBXGroup; - children = ( - 5091731417ECDF7A00D62437 /* Icon-29.png */, - 5091731517ECDF7A00D62437 /* Icon-40.png */, - 5091731617ECDF7A00D62437 /* Icon-50.png */, - 5091731717ECDF7A00D62437 /* Icon-58.png */, - 5091731817ECDF7A00D62437 /* Icon-80.png */, - 5091731917ECDF7A00D62437 /* Icon-100.png */, - 509D4AB017EBB2AB00697056 /* Icon-57.png */, - 509D4AB117EBB2AB00697056 /* Icon-72.png */, - 509D4AB217EBB2AB00697056 /* Icon-76.png */, - 509D4AB317EBB2AB00697056 /* Icon-114.png */, - 509D4AB417EBB2AB00697056 /* Icon-120.png */, - 509D4AB517EBB2AB00697056 /* Icon-144.png */, - 509D4AB617EBB2AB00697056 /* Icon-152.png */, - ); - name = Icons; - sourceTree = ""; - }; - 509D4ACA17EBB2BE00697056 /* mac */ = { - isa = PBXGroup; - children = ( - C0C2F37218AA0C66003976DA /* SimulatorApp.h */, - C0C2F37318AA0C66003976DA /* SimulatorApp.mm */, - C03C8B4818A770DD00723415 /* main.m */, - C03C8B4918A770DD00723415 /* MainMenu.xib */, - 509D4ACB17EBB2BE00697056 /* Icon.icns */, - 509D4ACC17EBB2BE00697056 /* Info.plist */, - 509D4ACE17EBB2BE00697056 /* Prefix.pch */, - ); - path = mac; - sourceTree = ""; - }; - A92275321517C094001B78AA = { - isa = PBXGroup; - children = ( - 15FD5C6D183A6189005CFF55 /* jsb_cocos2d_gui.js */, - 15FD5C6E183A6189005CFF55 /* jsb_cocos2d_studio.js */, - 15FD5C69183A6170005CFF55 /* jsb_cocos2d_gui.js */, - 15FD5C6A183A6170005CFF55 /* jsb_cocos2d_studio.js */, - 1AC6FB34180E9ACB004C840B /* cocos2d_libs.xcodeproj */, - D4545214156E28EF00887EB5 /* Classes */, - A92275401517C094001B78AA /* Frameworks */, - D45446CC156DE73F00887EB5 /* ios */, - 1A6767EC180E9AF00076BC67 /* JS Common */, - 509D4ACA17EBB2BE00697056 /* mac */, - A922753E1517C094001B78AA /* Products */, - 15628F5B15F0F5C2000CF24B /* Resources */, - ); - sourceTree = ""; - }; - A922753E1517C094001B78AA /* Products */ = { - isa = PBXGroup; - children = ( - A922753D1517C094001B78AA /* HelloJavascript iOS.app */, - 509D4AAA17EBB24E00697056 /* HelloJavascript Mac.app */, - ); - name = Products; - sourceTree = ""; - }; - A92275401517C094001B78AA /* Frameworks */ = { - isa = PBXGroup; - children = ( - D6B061231803AB9F0077942B /* CoreMotion.framework */, - 502380DB17EBB88200990C9B /* libcurl.dylib */, - 509D4AEA17EBB82600697056 /* IOKit.framework */, - 509D4AE817EBB82000697056 /* AppKit.framework */, - 509D4AE617EBB81800697056 /* OpenGL.framework */, - 1A96A4F2174A3432008653A9 /* libcurl.a */, - 1A82F5FA169AC92500C4B13A /* libsqlite3.dylib */, - D454520B156E22BD00887EB5 /* libz.dylib */, - A92275411517C094001B78AA /* QuartzCore.framework */, - A92275431517C094001B78AA /* OpenGLES.framework */, - A92275451517C094001B78AA /* OpenAL.framework */, - A92275471517C094001B78AA /* AudioToolbox.framework */, - A92275491517C094001B78AA /* AVFoundation.framework */, - A922754B1517C094001B78AA /* UIKit.framework */, - A922754D1517C094001B78AA /* Foundation.framework */, - A922754F1517C094001B78AA /* CoreGraphics.framework */, - ); - name = Frameworks; - sourceTree = ""; - }; - D45446CC156DE73F00887EB5 /* ios */ = { - isa = PBXGroup; - children = ( - 509D4AAB17EBB2AB00697056 /* AppController.h */, - 509D4AAC17EBB2AB00697056 /* AppController.mm */, - 509D4AAD17EBB2AB00697056 /* Default-568h@2x.png */, - 509D4AAE17EBB2AB00697056 /* Default.png */, - 509D4AAF17EBB2AB00697056 /* Default@2x.png */, - 5091732E17ECDF8A00D62437 /* Icons */, - 509D4AB717EBB2AB00697056 /* Info.plist */, - 509D4AB817EBB2AB00697056 /* main.m */, - 509D4AB917EBB2AB00697056 /* Prefix.pch */, - 509D4ABA17EBB2AB00697056 /* RootViewController.h */, - 509D4ABB17EBB2AB00697056 /* RootViewController.mm */, - ); - name = ios; - sourceTree = ""; - }; - D4545214156E28EF00887EB5 /* Classes */ = { - isa = PBXGroup; - children = ( - C026DCC818928A2400B3EDE8 /* Runtime_ios-mac.mm */, - C026DCC518928A1A00B3EDE8 /* Runtime.cpp */, - C014EAEB188EA65400753BDC /* Runtime.h */, - D4545215156E28EF00887EB5 /* AppDelegate.cpp */, - D4545216156E28EF00887EB5 /* AppDelegate.h */, - ); - name = Classes; - path = ../Classes; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXNativeTarget section */ - 509D4A7517EBB24E00697056 /* HelloJavascript Mac */ = { - isa = PBXNativeTarget; - buildConfigurationList = 509D4AA717EBB24E00697056 /* Build configuration list for PBXNativeTarget "HelloJavascript Mac" */; - buildPhases = ( - 509D4A8017EBB24E00697056 /* Sources */, - 509D4A9317EBB24E00697056 /* Resources */, - 509D4A8217EBB24E00697056 /* Frameworks */, - ); - buildRules = ( - ); - dependencies = ( - 1A676820180E9BF70076BC67 /* PBXTargetDependency */, - 1A676822180E9BF70076BC67 /* PBXTargetDependency */, - 1A676824180E9BF70076BC67 /* PBXTargetDependency */, - 1A676826180E9BF70076BC67 /* PBXTargetDependency */, - 1A676828180E9BF70076BC67 /* PBXTargetDependency */, - ); - name = "HelloJavascript Mac"; - productName = HelloJavascript; - productReference = 509D4AAA17EBB24E00697056 /* HelloJavascript Mac.app */; - productType = "com.apple.product-type.application"; - }; - A922753C1517C094001B78AA /* HelloJavascript iOS */ = { - isa = PBXNativeTarget; - buildConfigurationList = A92277001517C097001B78AA /* Build configuration list for PBXNativeTarget "HelloJavascript iOS" */; - buildPhases = ( - A92275391517C094001B78AA /* Sources */, - A922753A1517C094001B78AA /* Frameworks */, - A922753B1517C094001B78AA /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - 1A67682F180E9C110076BC67 /* PBXTargetDependency */, - 1A676831180E9C110076BC67 /* PBXTargetDependency */, - 1A676833180E9C110076BC67 /* PBXTargetDependency */, - 1A676835180E9C110076BC67 /* PBXTargetDependency */, - 1A676837180E9C110076BC67 /* PBXTargetDependency */, - ); - name = "HelloJavascript iOS"; - productName = HelloJavascript; - productReference = A922753D1517C094001B78AA /* HelloJavascript iOS.app */; - productType = "com.apple.product-type.application"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - A92275341517C094001B78AA /* Project object */ = { - isa = PBXProject; - attributes = { - LastUpgradeCheck = 0500; - TargetAttributes = { - A922753C1517C094001B78AA = { - DevelopmentTeam = MDDB52YB8L; - }; - }; - }; - buildConfigurationList = A92275371517C094001B78AA /* Build configuration list for PBXProject "HelloJavascript" */; - compatibilityVersion = "Xcode 3.2"; - developmentRegion = English; - hasScannedForEncodings = 0; - knownRegions = ( - en, - ); - mainGroup = A92275321517C094001B78AA; - productRefGroup = A922753E1517C094001B78AA /* Products */; - projectDirPath = ""; - projectReferences = ( - { - ProductGroup = 1AC6FB35180E9ACB004C840B /* Products */; - ProjectRef = 1AC6FB34180E9ACB004C840B /* cocos2d_libs.xcodeproj */; - }, - ); - projectRoot = ""; - targets = ( - A922753C1517C094001B78AA /* HelloJavascript iOS */, - 509D4A7517EBB24E00697056 /* HelloJavascript Mac */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXReferenceProxy section */ - 1AC6FB48180E9ACB004C840B /* libcocos2dx Mac.a */ = { - isa = PBXReferenceProxy; - fileType = archive.ar; - path = "libcocos2dx Mac.a"; - remoteRef = 1AC6FB47180E9ACB004C840B /* PBXContainerItemProxy */; - sourceTree = BUILT_PRODUCTS_DIR; - }; - 1AC6FB4A180E9ACB004C840B /* libcocos2dx-extensions Mac.a */ = { - isa = PBXReferenceProxy; - fileType = archive.ar; - path = "libcocos2dx-extensions Mac.a"; - remoteRef = 1AC6FB49180E9ACB004C840B /* PBXContainerItemProxy */; - sourceTree = BUILT_PRODUCTS_DIR; - }; - 1AC6FB4C180E9ACB004C840B /* libchipmunk Mac.a */ = { - isa = PBXReferenceProxy; - fileType = archive.ar; - path = "libchipmunk Mac.a"; - remoteRef = 1AC6FB4B180E9ACB004C840B /* PBXContainerItemProxy */; - sourceTree = BUILT_PRODUCTS_DIR; - }; - 1AC6FB4E180E9ACB004C840B /* libbox2d Mac.a */ = { - isa = PBXReferenceProxy; - fileType = archive.ar; - path = "libbox2d Mac.a"; - remoteRef = 1AC6FB4D180E9ACB004C840B /* PBXContainerItemProxy */; - sourceTree = BUILT_PRODUCTS_DIR; - }; - 1AC6FB50180E9ACB004C840B /* libCocosDenshion Mac.a */ = { - isa = PBXReferenceProxy; - fileType = archive.ar; - path = "libCocosDenshion Mac.a"; - remoteRef = 1AC6FB4F180E9ACB004C840B /* PBXContainerItemProxy */; - sourceTree = BUILT_PRODUCTS_DIR; - }; - 1AC6FB52180E9ACB004C840B /* libjsbindings Mac.a */ = { - isa = PBXReferenceProxy; - fileType = archive.ar; - path = "libjsbindings Mac.a"; - remoteRef = 1AC6FB51180E9ACB004C840B /* PBXContainerItemProxy */; - sourceTree = BUILT_PRODUCTS_DIR; - }; - 1AC6FB54180E9ACB004C840B /* libluabindings Mac.a */ = { - isa = PBXReferenceProxy; - fileType = archive.ar; - path = "libluabindings Mac.a"; - remoteRef = 1AC6FB53180E9ACB004C840B /* PBXContainerItemProxy */; - sourceTree = BUILT_PRODUCTS_DIR; - }; - 1AC6FB56180E9ACB004C840B /* libcocos2dx iOS.a */ = { - isa = PBXReferenceProxy; - fileType = archive.ar; - path = "libcocos2dx iOS.a"; - remoteRef = 1AC6FB55180E9ACB004C840B /* PBXContainerItemProxy */; - sourceTree = BUILT_PRODUCTS_DIR; - }; - 1AC6FB58180E9ACB004C840B /* libcocos2dx-extensions iOS.a */ = { - isa = PBXReferenceProxy; - fileType = archive.ar; - path = "libcocos2dx-extensions iOS.a"; - remoteRef = 1AC6FB57180E9ACB004C840B /* PBXContainerItemProxy */; - sourceTree = BUILT_PRODUCTS_DIR; - }; - 1AC6FB5A180E9ACB004C840B /* libchipmunk iOS.a */ = { - isa = PBXReferenceProxy; - fileType = archive.ar; - path = "libchipmunk iOS.a"; - remoteRef = 1AC6FB59180E9ACB004C840B /* PBXContainerItemProxy */; - sourceTree = BUILT_PRODUCTS_DIR; - }; - 1AC6FB5C180E9ACB004C840B /* libbox2d iOS.a */ = { - isa = PBXReferenceProxy; - fileType = archive.ar; - path = "libbox2d iOS.a"; - remoteRef = 1AC6FB5B180E9ACB004C840B /* PBXContainerItemProxy */; - sourceTree = BUILT_PRODUCTS_DIR; - }; - 1AC6FB5E180E9ACB004C840B /* libCocosDenshion iOS.a */ = { - isa = PBXReferenceProxy; - fileType = archive.ar; - path = "libCocosDenshion iOS.a"; - remoteRef = 1AC6FB5D180E9ACB004C840B /* PBXContainerItemProxy */; - sourceTree = BUILT_PRODUCTS_DIR; - }; - 1AC6FB60180E9ACB004C840B /* libjsbindings iOS.a */ = { - isa = PBXReferenceProxy; - fileType = archive.ar; - path = "libjsbindings iOS.a"; - remoteRef = 1AC6FB5F180E9ACB004C840B /* PBXContainerItemProxy */; - sourceTree = BUILT_PRODUCTS_DIR; - }; - 1AC6FB62180E9ACB004C840B /* libluabindings iOS.a */ = { - isa = PBXReferenceProxy; - fileType = archive.ar; - path = "libluabindings iOS.a"; - remoteRef = 1AC6FB61180E9ACB004C840B /* PBXContainerItemProxy */; - sourceTree = BUILT_PRODUCTS_DIR; - }; -/* End PBXReferenceProxy section */ - -/* Begin PBXResourcesBuildPhase section */ - 509D4A9317EBB24E00697056 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 01A11FDD1887C43300ADD6C1 /* cocos2d-jsb.js in Resources */, - 15FD5C6B183A6170005CFF55 /* jsb_cocos2d_gui.js in Resources */, - 15FD5C6C183A6170005CFF55 /* jsb_cocos2d_studio.js in Resources */, - 1A67683E180E9CE90076BC67 /* jsb_chipmunk_constants.js in Resources */, - 1A67683F180E9CE90076BC67 /* jsb_chipmunk.js in Resources */, - 1A676840180E9CE90076BC67 /* jsb_cocos2d_constants.js in Resources */, - 1A676841180E9CE90076BC67 /* jsb_cocos2d_extension.js in Resources */, - 1A676842180E9CE90076BC67 /* jsb_cocos2d.js in Resources */, - 1A676843180E9CE90076BC67 /* jsb_cocosbuilder.js in Resources */, - 1A676844180E9CE90076BC67 /* jsb_debugger.js in Resources */, - 1A676845180E9CE90076BC67 /* jsb_deprecated.js in Resources */, - C03C8B4C18A770DD00723415 /* MainMenu.xib in Resources */, - 1A676846180E9CE90076BC67 /* jsb_opengl_constants.js in Resources */, - 1A676847180E9CE90076BC67 /* jsb_opengl.js in Resources */, - 1A676848180E9CE90076BC67 /* jsb_sys.js in Resources */, - 1A676849180E9CE90076BC67 /* jsb.js in Resources */, - 509D4ACF17EBB2BE00697056 /* Icon.icns in Resources */, - 1A6767FB180E9B160076BC67 /* debugger in Resources */, - 013F8DBF1887C10F008B7106 /* res in Resources */, - 013F8DC11887C10F008B7106 /* src in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - A922753B1517C094001B78AA /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 01A11FDC1887C40500ADD6C1 /* cocos2d-jsb.js in Resources */, - 15FD5C6F183A618A005CFF55 /* jsb_cocos2d_gui.js in Resources */, - 15FD5C70183A618A005CFF55 /* jsb_cocos2d_studio.js in Resources */, - 1A67684A180E9CF10076BC67 /* jsb_chipmunk_constants.js in Resources */, - 1A67684B180E9CF10076BC67 /* jsb_chipmunk.js in Resources */, - 1A67684C180E9CF10076BC67 /* jsb_cocos2d_constants.js in Resources */, - 1A67684D180E9CF10076BC67 /* jsb_cocos2d_extension.js in Resources */, - 1A67684E180E9CF10076BC67 /* jsb_cocos2d.js in Resources */, - 1A67684F180E9CF10076BC67 /* jsb_cocosbuilder.js in Resources */, - 1A676850180E9CF10076BC67 /* jsb_debugger.js in Resources */, - 1A676851180E9CF10076BC67 /* jsb_deprecated.js in Resources */, - 1A676852180E9CF10076BC67 /* jsb_opengl_constants.js in Resources */, - 1A676853180E9CF10076BC67 /* jsb_opengl.js in Resources */, - 1A676854180E9CF10076BC67 /* jsb_sys.js in Resources */, - 1A676855180E9CF10076BC67 /* jsb.js in Resources */, - 509D4ABE17EBB2AB00697056 /* Default.png in Resources */, - 5091731E17ECDF7A00D62437 /* Icon-80.png in Resources */, - 5091731F17ECDF7A00D62437 /* Icon-100.png in Resources */, - 509D4AC117EBB2AB00697056 /* Icon-72.png in Resources */, - 509D4AC017EBB2AB00697056 /* Icon-57.png in Resources */, - 5091731A17ECDF7A00D62437 /* Icon-29.png in Resources */, - 509D4AC617EBB2AB00697056 /* Icon-152.png in Resources */, - 509D4AC517EBB2AB00697056 /* Icon-144.png in Resources */, - 509D4AC317EBB2AB00697056 /* Icon-114.png in Resources */, - 509D4ABD17EBB2AB00697056 /* Default-568h@2x.png in Resources */, - 509D4ABF17EBB2AB00697056 /* Default@2x.png in Resources */, - 509D4AC217EBB2AB00697056 /* Icon-76.png in Resources */, - 5091731B17ECDF7A00D62437 /* Icon-40.png in Resources */, - 5091731C17ECDF7A00D62437 /* Icon-50.png in Resources */, - 509D4AC417EBB2AB00697056 /* Icon-120.png in Resources */, - 5091731D17ECDF7A00D62437 /* Icon-58.png in Resources */, - 1A6767FA180E9B160076BC67 /* debugger in Resources */, - 013F8DBE1887C10F008B7106 /* res in Resources */, - 013F8DC01887C10F008B7106 /* src in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXResourcesBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ - 509D4A8017EBB24E00697056 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - C026DCC718928A1A00B3EDE8 /* Runtime.cpp in Sources */, - 509D4A8117EBB24E00697056 /* AppDelegate.cpp in Sources */, - C0C2F37418AA0C66003976DA /* SimulatorApp.mm in Sources */, - C026DCCA18928A2400B3EDE8 /* Runtime_ios-mac.mm in Sources */, - 013F8DBD1887C10F008B7106 /* cocos2d-jsb.js in Sources */, - C03C8B4B18A770DD00723415 /* main.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - A92275391517C094001B78AA /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 509D4AC917EBB2AB00697056 /* RootViewController.mm in Sources */, - D4545227156E28EF00887EB5 /* AppDelegate.cpp in Sources */, - 509D4AC817EBB2AB00697056 /* main.m in Sources */, - 509D4ABC17EBB2AB00697056 /* AppController.mm in Sources */, - C026DCC918928A2400B3EDE8 /* Runtime_ios-mac.mm in Sources */, - C026DCC618928A1A00B3EDE8 /* Runtime.cpp in Sources */, - 013F8DBC1887C10F008B7106 /* cocos2d-jsb.js in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin PBXTargetDependency section */ - 1A676820180E9BF70076BC67 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = "cocos2dx Mac"; - targetProxy = 1A67681F180E9BF70076BC67 /* PBXContainerItemProxy */; - }; - 1A676822180E9BF70076BC67 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = "cocos2dx-extensions Mac"; - targetProxy = 1A676821180E9BF70076BC67 /* PBXContainerItemProxy */; - }; - 1A676824180E9BF70076BC67 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = "chipmunk Mac"; - targetProxy = 1A676823180E9BF70076BC67 /* PBXContainerItemProxy */; - }; - 1A676826180E9BF70076BC67 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = "CocosDenshion Mac"; - targetProxy = 1A676825180E9BF70076BC67 /* PBXContainerItemProxy */; - }; - 1A676828180E9BF70076BC67 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = "jsbindings Mac"; - targetProxy = 1A676827180E9BF70076BC67 /* PBXContainerItemProxy */; - }; - 1A67682F180E9C110076BC67 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = "cocos2dx iOS"; - targetProxy = 1A67682E180E9C110076BC67 /* PBXContainerItemProxy */; - }; - 1A676831180E9C110076BC67 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = "cocos2dx-extensions iOS"; - targetProxy = 1A676830180E9C110076BC67 /* PBXContainerItemProxy */; - }; - 1A676833180E9C110076BC67 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = "chipmunk iOS"; - targetProxy = 1A676832180E9C110076BC67 /* PBXContainerItemProxy */; - }; - 1A676835180E9C110076BC67 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = "CocosDenshion iOS"; - targetProxy = 1A676834180E9C110076BC67 /* PBXContainerItemProxy */; - }; - 1A676837180E9C110076BC67 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = "jsbindings iOS"; - targetProxy = 1A676836180E9C110076BC67 /* PBXContainerItemProxy */; - }; -/* End PBXTargetDependency section */ - -/* Begin XCBuildConfiguration section */ - 509D4AA817EBB24E00697056 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = YES; - ARCHS = "$(ARCHS_STANDARD_64_BIT)"; - COMBINE_HIDPI_IMAGES = YES; - GCC_DYNAMIC_NO_PIC = NO; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = mac/Prefix.pch; - GCC_PREPROCESSOR_DEFINITIONS = ( - GLFW_EXPOSE_NATIVE_COCOA, - GLFW_EXPOSE_NATIVE_NSGL, - CC_TARGET_OS_MAC, - "$(inherited)", - ); - HEADER_SEARCH_PATHS = ( - "$(inherited)", - "$(SRCROOT)/../cocos2d/cocos/2d/platform/mac", - "$(SRCROOT)/../cocos2d/external/spidermonkey/include/mac", - "$(SRCROOT)/../cocos2d/external/glfw3/include/mac", - ); - INFOPLIST_FILE = mac/Info.plist; - LIBRARY_SEARCH_PATHS = ""; - OTHER_LDFLAGS = ""; - SDKROOT = macosx; - }; - name = Debug; - }; - 509D4AA917EBB24E00697056 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = YES; - ARCHS = "$(ARCHS_STANDARD_64_BIT)"; - COMBINE_HIDPI_IMAGES = YES; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = mac/Prefix.pch; - GCC_PREPROCESSOR_DEFINITIONS = ( - CC_TARGET_OS_MAC, - "$(inherited)", - ); - HEADER_SEARCH_PATHS = ( - "$(inherited)", - "$(SRCROOT)/../cocos2d/cocos/2d/platform/mac", - "$(SRCROOT)/../cocos2d/external/spidermonkey/include/mac", - "$(SRCROOT)/../cocos2d/external/glfw3/include/mac", - ); - INFOPLIST_FILE = mac/Info.plist; - LIBRARY_SEARCH_PATHS = ""; - OTHER_LDFLAGS = ""; - SDKROOT = macosx; - }; - name = Release; - }; - A92276FE1517C097001B78AA /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - CLANG_CXX_LANGUAGE_STANDARD = "c++0x"; - CLANG_CXX_LIBRARY = "libc++"; - COPY_PHASE_STRIP = NO; - GCC_C_LANGUAGE_STANDARD = c99; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_PREPROCESSOR_DEFINITIONS = ( - DEBUG, - "COCOS2D_DEBUG=1", - USE_FILE32API, - COCOS2D_JAVASCRIPT, - CC_ENABLE_CHIPMUNK_INTEGRATION, - ); - GCC_SYMBOLS_PRIVATE_EXTERN = NO; - GCC_WARN_ABOUT_RETURN_TYPE = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = ( - "$(SRCROOT)/../cocos2d", - "$(SRCROOT)/../cocos2d/cocos", - "$(SRCROOT)/../cocos2d/cocos/base", - "$(SRCROOT)/../cocos2d/cocos/physics", - "$(SRCROOT)/../cocos2d/cocos/math/kazmath/include", - "$(SRCROOT)/../cocos2d/cocos/2d", - "$(SRCROOT)/../cocos2d/cocos/gui", - "$(SRCROOT)/../cocos2d/cocos/network", - "$(SRCROOT)/../cocos2d/cocos/audio/include", - "$(SRCROOT)/../cocos2d/cocos/editor-support", - "$(SRCROOT)/../cocos2d/cocos/scripting/javascript/bindings", - "$(SRCROOT)/../cocos2d/cocos/scripting/auto-generated/js-bindings", - "$(SRCROOT)/../cocos2d/extensions", - "$(SRCROOT)/../cocos2d/external", - "$(SRCROOT)/../cocos2d/external/chipmunk/include/chipmunk", - ); - IPHONEOS_DEPLOYMENT_TARGET = 5.1; - ONLY_ACTIVE_ARCH = YES; - PRODUCT_NAME = "$(TARGET_NAME)"; - }; - name = Debug; - }; - A92276FF1517C097001B78AA /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - CLANG_CXX_LANGUAGE_STANDARD = "c++0x"; - CLANG_CXX_LIBRARY = "libc++"; - GCC_C_LANGUAGE_STANDARD = c99; - GCC_PREPROCESSOR_DEFINITIONS = ( - NDEBUG, - USE_FILE32API, - COCOS2D_JAVASCRIPT, - CC_ENABLE_CHIPMUNK_INTEGRATION, - ); - GCC_WARN_ABOUT_RETURN_TYPE = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = ( - "$(SRCROOT)/../cocos2d", - "$(SRCROOT)/../cocos2d/cocos", - "$(SRCROOT)/../cocos2d/cocos/base", - "$(SRCROOT)/../cocos2d/cocos/physics", - "$(SRCROOT)/../cocos2d/cocos/math/kazmath/include", - "$(SRCROOT)/../cocos2d/cocos/2d", - "$(SRCROOT)/../cocos2d/cocos/gui", - "$(SRCROOT)/../cocos2d/cocos/network", - "$(SRCROOT)/../cocos2d/cocos/audio/include", - "$(SRCROOT)/../cocos2d/cocos/editor-support", - "$(SRCROOT)/../cocos2d/cocos/scripting/javascript/bindings", - "$(SRCROOT)/../cocos2d/cocos/scripting/auto-generated/js-bindings", - "$(SRCROOT)/../cocos2d/extensions", - "$(SRCROOT)/../cocos2d/external", - "$(SRCROOT)/../cocos2d/external/chipmunk/include/chipmunk", - ); - IPHONEOS_DEPLOYMENT_TARGET = 5.1; - OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1"; - PRODUCT_NAME = "$(TARGET_NAME)"; - VALIDATE_PRODUCT = YES; - }; - name = Release; - }; - A92277011517C097001B78AA /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = YES; - CODE_SIGN_IDENTITY = "iPhone Developer"; - COMPRESS_PNG_FILES = NO; - GCC_DYNAMIC_NO_PIC = NO; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = ios/Prefix.pch; - GCC_PREPROCESSOR_DEFINITIONS = ( - CC_TARGET_OS_IPHONE, - "$(inherited)", - ); - HEADER_SEARCH_PATHS = ( - "$(inherited)", - "$(SRCROOT)/../cocos2d/cocos/2d/platform/ios", - "$(SRCROOT)/../cocos2d/cocos/2d/platform/ios/Simulation", - "$(SRCROOT)/../cocos2d/external/spidermonkey/include/ios", - ); - INFOPLIST_FILE = ios/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 5.0; - LIBRARY_SEARCH_PATHS = ""; - OTHER_LDFLAGS = ""; - SDKROOT = iphoneos; - TARGETED_DEVICE_FAMILY = "1,2"; - }; - name = Debug; - }; - A92277021517C097001B78AA /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = YES; - CODE_SIGN_IDENTITY = "iPhone Developer"; - COMPRESS_PNG_FILES = NO; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = ios/Prefix.pch; - GCC_PREPROCESSOR_DEFINITIONS = ( - CC_TARGET_OS_IPHONE, - "$(inherited)", - ); - HEADER_SEARCH_PATHS = ( - "$(inherited)", - "$(SRCROOT)/../cocos2d/cocos/2d/platform/ios", - "$(SRCROOT)/../cocos2d/cocos/2d/platform/ios/Simulation", - "$(SRCROOT)/../cocos2d/external/spidermonkey/include/ios", - ); - INFOPLIST_FILE = ios/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 5.0; - LIBRARY_SEARCH_PATHS = ""; - OTHER_LDFLAGS = ""; - SDKROOT = iphoneos; - TARGETED_DEVICE_FAMILY = "1,2"; - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - 509D4AA717EBB24E00697056 /* Build configuration list for PBXNativeTarget "HelloJavascript Mac" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 509D4AA817EBB24E00697056 /* Debug */, - 509D4AA917EBB24E00697056 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - A92275371517C094001B78AA /* Build configuration list for PBXProject "HelloJavascript" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - A92276FE1517C097001B78AA /* Debug */, - A92276FF1517C097001B78AA /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - A92277001517C097001B78AA /* Build configuration list for PBXNativeTarget "HelloJavascript iOS" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - A92277011517C097001B78AA /* Debug */, - A92277021517C097001B78AA /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; -/* End XCConfigurationList section */ - }; - rootObject = A92275341517C094001B78AA /* Project object */; -} diff --git a/templates/multi-platform-js-runtime/framework/proj.ios_mac/Runtime_ios-mac.mm b/templates/multi-platform-js-runtime/framework/proj.ios_mac/Runtime_ios-mac.mm deleted file mode 100644 index d9cabea983..0000000000 --- a/templates/multi-platform-js-runtime/framework/proj.ios_mac/Runtime_ios-mac.mm +++ /dev/null @@ -1,28 +0,0 @@ - -#include -#include -using namespace std; - -string getProjSearchPath() -{ - NSString *bundlePath = [[NSBundle mainBundle] resourcePath]; - if (bundlePath != nil) { - return [bundlePath UTF8String]; - } - return ""; -} - -vector getSearchPath() -{ - vector searchPathArray; - return searchPathArray; -} - -string getDotWaitFilePath() -{ - string dotwaitFile; - dotwaitFile = getProjSearchPath(); - dotwaitFile += "/.wait"; - return dotwaitFile; -} - diff --git a/templates/multi-platform-js-runtime/framework/proj.ios_mac/ios/AppController.h b/templates/multi-platform-js-runtime/framework/proj.ios_mac/ios/AppController.h deleted file mode 100644 index 2e8186124e..0000000000 --- a/templates/multi-platform-js-runtime/framework/proj.ios_mac/ios/AppController.h +++ /dev/null @@ -1,35 +0,0 @@ -/**************************************************************************** - 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/templates/multi-platform-js-runtime/framework/proj.ios_mac/ios/AppController.mm b/templates/multi-platform-js-runtime/framework/proj.ios_mac/ios/AppController.mm deleted file mode 100644 index c833c036f8..0000000000 --- a/templates/multi-platform-js-runtime/framework/proj.ios_mac/ios/AppController.mm +++ /dev/null @@ -1,146 +0,0 @@ -/**************************************************************************** - 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 "CCEAGLView.h" - -@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::GLView::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. - */ - //We don't need to call this method any more. It will interupt user defined game pause&resume logic - /* cocos2d::Director::getInstance()->pause(); */ -} - -- (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. - */ - //We don't need to call this method any more. It will interupt user defined game pause&resume logic - /* 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/templates/multi-platform-js-runtime/framework/proj.ios_mac/ios/Default-568h@2x.png.REMOVED.git-id b/templates/multi-platform-js-runtime/framework/proj.ios_mac/ios/Default-568h@2x.png.REMOVED.git-id deleted file mode 100644 index 8f5838f3a8..0000000000 --- a/templates/multi-platform-js-runtime/framework/proj.ios_mac/ios/Default-568h@2x.png.REMOVED.git-id +++ /dev/null @@ -1 +0,0 @@ -66c6d1cead373b45218424f6a82f370897e443e4 \ No newline at end of file diff --git a/templates/multi-platform-js-runtime/framework/proj.ios_mac/ios/Default@2x.png.REMOVED.git-id b/templates/multi-platform-js-runtime/framework/proj.ios_mac/ios/Default@2x.png.REMOVED.git-id deleted file mode 100644 index 8843505b20..0000000000 --- a/templates/multi-platform-js-runtime/framework/proj.ios_mac/ios/Default@2x.png.REMOVED.git-id +++ /dev/null @@ -1 +0,0 @@ -84689888a14a2123d2b39f7f2f61be8c15207479 \ No newline at end of file diff --git a/templates/multi-platform-js-runtime/framework/proj.ios_mac/ios/Prefix.pch b/templates/multi-platform-js-runtime/framework/proj.ios_mac/ios/Prefix.pch deleted file mode 100644 index 168ddec406..0000000000 --- a/templates/multi-platform-js-runtime/framework/proj.ios_mac/ios/Prefix.pch +++ /dev/null @@ -1,8 +0,0 @@ -// -// Prefix header for all source files of the 'HelloJavascript' target in the 'HelloJavascript' project -// - -#ifdef __OBJC__ - #import - #import -#endif diff --git a/templates/multi-platform-js-runtime/framework/proj.ios_mac/ios/RootViewController.h b/templates/multi-platform-js-runtime/framework/proj.ios_mac/ios/RootViewController.h deleted file mode 100644 index 11dfc4bf88..0000000000 --- a/templates/multi-platform-js-runtime/framework/proj.ios_mac/ios/RootViewController.h +++ /dev/null @@ -1,33 +0,0 @@ -/**************************************************************************** - 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/templates/multi-platform-js-runtime/framework/proj.ios_mac/ios/RootViewController.mm b/templates/multi-platform-js-runtime/framework/proj.ios_mac/ios/RootViewController.mm deleted file mode 100644 index dfbe298774..0000000000 --- a/templates/multi-platform-js-runtime/framework/proj.ios_mac/ios/RootViewController.mm +++ /dev/null @@ -1,105 +0,0 @@ -/**************************************************************************** - 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 "RootViewController.h" -#import "cocos2d.h" -#import "CCEAGLView.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; -} - -- (void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation { - [super didRotateFromInterfaceOrientation:fromInterfaceOrientation]; - - CGSize s = CGSizeMake([[CCEAGLView sharedEGLView] getWidth], [[CCEAGLView sharedEGLView] getHeight]); - - cocos2d::Application::getInstance()->applicationScreenSizeChanged((int) s.width, (int) s.height); -} - -//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/templates/multi-platform-js-runtime/framework/proj.ios_mac/ios/main.m b/templates/multi-platform-js-runtime/framework/proj.ios_mac/ios/main.m deleted file mode 100644 index b1286e31be..0000000000 --- a/templates/multi-platform-js-runtime/framework/proj.ios_mac/ios/main.m +++ /dev/null @@ -1,11 +0,0 @@ - - -#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/templates/multi-platform-js-runtime/framework/proj.ios_mac/mac/Icon.icns.REMOVED.git-id b/templates/multi-platform-js-runtime/framework/proj.ios_mac/mac/Icon.icns.REMOVED.git-id deleted file mode 100644 index 0c90afdb6d..0000000000 --- a/templates/multi-platform-js-runtime/framework/proj.ios_mac/mac/Icon.icns.REMOVED.git-id +++ /dev/null @@ -1 +0,0 @@ -2040fc6fe624353ae1d3db50cd3d450f4fda5afc \ No newline at end of file diff --git a/templates/multi-platform-js-runtime/framework/proj.ios_mac/mac/MainMenu.xib b/templates/multi-platform-js-runtime/framework/proj.ios_mac/mac/MainMenu.xib deleted file mode 100644 index ded673e061..0000000000 --- a/templates/multi-platform-js-runtime/framework/proj.ios_mac/mac/MainMenu.xib +++ /dev/null @@ -1,140 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/templates/multi-platform-js-runtime/framework/proj.ios_mac/mac/Prefix.pch b/templates/multi-platform-js-runtime/framework/proj.ios_mac/mac/Prefix.pch deleted file mode 100644 index 46c36a7e99..0000000000 --- a/templates/multi-platform-js-runtime/framework/proj.ios_mac/mac/Prefix.pch +++ /dev/null @@ -1,7 +0,0 @@ -// -// Prefix header for all source files of the 'Paralaxer' target in the 'Paralaxer' project -// - -#ifdef __OBJC__ - #import -#endif diff --git a/templates/multi-platform-js-runtime/framework/proj.ios_mac/mac/SimulatorApp.h b/templates/multi-platform-js-runtime/framework/proj.ios_mac/mac/SimulatorApp.h deleted file mode 100644 index 94bd6040d8..0000000000 --- a/templates/multi-platform-js-runtime/framework/proj.ios_mac/mac/SimulatorApp.h +++ /dev/null @@ -1,50 +0,0 @@ -/**************************************************************************** - 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 -#include "AppDelegate.h" - -@interface AppController : NSObject -{ - NSWindow *window; - NSMenu *menu; - NSFileHandle *fileHandle; - //console pipe - NSPipe *pipe; - NSFileHandle *pipeReadHandle; -} - -@property (nonatomic, assign) IBOutlet NSMenu* menu; - - - -- (IBAction) onFileClose:(id)sender; -- (IBAction) onScreenPortait:(id)sender; -- (IBAction) onScreenLandscape:(id)sender; -- (IBAction) onScreenZoomOut:(id)sender; -- (IBAction) onReloadScript:(id)sender; - - -@end diff --git a/templates/multi-platform-js-runtime/framework/proj.ios_mac/mac/SimulatorApp.mm b/templates/multi-platform-js-runtime/framework/proj.ios_mac/mac/SimulatorApp.mm deleted file mode 100644 index 7db1a7cb81..0000000000 --- a/templates/multi-platform-js-runtime/framework/proj.ios_mac/mac/SimulatorApp.mm +++ /dev/null @@ -1,271 +0,0 @@ -/**************************************************************************** - 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. - ****************************************************************************/ - -#import "SimulatorApp.h" - - -#include -#include -#include -#include -#include - -#include "AppDelegate.h" -#include "glfw3.h" -#include "glfw3native.h" -#include "Runtime.h" - -#include "cocos2d.h" - -using namespace cocos2d; - -bool g_landscape=false; -CCSize g_screenSize; -GLView* g_eglView=NULL; - -using namespace std; -using namespace cocos2d; - -@implementation AppController - -@synthesize menu; - --(void) dealloc -{ - CCDirector::sharedDirector()->end(); - [super dealloc]; -} - -#pragma mark - -#pragma delegates - -- (void) applicationDidFinishLaunching:(NSNotification *)aNotification -{ - - AppDelegate app; - [self createSimulator:[NSString stringWithUTF8String:"HelloJavascript"] viewWidth:960 viewHeight:640 factor:1.0]; - int ret = Application::getInstance()->run(); - -} - - -#pragma mark - -#pragma mark functions - -- (void) createSimulator:(NSString*)viewName viewWidth:(float)width viewHeight:(float)height factor:(float)frameZoomFactor -{ - if (g_eglView) - { - return; - } - - g_eglView = GLView::createWithRect([viewName cStringUsingEncoding:NSUTF8StringEncoding],cocos2d::Rect(0.0f,0.0f,width,height),frameZoomFactor); - auto director = Director::getInstance(); - director->setOpenGLView(g_eglView); - g_landscape = false; - g_screenSize.width = width; - g_screenSize.height = height; - if (width > height) - { - g_landscape = true; - } - - window = glfwGetCocoaWindow(g_eglView->getWindow()); - window.delegate = self; - [NSApp setDelegate: self]; - - [self createViewMenu]; - [self updateMenu]; - [window center]; - - [window becomeFirstResponder]; - [window makeKeyAndOrderFront:self]; - [window setAcceptsMouseMovedEvents:NO]; -} - - -- (void) createViewMenu -{ - - NSMenu *submenu = [[[window menu] itemWithTitle:@"View"] submenu]; - - for (int i = SimulatorConfig::getInstance()->getScreenSizeCount() - 1; i >= 0; --i) - { - SimulatorScreenSize size = SimulatorConfig::getInstance()->getScreenSize(i); - NSMenuItem *item = [[[NSMenuItem alloc] initWithTitle:[NSString stringWithCString:size.title.c_str() encoding:NSUTF8StringEncoding] - action:@selector(onViewChangeFrameSize:) - keyEquivalent:@""] autorelease]; - [item setTag:i]; - [submenu insertItem:item atIndex:0]; - } -} - - -- (void) updateMenu -{ - - NSMenu *menuScreen = [[[window menu] itemWithTitle:@"View"] submenu]; - NSMenuItem *itemPortait = [menuScreen itemWithTitle:@"Portait"]; - NSMenuItem *itemLandscape = [menuScreen itemWithTitle:@"Landscape"]; - if (g_landscape) - { - [itemPortait setState:NSOffState]; - [itemLandscape setState:NSOnState]; - } - else - { - [itemPortait setState:NSOnState]; - [itemLandscape setState:NSOffState]; - } - - int scale = 100; - - NSMenuItem *itemZoom100 = [menuScreen itemWithTitle:@"Actual (100%)"]; - NSMenuItem *itemZoom75 = [menuScreen itemWithTitle:@"Zoom Out (75%)"]; - NSMenuItem *itemZoom50 = [menuScreen itemWithTitle:@"Zoom Out (50%)"]; - NSMenuItem *itemZoom25 = [menuScreen itemWithTitle:@"Zoom Out (25%)"]; - [itemZoom100 setState:NSOffState]; - [itemZoom75 setState:NSOffState]; - [itemZoom50 setState:NSOffState]; - [itemZoom25 setState:NSOffState]; - if (scale == 100) - { - [itemZoom100 setState:NSOnState]; - } - else if (scale == 75) - { - [itemZoom75 setState:NSOnState]; - } - else if (scale == 50) - { - [itemZoom50 setState:NSOnState]; - } - else if (scale == 25) - { - [itemZoom25 setState:NSOnState]; - } - - int width = g_screenSize.width; - int height = g_screenSize.height; - if (height > width) - { - int w = width; - width = height; - height = w; - } - - int count = SimulatorConfig::getInstance()->getScreenSizeCount(); - for (int i = 0; i < count; ++i) - { - bool bSel = false; - SimulatorScreenSize size = SimulatorConfig::getInstance()->getScreenSize(i); - if (size.width == width && size.height == height) - { - bSel = true; - } - NSMenuItem *itemView = [menuScreen itemWithTitle:[NSString stringWithUTF8String:size.title.c_str()]]; - [itemView setState:(bSel? NSOnState : NSOffState)]; - } - - - //[window setTitle:[NSString stringWithFormat:@"quick-x-player (%0.0f%%)", projectConfig.getFrameScale() * 100]]; -} - - -- (void) updateView -{ - if (g_landscape) - { - glfwSetWindowSize(g_eglView->getWindow(),g_screenSize.width,g_screenSize.height); - } - else - { - glfwSetWindowSize(g_eglView->getWindow(),g_screenSize.height,g_screenSize.width); - } - [self updateMenu]; -} - -- (BOOL) applicationShouldTerminateAfterLastWindowClosed:(NSApplication*)theApplication -{ - return YES; -} - -- (BOOL) applicationShouldHandleReopen:(NSApplication *)sender hasVisibleWindows:(BOOL)flag -{ - return NO; -} - -- (void) windowWillClose:(NSNotification *)notification -{ - [[NSRunningApplication currentApplication] terminate]; -} - - -- (IBAction) onFileClose:(id)sender -{ - [[NSApplication sharedApplication] terminate:self]; -} - - -- (IBAction) onScreenPortait:(id)sender -{ - g_landscape = false; - [self updateView]; - -} - -- (IBAction) onScreenLandscape:(id)sender -{ - g_landscape = true; - [self updateView]; -} - -- (IBAction) onReloadScript:(id)sender -{ - reloadScript(); -} - - -- (IBAction) onViewChangeFrameSize:(id)sender -{ - NSInteger index = [sender tag]; - if (index >= 0 && index < SimulatorConfig::getInstance()->getScreenSizeCount()) - { - SimulatorScreenSize size = SimulatorConfig::getInstance()->getScreenSize(index); - g_screenSize.width = size.width; - g_screenSize.height = size.height; - [self updateView]; - } -} - - -- (IBAction) onScreenZoomOut:(id)sender -{ - if ([sender state] == NSOnState) return; - float scale = (float)[sender tag] / 100.0f; - [self setZoom:scale]; -} - - -@end diff --git a/templates/multi-platform-js-runtime/framework/proj.ios_mac/mac/main.m b/templates/multi-platform-js-runtime/framework/proj.ios_mac/mac/main.m deleted file mode 100644 index 658f0c14ee..0000000000 --- a/templates/multi-platform-js-runtime/framework/proj.ios_mac/mac/main.m +++ /dev/null @@ -1,7 +0,0 @@ - -#import - -int main(int argc, char *argv[]) -{ - return NSApplicationMain(argc, (const char **)argv); -} diff --git a/templates/multi-platform-js-runtime/framework/proj.win32/HelloJavascript.sln b/templates/multi-platform-js-runtime/framework/proj.win32/HelloJavascript.sln deleted file mode 100644 index 895951dd71..0000000000 --- a/templates/multi-platform-js-runtime/framework/proj.win32/HelloJavascript.sln +++ /dev/null @@ -1,110 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 2012 -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "HelloJavascript", "HelloJavascript.vcxproj", "{3B0B58B1-2734-488E-A542-ECEC11EB2455}" - ProjectSection(ProjectDependencies) = postProject - {21B2C324-891F-48EA-AD1A-5AE13DE12E28} = {21B2C324-891F-48EA-AD1A-5AE13DE12E28} - {B57CF53F-2E49-4031-9822-047CC0E6BDE2} = {B57CF53F-2E49-4031-9822-047CC0E6BDE2} - {39379840-825A-45A0-B363-C09FFEF864BD} = {39379840-825A-45A0-B363-C09FFEF864BD} - {98A51BA8-FC3A-415B-AC8F-8C7BD464E93E} = {98A51BA8-FC3A-415B-AC8F-8C7BD464E93E} - {207BC7A9-CCF1-4F2F-A04D-45F72242AE25} = {207BC7A9-CCF1-4F2F-A04D-45F72242AE25} - {811C0DAB-7B96-4BD3-A154-B7572B58E4AB} = {811C0DAB-7B96-4BD3-A154-B7572B58E4AB} - {F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6} = {F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6} - EndProjectSection -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libcocos2d", "..\cocos2d\cocos\2d\cocos2d.vcxproj", "{98A51BA8-FC3A-415B-AC8F-8C7BD464E93E}" -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libchipmunk", "..\cocos2d\external\chipmunk\proj.win32\chipmunk.vcxproj", "{207BC7A9-CCF1-4F2F-A04D-45F72242AE25}" -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libAudio", "..\cocos2d\cocos\audio\proj.win32\CocosDenshion.vcxproj", "{F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6}" - ProjectSection(ProjectDependencies) = postProject - {98A51BA8-FC3A-415B-AC8F-8C7BD464E93E} = {98A51BA8-FC3A-415B-AC8F-8C7BD464E93E} - EndProjectSection -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libJSBinding", "..\cocos2d\cocos\scripting\javascript\bindings\proj.win32\libJSBinding.vcxproj", "{39379840-825A-45A0-B363-C09FFEF864BD}" - ProjectSection(ProjectDependencies) = postProject - {21B2C324-891F-48EA-AD1A-5AE13DE12E28} = {21B2C324-891F-48EA-AD1A-5AE13DE12E28} - {98A51BA8-FC3A-415B-AC8F-8C7BD464E93E} = {98A51BA8-FC3A-415B-AC8F-8C7BD464E93E} - {207BC7A9-CCF1-4F2F-A04D-45F72242AE25} = {207BC7A9-CCF1-4F2F-A04D-45F72242AE25} - {F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6} = {F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6} - EndProjectSection -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libJSBindingForChipmunk", "..\cocos2d\cocos\scripting\javascript\bindings\chipmunk\libJSBindingForChipmunk.vcxproj", "{21070E58-EEC6-4E16-8B4F-6D083DF55790}" -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libLocalStorage", "..\cocos2d\cocos\storage\local-storage\proj.win32\libLocalStorage.vcxproj", "{632A8F38-D0F0-4D22-86B3-D69F5E6BF63A}" -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libJSBindingForLocalStorage", "..\cocos2d\cocos\scripting\javascript\bindings\localstorage\libJSBindingForLocalStorage.vcxproj", "{68F5F371-BD7B-4C30-AE5B-0B08F22E0CDE}" -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libJSBindingForExtension", "..\cocos2d\cocos\scripting\javascript\bindings\extension\libJSBindingForExtension.vcxproj", "{625F7391-9A91-48A1-8CFC-79508C822637}" -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libExtensions", "..\cocos2d\extensions\proj.win32\libExtensions.vcxproj", "{21B2C324-891F-48EA-AD1A-5AE13DE12E28}" -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libCocosStudio", "..\cocos2d\cocos\editor-support\cocostudio\proj.win32\libCocosStudio.vcxproj", "{B57CF53F-2E49-4031-9822-047CC0E6BDE2}" -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libCocosBuilder", "..\cocos2d\cocos\editor-support\cocosbuilder\proj.win32\libCocosBuilder.vcxproj", "{811C0DAB-7B96-4BD3-A154-B7572B58E4AB}" -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libJSBindingForBuilder", "..\cocos2d\cocos\scripting\javascript\bindings\cocosbuilder\libJSBindingForBuilder.vcxproj", "{F9DA0FC1-651B-457B-962E-A4D61CEBF5FD}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Win32 = Debug|Win32 - Release|Win32 = Release|Win32 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {3B0B58B1-2734-488E-A542-ECEC11EB2455}.Debug|Win32.ActiveCfg = Debug|Win32 - {3B0B58B1-2734-488E-A542-ECEC11EB2455}.Debug|Win32.Build.0 = Debug|Win32 - {3B0B58B1-2734-488E-A542-ECEC11EB2455}.Release|Win32.ActiveCfg = Release|Win32 - {3B0B58B1-2734-488E-A542-ECEC11EB2455}.Release|Win32.Build.0 = Release|Win32 - {98A51BA8-FC3A-415B-AC8F-8C7BD464E93E}.Debug|Win32.ActiveCfg = Debug|Win32 - {98A51BA8-FC3A-415B-AC8F-8C7BD464E93E}.Debug|Win32.Build.0 = Debug|Win32 - {98A51BA8-FC3A-415B-AC8F-8C7BD464E93E}.Release|Win32.ActiveCfg = Release|Win32 - {98A51BA8-FC3A-415B-AC8F-8C7BD464E93E}.Release|Win32.Build.0 = Release|Win32 - {207BC7A9-CCF1-4F2F-A04D-45F72242AE25}.Debug|Win32.ActiveCfg = Debug|Win32 - {207BC7A9-CCF1-4F2F-A04D-45F72242AE25}.Debug|Win32.Build.0 = Debug|Win32 - {207BC7A9-CCF1-4F2F-A04D-45F72242AE25}.Release|Win32.ActiveCfg = Release|Win32 - {207BC7A9-CCF1-4F2F-A04D-45F72242AE25}.Release|Win32.Build.0 = Release|Win32 - {F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6}.Debug|Win32.ActiveCfg = Debug|Win32 - {F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6}.Debug|Win32.Build.0 = Debug|Win32 - {F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6}.Release|Win32.ActiveCfg = Release|Win32 - {F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6}.Release|Win32.Build.0 = Release|Win32 - {39379840-825A-45A0-B363-C09FFEF864BD}.Debug|Win32.ActiveCfg = Debug|Win32 - {39379840-825A-45A0-B363-C09FFEF864BD}.Debug|Win32.Build.0 = Debug|Win32 - {39379840-825A-45A0-B363-C09FFEF864BD}.Release|Win32.ActiveCfg = Release|Win32 - {39379840-825A-45A0-B363-C09FFEF864BD}.Release|Win32.Build.0 = Release|Win32 - {21070E58-EEC6-4E16-8B4F-6D083DF55790}.Debug|Win32.ActiveCfg = Debug|Win32 - {21070E58-EEC6-4E16-8B4F-6D083DF55790}.Debug|Win32.Build.0 = Debug|Win32 - {21070E58-EEC6-4E16-8B4F-6D083DF55790}.Release|Win32.ActiveCfg = Release|Win32 - {21070E58-EEC6-4E16-8B4F-6D083DF55790}.Release|Win32.Build.0 = Release|Win32 - {632A8F38-D0F0-4D22-86B3-D69F5E6BF63A}.Debug|Win32.ActiveCfg = Debug|Win32 - {632A8F38-D0F0-4D22-86B3-D69F5E6BF63A}.Debug|Win32.Build.0 = Debug|Win32 - {632A8F38-D0F0-4D22-86B3-D69F5E6BF63A}.Release|Win32.ActiveCfg = Release|Win32 - {632A8F38-D0F0-4D22-86B3-D69F5E6BF63A}.Release|Win32.Build.0 = Release|Win32 - {68F5F371-BD7B-4C30-AE5B-0B08F22E0CDE}.Debug|Win32.ActiveCfg = Debug|Win32 - {68F5F371-BD7B-4C30-AE5B-0B08F22E0CDE}.Debug|Win32.Build.0 = Debug|Win32 - {68F5F371-BD7B-4C30-AE5B-0B08F22E0CDE}.Release|Win32.ActiveCfg = Release|Win32 - {68F5F371-BD7B-4C30-AE5B-0B08F22E0CDE}.Release|Win32.Build.0 = Release|Win32 - {625F7391-9A91-48A1-8CFC-79508C822637}.Debug|Win32.ActiveCfg = Debug|Win32 - {625F7391-9A91-48A1-8CFC-79508C822637}.Debug|Win32.Build.0 = Debug|Win32 - {625F7391-9A91-48A1-8CFC-79508C822637}.Release|Win32.ActiveCfg = Release|Win32 - {625F7391-9A91-48A1-8CFC-79508C822637}.Release|Win32.Build.0 = Release|Win32 - {21B2C324-891F-48EA-AD1A-5AE13DE12E28}.Debug|Win32.ActiveCfg = Debug|Win32 - {21B2C324-891F-48EA-AD1A-5AE13DE12E28}.Debug|Win32.Build.0 = Debug|Win32 - {21B2C324-891F-48EA-AD1A-5AE13DE12E28}.Release|Win32.ActiveCfg = Release|Win32 - {21B2C324-891F-48EA-AD1A-5AE13DE12E28}.Release|Win32.Build.0 = Release|Win32 - {B57CF53F-2E49-4031-9822-047CC0E6BDE2}.Debug|Win32.ActiveCfg = Debug|Win32 - {B57CF53F-2E49-4031-9822-047CC0E6BDE2}.Debug|Win32.Build.0 = Debug|Win32 - {B57CF53F-2E49-4031-9822-047CC0E6BDE2}.Release|Win32.ActiveCfg = Release|Win32 - {B57CF53F-2E49-4031-9822-047CC0E6BDE2}.Release|Win32.Build.0 = Release|Win32 - {811C0DAB-7B96-4BD3-A154-B7572B58E4AB}.Debug|Win32.ActiveCfg = Debug|Win32 - {811C0DAB-7B96-4BD3-A154-B7572B58E4AB}.Debug|Win32.Build.0 = Debug|Win32 - {811C0DAB-7B96-4BD3-A154-B7572B58E4AB}.Release|Win32.ActiveCfg = Release|Win32 - {811C0DAB-7B96-4BD3-A154-B7572B58E4AB}.Release|Win32.Build.0 = Release|Win32 - {F9DA0FC1-651B-457B-962E-A4D61CEBF5FD}.Debug|Win32.ActiveCfg = Debug|Win32 - {F9DA0FC1-651B-457B-962E-A4D61CEBF5FD}.Debug|Win32.Build.0 = Debug|Win32 - {F9DA0FC1-651B-457B-962E-A4D61CEBF5FD}.Release|Win32.ActiveCfg = Release|Win32 - {F9DA0FC1-651B-457B-962E-A4D61CEBF5FD}.Release|Win32.Build.0 = Release|Win32 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection -EndGlobal diff --git a/templates/multi-platform-js-runtime/framework/proj.win32/HelloJavascript.vcxproj b/templates/multi-platform-js-runtime/framework/proj.win32/HelloJavascript.vcxproj deleted file mode 100644 index 9fa7d9e96f..0000000000 --- a/templates/multi-platform-js-runtime/framework/proj.win32/HelloJavascript.vcxproj +++ /dev/null @@ -1,238 +0,0 @@ - - - - - Debug - Win32 - - - Release - Win32 - - - - {3B0B58B1-2734-488E-A542-ECEC11EB2455} - HelloJavascript - - - - Application - Unicode - v100 - v110 - v110_xp - - - Application - Unicode - v100 - v110 - v110_xp - - - - - - - - - - - - - - - - - <_ProjectFileVersion>10.0.40219.1 - $(SolutionDir)..\..\runtime\HelloJavascript\win32\ - $(Configuration).win32\ - false - $(SolutionDir)..\..\runtime\HelloJavascript\win32\ - $(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)game.tlb - game.h - - - game_i.c - game_p.c - - - Disabled - $(ProjectDir)..\Classes;$(EngineRoot);$(EngineRoot)cocos;$(EngineRoot)cocos\editor-support;$(EngineRoot)cocos\audio\include;$(EngineRoot)cocos\scripting\javascript\bindings;$(EngineRoot)cocos\scripting\auto-generated\js-bindings;$(EngineRoot)external\spidermonkey\include\win32;$(EngineRoot)external\chipmunk\include\chipmunk;%(AdditionalIncludeDirectories) - WIN32;_WINDOWS;STRICT;DEBUG;_DEBUG;XP_WIN;JS_HAVE___INTN;JS_INTPTR_TYPE=int;COCOS2D_DEBUG=1;COCOS2D_JAVASCRIPT=1;CC_ENABLE_CHIPMUNK_INTEGRATION=1;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;GLFW_EXPOSE_NATIVE_WIN32;GLFW_EXPOSE_NATIVE_WGL;%(PreprocessorDefinitions) - false - EnableFastChecks - MultiThreadedDebugDLL - - - Level3 - EditAndContinue - 4267;4251;4244;4800;%(DisableSpecificWarnings) - true - - - _DEBUG;%(PreprocessorDefinitions) - 0x0409 - $(MSBuildProgramFiles32)\Microsoft SDKs\Windows\v7.1A\include;$(IntDir);%(AdditionalIncludeDirectories) - - - if not exist "$(OutDir)" mkdir "$(Configuration).win32" -xcopy /Y /Q "$(EngineRoot)external\spidermonkey\prebuilt\win32\*.*" "$(Configuration).win32" -xcopy /Y /Q "$(EngineRoot)external\websockets\prebuilt\win32\*.*" "$(Configuration).win32" -xcopy /Y /Q "$(Configuration).win32\*.dll" "$(OutDir)" - - - libcurl_imp.lib;mozjs-27.lib;ws2_32.lib;sqlite3.lib;websockets.lib;%(AdditionalDependencies) - $(Configuration).win32;%(AdditionalLibraryDirectories) - true - Windows - MachineX86 - $(Configuration).win32$(TargetName).pdb - $(OutDir)$(TargetName)$(TargetExt) - - - if not exist "$(OutDir)" mkdir "$(OutDir)" -if exist "$(OutDir)\Resources" rd /s /q "$(OutDir)\Resources" -mkdir "$(OutDir)\Resources" -xcopy "$(EngineRoot)cocos\scripting\javascript\script\*.js" "$(OutDir)\Resources\" /e /Y - - - Copy js and resource files. - - - - - NDEBUG;%(PreprocessorDefinitions) - false - Win32 - true - $(IntDir)game.tlb - game.h - - - game_i.c - game_p.c - - - $(ProjectDir)..\Classes;$(EngineRoot);$(EngineRoot)cocos;$(EngineRoot)cocos\editor-support;$(EngineRoot)cocos\audio\include;$(EngineRoot)cocos\scripting\javascript\bindings;$(EngineRoot)cocos\scripting\auto-generated\js-bindings;$(EngineRoot)external\spidermonkey\include\win32;$(EngineRoot)external\chipmunk\include\chipmunk;%(AdditionalIncludeDirectories) - WIN32;_WINDOWS;STRICT;NDEBUG;XP_WIN;JS_HAVE___INTN;JS_INTPTR_TYPE=int;COCOS2D_JAVASCRIPT=1;CC_ENABLE_CHIPMUNK_INTEGRATION=1;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;GLFW_EXPOSE_NATIVE_WIN32;GLFW_EXPOSE_NATIVE_WGL;%(PreprocessorDefinitions) - - - MultiThreadedDLL - - - Level3 - - - 4267;4251;4244;4800;%(DisableSpecificWarnings) - true - - - NDEBUG;%(PreprocessorDefinitions) - 0x0409 - $(MSBuildProgramFiles32)\Microsoft SDKs\Windows\v7.1A\include;$(IntDir);%(AdditionalIncludeDirectories) - - - if not exist "$(OutDir)" mkdir "$(Configuration).win32" -xcopy /Y /Q "$(EngineRoot)external\spidermonkey\prebuilt\win32\*.*" "$(Configuration).win32" -xcopy /Y /Q "$(EngineRoot)external\websockets\prebuilt\win32\*.*" "$(Configuration).win32" - - - libcurl_imp.lib;mozjs-27.lib;ws2_32.lib;sqlite3.lib;websockets.lib;%(AdditionalDependencies) - $(Configuration).win32;%(AdditionalLibraryDirectories) - Windows - MachineX86 - true - $(Configuration).win32$(TargetName).pdb - - - if not exist "$(OutDir)" mkdir "$(OutDir)" -if exist "$(OutDir)\Resources" rd /s /q "$(OutDir)\Resources" -mkdir "$(OutDir)\Resources" -xcopy "$(EngineRoot)cocos\scripting\javascript\script\*.js" "$(OutDir)\Resources\" /e /Y - Copy js and resource files. - - - - - - - - - - - - - - - - - - - - - - {98a51ba8-fc3a-415b-ac8f-8c7bd464e93e} - - - {f8edd7fa-9a51-4e80-baeb-860825d2eac6} - - - {811c0dab-7b96-4bd3-a154-b7572b58e4ab} - - - {b57cf53f-2e49-4031-9822-047cc0e6bde2} - - - {21070e58-eec6-4e16-8b4f-6d083df55790} - - - {f9da0fc1-651b-457b-962e-a4d61cebf5fd} - - - {625f7391-9a91-48a1-8cfc-79508c822637} - - - {68f5f371-bd7b-4c30-ae5b-0b08f22e0cde} - - - {39379840-825a-45a0-b363-c09ffef864bd} - - - {632a8f38-d0f0-4d22-86b3-d69f5e6bf63a} - - - {21b2c324-891f-48ea-ad1a-5ae13de12e28} - - - {207bc7a9-ccf1-4f2f-a04d-45f72242ae25} - - - - - - - - - \ No newline at end of file diff --git a/templates/multi-platform-js-runtime/framework/proj.win32/HelloJavascript.vcxproj.filters b/templates/multi-platform-js-runtime/framework/proj.win32/HelloJavascript.vcxproj.filters deleted file mode 100644 index a3173413e6..0000000000 --- a/templates/multi-platform-js-runtime/framework/proj.win32/HelloJavascript.vcxproj.filters +++ /dev/null @@ -1,57 +0,0 @@ - - - - - {ca9c9e15-d942-43a1-aa7a-5f0b74ca1afd} - rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;jpg;jpeg;jpe;png;manifest - - - {ccb2323b-1cfa-41ea-bcf4-ba5f07309396} - - - {e93a77e1-af1e-4400-87d3-504b62ebdbb0} - - - - - win32 - - - Classes - - - win32 - - - Classes - - - win32 - - - - - Classes - - - win32 - - - - win32 - - - Classes - - - - - resource - - - - - resource - - - \ No newline at end of file diff --git a/templates/multi-platform-js-runtime/framework/proj.win32/HelloJavascript.vcxproj.user b/templates/multi-platform-js-runtime/framework/proj.win32/HelloJavascript.vcxproj.user deleted file mode 100644 index bc2c507e26..0000000000 --- a/templates/multi-platform-js-runtime/framework/proj.win32/HelloJavascript.vcxproj.user +++ /dev/null @@ -1,11 +0,0 @@ - - - - $(OutDir) - WindowsLocalDebugger - - - $(OutDir) - WindowsLocalDebugger - - \ No newline at end of file diff --git a/templates/multi-platform-js-runtime/framework/proj.win32/Runtime_win32.cpp b/templates/multi-platform-js-runtime/framework/proj.win32/Runtime_win32.cpp deleted file mode 100644 index 13fce8684e..0000000000 --- a/templates/multi-platform-js-runtime/framework/proj.win32/Runtime_win32.cpp +++ /dev/null @@ -1,119 +0,0 @@ - -#include "Runtime.h" - -#include -#include -#include -#include -#include - -using namespace std; - -bool browseDir(const char *dir,const char *filespec,vector &filterArray,vector &fileList) -{ - if (chdir(dir) != 0) - { - return false; - } - - long hFile; - _finddata_t fileinfo; - if ((hFile=_findfirst(filespec,&fileinfo)) != -1) - { - do - { - if ((fileinfo.attrib & _A_SUBDIR)) - { - continue; - } - - char *pszexten=strrchr(fileinfo.name,'.'); - char szextension[_MAX_PATH_]={0}; - if (pszexten) - { - strcpy(szextension,"*"); - strcat(szextension,pszexten); - if (find(filterArray.begin(),filterArray.end(),szextension) != filterArray.end()) - { - continue; - } - } - - strcpy(szextension,fileinfo.name); - if (find(filterArray.begin(),filterArray.end(),szextension) != filterArray.end()) - { - continue; - } - - char fullFileName[_MAX_PATH_] ={0}; - sprintf(fullFileName,"%s%s",dir,fileinfo.name); - fileList.push_back(fullFileName); - } while (_findnext(hFile,&fileinfo) == 0); - _findclose(hFile); - } - - if (chdir(dir) != 0) - { - return false; - } - - if ((hFile=_findfirst("*.*",&fileinfo)) != -1) - { - do - { - if(!(fileinfo.attrib & _A_SUBDIR)) - { - continue; - } - - if (strcmp(fileinfo.name,".") == 0 || strcmp(fileinfo.name,"..") == 0) - { - continue; - } - - if (find(filterArray.begin(),filterArray.end(),fileinfo.name) != filterArray.end()) - { - continue; - } - - char subdir[_MAX_PATH_]={0}; - sprintf(subdir,"%s%s/",dir,fileinfo.name); - if (!browseDir(subdir,filespec,filterArray,fileList)) - { - _findclose(hFile); - return false; - } - } while (_findnext(hFile,&fileinfo) == 0); - _findclose(hFile); - } - return true; -} - -string getProjSearchPath() -{ - extern std::string getCurAppPath(void); - string searchPath = getCurAppPath(); - searchPath += "/../../.."; - char fuldir[_MAX_PATH_]={0}; - _fullpath(fuldir,searchPath.c_str(),_MAX_PATH_); - return fuldir; -} - -vector getSearchPath() -{ - extern std::string getCurAppPath(void); - vector searchPathArray; - string searchPathRes = getCurAppPath(); - searchPathRes += "/Resources"; - searchPathArray.push_back(getProjSearchPath()); - searchPathArray.push_back(searchPathRes); - return searchPathArray; -} - -string getDotWaitFilePath() -{ - extern std::string getCurAppPath(void); - string dotwaitFile = getCurAppPath(); - dotwaitFile += "/.wait"; - return dotwaitFile; -} diff --git a/templates/multi-platform-js-runtime/framework/proj.win32/SimulatorWindow.cpp b/templates/multi-platform-js-runtime/framework/proj.win32/SimulatorWindow.cpp deleted file mode 100644 index f0f8bc9070..0000000000 --- a/templates/multi-platform-js-runtime/framework/proj.win32/SimulatorWindow.cpp +++ /dev/null @@ -1,246 +0,0 @@ -/**************************************************************************** -Copyright (c) 2013 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 "SimulatorWindow.h" - -#include "cocos2d.h" -#include "glfw3native.h" -#include "resource.h" -#include "Runtime.h" - -#include -#include -using namespace std; -using namespace cocos2d; - - -WNDPROC g_oldProc=NULL; -bool g_landscape=false; -CCSize g_screenSize; -GLView* g_eglView=NULL; -INT_PTR CALLBACK AboutDialogCallback(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam); - - -void createViewMenu() -{ - HMENU menu = GetMenu(glfwGetWin32Window(g_eglView->getWindow())); - HMENU viewMenu = GetSubMenu(menu, 1); - - for (int i = SimulatorConfig::getInstance()->getScreenSizeCount() - 1; i >= 0; --i) - { - SimulatorScreenSize size = SimulatorConfig::getInstance()->getScreenSize(i); - wstring menuName; - menuName.assign(size.title.begin(), size.title.end()); - - MENUITEMINFO item; - ZeroMemory(&item, sizeof(item)); - item.cbSize = sizeof(item); - item.fMask = MIIM_FTYPE | MIIM_ID | MIIM_STRING; - item.fType = MFT_STRING; - item.wID = ID_VIEW_SIZE + i; - item.dwTypeData = (LPTSTR)menuName.c_str(); - item.cch = menuName.length(); - - InsertMenuItem(viewMenu, 0, TRUE, &item); - } -} - -void updateMenu() -{ - HMENU menu = GetMenu(glfwGetWin32Window(g_eglView->getWindow())); - HMENU viewMenu = GetSubMenu(menu, 1); - - if (g_landscape) - { - CheckMenuItem(viewMenu, ID_VIEW_PORTRAIT, MF_BYCOMMAND | MF_UNCHECKED); - CheckMenuItem(viewMenu, ID_VIEW_LANDSCAPE, MF_BYCOMMAND | MF_CHECKED); - } - else - { - CheckMenuItem(viewMenu, ID_VIEW_PORTRAIT, MF_BYCOMMAND | MF_CHECKED); - CheckMenuItem(viewMenu, ID_VIEW_LANDSCAPE, MF_BYCOMMAND | MF_UNCHECKED); - } - - int width = g_screenSize.width; - int height = g_screenSize.height; - if (height > width) - { - int w = width; - width = height; - height = w; - } - - int count = SimulatorConfig::getInstance()->getScreenSizeCount(); - for (int i = 0; i < count; ++i) - { - bool bSel = false; - - SimulatorScreenSize size = SimulatorConfig::getInstance()->getScreenSize(i); - if (size.width == width && size.height == height) - { - bSel = true; - } - CheckMenuItem(viewMenu, i, MF_BYPOSITION | (bSel? MF_CHECKED : MF_UNCHECKED)); - } -} - -/*@brief updateView*/ -void updateView() -{ - if (g_landscape) - { - glfwSetWindowSize(g_eglView->getWindow(),g_screenSize.width,g_screenSize.height); - } - else - { - glfwSetWindowSize(g_eglView->getWindow(),g_screenSize.height,g_screenSize.width); - } - updateMenu(); -} - -void onViewChangeOrientation(int viewMenuID) -{ - if (viewMenuID == ID_VIEW_PORTRAIT && g_landscape) - { - g_landscape = false; - updateView(); - } - else if (viewMenuID == ID_VIEW_LANDSCAPE && !g_landscape) - { - g_landscape = true; - updateView(); - } -} - -void onViewChangeFrameSize(int viewMenuID) -{ - int index = viewMenuID - ID_VIEW_SIZE; - if (index >= 0 && index < SimulatorConfig::getInstance()->getScreenSizeCount()) - { - SimulatorScreenSize size = SimulatorConfig::getInstance()->getScreenSize(index); - g_screenSize.width = size.width; - g_screenSize.height = size.height; - updateView(); - } -} - -void onHelpAbout() -{ - DialogBox(GetModuleHandle(NULL), MAKEINTRESOURCE(IDD_DIALOG_ABOUT), glfwGetWin32Window(g_eglView->getWindow()), AboutDialogCallback); -} - -/*@brief new windows process*/ -LRESULT CALLBACK SNewWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) -{ - int wmId, wmEvent; - switch (message) - { - case WM_COMMAND: - { - wmId = LOWORD(wParam); - wmEvent = HIWORD(wParam); - - switch (wmId) - { - case ID_FILE_EXIT: - exit(0); - break; - - case ID_VIEW_PORTRAIT: - case ID_VIEW_LANDSCAPE: - onViewChangeOrientation(wmId); - break; - - case ID_CONTROL_RELOAD: - reloadScript(); - break; - - case ID_HELP_ABOUT: - onHelpAbout(); - - default: - if (wmId >= ID_VIEW_SIZE && wmId <= ID_VIEW_SIZE + SimulatorConfig::getInstance()->getScreenSizeCount() - 1) - { - onViewChangeFrameSize(wmId); - break; - } - return 0; - } - } - break; - } - return g_oldProc(hWnd, message, wParam, lParam); -} - -/*@brief AboutDialog Callback*/ -INT_PTR CALLBACK AboutDialogCallback(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) -{ - UNREFERENCED_PARAMETER(lParam); - switch (message) - { - case WM_INITDIALOG: - return (INT_PTR)TRUE; - - case WM_COMMAND: - if (LOWORD(wParam) == IDOK || LOWORD(wParam) == IDCANCEL) - { - EndDialog(hDlg, LOWORD(wParam)); - return (INT_PTR)TRUE; - } - break; - } - return (INT_PTR)FALSE; -} - -void createSimulator(const char* viewName, float width, float height, float frameZoomFactor) -{ - if (g_eglView) - { - return; - } - - g_eglView = GLView::createWithRect(viewName,Rect(0,0,width,height),frameZoomFactor); - auto director = Director::getInstance(); - director->setOpenGLView(g_eglView); - g_landscape = false; - g_screenSize.width = width; - g_screenSize.height = height; - if (width > height) - { - g_landscape = true; - } - - HWND hWnd=glfwGetWin32Window(g_eglView->getWindow()); - HMENU hMenu = LoadMenu(GetModuleHandle(NULL), MAKEINTRESOURCE(IDR_MENU_COCOS)); - SetMenu(hWnd, hMenu); - createViewMenu(); - updateMenu(); - - g_oldProc = (WNDPROC)SetWindowLong(hWnd, GWL_WNDPROC, (LONG)SNewWndProc); - if (g_oldProc==0) - { - printf("SetWindowLong NewWndProc Error:%d\n",GetLastError()); - } - -} \ No newline at end of file diff --git a/templates/multi-platform-js-runtime/framework/proj.win32/SimulatorWindow.h b/templates/multi-platform-js-runtime/framework/proj.win32/SimulatorWindow.h deleted file mode 100644 index fb09f1646d..0000000000 --- a/templates/multi-platform-js-runtime/framework/proj.win32/SimulatorWindow.h +++ /dev/null @@ -1,33 +0,0 @@ -/**************************************************************************** -Copyright (c) 2013 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. -****************************************************************************/ - -#ifndef __SIMULATOR_WINDOW_H_ -#define __SIMULATOR_WINDOW_H_ - -/************************ -@brief create Simulator -*********************************/ -void createSimulator(const char* viewName, float width, float height,float frameZoomFactor = 1.0f); - -#endif /* __PROJECT_CONFIG_H_ */ diff --git a/templates/multi-platform-js-runtime/framework/proj.win32/game.rc b/templates/multi-platform-js-runtime/framework/proj.win32/game.rc deleted file mode 100644 index 940b5e7256..0000000000 --- a/templates/multi-platform-js-runtime/framework/proj.win32/game.rc +++ /dev/null @@ -1,213 +0,0 @@ -// Microsoft Visual C++ generated resource script. -// -#include "resource.h" - -#define APSTUDIO_READONLY_SYMBOLS -///////////////////////////////////////////////////////////////////////////// -// -// Generated from the TEXTINCLUDE 2 resource. -// -#include "afxres.h" - -///////////////////////////////////////////////////////////////////////////// -#undef APSTUDIO_READONLY_SYMBOLS - -///////////////////////////////////////////////////////////////////////////// -// Chinese (Simplified, PRC) resources - -#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_CHS) -LANGUAGE LANG_CHINESE, SUBLANG_CHINESE_SIMPLIFIED -#pragma code_page(936) - -#ifdef APSTUDIO_INVOKED -///////////////////////////////////////////////////////////////////////////// -// -// TEXTINCLUDE -// - -2 TEXTINCLUDE -BEGIN - "#include ""afxres.h""\r\n" - "\0" -END - -3 TEXTINCLUDE -BEGIN - "\r\n" - "\0" -END - -#endif // APSTUDIO_INVOKED - - -///////////////////////////////////////////////////////////////////////////// -// -// Menu -// - -IDR_MENU_COCOS MENU -BEGIN - POPUP "&File" - BEGIN - MENUITEM SEPARATOR - MENUITEM "E&xit", ID_FILE_EXIT - END - POPUP "&View" - BEGIN - MENUITEM SEPARATOR - MENUITEM "&Portrait", ID_VIEW_PORTRAIT - MENUITEM "&Landscape", ID_VIEW_LANDSCAPE - MENUITEM SEPARATOR - MENUITEM "&Custom", ID_VIEW_CUSTOM - END - POPUP "&Control" - BEGIN - MENUITEM "Reload", ID_CONTROL_RELOAD - END - POPUP "&Help" - BEGIN - MENUITEM "&About ...", ID_HELP_ABOUT - END -END - - -///////////////////////////////////////////////////////////////////////////// -// -// Dialog -// - -IDD_DIALOG_ABOUT DIALOGEX 0, 0, 243, 94 -STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU -CAPTION "About Simulator" -FONT 8, "MS Shell Dlg", 400, 0, 0x1 -BEGIN - DEFPUSHBUTTON "OK",IDOK,173,69,63,18 - LTEXT "Cocos2d-x-Simulator",IDC_STATIC,29,17,169,25 -END - -IDD_DIALOG_VIEWCUSTOM DIALOGEX 0, 0, 179, 98 -STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU -CAPTION "Custom" -FONT 8, "MS Shell Dlg", 400, 0, 0x1 -BEGIN - DEFPUSHBUTTON "OK",IDOK,47,77,50,14 - PUSHBUTTON "Cancel",IDCANCEL,104,77,50,14 - LTEXT "Width£º",IDC_STATIC,15,14,30,8 - LTEXT "Height£º",IDC_STATIC,15,36,36,12 - EDITTEXT IDC_EDIT_WIDTH,60,15,89,14,ES_AUTOHSCROLL - EDITTEXT IDC_EDIT_HEIGHT,62,36,87,14,ES_AUTOHSCROLL -END - - -///////////////////////////////////////////////////////////////////////////// -// -// DESIGNINFO -// - -#ifdef APSTUDIO_INVOKED -GUIDELINES DESIGNINFO -BEGIN - IDD_DIALOG_ABOUT, DIALOG - BEGIN - LEFTMARGIN, 7 - RIGHTMARGIN, 236 - TOPMARGIN, 7 - BOTTOMMARGIN, 87 - END - - IDD_DIALOG_VIEWCUSTOM, DIALOG - BEGIN - LEFTMARGIN, 7 - RIGHTMARGIN, 172 - TOPMARGIN, 7 - BOTTOMMARGIN, 91 - END -END -#endif // APSTUDIO_INVOKED - -#endif // Chinese (Simplified, PRC) resources -///////////////////////////////////////////////////////////////////////////// - - -///////////////////////////////////////////////////////////////////////////// -// English (United States) resources - -#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) -LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US -#pragma code_page(1252) - -#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. -GLFW_ICON ICON "res\\game.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 "FileDescription", "game Module" - VALUE "FileVersion", "1, 0, 0, 1" - VALUE "InternalName", "game" - VALUE "LegalCopyright", "Copyright " - VALUE "OriginalFilename", "game.exe" - VALUE "ProductName", "game Module" - VALUE "ProductVersion", "1, 0, 0, 1" - END - END - BLOCK "VarFileInfo" - BEGIN - VALUE "Translation", 0x409, 1200 - END -END - -#endif // English (United States) resources -///////////////////////////////////////////////////////////////////////////// - - - -#ifndef APSTUDIO_INVOKED -///////////////////////////////////////////////////////////////////////////// -// -// Generated from the TEXTINCLUDE 3 resource. -// - - -///////////////////////////////////////////////////////////////////////////// -#endif // not APSTUDIO_INVOKED - diff --git a/templates/multi-platform-js-runtime/framework/proj.win32/main.cpp b/templates/multi-platform-js-runtime/framework/proj.win32/main.cpp deleted file mode 100644 index 156f155906..0000000000 --- a/templates/multi-platform-js-runtime/framework/proj.win32/main.cpp +++ /dev/null @@ -1,59 +0,0 @@ -#include "main.h" -#include "AppDelegate.h" -#include "SimulatorWindow.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; - createSimulator("HelloJavascript",960,640); - int ret = Application::getInstance()->run(); - -#ifdef USE_WIN32_CONSOLE - FreeConsole(); -#endif - - return ret; -} - -std::string getCurAppPath(void) -{ - TCHAR szAppDir[MAX_PATH]={0}; - if (!GetModuleFileName(NULL,szAppDir,MAX_PATH)) - return ""; - - int nEnd=0; - for (int i=0;szAppDir[i];i++) - { - if(szAppDir[i]=='\\') - nEnd = i; - } - szAppDir[nEnd] = 0; - int iLen = 2*wcslen(szAppDir); - char* chRtn = new char[iLen+1]; - wcstombs(chRtn,szAppDir,iLen+1); - std::string strPath = chRtn; - delete [] chRtn; - chRtn=NULL; - char fuldir[MAX_PATH]={0}; - _fullpath(fuldir,strPath.c_str(),MAX_PATH); - return fuldir; -} \ No newline at end of file diff --git a/templates/multi-platform-js-runtime/framework/proj.win32/main.h b/templates/multi-platform-js-runtime/framework/proj.win32/main.h deleted file mode 100644 index e29aeedb3a..0000000000 --- a/templates/multi-platform-js-runtime/framework/proj.win32/main.h +++ /dev/null @@ -1,12 +0,0 @@ -#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/templates/multi-platform-js-runtime/framework/proj.win32/res/game.ico b/templates/multi-platform-js-runtime/framework/proj.win32/res/game.ico deleted file mode 100644 index feaf932a74..0000000000 Binary files a/templates/multi-platform-js-runtime/framework/proj.win32/res/game.ico and /dev/null differ diff --git a/templates/multi-platform-js-runtime/framework/proj.win32/resource.h b/templates/multi-platform-js-runtime/framework/proj.win32/resource.h deleted file mode 100644 index cffaa92fea..0000000000 --- a/templates/multi-platform-js-runtime/framework/proj.win32/resource.h +++ /dev/null @@ -1,36 +0,0 @@ -//{{NO_DEPENDENCIES}} -// Microsoft Visual C++ generated include file. -// Used by game.rc -// -#define IDS_PROJNAME 100 -#define IDR_TESTJS 100 -#define IDR_MENU_COCOS 201 -#define IDD_DIALOG1 202 -#define IDD_DIALOG_ABOUT 202 -#define IDD_DIALOG_VIEWCUSTOM 203 -#define IDC_EDIT_WIDTH 1000 -#define IDC_EDIT2 1001 -#define IDC_EDIT_HEIGHT 1001 -#define ID_VIEW_SIZE 30001 -#define ID_FILE_NEW_WINDOW 32771 -#define ID_VIEW_PORTRAIT 32775 -#define ID_VIEW_LANDSCAPE 32776 -#define ID_VIEW_CUSTOM 32777 -#define ID_HELP_ABOUT 32778 -#define ID_FILE_EXIT 32779 -#define ID_Menu 32780 -#define ID_Menu32781 32781 -#define ID_TEST_RESET 32782 -#define ID_CONTROL 32783 -#define ID_CONTROL_RELOAD 32784 - -// Next default values for new objects -// -#ifdef APSTUDIO_INVOKED -#ifndef APSTUDIO_READONLY_SYMBOLS -#define _APS_NEXT_RESOURCE_VALUE 204 -#define _APS_NEXT_COMMAND_VALUE 32785 -#define _APS_NEXT_CONTROL_VALUE 1001 -#define _APS_NEXT_SYMED_VALUE 101 -#endif -#endif diff --git a/templates/multi-platform-js-runtime/res/HelloWorld.png.REMOVED.git-id b/templates/multi-platform-js-runtime/res/HelloWorld.png.REMOVED.git-id deleted file mode 100644 index f02d84fd8f..0000000000 --- a/templates/multi-platform-js-runtime/res/HelloWorld.png.REMOVED.git-id +++ /dev/null @@ -1 +0,0 @@ -5fe89fb5bd58cedf13b0363f97b20e3ea7ff255d \ No newline at end of file diff --git a/templates/multi-platform-js-runtime/runtime/CocosPlayer/android/CocosPlayer.apk.REMOVED.git-id b/templates/multi-platform-js-runtime/runtime/CocosPlayer/android/CocosPlayer.apk.REMOVED.git-id deleted file mode 100644 index 41216550dc..0000000000 --- a/templates/multi-platform-js-runtime/runtime/CocosPlayer/android/CocosPlayer.apk.REMOVED.git-id +++ /dev/null @@ -1 +0,0 @@ -4f7ef04fa911634cbb3007282a66eef5ed548f79 \ No newline at end of file diff --git a/templates/multi-platform-js-runtime/runtime/CocosPlayer/ios/ios-sim b/templates/multi-platform-js-runtime/runtime/CocosPlayer/ios/ios-sim deleted file mode 100644 index 4f997e03a6..0000000000 Binary files a/templates/multi-platform-js-runtime/runtime/CocosPlayer/ios/ios-sim and /dev/null differ diff --git a/templates/multi-platform-js-runtime/src/app.js b/templates/multi-platform-js-runtime/src/app.js deleted file mode 100644 index e58554be94..0000000000 --- a/templates/multi-platform-js-runtime/src/app.js +++ /dev/null @@ -1,74 +0,0 @@ - -var MyLayer = cc.Layer.extend({ - isMouseDown:false, - helloImg:null, - helloLabel:null, - circle:null, - sprite:null, - - ctor:function() { - this._super(); - cc.associateWithNative( this, cc.Layer ); - }, - - init:function () { - - ////////////////////////////// - // 1. super init first - this._super(); - - ///////////////////////////// - // 2. add a menu item with "X" image, which is clicked to quit the program - // you may modify it. - // ask director the window size - var size = cc.Director.getInstance().getWinSize(); - - // add a "close" icon to exit the progress. it's an autorelease object - var closeItem = cc.MenuItemImage.create( - "res/CloseNormal.png", - "res/CloseSelected.png", - function () { - cc.log("close button was clicked."); - },this); - closeItem.setAnchorPoint(cc.p(0.5, 0.5)); - - var menu = cc.Menu.create(closeItem); - menu.setPosition(cc.p(0, 0)); - this.addChild(menu, 1); - closeItem.setPosition(cc.p(size.width - 20, 20)); - - ///////////////////////////// - // 3. add your codes below... - // add a label shows "Hello World" - // create and initialize a label - this.helloLabel = cc.LabelTTF.create("Hello World", "Arial", 38); - // position the label on the center of the screen - this.helloLabel.setPosition(cc.p(size.width / 2, size.height - 40)); - // add the label as a child to this layer - this.addChild(this.helloLabel, 5); - - // add "Helloworld" splash screen" - this.sprite = cc.Sprite.create("res/HelloWorld.png"); - this.sprite.setAnchorPoint(cc.p(0.5, 0.5)); - this.sprite.setPosition(cc.p(size.width / 2, size.height / 2)); - - this.addChild(this.sprite, 0); - - return true; - } - -}); - -var MyScene = cc.Scene.extend({ - ctor:function() { - this._super(); - cc.associateWithNative( this, cc.Scene ); - }, - - onEnter:function () { - this._super(); - var layer = new MyLayer(); - this.addChild(layer); - layer.init(); - } -}); diff --git a/templates/multi-platform-js-runtime/src/resource.js b/templates/multi-platform-js-runtime/src/resource.js deleted file mode 100644 index 145f7ac6ab..0000000000 --- a/templates/multi-platform-js-runtime/src/resource.js +++ /dev/null @@ -1,20 +0,0 @@ -var s_HelloWorld = "res/HelloWorld.png"; -var s_CloseNormal = "res/CloseNormal.png"; -var s_CloseSelected = "res/CloseSelected.png"; - -var g_ressources = [ - //image - {src:s_HelloWorld}, - {src:s_CloseNormal}, - {src:s_CloseSelected} - - //plist - - //fnt - - //tmx - - //bgm - - //effect -]; \ No newline at end of file diff --git a/templates/multi-platform-js/CMakeLists.txt b/templates/multi-platform-js/CMakeLists.txt deleted file mode 100644 index 1ce964b4d7..0000000000 --- a/templates/multi-platform-js/CMakeLists.txt +++ /dev/null @@ -1,177 +0,0 @@ -cmake_minimum_required(VERSION 2.6) - -set(APP_NAME HelloJavascript) -project (${APP_NAME}) - -include(cocos2d/build/BuildHelpers.CMakeLists.txt) - -option(USE_CHIPMUNK "Use chipmunk for physics library" ON) -option(USE_BOX2D "Use box2d for physics library" OFF) -option(DEBUG_MODE "Debug or release?" ON) - -if(DEBUG_MODE) - set(CMAKE_BUILD_TYPE DEBUG) -else(DEBUG_MODE) - set(CMAKE_BUILD_TYPE RELEASE) -endif(DEBUG_MODE) - -set(CMAKE_C_FLAGS_DEBUG "-g -Wall -DCOCOS2D_DEBUG=1") -set(CMAKE_CXX_FLAGS_DEBUG ${CMAKE_C_FLAGS_DEBUG}) - -set(CMAKE_C_FLAGS ${CMAKE_C_FLAGS} "-std=c99") -set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} "-std=c++11") - -if(USE_CHIPMUNK) - message("Using chipmunk ...") - add_definitions(-DLINUX -DCC_ENABLE_CHIPMUNK_INTEGRATION=1) -elseif(USE_BOX2D) - message("Using box2d ...") - add_definitions(-DLINUX -DCC_ENABLE_BOX2D_INTEGRATION=1) -else(USE_CHIPMUNK) - message(FATAL_ERROR "Must choose a physics library.") -endif(USE_CHIPMUNK) - -# architecture -if ( CMAKE_SIZEOF_VOID_P EQUAL 8 ) -set(ARCH_DIR "64-bit") -else() -set(ARCH_DIR "32-bit") -endif() - - -set(GAME_SRC - proj.linux/main.cpp - Classes/AppDelegate.cpp -) - -set(COCOS2D_ROOT ${CMAKE_SOURCE_DIR}/cocos2d) - -include_directories( - /usr/local/include/GLFW - Classes - ${COCOS2D_ROOT}/cocos/scripting/auto-generated/js-bindings - ${COCOS2D_ROOT}/cocos/scripting/javascript/bindings - ${COCOS2D_ROOT} - ${COCOS2D_ROOT}/cocos - ${COCOS2D_ROOT}/cocos/audio/include - ${COCOS2D_ROOT}/cocos/2d - ${COCOS2D_ROOT}/cocos/2d/renderer - ${COCOS2D_ROOT}/cocos/2d/platform - ${COCOS2D_ROOT}/cocos/2d/platform/desktop - ${COCOS2D_ROOT}/cocos/2d/platform/linux - ${COCOS2D_ROOT}/cocos/base - ${COCOS2D_ROOT}/cocos/physics - ${COCOS2D_ROOT}/cocos/editor-support - ${COCOS2D_ROOT}/cocos/math/kazmath/include - ${COCOS2D_ROOT}/extensions - ${COCOS2D_ROOT}/external - ${COCOS2D_ROOT}/external/edtaa3func - ${COCOS2D_ROOT}/external/jpeg/include/linux - ${COCOS2D_ROOT}/external/tiff/include/linux - ${COCOS2D_ROOT}/external/webp/include/linux - ${COCOS2D_ROOT}/external/tinyxml2 - ${COCOS2D_ROOT}/external/unzip - ${COCOS2D_ROOT}/external/chipmunk/include/chipmunk - ${COCOS2D_ROOT}/external/freetype2/include/linux - ${COCOS2D_ROOT}/external/websockets/include/linux - ${COCOS2D_ROOT}/external/spidermonkey/include/linux - ${COCOS2D_ROOT}/external/linux-specific/fmod/include/${ARCH_DIR} -) - -link_directories( - /usr/local/lib - ${COCOS2D_ROOT}/external/jpeg/prebuilt/linux/${ARCH_DIR} - ${COCOS2D_ROOT}/external/tiff/prebuilt/linux/${ARCH_DIR} - ${COCOS2D_ROOT}/external/webp/prebuilt/linux/${ARCH_DIR} - ${COCOS2D_ROOT}/external/freetype2/prebuilt/linux/${ARCH_DIR} - ${COCOS2D_ROOT}/external/websockets/prebuilt/linux/${ARCH_DIR} - ${COCOS2D_ROOT}/external/spidermonkey/prebuilt/linux/${ARCH_DIR} - ${COCOS2D_ROOT}/external/linux-specific/fmod/prebuilt/${ARCH_DIR} -) - -# kazmath -add_subdirectory(${COCOS2D_ROOT}/cocos/math/kazmath) - -# chipmunk library -add_subdirectory(${COCOS2D_ROOT}/external/chipmunk/src) - -# box2d library -add_subdirectory(${COCOS2D_ROOT}/external/Box2D) - -# unzip library -add_subdirectory(${COCOS2D_ROOT}/external/unzip) - -# tinyxml2 library -add_subdirectory(${COCOS2D_ROOT}/external/tinyxml2) - -# audio -add_subdirectory(${COCOS2D_ROOT}/cocos/audio) - -# cocos base library -add_subdirectory(${COCOS2D_ROOT}/cocos/base) - -# cocos 2d library -add_subdirectory(${COCOS2D_ROOT}/cocos/2d) - -# cocos storage -add_subdirectory(${COCOS2D_ROOT}/cocos/storage) - -# gui -add_subdirectory(${COCOS2D_ROOT}/cocos/gui) - -# network -add_subdirectory(${COCOS2D_ROOT}/cocos/network) - -# extensions -add_subdirectory(${COCOS2D_ROOT}/extensions) - -## Editor Support - -# spine -add_subdirectory(${COCOS2D_ROOT}/cocos/editor-support/spine) - -# cocosbuilder -add_subdirectory(${COCOS2D_ROOT}/cocos/editor-support/cocosbuilder) - -# cocostudio -add_subdirectory(${COCOS2D_ROOT}/cocos/editor-support/cocostudio) - -## Scripting -# jsbinding -add_subdirectory(${COCOS2D_ROOT}/cocos/scripting/javascript) - -# add the executable -add_executable(${APP_NAME} - ${GAME_SRC} -) - -if ( CMAKE_SIZEOF_VOID_P EQUAL 8 ) -set(FMOD_LIB "fmodex64") -else() -set(FMOD_LIB "fmodex") -endif() - -target_link_libraries(${APP_NAME} - jsbinding - gui - network - storage - spine - cocostudio - cocosbuilder - extensions - audio - cocos2d - ) - -set(APP_BIN_DIR "${CMAKE_BINARY_DIR}/bin") - -set_target_properties(${APP_NAME} PROPERTIES - RUNTIME_OUTPUT_DIRECTORY "${APP_BIN_DIR}") - -pre_build(${APP_NAME} - COMMAND ${CMAKE_COMMAND} -E remove_directory ${APP_BIN_DIR}/Resources - COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_SOURCE_DIR}/Resources ${APP_BIN_DIR}/Resources - COMMAND ${CMAKE_COMMAND} -E copy_directory ${COCOS2D_ROOT}/cocos/scripting/javascript/script ${APP_BIN_DIR}/Resources - ) - diff --git a/templates/multi-platform-js/Classes/AppDelegate.cpp b/templates/multi-platform-js/Classes/AppDelegate.cpp deleted file mode 100644 index 53be703216..0000000000 --- a/templates/multi-platform-js/Classes/AppDelegate.cpp +++ /dev/null @@ -1,73 +0,0 @@ -#include "AppDelegate.h" - -#include "cocos2d.h" -#include "SimpleAudioEngine.h" -#include "ScriptingCore.h" -#include "jsb_cocos2dx_auto.hpp" -#include "jsb_cocos2dx_extension_auto.hpp" -#include "cocos2d_specifics.hpp" -#include "extension/jsb_cocos2dx_extension_manual.h" -#include "chipmunk/js_bindings_chipmunk_registration.h" -#include "jsb_opengl_registration.h" -#include "localstorage/js_bindings_system_registration.h" - -USING_NS_CC; -using namespace CocosDenshion; - -AppDelegate::AppDelegate() -{ -} - -AppDelegate::~AppDelegate() -{ - ScriptEngineManager::destroyInstance(); -} - -bool AppDelegate::applicationDidFinishLaunching() -{ - // initialize director - auto director = Director::getInstance(); - auto glview = director->getOpenGLView(); - if(!glview) { - glview = GLView::create("My Game"); - director->setOpenGLView(glview); - } - - // turn on display FPS - director->setDisplayStats(true); - - // 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_all_cocos2dx_extension); - sc->addRegisterCallback(register_cocos2dx_js_extensions); - sc->addRegisterCallback(register_all_cocos2dx_extension_manual); - sc->addRegisterCallback(jsb_register_chipmunk); - sc->addRegisterCallback(JSB_register_opengl); - sc->addRegisterCallback(jsb_register_system); - sc->start(); - - ScriptEngineProtocol *engine = ScriptingCore::getInstance(); - ScriptEngineManager::getInstance()->setScriptEngine(engine); - ScriptingCore::getInstance()->runScript("cocos2d-jsb.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() -{ - Director::getInstance()->stopAnimation(); - SimpleAudioEngine::getInstance()->pauseBackgroundMusic(); - SimpleAudioEngine::getInstance()->pauseAllEffects(); -} - -// this function will be called when the app is active again -void AppDelegate::applicationWillEnterForeground() -{ - Director::getInstance()->startAnimation(); - SimpleAudioEngine::getInstance()->resumeBackgroundMusic(); - SimpleAudioEngine::getInstance()->resumeAllEffects(); -} diff --git a/templates/multi-platform-js/Classes/AppDelegate.h b/templates/multi-platform-js/Classes/AppDelegate.h deleted file mode 100644 index 9a158eae61..0000000000 --- a/templates/multi-platform-js/Classes/AppDelegate.h +++ /dev/null @@ -1,45 +0,0 @@ -// -// GCTestAppDelegate.h -// GCTest -// -// Created by Rohan Kuruvilla on 06/08/2012. -// Copyright __MyCompanyName__ 2012. All rights reserved. -// - -#ifndef _APP_DELEGATE_H_ -#define _APP_DELEGATE_H_ - -#include "cocos2d.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(); - - /** - @brief Implement Director and Scene init code here. - @return true Initialize success, app continue. - @return false Initialize failed, app terminate. - */ - virtual bool applicationDidFinishLaunching(); - - /** - @brief The function be called when the application enter background - @param the pointer of the application - */ - virtual void applicationDidEnterBackground(); - - /** - @brief The function be called when the application enter foreground - @param the pointer of the application - */ - virtual void applicationWillEnterForeground(); -}; - -#endif // _APP_DELEGATE_H_ - diff --git a/templates/multi-platform-js/Resources/cocos2d-jsb.js b/templates/multi-platform-js/Resources/cocos2d-jsb.js deleted file mode 100644 index c2bc0ff739..0000000000 --- a/templates/multi-platform-js/Resources/cocos2d-jsb.js +++ /dev/null @@ -1,53 +0,0 @@ -/**************************************************************************** - 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. - ****************************************************************************/ - -// boot code needed for cocos2d + JS bindings. -// Not needed by cocos2d-html5 - -require("jsb.js"); - -var appFiles = [ - 'src/resource.js', - 'src/myApp.js' -]; - -cc.dumpConfig(); - -for( var i=0; i < appFiles.length; i++) { - require( appFiles[i] ); -} - -var director = cc.Director.getInstance(); -director.setDisplayStats(true); - -// set FPS. the default value is 1.0/60 if you don't call this -director.setAnimationInterval(1.0 / 60); - -// create a scene. it's an autorelease object -var myScene = new MyScene(); - -// run -director.runWithScene(myScene); - diff --git a/templates/multi-platform-js/Resources/res/HelloWorld.png.REMOVED.git-id b/templates/multi-platform-js/Resources/res/HelloWorld.png.REMOVED.git-id deleted file mode 100644 index f02d84fd8f..0000000000 --- a/templates/multi-platform-js/Resources/res/HelloWorld.png.REMOVED.git-id +++ /dev/null @@ -1 +0,0 @@ -5fe89fb5bd58cedf13b0363f97b20e3ea7ff255d \ No newline at end of file diff --git a/templates/multi-platform-js/Resources/src/myApp.js b/templates/multi-platform-js/Resources/src/myApp.js deleted file mode 100644 index e3831081b7..0000000000 --- a/templates/multi-platform-js/Resources/src/myApp.js +++ /dev/null @@ -1,99 +0,0 @@ -/**************************************************************************** - 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. - ****************************************************************************/ - -var MyLayer = cc.Layer.extend({ - isMouseDown:false, - helloImg:null, - helloLabel:null, - circle:null, - sprite:null, - - ctor:function() { - this._super(); - cc.associateWithNative( this, cc.Layer ); - }, - - init:function () { - - ////////////////////////////// - // 1. super init first - this._super(); - - ///////////////////////////// - // 2. add a menu item with "X" image, which is clicked to quit the program - // you may modify it. - // ask director the window size - var size = cc.Director.getInstance().getWinSize(); - - // add a "close" icon to exit the progress. it's an autorelease object - var closeItem = cc.MenuItemImage.create( - "res/CloseNormal.png", - "res/CloseSelected.png", - function () { - cc.log("close button was clicked."); - },this); - closeItem.setAnchorPoint(cc.p(0.5, 0.5)); - - var menu = cc.Menu.create(closeItem); - menu.setPosition(cc.p(0, 0)); - this.addChild(menu, 1); - closeItem.setPosition(cc.p(size.width - 20, 20)); - - ///////////////////////////// - // 3. add your codes below... - // add a label shows "Hello World" - // create and initialize a label - this.helloLabel = cc.LabelTTF.create("Hello World", "Arial", 38); - // position the label on the center of the screen - this.helloLabel.setPosition(cc.p(size.width / 2, size.height - 40)); - // add the label as a child to this layer - this.addChild(this.helloLabel, 5); - - // add "Helloworld" splash screen" - this.sprite = cc.Sprite.create("res/HelloWorld.png"); - this.sprite.setAnchorPoint(cc.p(0.5, 0.5)); - this.sprite.setPosition(cc.p(size.width / 2, size.height / 2)); - - this.addChild(this.sprite, 0); - - return true; - } - -}); - -var MyScene = cc.Scene.extend({ - ctor:function() { - this._super(); - cc.associateWithNative( this, cc.Scene ); - }, - - onEnter:function () { - this._super(); - var layer = new MyLayer(); - this.addChild(layer); - layer.init(); - } -}); diff --git a/templates/multi-platform-js/Resources/src/resource.js b/templates/multi-platform-js/Resources/src/resource.js deleted file mode 100644 index 5bfb37a53b..0000000000 --- a/templates/multi-platform-js/Resources/src/resource.js +++ /dev/null @@ -1,20 +0,0 @@ -var s_HelloWorld = "res/HelloWorld.png"; -var s_CloseNormal = "res/CloseNormal.png"; -var s_CloseSelected = "res/CloseSelected.png"; - -var g_resources = [ - //image - {src:s_HelloWorld}, - {src:s_CloseNormal}, - {src:s_CloseSelected} - - //plist - - //fnt - - //tmx - - //bgm - - //effect -]; diff --git a/templates/multi-platform-js/proj.android/.classpath b/templates/multi-platform-js/proj.android/.classpath deleted file mode 100644 index 0b08408342..0000000000 --- a/templates/multi-platform-js/proj.android/.classpath +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/templates/multi-platform-js/proj.android/.project b/templates/multi-platform-js/proj.android/.project deleted file mode 100644 index df461895c5..0000000000 --- a/templates/multi-platform-js/proj.android/.project +++ /dev/null @@ -1,65 +0,0 @@ - - - HelloJavascript - - - - - - 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 - - - - Classes - 2 - COCOS2DX/projects/HelloJavascript/Classes - - - cocos2dx - 2 - COCOS2DX/cocos2dx - - - extensions - 2 - COCOS2DX/extensions - - - scripting - 2 - COCOS2DX/scripting - - - diff --git a/templates/multi-platform-js/proj.android/AndroidManifest.xml b/templates/multi-platform-js/proj.android/AndroidManifest.xml deleted file mode 100644 index 3c3045b22c..0000000000 --- a/templates/multi-platform-js/proj.android/AndroidManifest.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - diff --git a/templates/multi-platform-js/proj.android/README.md b/templates/multi-platform-js/proj.android/README.md deleted file mode 100644 index 312835611a..0000000000 --- a/templates/multi-platform-js/proj.android/README.md +++ /dev/null @@ -1,87 +0,0 @@ -## Prerequisites: - -* Android NDK -* Android SDK **OR** Eclipse ADT Bundle -* Android AVD target installed - -## Building project - -There are two ways of building Android projects. - -1. Eclipse -2. Command Line - -### Import Project in Eclipse - -#### Features: - -1. Complete workflow from Eclipse, including: - * Build C++. - * Clean C++. - * Build and Run whole project. - * Logcat view. - * Debug Java code. - * Javascript editor. - * Project management. -2. True C++ editing, including: - * Code completion. - * Jump to definition. - * Refactoring tools etc. - * Quick open C++ files. - - -#### Setup Eclipse Environment (only once) - - -**NOTE:** This step needs to be done only once to setup the Eclipse environment for cocos2d-x projects. Skip this section if you've done this before. - -1. Download Eclipse ADT bundle from [Google ADT homepage](http://developer.android.com/sdk/index.html) - - **OR** - - Install Eclipse with Java. Add ADT and CDT plugins. - -2. Only for Windows - 1. Install [Cygwin](http://www.cygwin.com/) with make (select make package from the list during the install). - 2. Add `Cygwin\bin` directory to system PATH variable. - 3. Add this line `none /cygdrive cygdrive binary,noacl,posix=0,user 0 0` to `Cygwin\etc\fstab` file. - -3. Set up Variables: - 1. Path Variable `COCOS2DX`: - * Eclipse->Preferences->General->Workspace->**Linked Resources** - * Click **New** button to add a Path Variable `COCOS2DX` pointing to the root cocos2d-x directory. - ![Example](https://lh5.googleusercontent.com/-oPpk9kg3e5w/UUOYlq8n7aI/AAAAAAAAsdQ/zLA4eghBH9U/s400/cocos2d-x-eclipse-vars.png) - - 2. C/C++ Environment Variable `NDK_ROOT`: - * Eclipse->Preferences->C/C++->Build->**Environment**. - * Click **Add** button and add a new variable `NDK_ROOT` pointing to the root NDK directory. - ![Example](https://lh3.googleusercontent.com/-AVcY8IAT0_g/UUOYltoRobI/AAAAAAAAsdM/22D2J9u3sig/s400/cocos2d-x-eclipse-ndk.png) - * Only for Windows: Add new variables **CYGWIN** with value `nodosfilewarning` and **SHELLOPTS** with value `igncr` - -4. Import libcocos2dx library project: - 1. File->New->Project->Android Project From Existing Code. - 2. Click **Browse** button and open `cocos2d-x/cocos2dx/platform/android/java` directory. - 3. Click **Finish** to add project. - -#### Adding and running from Eclipse - -![Example](https://lh3.googleusercontent.com/-SLBOu6e3QbE/UUOcOXYaGqI/AAAAAAAAsdo/tYBY2SylOSM/s288/cocos2d-x-eclipse-project-from-code.png) ![Import](https://lh5.googleusercontent.com/-XzC9Pn65USc/UUOcOTAwizI/AAAAAAAAsdk/4b6YM-oim9Y/s400/cocos2d-x-eclipse-import-project.png) - -1. File->New->Project->Android Project From Existing Code -2. **Browse** to your project directory. eg: `cocos2d-x/cocos2dx/samples/Cpp/TestCpp/proj.android/` -3. Add the project -4. Click **Run** or **Debug** to compile C++ followed by Java and to run on connected device or emulator. - - -### Running project from Command Line - - $ cd cocos2d-x/samples/Cpp/TestCpp/proj.android/ - $ export NDK_ROOT=/path/to/ndk - $ ./build_native.sh - $ ant debug install - -If the last command results in sdk.dir missing error then do: - - $ android list target - $ android update project -p . -t (id from step 6) - $ android update project -p cocos2d-x/cocos2dx/platform/android/java/ -t (id from step 6) diff --git a/templates/multi-platform-js/proj.android/ant.properties b/templates/multi-platform-js/proj.android/ant.properties deleted file mode 100644 index f8af38bfb4..0000000000 --- a/templates/multi-platform-js/proj.android/ant.properties +++ /dev/null @@ -1 +0,0 @@ -aapt.ignore.assets="!*.pvr.gz:!*.gz:!.svn:!.git:.*:_*:!CVS:!thumbs.db:!picasa.ini:!*.scc:*~" diff --git a/templates/multi-platform-js/proj.android/build.xml b/templates/multi-platform-js/proj.android/build.xml deleted file mode 100644 index f02386c506..0000000000 --- a/templates/multi-platform-js/proj.android/build.xml +++ /dev/null @@ -1,92 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/templates/multi-platform-js/proj.android/build_native.py b/templates/multi-platform-js/proj.android/build_native.py deleted file mode 100755 index 561a0e8981..0000000000 --- a/templates/multi-platform-js/proj.android/build_native.py +++ /dev/null @@ -1,170 +0,0 @@ -#!/usr/bin/python -# build_native.py -# Build native codes - - -import sys -import os, os.path -import shutil -from optparse import OptionParser - -def get_num_of_cpu(): - ''' The build process can be accelerated by running multiple concurrent job processes using the -j-option. - ''' - try: - platform = sys.platform - if platform == 'win32': - if 'NUMBER_OF_PROCESSORS' in os.environ: - return int(os.environ['NUMBER_OF_PROCESSORS']) - else: - return 1 - else: - from numpy.distutils import cpuinfo - return cpuinfo.cpu._getNCPUs() - except Exception: - print "Can't know cpuinfo, use default 1 cpu" - return 1 - -def check_environment_variables_sdk(): - ''' Checking the environment ANDROID_SDK_ROOT, which will be used for building - ''' - - try: - SDK_ROOT = os.environ['ANDROID_SDK_ROOT'] - except Exception: - print "ANDROID_SDK_ROOT not defined. Please define ANDROID_SDK_ROOT in your environment" - sys.exit(1) - - return SDK_ROOT - -def check_environment_variables(): - ''' Checking the environment NDK_ROOT, which will be used for building - ''' - - try: - NDK_ROOT = os.environ['NDK_ROOT'] - except Exception: - print "NDK_ROOT not defined. Please define NDK_ROOT in your environment" - sys.exit(1) - - return NDK_ROOT - -def select_toolchain_version(): - '''Because ndk-r8e uses gcc4.6 as default. gcc4.6 doesn't support c++11. So we should select gcc4.7 when - using ndk-r8e. But gcc4.7 is removed in ndk-r9, so we should determine whether gcc4.7 exist. - Conclution: - ndk-r8e -> use gcc4.7 - ndk-r9 -> use gcc4.8 - ''' - - ndk_root = check_environment_variables() - if os.path.isdir(os.path.join(ndk_root,"toolchains/arm-linux-androideabi-4.8")): - os.environ['NDK_TOOLCHAIN_VERSION'] = '4.8' - print "The Selected NDK toolchain version was 4.8 !" - elif os.path.isdir(os.path.join(ndk_root,"toolchains/arm-linux-androideabi-4.7")): - os.environ['NDK_TOOLCHAIN_VERSION'] = '4.7' - print "The Selected NDK toolchain version was 4.7 !" - else: - print "Couldn't find the gcc toolchain." - exit(1) - -def do_build(cocos_root, ndk_root, app_android_root,ndk_build_param,sdk_root,android_platform,build_mode): - - ndk_path = os.path.join(ndk_root, "ndk-build") - - # windows should use ";" to seperate module paths - platform = sys.platform - if platform == 'win32': - ndk_module_path = 'NDK_MODULE_PATH=%s;%s/external;%s/cocos' % (cocos_root, cocos_root, cocos_root) - else: - ndk_module_path = 'NDK_MODULE_PATH=%s:%s/external:%s/cocos' % (cocos_root, cocos_root, cocos_root) - - num_of_cpu = get_num_of_cpu() - - if ndk_build_param == None: - command = '%s -j%d -C %s %s' % (ndk_path, num_of_cpu, app_android_root, ndk_module_path) - else: - command = '%s -j%d -C %s %s %s' % (ndk_path, num_of_cpu, app_android_root, ''.join(str(e) for e in ndk_build_param), ndk_module_path) - if os.system(command) != 0: - raise Exception("Build dynamic library for project [ " + app_android_root + " ] fails!") - elif android_platform is not None: - sdk_tool_path = os.path.join(sdk_root, "tools/android") - cocoslib_path = os.path.join(cocos_root, "cocos/2d/platform/android/java") - command = '%s update lib-project -t %s -p %s' % (sdk_tool_path,android_platform,cocoslib_path) - if os.system(command) != 0: - raise Exception("update cocos lib-project [ " + cocoslib_path + " ] fails!") - command = '%s update project -t %s -p %s -s' % (sdk_tool_path,android_platform,app_android_root) - if os.system(command) != 0: - raise Exception("update project [ " + app_android_root + " ] fails!") - buildfile_path = os.path.join(app_android_root, "build.xml") - command = 'ant clean %s -f %s -Dsdk.dir=%s' % (build_mode,buildfile_path,sdk_root) - os.system(command) - -def copy_files(src, dst): - - for item in os.listdir(src): - path = os.path.join(src, item) - # Android can not package the file that ends with ".gz" - if not item.startswith('.') and not item.endswith('.gz') and os.path.isfile(path): - shutil.copy(path, dst) - if os.path.isdir(path): - new_dst = os.path.join(dst, item) - os.mkdir(new_dst) - copy_files(path, new_dst) - -def copy_resources(app_android_root): - - # remove app_android_root/assets if it exists - assets_dir = os.path.join(app_android_root, "assets") - if os.path.isdir(assets_dir): - shutil.rmtree(assets_dir) - - # copy resources - os.mkdir(assets_dir) - resources_dir = os.path.join(app_android_root, "../Resources") - if os.path.isdir(resources_dir): - copy_files(resources_dir, assets_dir) - - # jsb project should copy javascript files and resources(shared with cocos2d-html5) - resources_dir = os.path.join(app_android_root, "../cocos2d/cocos/scripting/javascript/script") - copy_files(resources_dir, assets_dir) - -def build(ndk_build_param,android_platform,build_mode): - - ndk_root = check_environment_variables() - sdk_root = None - select_toolchain_version() - - current_dir = os.path.dirname(os.path.realpath(__file__)) - cocos_root = os.path.join(current_dir, "../cocos2d") - - app_android_root = current_dir - copy_resources(app_android_root) - - if android_platform is not None: - sdk_root = check_environment_variables_sdk() - if android_platform.isdigit(): - android_platform = 'android-'+android_platform - else: - print 'please use vaild android platform' - exit(1) - - if build_mode is None: - build_mode = 'debug' - elif build_mode != 'release': - build_mode = 'debug' - - do_build(cocos_root, ndk_root, app_android_root,ndk_build_param,sdk_root,android_platform,build_mode) - -# -------------- main -------------- -if __name__ == '__main__': - - parser = OptionParser() - parser.add_option("-n", "--ndk", dest="ndk_build_param", help='parameter for ndk-build') - parser.add_option("-p", "--platform", dest="android_platform", - help='parameter for android-update.Without the parameter,the script just build dynamic library for project. Valid android-platform are:[10|11|12|13|14|15|16|17|18|19]') - parser.add_option("-b", "--build", dest="build_mode", - help='the build mode for java project,debug[default] or release.Get more information,please refer to http://developer.android.com/tools/building/building-cmdline.html') - (opts, args) = parser.parse_args() - - build(opts.ndk_build_param,opts.android_platform,opts.build_mode) diff --git a/templates/multi-platform-js/proj.android/jni/Android.mk b/templates/multi-platform-js/proj.android/jni/Android.mk deleted file mode 100644 index 48746a0ffc..0000000000 --- a/templates/multi-platform-js/proj.android/jni/Android.mk +++ /dev/null @@ -1,27 +0,0 @@ -LOCAL_PATH := $(call my-dir) - -include $(CLEAR_VARS) - -LOCAL_MODULE := cocos2djs_shared - -LOCAL_MODULE_FILENAME := libcocos2djs - -LOCAL_SRC_FILES := hellojavascript/main.cpp \ - ../../Classes/AppDelegate.cpp - -LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../Classes - -LOCAL_WHOLE_STATIC_LIBRARIES := cocos_jsb_static -LOCAL_WHOLE_STATIC_LIBRARIES += jsb_extension_static -LOCAL_WHOLE_STATIC_LIBRARIES += jsb_chipmunk_static -LOCAL_WHOLE_STATIC_LIBRARIES += jsb_localstorage_static - -LOCAL_EXPORT_CFLAGS := -DCOCOS2D_DEBUG=2 -DCOCOS2D_JAVASCRIPT - -include $(BUILD_SHARED_LIBRARY) - - -$(call import-module,scripting/javascript/bindings) -$(call import-module,scripting/javascript/bindings/extension) -$(call import-module,scripting/javascript/bindings/chipmunk) -$(call import-module,scripting/javascript/bindings/localstorage) \ No newline at end of file diff --git a/templates/multi-platform-js/proj.android/jni/Application.mk b/templates/multi-platform-js/proj.android/jni/Application.mk deleted file mode 100644 index 76c0f20fca..0000000000 --- a/templates/multi-platform-js/proj.android/jni/Application.mk +++ /dev/null @@ -1,4 +0,0 @@ -APP_STL := gnustl_static -APP_CPPFLAGS := -frtti -APP_CPPFLAGS += -DCOCOS2D_DEBUG=1 -DCC_ENABLE_CHIPMUNK_INTEGRATION=1 -std=c++11 -fsigned-char - diff --git a/templates/multi-platform-js/proj.android/jni/hellojavascript/main.cpp b/templates/multi-platform-js/proj.android/jni/hellojavascript/main.cpp deleted file mode 100644 index 9793beefb1..0000000000 --- a/templates/multi-platform-js/proj.android/jni/hellojavascript/main.cpp +++ /dev/null @@ -1,16 +0,0 @@ -#include "AppDelegate.h" -#include "cocos2d.h" -#include "platform/android/jni/JniHelper.h" -#include "CCEventType.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 (struct android_app* app) { - LOGD("cocos_android_app_init"); - AppDelegate *pAppDelegate = new AppDelegate(); -} diff --git a/templates/multi-platform-js/proj.android/proguard-project.txt b/templates/multi-platform-js/proj.android/proguard-project.txt deleted file mode 100644 index f2fe1559a2..0000000000 --- a/templates/multi-platform-js/proj.android/proguard-project.txt +++ /dev/null @@ -1,20 +0,0 @@ -# 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/templates/multi-platform-js/proj.android/project.properties b/templates/multi-platform-js/proj.android/project.properties deleted file mode 100644 index 73be4bf688..0000000000 --- a/templates/multi-platform-js/proj.android/project.properties +++ /dev/null @@ -1,13 +0,0 @@ -# This file is automatically generated by Android Tools. -# Do not modify this file -- YOUR CHANGES WILL BE ERASED! -# -# This file must be checked in Version Control Systems. -# -# To customize properties used by the Ant build system use, -# "ant.properties", and override values to adapt the script to your -# project structure. - -# Project target. -target=android-13 - -android.library.reference.1=../cocos2d/cocos/2d/platform/android/java diff --git a/templates/multi-platform-js/proj.android/res/values/strings.xml b/templates/multi-platform-js/proj.android/res/values/strings.xml deleted file mode 100644 index c847de2851..0000000000 --- a/templates/multi-platform-js/proj.android/res/values/strings.xml +++ /dev/null @@ -1,4 +0,0 @@ - - - HelloJavascript - diff --git a/templates/multi-platform-js/proj.android/src/org/cocos2dx/javascript/Cocos2dxActivity.java b/templates/multi-platform-js/proj.android/src/org/cocos2dx/javascript/Cocos2dxActivity.java deleted file mode 100644 index 928da4653a..0000000000 --- a/templates/multi-platform-js/proj.android/src/org/cocos2dx/javascript/Cocos2dxActivity.java +++ /dev/null @@ -1,32 +0,0 @@ -package org.cocos2dx.javascript; - -import android.app.NativeActivity; -import android.os.Bundle; - -public class Cocos2dxActivity extends NativeActivity{ - - @Override - protected void onCreate(Bundle savedInstanceState) { - // TODO Auto-generated method stub - super.onCreate(savedInstanceState); - - //For supports translucency - - //1.change "attribs" in cocos\2d\platform\android\nativeactivity.cpp - /*const EGLint attribs[] = { - EGL_SURFACE_TYPE, EGL_WINDOW_BIT, - EGL_RENDERABLE_TYPE, EGL_OPENGL_ES2_BIT, - //EGL_BLUE_SIZE, 5, -->delete - //EGL_GREEN_SIZE, 6, -->delete - //EGL_RED_SIZE, 5, -->delete - EGL_BUFFER_SIZE, 32, //-->new field - EGL_DEPTH_SIZE, 16, - EGL_STENCIL_SIZE, 8, - EGL_NONE - };*/ - - //2.Set the format of window - // getWindow().setFormat(PixelFormat.TRANSLUCENT); - - } -} diff --git a/templates/multi-platform-js/proj.ios_mac/HelloJavascript.xcodeproj/project.pbxproj b/templates/multi-platform-js/proj.ios_mac/HelloJavascript.xcodeproj/project.pbxproj deleted file mode 100644 index ac972dc331..0000000000 --- a/templates/multi-platform-js/proj.ios_mac/HelloJavascript.xcodeproj/project.pbxproj +++ /dev/null @@ -1,1111 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 46; - objects = { - -/* Begin PBXBuildFile section */ - 15FD5C60183A60FE005CFF55 /* cocos2d-jsb.js in Resources */ = {isa = PBXBuildFile; fileRef = 15FD5C5F183A60FE005CFF55 /* cocos2d-jsb.js */; }; - 15FD5C68183A6112005CFF55 /* cocos2d-jsb.js in Resources */ = {isa = PBXBuildFile; fileRef = 15FD5C67183A6112005CFF55 /* cocos2d-jsb.js */; }; - 15FD5C6B183A6170005CFF55 /* jsb_cocos2d_gui.js in Resources */ = {isa = PBXBuildFile; fileRef = 15FD5C69183A6170005CFF55 /* jsb_cocos2d_gui.js */; }; - 15FD5C6C183A6170005CFF55 /* jsb_cocos2d_studio.js in Resources */ = {isa = PBXBuildFile; fileRef = 15FD5C6A183A6170005CFF55 /* jsb_cocos2d_studio.js */; }; - 15FD5C6F183A618A005CFF55 /* jsb_cocos2d_gui.js in Resources */ = {isa = PBXBuildFile; fileRef = 15FD5C6D183A6189005CFF55 /* jsb_cocos2d_gui.js */; }; - 15FD5C70183A618A005CFF55 /* jsb_cocos2d_studio.js in Resources */ = {isa = PBXBuildFile; fileRef = 15FD5C6E183A6189005CFF55 /* jsb_cocos2d_studio.js */; }; - 1A6767FA180E9B160076BC67 /* debugger in Resources */ = {isa = PBXBuildFile; fileRef = 1A6767ED180E9B160076BC67 /* debugger */; }; - 1A6767FB180E9B160076BC67 /* debugger in Resources */ = {isa = PBXBuildFile; fileRef = 1A6767ED180E9B160076BC67 /* debugger */; }; - 1A676829180E9C060076BC67 /* libchipmunk Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 1AC6FB4C180E9ACB004C840B /* libchipmunk Mac.a */; }; - 1A67682A180E9C060076BC67 /* libcocos2dx Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 1AC6FB48180E9ACB004C840B /* libcocos2dx Mac.a */; }; - 1A67682B180E9C060076BC67 /* libcocos2dx-extensions Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 1AC6FB4A180E9ACB004C840B /* libcocos2dx-extensions Mac.a */; }; - 1A67682C180E9C060076BC67 /* libCocosDenshion Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 1AC6FB50180E9ACB004C840B /* libCocosDenshion Mac.a */; }; - 1A67682D180E9C060076BC67 /* libjsbindings Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 1AC6FB52180E9ACB004C840B /* libjsbindings Mac.a */; }; - 1A676838180E9C1E0076BC67 /* libchipmunk iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 1AC6FB5A180E9ACB004C840B /* libchipmunk iOS.a */; }; - 1A676839180E9C1E0076BC67 /* libcocos2dx iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 1AC6FB56180E9ACB004C840B /* libcocos2dx iOS.a */; }; - 1A67683A180E9C1E0076BC67 /* libcocos2dx-extensions iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 1AC6FB58180E9ACB004C840B /* libcocos2dx-extensions iOS.a */; }; - 1A67683B180E9C1E0076BC67 /* libCocosDenshion iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 1AC6FB5E180E9ACB004C840B /* libCocosDenshion iOS.a */; }; - 1A67683C180E9C1E0076BC67 /* libjsbindings iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 1AC6FB60180E9ACB004C840B /* libjsbindings iOS.a */; }; - 1A67683E180E9CE90076BC67 /* jsb_chipmunk_constants.js in Resources */ = {isa = PBXBuildFile; fileRef = 1A6767EE180E9B160076BC67 /* jsb_chipmunk_constants.js */; }; - 1A67683F180E9CE90076BC67 /* jsb_chipmunk.js in Resources */ = {isa = PBXBuildFile; fileRef = 1A6767EF180E9B160076BC67 /* jsb_chipmunk.js */; }; - 1A676840180E9CE90076BC67 /* jsb_cocos2d_constants.js in Resources */ = {isa = PBXBuildFile; fileRef = 1A6767F0180E9B160076BC67 /* jsb_cocos2d_constants.js */; }; - 1A676841180E9CE90076BC67 /* jsb_cocos2d_extension.js in Resources */ = {isa = PBXBuildFile; fileRef = 1A6767F1180E9B160076BC67 /* jsb_cocos2d_extension.js */; }; - 1A676842180E9CE90076BC67 /* jsb_cocos2d.js in Resources */ = {isa = PBXBuildFile; fileRef = 1A6767F2180E9B160076BC67 /* jsb_cocos2d.js */; }; - 1A676843180E9CE90076BC67 /* jsb_cocosbuilder.js in Resources */ = {isa = PBXBuildFile; fileRef = 1A6767F3180E9B160076BC67 /* jsb_cocosbuilder.js */; }; - 1A676844180E9CE90076BC67 /* jsb_debugger.js in Resources */ = {isa = PBXBuildFile; fileRef = 1A6767F4180E9B160076BC67 /* jsb_debugger.js */; }; - 1A676845180E9CE90076BC67 /* jsb_deprecated.js in Resources */ = {isa = PBXBuildFile; fileRef = 1A6767F5180E9B160076BC67 /* jsb_deprecated.js */; }; - 1A676846180E9CE90076BC67 /* jsb_opengl_constants.js in Resources */ = {isa = PBXBuildFile; fileRef = 1A6767F6180E9B160076BC67 /* jsb_opengl_constants.js */; }; - 1A676847180E9CE90076BC67 /* jsb_opengl.js in Resources */ = {isa = PBXBuildFile; fileRef = 1A6767F7180E9B160076BC67 /* jsb_opengl.js */; }; - 1A676848180E9CE90076BC67 /* jsb_sys.js in Resources */ = {isa = PBXBuildFile; fileRef = 1A6767F8180E9B160076BC67 /* jsb_sys.js */; }; - 1A676849180E9CE90076BC67 /* jsb.js in Resources */ = {isa = PBXBuildFile; fileRef = 1A6767F9180E9B160076BC67 /* jsb.js */; }; - 1A67684A180E9CF10076BC67 /* jsb_chipmunk_constants.js in Resources */ = {isa = PBXBuildFile; fileRef = 1A6767EE180E9B160076BC67 /* jsb_chipmunk_constants.js */; }; - 1A67684B180E9CF10076BC67 /* jsb_chipmunk.js in Resources */ = {isa = PBXBuildFile; fileRef = 1A6767EF180E9B160076BC67 /* jsb_chipmunk.js */; }; - 1A67684C180E9CF10076BC67 /* jsb_cocos2d_constants.js in Resources */ = {isa = PBXBuildFile; fileRef = 1A6767F0180E9B160076BC67 /* jsb_cocos2d_constants.js */; }; - 1A67684D180E9CF10076BC67 /* jsb_cocos2d_extension.js in Resources */ = {isa = PBXBuildFile; fileRef = 1A6767F1180E9B160076BC67 /* jsb_cocos2d_extension.js */; }; - 1A67684E180E9CF10076BC67 /* jsb_cocos2d.js in Resources */ = {isa = PBXBuildFile; fileRef = 1A6767F2180E9B160076BC67 /* jsb_cocos2d.js */; }; - 1A67684F180E9CF10076BC67 /* jsb_cocosbuilder.js in Resources */ = {isa = PBXBuildFile; fileRef = 1A6767F3180E9B160076BC67 /* jsb_cocosbuilder.js */; }; - 1A676850180E9CF10076BC67 /* jsb_debugger.js in Resources */ = {isa = PBXBuildFile; fileRef = 1A6767F4180E9B160076BC67 /* jsb_debugger.js */; }; - 1A676851180E9CF10076BC67 /* jsb_deprecated.js in Resources */ = {isa = PBXBuildFile; fileRef = 1A6767F5180E9B160076BC67 /* jsb_deprecated.js */; }; - 1A676852180E9CF10076BC67 /* jsb_opengl_constants.js in Resources */ = {isa = PBXBuildFile; fileRef = 1A6767F6180E9B160076BC67 /* jsb_opengl_constants.js */; }; - 1A676853180E9CF10076BC67 /* jsb_opengl.js in Resources */ = {isa = PBXBuildFile; fileRef = 1A6767F7180E9B160076BC67 /* jsb_opengl.js */; }; - 1A676854180E9CF10076BC67 /* jsb_sys.js in Resources */ = {isa = PBXBuildFile; fileRef = 1A6767F8180E9B160076BC67 /* jsb_sys.js */; }; - 1A676855180E9CF10076BC67 /* jsb.js in Resources */ = {isa = PBXBuildFile; fileRef = 1A6767F9180E9B160076BC67 /* jsb.js */; }; - 1A82F5FB169AC92500C4B13A /* libsqlite3.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 1A82F5FA169AC92500C4B13A /* libsqlite3.dylib */; }; - 1AE4B40416D1FECD003C6D1C /* res in Resources */ = {isa = PBXBuildFile; fileRef = 1AE4B40116D1FECD003C6D1C /* res */; }; - 1AE4B40516D1FECD003C6D1C /* src in Resources */ = {isa = PBXBuildFile; fileRef = 1AE4B40216D1FECD003C6D1C /* src */; }; - 502380DC17EBB88200990C9B /* libcurl.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 502380DB17EBB88200990C9B /* libcurl.dylib */; }; - 5091731A17ECDF7A00D62437 /* Icon-29.png in Resources */ = {isa = PBXBuildFile; fileRef = 5091731417ECDF7A00D62437 /* Icon-29.png */; }; - 5091731B17ECDF7A00D62437 /* Icon-40.png in Resources */ = {isa = PBXBuildFile; fileRef = 5091731517ECDF7A00D62437 /* Icon-40.png */; }; - 5091731C17ECDF7A00D62437 /* Icon-50.png in Resources */ = {isa = PBXBuildFile; fileRef = 5091731617ECDF7A00D62437 /* Icon-50.png */; }; - 5091731D17ECDF7A00D62437 /* Icon-58.png in Resources */ = {isa = PBXBuildFile; fileRef = 5091731717ECDF7A00D62437 /* Icon-58.png */; }; - 5091731E17ECDF7A00D62437 /* Icon-80.png in Resources */ = {isa = PBXBuildFile; fileRef = 5091731817ECDF7A00D62437 /* Icon-80.png */; }; - 5091731F17ECDF7A00D62437 /* Icon-100.png in Resources */ = {isa = PBXBuildFile; fileRef = 5091731917ECDF7A00D62437 /* Icon-100.png */; }; - 509D4A8117EBB24E00697056 /* AppDelegate.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D4545215156E28EF00887EB5 /* AppDelegate.cpp */; }; - 509D4A8817EBB24E00697056 /* libsqlite3.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 1A82F5FA169AC92500C4B13A /* libsqlite3.dylib */; }; - 509D4A8917EBB24E00697056 /* libz.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = D454520B156E22BD00887EB5 /* libz.dylib */; }; - 509D4A8A17EBB24E00697056 /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A92275411517C094001B78AA /* QuartzCore.framework */; }; - 509D4A8C17EBB24E00697056 /* OpenAL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A92275451517C094001B78AA /* OpenAL.framework */; }; - 509D4A8D17EBB24E00697056 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A92275471517C094001B78AA /* AudioToolbox.framework */; }; - 509D4A8E17EBB24E00697056 /* AVFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A92275491517C094001B78AA /* AVFoundation.framework */; }; - 509D4A9017EBB24E00697056 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A922754D1517C094001B78AA /* Foundation.framework */; }; - 509D4A9117EBB24E00697056 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A922754F1517C094001B78AA /* CoreGraphics.framework */; }; - 509D4AA517EBB24E00697056 /* res in Resources */ = {isa = PBXBuildFile; fileRef = 1AE4B40116D1FECD003C6D1C /* res */; }; - 509D4AA617EBB24E00697056 /* src in Resources */ = {isa = PBXBuildFile; fileRef = 1AE4B40216D1FECD003C6D1C /* src */; }; - 509D4ABC17EBB2AB00697056 /* AppController.mm in Sources */ = {isa = PBXBuildFile; fileRef = 509D4AAC17EBB2AB00697056 /* AppController.mm */; }; - 509D4ABD17EBB2AB00697056 /* Default-568h@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 509D4AAD17EBB2AB00697056 /* Default-568h@2x.png */; }; - 509D4ABE17EBB2AB00697056 /* Default.png in Resources */ = {isa = PBXBuildFile; fileRef = 509D4AAE17EBB2AB00697056 /* Default.png */; }; - 509D4ABF17EBB2AB00697056 /* Default@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 509D4AAF17EBB2AB00697056 /* Default@2x.png */; }; - 509D4AC017EBB2AB00697056 /* Icon-57.png in Resources */ = {isa = PBXBuildFile; fileRef = 509D4AB017EBB2AB00697056 /* Icon-57.png */; }; - 509D4AC117EBB2AB00697056 /* Icon-72.png in Resources */ = {isa = PBXBuildFile; fileRef = 509D4AB117EBB2AB00697056 /* Icon-72.png */; }; - 509D4AC217EBB2AB00697056 /* Icon-76.png in Resources */ = {isa = PBXBuildFile; fileRef = 509D4AB217EBB2AB00697056 /* Icon-76.png */; }; - 509D4AC317EBB2AB00697056 /* Icon-114.png in Resources */ = {isa = PBXBuildFile; fileRef = 509D4AB317EBB2AB00697056 /* Icon-114.png */; }; - 509D4AC417EBB2AB00697056 /* Icon-120.png in Resources */ = {isa = PBXBuildFile; fileRef = 509D4AB417EBB2AB00697056 /* Icon-120.png */; }; - 509D4AC517EBB2AB00697056 /* Icon-144.png in Resources */ = {isa = PBXBuildFile; fileRef = 509D4AB517EBB2AB00697056 /* Icon-144.png */; }; - 509D4AC617EBB2AB00697056 /* Icon-152.png in Resources */ = {isa = PBXBuildFile; fileRef = 509D4AB617EBB2AB00697056 /* Icon-152.png */; }; - 509D4AC817EBB2AB00697056 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 509D4AB817EBB2AB00697056 /* main.m */; }; - 509D4AC917EBB2AB00697056 /* RootViewController.mm in Sources */ = {isa = PBXBuildFile; fileRef = 509D4ABB17EBB2AB00697056 /* RootViewController.mm */; }; - 509D4ACF17EBB2BE00697056 /* Icon.icns in Resources */ = {isa = PBXBuildFile; fileRef = 509D4ACB17EBB2BE00697056 /* Icon.icns */; }; - 509D4AD117EBB2BE00697056 /* main.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 509D4ACD17EBB2BE00697056 /* main.cpp */; }; - 509D4AE717EBB81800697056 /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 509D4AE617EBB81800697056 /* OpenGL.framework */; }; - 509D4AE917EBB82000697056 /* AppKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 509D4AE817EBB82000697056 /* AppKit.framework */; }; - 509D4AEB17EBB82600697056 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 509D4AEA17EBB82600697056 /* IOKit.framework */; }; - A92275421517C094001B78AA /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A92275411517C094001B78AA /* QuartzCore.framework */; }; - A92275441517C094001B78AA /* OpenGLES.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A92275431517C094001B78AA /* OpenGLES.framework */; }; - A92275461517C094001B78AA /* OpenAL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A92275451517C094001B78AA /* OpenAL.framework */; }; - A92275481517C094001B78AA /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A92275471517C094001B78AA /* AudioToolbox.framework */; }; - A922754A1517C094001B78AA /* AVFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A92275491517C094001B78AA /* AVFoundation.framework */; }; - A922754C1517C094001B78AA /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A922754B1517C094001B78AA /* UIKit.framework */; }; - A922754E1517C094001B78AA /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A922754D1517C094001B78AA /* Foundation.framework */; }; - A92275501517C094001B78AA /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A922754F1517C094001B78AA /* CoreGraphics.framework */; }; - D454520C156E22BD00887EB5 /* libz.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = D454520B156E22BD00887EB5 /* libz.dylib */; }; - D4545227156E28EF00887EB5 /* AppDelegate.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D4545215156E28EF00887EB5 /* AppDelegate.cpp */; }; - D6B061241803AB9F0077942B /* CoreMotion.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D6B061231803AB9F0077942B /* CoreMotion.framework */; }; -/* End PBXBuildFile section */ - -/* Begin PBXContainerItemProxy section */ - 1A67681F180E9BF70076BC67 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 1AC6FB34180E9ACB004C840B /* cocos2d_libs.xcodeproj */; - proxyType = 1; - remoteGlobalIDString = 1551A33E158F2AB200E66CFE; - remoteInfo = "cocos2dx Mac"; - }; - 1A676821180E9BF70076BC67 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 1AC6FB34180E9ACB004C840B /* cocos2d_libs.xcodeproj */; - proxyType = 1; - remoteGlobalIDString = A03F2FC117814595006731B9; - remoteInfo = "cocos2dx-extensions Mac"; - }; - 1A676823180E9BF70076BC67 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 1AC6FB34180E9ACB004C840B /* cocos2d_libs.xcodeproj */; - proxyType = 1; - remoteGlobalIDString = A03F2B781780BD04006731B9; - remoteInfo = "chipmunk Mac"; - }; - 1A676825180E9BF70076BC67 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 1AC6FB34180E9ACB004C840B /* cocos2d_libs.xcodeproj */; - proxyType = 1; - remoteGlobalIDString = A03F2E9817814268006731B9; - remoteInfo = "CocosDenshion Mac"; - }; - 1A676827180E9BF70076BC67 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 1AC6FB34180E9ACB004C840B /* cocos2d_libs.xcodeproj */; - proxyType = 1; - remoteGlobalIDString = A03F31E81781479B006731B9; - remoteInfo = "jsbindings Mac"; - }; - 1A67682E180E9C110076BC67 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 1AC6FB34180E9ACB004C840B /* cocos2d_libs.xcodeproj */; - proxyType = 1; - remoteGlobalIDString = A07A4C241783777C0073F6A7; - remoteInfo = "cocos2dx iOS"; - }; - 1A676830180E9C110076BC67 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 1AC6FB34180E9ACB004C840B /* cocos2d_libs.xcodeproj */; - proxyType = 1; - remoteGlobalIDString = A07A4E111783867C0073F6A7; - remoteInfo = "cocos2dx-extensions iOS"; - }; - 1A676832180E9C110076BC67 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 1AC6FB34180E9ACB004C840B /* cocos2d_libs.xcodeproj */; - proxyType = 1; - remoteGlobalIDString = A07A4EFD178387670073F6A7; - remoteInfo = "chipmunk iOS"; - }; - 1A676834180E9C110076BC67 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 1AC6FB34180E9ACB004C840B /* cocos2d_libs.xcodeproj */; - proxyType = 1; - remoteGlobalIDString = A07A4F9F178387730073F6A7; - remoteInfo = "CocosDenshion iOS"; - }; - 1A676836180E9C110076BC67 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 1AC6FB34180E9ACB004C840B /* cocos2d_libs.xcodeproj */; - proxyType = 1; - remoteGlobalIDString = A07A4FB5178387750073F6A7; - remoteInfo = "jsbindings iOS"; - }; - 1AC6FB47180E9ACB004C840B /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 1AC6FB34180E9ACB004C840B /* cocos2d_libs.xcodeproj */; - proxyType = 2; - remoteGlobalIDString = 1551A33F158F2AB200E66CFE; - remoteInfo = "cocos2dx Mac"; - }; - 1AC6FB49180E9ACB004C840B /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 1AC6FB34180E9ACB004C840B /* cocos2d_libs.xcodeproj */; - proxyType = 2; - remoteGlobalIDString = A03F2FD617814595006731B9; - remoteInfo = "cocos2dx-extensions Mac"; - }; - 1AC6FB4B180E9ACB004C840B /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 1AC6FB34180E9ACB004C840B /* cocos2d_libs.xcodeproj */; - proxyType = 2; - remoteGlobalIDString = A03F2CB81780BD04006731B9; - remoteInfo = "chipmunk Mac"; - }; - 1AC6FB4D180E9ACB004C840B /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 1AC6FB34180E9ACB004C840B /* cocos2d_libs.xcodeproj */; - proxyType = 2; - remoteGlobalIDString = A03F2D9B1780BDF7006731B9; - remoteInfo = "box2d Mac"; - }; - 1AC6FB4F180E9ACB004C840B /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 1AC6FB34180E9ACB004C840B /* cocos2d_libs.xcodeproj */; - proxyType = 2; - remoteGlobalIDString = A03F2ED617814268006731B9; - remoteInfo = "CocosDenshion Mac"; - }; - 1AC6FB51180E9ACB004C840B /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 1AC6FB34180E9ACB004C840B /* cocos2d_libs.xcodeproj */; - proxyType = 2; - remoteGlobalIDString = A03F31FD1781479B006731B9; - remoteInfo = "jsbindings Mac"; - }; - 1AC6FB53180E9ACB004C840B /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 1AC6FB34180E9ACB004C840B /* cocos2d_libs.xcodeproj */; - proxyType = 2; - remoteGlobalIDString = 1A6FB53017854BC300CDF010; - remoteInfo = "luabindings Mac"; - }; - 1AC6FB55180E9ACB004C840B /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 1AC6FB34180E9ACB004C840B /* cocos2d_libs.xcodeproj */; - proxyType = 2; - remoteGlobalIDString = A07A4D641783777C0073F6A7; - remoteInfo = "cocos2dx iOS"; - }; - 1AC6FB57180E9ACB004C840B /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 1AC6FB34180E9ACB004C840B /* cocos2d_libs.xcodeproj */; - proxyType = 2; - remoteGlobalIDString = A07A4EFC1783867C0073F6A7; - remoteInfo = "cocos2dx-extensions iOS"; - }; - 1AC6FB59180E9ACB004C840B /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 1AC6FB34180E9ACB004C840B /* cocos2d_libs.xcodeproj */; - proxyType = 2; - remoteGlobalIDString = A07A4F3B178387670073F6A7; - remoteInfo = "chipmunk iOS"; - }; - 1AC6FB5B180E9ACB004C840B /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 1AC6FB34180E9ACB004C840B /* cocos2d_libs.xcodeproj */; - proxyType = 2; - remoteGlobalIDString = A07A4F9E1783876B0073F6A7; - remoteInfo = "box2d iOS"; - }; - 1AC6FB5D180E9ACB004C840B /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 1AC6FB34180E9ACB004C840B /* cocos2d_libs.xcodeproj */; - proxyType = 2; - remoteGlobalIDString = A07A4FB4178387730073F6A7; - remoteInfo = "CocosDenshion iOS"; - }; - 1AC6FB5F180E9ACB004C840B /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 1AC6FB34180E9ACB004C840B /* cocos2d_libs.xcodeproj */; - proxyType = 2; - remoteGlobalIDString = A07A5030178387750073F6A7; - remoteInfo = "jsbindings iOS"; - }; - 1AC6FB61180E9ACB004C840B /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 1AC6FB34180E9ACB004C840B /* cocos2d_libs.xcodeproj */; - proxyType = 2; - remoteGlobalIDString = 1A119791178526AA00D62A44; - remoteInfo = "luabindings iOS"; - }; -/* End PBXContainerItemProxy section */ - -/* Begin PBXFileReference section */ - 15FD5C5F183A60FE005CFF55 /* cocos2d-jsb.js */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.javascript; name = "cocos2d-jsb.js"; path = "../Resources/cocos2d-jsb.js"; sourceTree = ""; }; - 15FD5C67183A6112005CFF55 /* cocos2d-jsb.js */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.javascript; name = "cocos2d-jsb.js"; path = "../Resources/cocos2d-jsb.js"; sourceTree = ""; }; - 15FD5C69183A6170005CFF55 /* jsb_cocos2d_gui.js */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.javascript; name = jsb_cocos2d_gui.js; path = ../cocos2d/cocos/scripting/javascript/script/jsb_cocos2d_gui.js; sourceTree = ""; }; - 15FD5C6A183A6170005CFF55 /* jsb_cocos2d_studio.js */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.javascript; name = jsb_cocos2d_studio.js; path = ../cocos2d/cocos/scripting/javascript/script/jsb_cocos2d_studio.js; sourceTree = ""; }; - 15FD5C6D183A6189005CFF55 /* jsb_cocos2d_gui.js */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.javascript; name = jsb_cocos2d_gui.js; path = ../cocos2d/cocos/scripting/javascript/script/jsb_cocos2d_gui.js; sourceTree = ""; }; - 15FD5C6E183A6189005CFF55 /* jsb_cocos2d_studio.js */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.javascript; name = jsb_cocos2d_studio.js; path = ../cocos2d/cocos/scripting/javascript/script/jsb_cocos2d_studio.js; sourceTree = ""; }; - 1A6767ED180E9B160076BC67 /* debugger */ = {isa = PBXFileReference; lastKnownFileType = folder; name = debugger; path = ../cocos2d/cocos/scripting/javascript/script/debugger; sourceTree = ""; }; - 1A6767EE180E9B160076BC67 /* jsb_chipmunk_constants.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; name = jsb_chipmunk_constants.js; path = ../cocos2d/cocos/scripting/javascript/script/jsb_chipmunk_constants.js; sourceTree = ""; }; - 1A6767EF180E9B160076BC67 /* jsb_chipmunk.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; name = jsb_chipmunk.js; path = ../cocos2d/cocos/scripting/javascript/script/jsb_chipmunk.js; sourceTree = ""; }; - 1A6767F0180E9B160076BC67 /* jsb_cocos2d_constants.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; name = jsb_cocos2d_constants.js; path = ../cocos2d/cocos/scripting/javascript/script/jsb_cocos2d_constants.js; sourceTree = ""; }; - 1A6767F1180E9B160076BC67 /* jsb_cocos2d_extension.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; name = jsb_cocos2d_extension.js; path = ../cocos2d/cocos/scripting/javascript/script/jsb_cocos2d_extension.js; sourceTree = ""; }; - 1A6767F2180E9B160076BC67 /* jsb_cocos2d.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; name = jsb_cocos2d.js; path = ../cocos2d/cocos/scripting/javascript/script/jsb_cocos2d.js; sourceTree = ""; }; - 1A6767F3180E9B160076BC67 /* jsb_cocosbuilder.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; name = jsb_cocosbuilder.js; path = ../cocos2d/cocos/scripting/javascript/script/jsb_cocosbuilder.js; sourceTree = ""; }; - 1A6767F4180E9B160076BC67 /* jsb_debugger.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; name = jsb_debugger.js; path = ../cocos2d/cocos/scripting/javascript/script/jsb_debugger.js; sourceTree = ""; }; - 1A6767F5180E9B160076BC67 /* jsb_deprecated.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; name = jsb_deprecated.js; path = ../cocos2d/cocos/scripting/javascript/script/jsb_deprecated.js; sourceTree = ""; }; - 1A6767F6180E9B160076BC67 /* jsb_opengl_constants.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; name = jsb_opengl_constants.js; path = ../cocos2d/cocos/scripting/javascript/script/jsb_opengl_constants.js; sourceTree = ""; }; - 1A6767F7180E9B160076BC67 /* jsb_opengl.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; name = jsb_opengl.js; path = ../cocos2d/cocos/scripting/javascript/script/jsb_opengl.js; sourceTree = ""; }; - 1A6767F8180E9B160076BC67 /* jsb_sys.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; name = jsb_sys.js; path = ../cocos2d/cocos/scripting/javascript/script/jsb_sys.js; sourceTree = ""; }; - 1A6767F9180E9B160076BC67 /* jsb.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; name = jsb.js; path = ../cocos2d/cocos/scripting/javascript/script/jsb.js; sourceTree = ""; }; - 1A82F5FA169AC92500C4B13A /* libsqlite3.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libsqlite3.dylib; path = usr/lib/libsqlite3.dylib; sourceTree = SDKROOT; }; - 1A96A4F2174A3432008653A9 /* libcurl.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libcurl.a; path = ../cocos2d/cocos2dx/platform/third_party/ios/libraries/libcurl.a; sourceTree = ""; }; - 1AC6FB34180E9ACB004C840B /* cocos2d_libs.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = cocos2d_libs.xcodeproj; path = ../cocos2d/build/cocos2d_libs.xcodeproj; sourceTree = ""; }; - 1AE4B40016D1FECD003C6D1C /* main.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; name = main.js; path = ../Resources/main.js; sourceTree = ""; }; - 1AE4B40116D1FECD003C6D1C /* res */ = {isa = PBXFileReference; lastKnownFileType = folder; name = res; path = ../Resources/res; sourceTree = ""; }; - 1AE4B40216D1FECD003C6D1C /* src */ = {isa = PBXFileReference; lastKnownFileType = folder; name = src; path = ../Resources/src; sourceTree = ""; }; - 502380DB17EBB88200990C9B /* libcurl.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libcurl.dylib; path = usr/lib/libcurl.dylib; sourceTree = SDKROOT; }; - 5091731417ECDF7A00D62437 /* Icon-29.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "Icon-29.png"; path = "ios/Icon-29.png"; sourceTree = ""; }; - 5091731517ECDF7A00D62437 /* Icon-40.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "Icon-40.png"; path = "ios/Icon-40.png"; sourceTree = ""; }; - 5091731617ECDF7A00D62437 /* Icon-50.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "Icon-50.png"; path = "ios/Icon-50.png"; sourceTree = ""; }; - 5091731717ECDF7A00D62437 /* Icon-58.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "Icon-58.png"; path = "ios/Icon-58.png"; sourceTree = ""; }; - 5091731817ECDF7A00D62437 /* Icon-80.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "Icon-80.png"; path = "ios/Icon-80.png"; sourceTree = ""; }; - 5091731917ECDF7A00D62437 /* Icon-100.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "Icon-100.png"; path = "ios/Icon-100.png"; sourceTree = ""; }; - 509D4AAA17EBB24E00697056 /* HelloJavascript Mac.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "HelloJavascript Mac.app"; sourceTree = BUILT_PRODUCTS_DIR; }; - 509D4AAB17EBB2AB00697056 /* AppController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppController.h; path = ios/AppController.h; sourceTree = ""; }; - 509D4AAC17EBB2AB00697056 /* AppController.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = AppController.mm; path = ios/AppController.mm; sourceTree = ""; }; - 509D4AAD17EBB2AB00697056 /* Default-568h@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "Default-568h@2x.png"; path = "ios/Default-568h@2x.png"; sourceTree = ""; }; - 509D4AAE17EBB2AB00697056 /* Default.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = Default.png; path = ios/Default.png; sourceTree = ""; }; - 509D4AAF17EBB2AB00697056 /* Default@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "Default@2x.png"; path = "ios/Default@2x.png"; sourceTree = ""; }; - 509D4AB017EBB2AB00697056 /* Icon-57.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "Icon-57.png"; path = "ios/Icon-57.png"; sourceTree = ""; }; - 509D4AB117EBB2AB00697056 /* Icon-72.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "Icon-72.png"; path = "ios/Icon-72.png"; sourceTree = ""; }; - 509D4AB217EBB2AB00697056 /* Icon-76.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "Icon-76.png"; path = "ios/Icon-76.png"; sourceTree = ""; }; - 509D4AB317EBB2AB00697056 /* Icon-114.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "Icon-114.png"; path = "ios/Icon-114.png"; sourceTree = ""; }; - 509D4AB417EBB2AB00697056 /* Icon-120.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "Icon-120.png"; path = "ios/Icon-120.png"; sourceTree = ""; }; - 509D4AB517EBB2AB00697056 /* Icon-144.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "Icon-144.png"; path = "ios/Icon-144.png"; sourceTree = ""; }; - 509D4AB617EBB2AB00697056 /* Icon-152.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "Icon-152.png"; path = "ios/Icon-152.png"; sourceTree = ""; }; - 509D4AB717EBB2AB00697056 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = ios/Info.plist; sourceTree = ""; }; - 509D4AB817EBB2AB00697056 /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = ios/main.m; sourceTree = ""; }; - 509D4AB917EBB2AB00697056 /* Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Prefix.pch; path = ios/Prefix.pch; sourceTree = ""; }; - 509D4ABA17EBB2AB00697056 /* RootViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = RootViewController.h; path = ios/RootViewController.h; sourceTree = ""; }; - 509D4ABB17EBB2AB00697056 /* RootViewController.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = RootViewController.mm; path = ios/RootViewController.mm; sourceTree = ""; }; - 509D4ACB17EBB2BE00697056 /* Icon.icns */ = {isa = PBXFileReference; lastKnownFileType = image.icns; path = Icon.icns; sourceTree = ""; }; - 509D4ACC17EBB2BE00697056 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - 509D4ACD17EBB2BE00697056 /* main.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = main.cpp; sourceTree = ""; }; - 509D4ACE17EBB2BE00697056 /* Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Prefix.pch; sourceTree = ""; }; - 509D4AE617EBB81800697056 /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = OpenGL.framework; path = System/Library/Frameworks/OpenGL.framework; sourceTree = SDKROOT; }; - 509D4AE817EBB82000697056 /* AppKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AppKit.framework; path = System/Library/Frameworks/AppKit.framework; sourceTree = SDKROOT; }; - 509D4AEA17EBB82600697056 /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = IOKit.framework; path = System/Library/Frameworks/IOKit.framework; sourceTree = SDKROOT; }; - A922753D1517C094001B78AA /* HelloJavascript iOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "HelloJavascript iOS.app"; sourceTree = BUILT_PRODUCTS_DIR; }; - A92275411517C094001B78AA /* QuartzCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuartzCore.framework; path = System/Library/Frameworks/QuartzCore.framework; sourceTree = SDKROOT; }; - A92275431517C094001B78AA /* OpenGLES.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = OpenGLES.framework; path = System/Library/Frameworks/OpenGLES.framework; sourceTree = SDKROOT; }; - A92275451517C094001B78AA /* OpenAL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = OpenAL.framework; path = System/Library/Frameworks/OpenAL.framework; sourceTree = SDKROOT; }; - A92275471517C094001B78AA /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AudioToolbox.framework; path = System/Library/Frameworks/AudioToolbox.framework; sourceTree = SDKROOT; }; - A92275491517C094001B78AA /* AVFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AVFoundation.framework; path = System/Library/Frameworks/AVFoundation.framework; sourceTree = SDKROOT; }; - A922754B1517C094001B78AA /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; - A922754D1517C094001B78AA /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; - A922754F1517C094001B78AA /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; - D454520B156E22BD00887EB5 /* libz.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libz.dylib; path = usr/lib/libz.dylib; sourceTree = SDKROOT; }; - D4545215156E28EF00887EB5 /* AppDelegate.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = AppDelegate.cpp; sourceTree = ""; }; - D4545216156E28EF00887EB5 /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; - D6B061231803AB9F0077942B /* CoreMotion.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreMotion.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/CoreMotion.framework; sourceTree = DEVELOPER_DIR; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - 509D4A8217EBB24E00697056 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 1A676829180E9C060076BC67 /* libchipmunk Mac.a in Frameworks */, - 1A67682A180E9C060076BC67 /* libcocos2dx Mac.a in Frameworks */, - 1A67682B180E9C060076BC67 /* libcocos2dx-extensions Mac.a in Frameworks */, - 1A67682C180E9C060076BC67 /* libCocosDenshion Mac.a in Frameworks */, - 1A67682D180E9C060076BC67 /* libjsbindings Mac.a in Frameworks */, - 502380DC17EBB88200990C9B /* libcurl.dylib in Frameworks */, - 509D4A8817EBB24E00697056 /* libsqlite3.dylib in Frameworks */, - 509D4A8917EBB24E00697056 /* libz.dylib in Frameworks */, - 509D4AEB17EBB82600697056 /* IOKit.framework in Frameworks */, - 509D4AE917EBB82000697056 /* AppKit.framework in Frameworks */, - 509D4AE717EBB81800697056 /* OpenGL.framework in Frameworks */, - 509D4A8A17EBB24E00697056 /* QuartzCore.framework in Frameworks */, - 509D4A8C17EBB24E00697056 /* OpenAL.framework in Frameworks */, - 509D4A8D17EBB24E00697056 /* AudioToolbox.framework in Frameworks */, - 509D4A8E17EBB24E00697056 /* AVFoundation.framework in Frameworks */, - 509D4A9017EBB24E00697056 /* Foundation.framework in Frameworks */, - 509D4A9117EBB24E00697056 /* CoreGraphics.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - A922753A1517C094001B78AA /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 1A676838180E9C1E0076BC67 /* libchipmunk iOS.a in Frameworks */, - 1A676839180E9C1E0076BC67 /* libcocos2dx iOS.a in Frameworks */, - 1A67683A180E9C1E0076BC67 /* libcocos2dx-extensions iOS.a in Frameworks */, - 1A67683B180E9C1E0076BC67 /* libCocosDenshion iOS.a in Frameworks */, - 1A67683C180E9C1E0076BC67 /* libjsbindings iOS.a in Frameworks */, - D6B061241803AB9F0077942B /* CoreMotion.framework in Frameworks */, - 1A82F5FB169AC92500C4B13A /* libsqlite3.dylib in Frameworks */, - D454520C156E22BD00887EB5 /* libz.dylib in Frameworks */, - A92275421517C094001B78AA /* QuartzCore.framework in Frameworks */, - A92275441517C094001B78AA /* OpenGLES.framework in Frameworks */, - A92275461517C094001B78AA /* OpenAL.framework in Frameworks */, - A92275481517C094001B78AA /* AudioToolbox.framework in Frameworks */, - A922754A1517C094001B78AA /* AVFoundation.framework in Frameworks */, - A922754C1517C094001B78AA /* UIKit.framework in Frameworks */, - A922754E1517C094001B78AA /* Foundation.framework in Frameworks */, - A92275501517C094001B78AA /* CoreGraphics.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 15628F5B15F0F5C2000CF24B /* Resources */ = { - isa = PBXGroup; - children = ( - 1AE4B40016D1FECD003C6D1C /* main.js */, - 1AE4B40116D1FECD003C6D1C /* res */, - 1AE4B40216D1FECD003C6D1C /* src */, - ); - name = Resources; - sourceTree = ""; - }; - 1A6767EC180E9AF00076BC67 /* JS Common */ = { - isa = PBXGroup; - children = ( - 1A6767ED180E9B160076BC67 /* debugger */, - 1A6767EE180E9B160076BC67 /* jsb_chipmunk_constants.js */, - 1A6767EF180E9B160076BC67 /* jsb_chipmunk.js */, - 1A6767F0180E9B160076BC67 /* jsb_cocos2d_constants.js */, - 1A6767F1180E9B160076BC67 /* jsb_cocos2d_extension.js */, - 1A6767F2180E9B160076BC67 /* jsb_cocos2d.js */, - 1A6767F3180E9B160076BC67 /* jsb_cocosbuilder.js */, - 1A6767F4180E9B160076BC67 /* jsb_debugger.js */, - 1A6767F5180E9B160076BC67 /* jsb_deprecated.js */, - 1A6767F6180E9B160076BC67 /* jsb_opengl_constants.js */, - 1A6767F7180E9B160076BC67 /* jsb_opengl.js */, - 1A6767F8180E9B160076BC67 /* jsb_sys.js */, - 1A6767F9180E9B160076BC67 /* jsb.js */, - ); - name = "JS Common"; - sourceTree = ""; - }; - 1AC6FB35180E9ACB004C840B /* Products */ = { - isa = PBXGroup; - children = ( - 1AC6FB48180E9ACB004C840B /* libcocos2dx Mac.a */, - 1AC6FB4A180E9ACB004C840B /* libcocos2dx-extensions Mac.a */, - 1AC6FB4C180E9ACB004C840B /* libchipmunk Mac.a */, - 1AC6FB4E180E9ACB004C840B /* libbox2d Mac.a */, - 1AC6FB50180E9ACB004C840B /* libCocosDenshion Mac.a */, - 1AC6FB52180E9ACB004C840B /* libjsbindings Mac.a */, - 1AC6FB54180E9ACB004C840B /* libluabindings Mac.a */, - 1AC6FB56180E9ACB004C840B /* libcocos2dx iOS.a */, - 1AC6FB58180E9ACB004C840B /* libcocos2dx-extensions iOS.a */, - 1AC6FB5A180E9ACB004C840B /* libchipmunk iOS.a */, - 1AC6FB5C180E9ACB004C840B /* libbox2d iOS.a */, - 1AC6FB5E180E9ACB004C840B /* libCocosDenshion iOS.a */, - 1AC6FB60180E9ACB004C840B /* libjsbindings iOS.a */, - 1AC6FB62180E9ACB004C840B /* libluabindings iOS.a */, - ); - name = Products; - sourceTree = ""; - }; - 5091732E17ECDF8A00D62437 /* Icons */ = { - isa = PBXGroup; - children = ( - 5091731417ECDF7A00D62437 /* Icon-29.png */, - 5091731517ECDF7A00D62437 /* Icon-40.png */, - 5091731617ECDF7A00D62437 /* Icon-50.png */, - 5091731717ECDF7A00D62437 /* Icon-58.png */, - 5091731817ECDF7A00D62437 /* Icon-80.png */, - 5091731917ECDF7A00D62437 /* Icon-100.png */, - 509D4AB017EBB2AB00697056 /* Icon-57.png */, - 509D4AB117EBB2AB00697056 /* Icon-72.png */, - 509D4AB217EBB2AB00697056 /* Icon-76.png */, - 509D4AB317EBB2AB00697056 /* Icon-114.png */, - 509D4AB417EBB2AB00697056 /* Icon-120.png */, - 509D4AB517EBB2AB00697056 /* Icon-144.png */, - 509D4AB617EBB2AB00697056 /* Icon-152.png */, - ); - name = Icons; - sourceTree = ""; - }; - 509D4ACA17EBB2BE00697056 /* mac */ = { - isa = PBXGroup; - children = ( - 509D4ACB17EBB2BE00697056 /* Icon.icns */, - 509D4ACC17EBB2BE00697056 /* Info.plist */, - 509D4ACD17EBB2BE00697056 /* main.cpp */, - 509D4ACE17EBB2BE00697056 /* Prefix.pch */, - ); - path = mac; - sourceTree = ""; - }; - A92275321517C094001B78AA = { - isa = PBXGroup; - children = ( - 15FD5C6D183A6189005CFF55 /* jsb_cocos2d_gui.js */, - 15FD5C6E183A6189005CFF55 /* jsb_cocos2d_studio.js */, - 15FD5C69183A6170005CFF55 /* jsb_cocos2d_gui.js */, - 15FD5C6A183A6170005CFF55 /* jsb_cocos2d_studio.js */, - 15FD5C67183A6112005CFF55 /* cocos2d-jsb.js */, - 15FD5C5F183A60FE005CFF55 /* cocos2d-jsb.js */, - 1AC6FB34180E9ACB004C840B /* cocos2d_libs.xcodeproj */, - D4545214156E28EF00887EB5 /* Classes */, - A92275401517C094001B78AA /* Frameworks */, - D45446CC156DE73F00887EB5 /* ios */, - 1A6767EC180E9AF00076BC67 /* JS Common */, - 509D4ACA17EBB2BE00697056 /* mac */, - A922753E1517C094001B78AA /* Products */, - 15628F5B15F0F5C2000CF24B /* Resources */, - ); - sourceTree = ""; - }; - A922753E1517C094001B78AA /* Products */ = { - isa = PBXGroup; - children = ( - A922753D1517C094001B78AA /* HelloJavascript iOS.app */, - 509D4AAA17EBB24E00697056 /* HelloJavascript Mac.app */, - ); - name = Products; - sourceTree = ""; - }; - A92275401517C094001B78AA /* Frameworks */ = { - isa = PBXGroup; - children = ( - D6B061231803AB9F0077942B /* CoreMotion.framework */, - 502380DB17EBB88200990C9B /* libcurl.dylib */, - 509D4AEA17EBB82600697056 /* IOKit.framework */, - 509D4AE817EBB82000697056 /* AppKit.framework */, - 509D4AE617EBB81800697056 /* OpenGL.framework */, - 1A96A4F2174A3432008653A9 /* libcurl.a */, - 1A82F5FA169AC92500C4B13A /* libsqlite3.dylib */, - D454520B156E22BD00887EB5 /* libz.dylib */, - A92275411517C094001B78AA /* QuartzCore.framework */, - A92275431517C094001B78AA /* OpenGLES.framework */, - A92275451517C094001B78AA /* OpenAL.framework */, - A92275471517C094001B78AA /* AudioToolbox.framework */, - A92275491517C094001B78AA /* AVFoundation.framework */, - A922754B1517C094001B78AA /* UIKit.framework */, - A922754D1517C094001B78AA /* Foundation.framework */, - A922754F1517C094001B78AA /* CoreGraphics.framework */, - ); - name = Frameworks; - sourceTree = ""; - }; - D45446CC156DE73F00887EB5 /* ios */ = { - isa = PBXGroup; - children = ( - 509D4AAB17EBB2AB00697056 /* AppController.h */, - 509D4AAC17EBB2AB00697056 /* AppController.mm */, - 509D4AAD17EBB2AB00697056 /* Default-568h@2x.png */, - 509D4AAE17EBB2AB00697056 /* Default.png */, - 509D4AAF17EBB2AB00697056 /* Default@2x.png */, - 5091732E17ECDF8A00D62437 /* Icons */, - 509D4AB717EBB2AB00697056 /* Info.plist */, - 509D4AB817EBB2AB00697056 /* main.m */, - 509D4AB917EBB2AB00697056 /* Prefix.pch */, - 509D4ABA17EBB2AB00697056 /* RootViewController.h */, - 509D4ABB17EBB2AB00697056 /* RootViewController.mm */, - ); - name = ios; - sourceTree = ""; - }; - D4545214156E28EF00887EB5 /* Classes */ = { - isa = PBXGroup; - children = ( - D4545215156E28EF00887EB5 /* AppDelegate.cpp */, - D4545216156E28EF00887EB5 /* AppDelegate.h */, - ); - name = Classes; - path = ../Classes; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXNativeTarget section */ - 509D4A7517EBB24E00697056 /* HelloJavascript Mac */ = { - isa = PBXNativeTarget; - buildConfigurationList = 509D4AA717EBB24E00697056 /* Build configuration list for PBXNativeTarget "HelloJavascript Mac" */; - buildPhases = ( - 509D4A8017EBB24E00697056 /* Sources */, - 509D4A8217EBB24E00697056 /* Frameworks */, - 509D4A9317EBB24E00697056 /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - 1A676820180E9BF70076BC67 /* PBXTargetDependency */, - 1A676822180E9BF70076BC67 /* PBXTargetDependency */, - 1A676824180E9BF70076BC67 /* PBXTargetDependency */, - 1A676826180E9BF70076BC67 /* PBXTargetDependency */, - 1A676828180E9BF70076BC67 /* PBXTargetDependency */, - ); - name = "HelloJavascript Mac"; - productName = HelloJavascript; - productReference = 509D4AAA17EBB24E00697056 /* HelloJavascript Mac.app */; - productType = "com.apple.product-type.application"; - }; - A922753C1517C094001B78AA /* HelloJavascript iOS */ = { - isa = PBXNativeTarget; - buildConfigurationList = A92277001517C097001B78AA /* Build configuration list for PBXNativeTarget "HelloJavascript iOS" */; - buildPhases = ( - A92275391517C094001B78AA /* Sources */, - A922753A1517C094001B78AA /* Frameworks */, - A922753B1517C094001B78AA /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - 1A67682F180E9C110076BC67 /* PBXTargetDependency */, - 1A676831180E9C110076BC67 /* PBXTargetDependency */, - 1A676833180E9C110076BC67 /* PBXTargetDependency */, - 1A676835180E9C110076BC67 /* PBXTargetDependency */, - 1A676837180E9C110076BC67 /* PBXTargetDependency */, - ); - name = "HelloJavascript iOS"; - productName = HelloJavascript; - productReference = A922753D1517C094001B78AA /* HelloJavascript iOS.app */; - productType = "com.apple.product-type.application"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - A92275341517C094001B78AA /* Project object */ = { - isa = PBXProject; - attributes = { - LastUpgradeCheck = 0500; - TargetAttributes = { - A922753C1517C094001B78AA = { - DevelopmentTeam = MDDB52YB8L; - }; - }; - }; - buildConfigurationList = A92275371517C094001B78AA /* Build configuration list for PBXProject "HelloJavascript" */; - compatibilityVersion = "Xcode 3.2"; - developmentRegion = English; - hasScannedForEncodings = 0; - knownRegions = ( - en, - ); - mainGroup = A92275321517C094001B78AA; - productRefGroup = A922753E1517C094001B78AA /* Products */; - projectDirPath = ""; - projectReferences = ( - { - ProductGroup = 1AC6FB35180E9ACB004C840B /* Products */; - ProjectRef = 1AC6FB34180E9ACB004C840B /* cocos2d_libs.xcodeproj */; - }, - ); - projectRoot = ""; - targets = ( - A922753C1517C094001B78AA /* HelloJavascript iOS */, - 509D4A7517EBB24E00697056 /* HelloJavascript Mac */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXReferenceProxy section */ - 1AC6FB48180E9ACB004C840B /* libcocos2dx Mac.a */ = { - isa = PBXReferenceProxy; - fileType = archive.ar; - path = "libcocos2dx Mac.a"; - remoteRef = 1AC6FB47180E9ACB004C840B /* PBXContainerItemProxy */; - sourceTree = BUILT_PRODUCTS_DIR; - }; - 1AC6FB4A180E9ACB004C840B /* libcocos2dx-extensions Mac.a */ = { - isa = PBXReferenceProxy; - fileType = archive.ar; - path = "libcocos2dx-extensions Mac.a"; - remoteRef = 1AC6FB49180E9ACB004C840B /* PBXContainerItemProxy */; - sourceTree = BUILT_PRODUCTS_DIR; - }; - 1AC6FB4C180E9ACB004C840B /* libchipmunk Mac.a */ = { - isa = PBXReferenceProxy; - fileType = archive.ar; - path = "libchipmunk Mac.a"; - remoteRef = 1AC6FB4B180E9ACB004C840B /* PBXContainerItemProxy */; - sourceTree = BUILT_PRODUCTS_DIR; - }; - 1AC6FB4E180E9ACB004C840B /* libbox2d Mac.a */ = { - isa = PBXReferenceProxy; - fileType = archive.ar; - path = "libbox2d Mac.a"; - remoteRef = 1AC6FB4D180E9ACB004C840B /* PBXContainerItemProxy */; - sourceTree = BUILT_PRODUCTS_DIR; - }; - 1AC6FB50180E9ACB004C840B /* libCocosDenshion Mac.a */ = { - isa = PBXReferenceProxy; - fileType = archive.ar; - path = "libCocosDenshion Mac.a"; - remoteRef = 1AC6FB4F180E9ACB004C840B /* PBXContainerItemProxy */; - sourceTree = BUILT_PRODUCTS_DIR; - }; - 1AC6FB52180E9ACB004C840B /* libjsbindings Mac.a */ = { - isa = PBXReferenceProxy; - fileType = archive.ar; - path = "libjsbindings Mac.a"; - remoteRef = 1AC6FB51180E9ACB004C840B /* PBXContainerItemProxy */; - sourceTree = BUILT_PRODUCTS_DIR; - }; - 1AC6FB54180E9ACB004C840B /* libluabindings Mac.a */ = { - isa = PBXReferenceProxy; - fileType = archive.ar; - path = "libluabindings Mac.a"; - remoteRef = 1AC6FB53180E9ACB004C840B /* PBXContainerItemProxy */; - sourceTree = BUILT_PRODUCTS_DIR; - }; - 1AC6FB56180E9ACB004C840B /* libcocos2dx iOS.a */ = { - isa = PBXReferenceProxy; - fileType = archive.ar; - path = "libcocos2dx iOS.a"; - remoteRef = 1AC6FB55180E9ACB004C840B /* PBXContainerItemProxy */; - sourceTree = BUILT_PRODUCTS_DIR; - }; - 1AC6FB58180E9ACB004C840B /* libcocos2dx-extensions iOS.a */ = { - isa = PBXReferenceProxy; - fileType = archive.ar; - path = "libcocos2dx-extensions iOS.a"; - remoteRef = 1AC6FB57180E9ACB004C840B /* PBXContainerItemProxy */; - sourceTree = BUILT_PRODUCTS_DIR; - }; - 1AC6FB5A180E9ACB004C840B /* libchipmunk iOS.a */ = { - isa = PBXReferenceProxy; - fileType = archive.ar; - path = "libchipmunk iOS.a"; - remoteRef = 1AC6FB59180E9ACB004C840B /* PBXContainerItemProxy */; - sourceTree = BUILT_PRODUCTS_DIR; - }; - 1AC6FB5C180E9ACB004C840B /* libbox2d iOS.a */ = { - isa = PBXReferenceProxy; - fileType = archive.ar; - path = "libbox2d iOS.a"; - remoteRef = 1AC6FB5B180E9ACB004C840B /* PBXContainerItemProxy */; - sourceTree = BUILT_PRODUCTS_DIR; - }; - 1AC6FB5E180E9ACB004C840B /* libCocosDenshion iOS.a */ = { - isa = PBXReferenceProxy; - fileType = archive.ar; - path = "libCocosDenshion iOS.a"; - remoteRef = 1AC6FB5D180E9ACB004C840B /* PBXContainerItemProxy */; - sourceTree = BUILT_PRODUCTS_DIR; - }; - 1AC6FB60180E9ACB004C840B /* libjsbindings iOS.a */ = { - isa = PBXReferenceProxy; - fileType = archive.ar; - path = "libjsbindings iOS.a"; - remoteRef = 1AC6FB5F180E9ACB004C840B /* PBXContainerItemProxy */; - sourceTree = BUILT_PRODUCTS_DIR; - }; - 1AC6FB62180E9ACB004C840B /* libluabindings iOS.a */ = { - isa = PBXReferenceProxy; - fileType = archive.ar; - path = "libluabindings iOS.a"; - remoteRef = 1AC6FB61180E9ACB004C840B /* PBXContainerItemProxy */; - sourceTree = BUILT_PRODUCTS_DIR; - }; -/* End PBXReferenceProxy section */ - -/* Begin PBXResourcesBuildPhase section */ - 509D4A9317EBB24E00697056 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 15FD5C6B183A6170005CFF55 /* jsb_cocos2d_gui.js in Resources */, - 15FD5C6C183A6170005CFF55 /* jsb_cocos2d_studio.js in Resources */, - 15FD5C68183A6112005CFF55 /* cocos2d-jsb.js in Resources */, - 1A67683E180E9CE90076BC67 /* jsb_chipmunk_constants.js in Resources */, - 1A67683F180E9CE90076BC67 /* jsb_chipmunk.js in Resources */, - 1A676840180E9CE90076BC67 /* jsb_cocos2d_constants.js in Resources */, - 1A676841180E9CE90076BC67 /* jsb_cocos2d_extension.js in Resources */, - 1A676842180E9CE90076BC67 /* jsb_cocos2d.js in Resources */, - 1A676843180E9CE90076BC67 /* jsb_cocosbuilder.js in Resources */, - 1A676844180E9CE90076BC67 /* jsb_debugger.js in Resources */, - 1A676845180E9CE90076BC67 /* jsb_deprecated.js in Resources */, - 1A676846180E9CE90076BC67 /* jsb_opengl_constants.js in Resources */, - 1A676847180E9CE90076BC67 /* jsb_opengl.js in Resources */, - 1A676848180E9CE90076BC67 /* jsb_sys.js in Resources */, - 1A676849180E9CE90076BC67 /* jsb.js in Resources */, - 509D4ACF17EBB2BE00697056 /* Icon.icns in Resources */, - 509D4AA517EBB24E00697056 /* res in Resources */, - 509D4AA617EBB24E00697056 /* src in Resources */, - 1A6767FB180E9B160076BC67 /* debugger in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - A922753B1517C094001B78AA /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 15FD5C6F183A618A005CFF55 /* jsb_cocos2d_gui.js in Resources */, - 15FD5C70183A618A005CFF55 /* jsb_cocos2d_studio.js in Resources */, - 15FD5C60183A60FE005CFF55 /* cocos2d-jsb.js in Resources */, - 1A67684A180E9CF10076BC67 /* jsb_chipmunk_constants.js in Resources */, - 1A67684B180E9CF10076BC67 /* jsb_chipmunk.js in Resources */, - 1A67684C180E9CF10076BC67 /* jsb_cocos2d_constants.js in Resources */, - 1A67684D180E9CF10076BC67 /* jsb_cocos2d_extension.js in Resources */, - 1A67684E180E9CF10076BC67 /* jsb_cocos2d.js in Resources */, - 1A67684F180E9CF10076BC67 /* jsb_cocosbuilder.js in Resources */, - 1A676850180E9CF10076BC67 /* jsb_debugger.js in Resources */, - 1A676851180E9CF10076BC67 /* jsb_deprecated.js in Resources */, - 1A676852180E9CF10076BC67 /* jsb_opengl_constants.js in Resources */, - 1A676853180E9CF10076BC67 /* jsb_opengl.js in Resources */, - 1A676854180E9CF10076BC67 /* jsb_sys.js in Resources */, - 1A676855180E9CF10076BC67 /* jsb.js in Resources */, - 509D4ABE17EBB2AB00697056 /* Default.png in Resources */, - 5091731E17ECDF7A00D62437 /* Icon-80.png in Resources */, - 5091731F17ECDF7A00D62437 /* Icon-100.png in Resources */, - 509D4AC117EBB2AB00697056 /* Icon-72.png in Resources */, - 509D4AC017EBB2AB00697056 /* Icon-57.png in Resources */, - 5091731A17ECDF7A00D62437 /* Icon-29.png in Resources */, - 509D4AC617EBB2AB00697056 /* Icon-152.png in Resources */, - 509D4AC517EBB2AB00697056 /* Icon-144.png in Resources */, - 509D4AC317EBB2AB00697056 /* Icon-114.png in Resources */, - 509D4ABD17EBB2AB00697056 /* Default-568h@2x.png in Resources */, - 509D4ABF17EBB2AB00697056 /* Default@2x.png in Resources */, - 509D4AC217EBB2AB00697056 /* Icon-76.png in Resources */, - 5091731B17ECDF7A00D62437 /* Icon-40.png in Resources */, - 1AE4B40416D1FECD003C6D1C /* res in Resources */, - 5091731C17ECDF7A00D62437 /* Icon-50.png in Resources */, - 509D4AC417EBB2AB00697056 /* Icon-120.png in Resources */, - 1AE4B40516D1FECD003C6D1C /* src in Resources */, - 5091731D17ECDF7A00D62437 /* Icon-58.png in Resources */, - 1A6767FA180E9B160076BC67 /* debugger in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXResourcesBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ - 509D4A8017EBB24E00697056 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 509D4AD117EBB2BE00697056 /* main.cpp in Sources */, - 509D4A8117EBB24E00697056 /* AppDelegate.cpp in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - A92275391517C094001B78AA /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 509D4AC917EBB2AB00697056 /* RootViewController.mm in Sources */, - D4545227156E28EF00887EB5 /* AppDelegate.cpp in Sources */, - 509D4AC817EBB2AB00697056 /* main.m in Sources */, - 509D4ABC17EBB2AB00697056 /* AppController.mm in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin PBXTargetDependency section */ - 1A676820180E9BF70076BC67 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = "cocos2dx Mac"; - targetProxy = 1A67681F180E9BF70076BC67 /* PBXContainerItemProxy */; - }; - 1A676822180E9BF70076BC67 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = "cocos2dx-extensions Mac"; - targetProxy = 1A676821180E9BF70076BC67 /* PBXContainerItemProxy */; - }; - 1A676824180E9BF70076BC67 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = "chipmunk Mac"; - targetProxy = 1A676823180E9BF70076BC67 /* PBXContainerItemProxy */; - }; - 1A676826180E9BF70076BC67 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = "CocosDenshion Mac"; - targetProxy = 1A676825180E9BF70076BC67 /* PBXContainerItemProxy */; - }; - 1A676828180E9BF70076BC67 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = "jsbindings Mac"; - targetProxy = 1A676827180E9BF70076BC67 /* PBXContainerItemProxy */; - }; - 1A67682F180E9C110076BC67 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = "cocos2dx iOS"; - targetProxy = 1A67682E180E9C110076BC67 /* PBXContainerItemProxy */; - }; - 1A676831180E9C110076BC67 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = "cocos2dx-extensions iOS"; - targetProxy = 1A676830180E9C110076BC67 /* PBXContainerItemProxy */; - }; - 1A676833180E9C110076BC67 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = "chipmunk iOS"; - targetProxy = 1A676832180E9C110076BC67 /* PBXContainerItemProxy */; - }; - 1A676835180E9C110076BC67 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = "CocosDenshion iOS"; - targetProxy = 1A676834180E9C110076BC67 /* PBXContainerItemProxy */; - }; - 1A676837180E9C110076BC67 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = "jsbindings iOS"; - targetProxy = 1A676836180E9C110076BC67 /* PBXContainerItemProxy */; - }; -/* End PBXTargetDependency section */ - -/* Begin XCBuildConfiguration section */ - 509D4AA817EBB24E00697056 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = YES; - ARCHS = "$(ARCHS_STANDARD_64_BIT)"; - COMBINE_HIDPI_IMAGES = YES; - GCC_DYNAMIC_NO_PIC = NO; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = mac/Prefix.pch; - GCC_PREPROCESSOR_DEFINITIONS = ( - CC_TARGET_OS_MAC, - "$(inherited)", - ); - HEADER_SEARCH_PATHS = ( - "$(inherited)", - "$(SRCROOT)/../cocos2d/cocos/2d/platform/mac", - "$(SRCROOT)/../cocos2d/external/spidermonkey/include/mac", - "$(SRCROOT)/../cocos2d/external/glfw3/include/mac", - ); - INFOPLIST_FILE = mac/Info.plist; - LIBRARY_SEARCH_PATHS = ""; - OTHER_LDFLAGS = ""; - SDKROOT = macosx; - }; - name = Debug; - }; - 509D4AA917EBB24E00697056 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = YES; - ARCHS = "$(ARCHS_STANDARD_64_BIT)"; - COMBINE_HIDPI_IMAGES = YES; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = mac/Prefix.pch; - GCC_PREPROCESSOR_DEFINITIONS = ( - CC_TARGET_OS_MAC, - "$(inherited)", - ); - HEADER_SEARCH_PATHS = ( - "$(inherited)", - "$(SRCROOT)/../cocos2d/cocos/2d/platform/mac", - "$(SRCROOT)/../cocos2d/external/spidermonkey/include/mac", - "$(SRCROOT)/../cocos2d/external/glfw3/include/mac", - ); - INFOPLIST_FILE = mac/Info.plist; - LIBRARY_SEARCH_PATHS = ""; - OTHER_LDFLAGS = ""; - SDKROOT = macosx; - }; - name = Release; - }; - A92276FE1517C097001B78AA /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - CLANG_CXX_LANGUAGE_STANDARD = "c++0x"; - CLANG_CXX_LIBRARY = "libc++"; - COPY_PHASE_STRIP = NO; - GCC_C_LANGUAGE_STANDARD = c99; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_PREPROCESSOR_DEFINITIONS = ( - DEBUG, - "COCOS2D_DEBUG=1", - USE_FILE32API, - COCOS2D_JAVASCRIPT, - CC_ENABLE_CHIPMUNK_INTEGRATION, - ); - GCC_SYMBOLS_PRIVATE_EXTERN = NO; - GCC_WARN_ABOUT_RETURN_TYPE = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = ( - "$(SRCROOT)/../cocos2d", - "$(SRCROOT)/../cocos2d/cocos", - "$(SRCROOT)/../cocos2d/cocos/base", - "$(SRCROOT)/../cocos2d/cocos/physics", - "$(SRCROOT)/../cocos2d/cocos/math/kazmath/include", - "$(SRCROOT)/../cocos2d/cocos/2d", - "$(SRCROOT)/../cocos2d/cocos/gui", - "$(SRCROOT)/../cocos2d/cocos/network", - "$(SRCROOT)/../cocos2d/cocos/audio/include", - "$(SRCROOT)/../cocos2d/cocos/editor-support", - "$(SRCROOT)/../cocos2d/cocos/scripting/javascript/bindings", - "$(SRCROOT)/../cocos2d/cocos/scripting/auto-generated/js-bindings", - "$(SRCROOT)/../cocos2d/extensions", - "$(SRCROOT)/../cocos2d/external", - "$(SRCROOT)/../cocos2d/external/chipmunk/include/chipmunk", - ); - IPHONEOS_DEPLOYMENT_TARGET = 5.1; - ONLY_ACTIVE_ARCH = YES; - PRODUCT_NAME = "$(TARGET_NAME)"; - }; - name = Debug; - }; - A92276FF1517C097001B78AA /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - CLANG_CXX_LANGUAGE_STANDARD = "c++0x"; - CLANG_CXX_LIBRARY = "libc++"; - GCC_C_LANGUAGE_STANDARD = c99; - GCC_PREPROCESSOR_DEFINITIONS = ( - NDEBUG, - USE_FILE32API, - COCOS2D_JAVASCRIPT, - CC_ENABLE_CHIPMUNK_INTEGRATION, - ); - GCC_WARN_ABOUT_RETURN_TYPE = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = ( - "$(SRCROOT)/../cocos2d", - "$(SRCROOT)/../cocos2d/cocos", - "$(SRCROOT)/../cocos2d/cocos/base", - "$(SRCROOT)/../cocos2d/cocos/physics", - "$(SRCROOT)/../cocos2d/cocos/math/kazmath/include", - "$(SRCROOT)/../cocos2d/cocos/2d", - "$(SRCROOT)/../cocos2d/cocos/gui", - "$(SRCROOT)/../cocos2d/cocos/network", - "$(SRCROOT)/../cocos2d/cocos/audio/include", - "$(SRCROOT)/../cocos2d/cocos/editor-support", - "$(SRCROOT)/../cocos2d/cocos/scripting/javascript/bindings", - "$(SRCROOT)/../cocos2d/cocos/scripting/auto-generated/js-bindings", - "$(SRCROOT)/../cocos2d/extensions", - "$(SRCROOT)/../cocos2d/external", - "$(SRCROOT)/../cocos2d/external/chipmunk/include/chipmunk", - ); - IPHONEOS_DEPLOYMENT_TARGET = 5.1; - OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1"; - PRODUCT_NAME = "$(TARGET_NAME)"; - VALIDATE_PRODUCT = YES; - }; - name = Release; - }; - A92277011517C097001B78AA /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = YES; - CODE_SIGN_IDENTITY = "iPhone Developer"; - COMPRESS_PNG_FILES = NO; - GCC_DYNAMIC_NO_PIC = NO; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = ios/Prefix.pch; - GCC_PREPROCESSOR_DEFINITIONS = ( - CC_TARGET_OS_IPHONE, - "$(inherited)", - ); - HEADER_SEARCH_PATHS = ( - "$(inherited)", - "$(SRCROOT)/../cocos2d/cocos/2d/platform/ios", - "$(SRCROOT)/../cocos2d/cocos/2d/platform/ios/Simulation", - "$(SRCROOT)/../cocos2d/external/spidermonkey/include/ios", - ); - INFOPLIST_FILE = ios/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 5.0; - LIBRARY_SEARCH_PATHS = ""; - OTHER_LDFLAGS = ""; - SDKROOT = iphoneos; - TARGETED_DEVICE_FAMILY = "1,2"; - }; - name = Debug; - }; - A92277021517C097001B78AA /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = YES; - CODE_SIGN_IDENTITY = "iPhone Developer"; - COMPRESS_PNG_FILES = NO; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = ios/Prefix.pch; - GCC_PREPROCESSOR_DEFINITIONS = ( - CC_TARGET_OS_IPHONE, - "$(inherited)", - ); - HEADER_SEARCH_PATHS = ( - "$(inherited)", - "$(SRCROOT)/../cocos2d/cocos/2d/platform/ios", - "$(SRCROOT)/../cocos2d/cocos/2d/platform/ios/Simulation", - "$(SRCROOT)/../cocos2d/external/spidermonkey/include/ios", - ); - INFOPLIST_FILE = ios/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 5.0; - LIBRARY_SEARCH_PATHS = ""; - OTHER_LDFLAGS = ""; - SDKROOT = iphoneos; - TARGETED_DEVICE_FAMILY = "1,2"; - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - 509D4AA717EBB24E00697056 /* Build configuration list for PBXNativeTarget "HelloJavascript Mac" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 509D4AA817EBB24E00697056 /* Debug */, - 509D4AA917EBB24E00697056 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - A92275371517C094001B78AA /* Build configuration list for PBXProject "HelloJavascript" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - A92276FE1517C097001B78AA /* Debug */, - A92276FF1517C097001B78AA /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - A92277001517C097001B78AA /* Build configuration list for PBXNativeTarget "HelloJavascript iOS" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - A92277011517C097001B78AA /* Debug */, - A92277021517C097001B78AA /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; -/* End XCConfigurationList section */ - }; - rootObject = A92275341517C094001B78AA /* Project object */; -} diff --git a/templates/multi-platform-js/proj.ios_mac/ios/AppController.h b/templates/multi-platform-js/proj.ios_mac/ios/AppController.h deleted file mode 100644 index 09f2084880..0000000000 --- a/templates/multi-platform-js/proj.ios_mac/ios/AppController.h +++ /dev/null @@ -1,34 +0,0 @@ -/**************************************************************************** - Copyright (c) 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/templates/multi-platform-js/proj.ios_mac/ios/AppController.mm b/templates/multi-platform-js/proj.ios_mac/ios/AppController.mm deleted file mode 100644 index 06d659ddcf..0000000000 --- a/templates/multi-platform-js/proj.ios_mac/ios/AppController.mm +++ /dev/null @@ -1,145 +0,0 @@ -/**************************************************************************** - Copyright (c) 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 "AppController.h" -#import "cocos2d.h" -#import "CCEAGLView.h" -#import "AppDelegate.h" - -#import "RootViewController.h" - -@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_DEPTH_COMPONENT16 //_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::GLView::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. - */ - //We don't need to call this method any more. It will interupt user defined game pause&resume logic - /* cocos2d::Director::getInstance()->pause(); */ -} - -- (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. - */ - //We don't need to call this method any more. It will interupt user defined game pause&resume logic - /* 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/templates/multi-platform-js/proj.ios_mac/ios/Default-568h@2x.png.REMOVED.git-id b/templates/multi-platform-js/proj.ios_mac/ios/Default-568h@2x.png.REMOVED.git-id deleted file mode 100644 index 8f5838f3a8..0000000000 --- a/templates/multi-platform-js/proj.ios_mac/ios/Default-568h@2x.png.REMOVED.git-id +++ /dev/null @@ -1 +0,0 @@ -66c6d1cead373b45218424f6a82f370897e443e4 \ No newline at end of file diff --git a/templates/multi-platform-js/proj.ios_mac/ios/Default@2x.png.REMOVED.git-id b/templates/multi-platform-js/proj.ios_mac/ios/Default@2x.png.REMOVED.git-id deleted file mode 100644 index 8843505b20..0000000000 --- a/templates/multi-platform-js/proj.ios_mac/ios/Default@2x.png.REMOVED.git-id +++ /dev/null @@ -1 +0,0 @@ -84689888a14a2123d2b39f7f2f61be8c15207479 \ No newline at end of file diff --git a/templates/multi-platform-js/proj.ios_mac/ios/Prefix.pch b/templates/multi-platform-js/proj.ios_mac/ios/Prefix.pch deleted file mode 100644 index 168ddec406..0000000000 --- a/templates/multi-platform-js/proj.ios_mac/ios/Prefix.pch +++ /dev/null @@ -1,8 +0,0 @@ -// -// Prefix header for all source files of the 'HelloJavascript' target in the 'HelloJavascript' project -// - -#ifdef __OBJC__ - #import - #import -#endif diff --git a/templates/multi-platform-js/proj.ios_mac/ios/RootViewController.h b/templates/multi-platform-js/proj.ios_mac/ios/RootViewController.h deleted file mode 100644 index a68782316e..0000000000 --- a/templates/multi-platform-js/proj.ios_mac/ios/RootViewController.h +++ /dev/null @@ -1,33 +0,0 @@ -/**************************************************************************** - Copyright (c) 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 - - -@interface RootViewController : UIViewController { - -} -- (BOOL)prefersStatusBarHidden; -@end diff --git a/templates/multi-platform-js/proj.ios_mac/ios/RootViewController.mm b/templates/multi-platform-js/proj.ios_mac/ios/RootViewController.mm deleted file mode 100644 index 2374fae2d2..0000000000 --- a/templates/multi-platform-js/proj.ios_mac/ios/RootViewController.mm +++ /dev/null @@ -1,108 +0,0 @@ -/**************************************************************************** - Copyright (c) 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 "RootViewController.h" -#import "cocos2d.h" -#import "CCEAGLView.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; -} - -- (void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation { - [super didRotateFromInterfaceOrientation:fromInterfaceOrientation]; - - cocos2d::GLView *glview = cocos2d::Director::getInstance()->getOpenGLView(); - CCEAGLView *eaglview = (CCEAGLView*) glview->getEAGLView(); - - CGSize s = CGSizeMake([eaglview getWidth], [eaglview getHeight]); - - cocos2d::Application::getInstance()->applicationScreenSizeChanged((int) s.width, (int) s.height); -} - -//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/templates/multi-platform-js/proj.ios_mac/ios/main.m b/templates/multi-platform-js/proj.ios_mac/ios/main.m deleted file mode 100644 index b1286e31be..0000000000 --- a/templates/multi-platform-js/proj.ios_mac/ios/main.m +++ /dev/null @@ -1,11 +0,0 @@ - - -#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/templates/multi-platform-js/proj.ios_mac/mac/Icon.icns.REMOVED.git-id b/templates/multi-platform-js/proj.ios_mac/mac/Icon.icns.REMOVED.git-id deleted file mode 100644 index 0c90afdb6d..0000000000 --- a/templates/multi-platform-js/proj.ios_mac/mac/Icon.icns.REMOVED.git-id +++ /dev/null @@ -1 +0,0 @@ -2040fc6fe624353ae1d3db50cd3d450f4fda5afc \ No newline at end of file diff --git a/templates/multi-platform-js/proj.ios_mac/mac/Prefix.pch b/templates/multi-platform-js/proj.ios_mac/mac/Prefix.pch deleted file mode 100644 index 46c36a7e99..0000000000 --- a/templates/multi-platform-js/proj.ios_mac/mac/Prefix.pch +++ /dev/null @@ -1,7 +0,0 @@ -// -// Prefix header for all source files of the 'Paralaxer' target in the 'Paralaxer' project -// - -#ifdef __OBJC__ - #import -#endif diff --git a/templates/multi-platform-js/proj.ios_mac/mac/main.cpp b/templates/multi-platform-js/proj.ios_mac/mac/main.cpp deleted file mode 100644 index 2d47ac9192..0000000000 --- a/templates/multi-platform-js/proj.ios_mac/mac/main.cpp +++ /dev/null @@ -1,34 +0,0 @@ -/**************************************************************************** - 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/templates/multi-platform-js/proj.linux/main.cpp b/templates/multi-platform-js/proj.linux/main.cpp deleted file mode 100644 index c5b735da78..0000000000 --- a/templates/multi-platform-js/proj.linux/main.cpp +++ /dev/null @@ -1,15 +0,0 @@ -#include "../Classes/AppDelegate.h" - -#include -#include -#include -#include - -USING_NS_CC; - -int main(int argc, char **argv) -{ - // create the application instance - AppDelegate app; - return Application::getInstance()->run(); -} diff --git a/templates/multi-platform-js/proj.win32/HelloJavascript.sln b/templates/multi-platform-js/proj.win32/HelloJavascript.sln deleted file mode 100644 index 05d76f1c83..0000000000 --- a/templates/multi-platform-js/proj.win32/HelloJavascript.sln +++ /dev/null @@ -1,90 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 2012 -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "HelloJavascript", "HelloJavascript.vcxproj", "{3B0B58B1-2734-488E-A542-ECEC11EB2455}" - ProjectSection(ProjectDependencies) = postProject - {21B2C324-891F-48EA-AD1A-5AE13DE12E28} = {21B2C324-891F-48EA-AD1A-5AE13DE12E28} - {39379840-825A-45A0-B363-C09FFEF864BD} = {39379840-825A-45A0-B363-C09FFEF864BD} - {98A51BA8-FC3A-415B-AC8F-8C7BD464E93E} = {98A51BA8-FC3A-415B-AC8F-8C7BD464E93E} - {207BC7A9-CCF1-4F2F-A04D-45F72242AE25} = {207BC7A9-CCF1-4F2F-A04D-45F72242AE25} - {F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6} = {F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6} - EndProjectSection -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libcocos2d", "..\cocos2d\cocos\2d\cocos2d.vcxproj", "{98A51BA8-FC3A-415B-AC8F-8C7BD464E93E}" -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libchipmunk", "..\cocos2d\external\chipmunk\proj.win32\chipmunk.vcxproj", "{207BC7A9-CCF1-4F2F-A04D-45F72242AE25}" -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libAudio", "..\cocos2d\cocos\audio\proj.win32\CocosDenshion.vcxproj", "{F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6}" - ProjectSection(ProjectDependencies) = postProject - {98A51BA8-FC3A-415B-AC8F-8C7BD464E93E} = {98A51BA8-FC3A-415B-AC8F-8C7BD464E93E} - EndProjectSection -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libJSBinding", "..\cocos2d\cocos\scripting\javascript\bindings\proj.win32\libJSBinding.vcxproj", "{39379840-825A-45A0-B363-C09FFEF864BD}" - ProjectSection(ProjectDependencies) = postProject - {21B2C324-891F-48EA-AD1A-5AE13DE12E28} = {21B2C324-891F-48EA-AD1A-5AE13DE12E28} - {98A51BA8-FC3A-415B-AC8F-8C7BD464E93E} = {98A51BA8-FC3A-415B-AC8F-8C7BD464E93E} - {207BC7A9-CCF1-4F2F-A04D-45F72242AE25} = {207BC7A9-CCF1-4F2F-A04D-45F72242AE25} - {F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6} = {F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6} - EndProjectSection -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libJSBindingForChipmunk", "..\cocos2d\cocos\scripting\javascript\bindings\chipmunk\libJSBindingForChipmunk.vcxproj", "{21070E58-EEC6-4E16-8B4F-6D083DF55790}" -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libLocalStorage", "..\cocos2d\cocos\storage\local-storage\proj.win32\libLocalStorage.vcxproj", "{632A8F38-D0F0-4D22-86B3-D69F5E6BF63A}" -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libJSBindingForLocalStorage", "..\cocos2d\cocos\scripting\javascript\bindings\localstorage\libJSBindingForLocalStorage.vcxproj", "{68F5F371-BD7B-4C30-AE5B-0B08F22E0CDE}" -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libJSBindingForExtension", "..\cocos2d\cocos\scripting\javascript\bindings\extension\libJSBindingForExtension.vcxproj", "{625F7391-9A91-48A1-8CFC-79508C822637}" -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libExtensions", "..\cocos2d\extensions\proj.win32\libExtensions.vcxproj", "{21B2C324-891F-48EA-AD1A-5AE13DE12E28}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Win32 = Debug|Win32 - Release|Win32 = Release|Win32 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {3B0B58B1-2734-488E-A542-ECEC11EB2455}.Debug|Win32.ActiveCfg = Debug|Win32 - {3B0B58B1-2734-488E-A542-ECEC11EB2455}.Debug|Win32.Build.0 = Debug|Win32 - {3B0B58B1-2734-488E-A542-ECEC11EB2455}.Release|Win32.ActiveCfg = Release|Win32 - {3B0B58B1-2734-488E-A542-ECEC11EB2455}.Release|Win32.Build.0 = Release|Win32 - {98A51BA8-FC3A-415B-AC8F-8C7BD464E93E}.Debug|Win32.ActiveCfg = Debug|Win32 - {98A51BA8-FC3A-415B-AC8F-8C7BD464E93E}.Debug|Win32.Build.0 = Debug|Win32 - {98A51BA8-FC3A-415B-AC8F-8C7BD464E93E}.Release|Win32.ActiveCfg = Release|Win32 - {98A51BA8-FC3A-415B-AC8F-8C7BD464E93E}.Release|Win32.Build.0 = Release|Win32 - {207BC7A9-CCF1-4F2F-A04D-45F72242AE25}.Debug|Win32.ActiveCfg = Debug|Win32 - {207BC7A9-CCF1-4F2F-A04D-45F72242AE25}.Debug|Win32.Build.0 = Debug|Win32 - {207BC7A9-CCF1-4F2F-A04D-45F72242AE25}.Release|Win32.ActiveCfg = Release|Win32 - {207BC7A9-CCF1-4F2F-A04D-45F72242AE25}.Release|Win32.Build.0 = Release|Win32 - {F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6}.Debug|Win32.ActiveCfg = Debug|Win32 - {F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6}.Debug|Win32.Build.0 = Debug|Win32 - {F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6}.Release|Win32.ActiveCfg = Release|Win32 - {F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6}.Release|Win32.Build.0 = Release|Win32 - {39379840-825A-45A0-B363-C09FFEF864BD}.Debug|Win32.ActiveCfg = Debug|Win32 - {39379840-825A-45A0-B363-C09FFEF864BD}.Debug|Win32.Build.0 = Debug|Win32 - {39379840-825A-45A0-B363-C09FFEF864BD}.Release|Win32.ActiveCfg = Release|Win32 - {39379840-825A-45A0-B363-C09FFEF864BD}.Release|Win32.Build.0 = Release|Win32 - {21070E58-EEC6-4E16-8B4F-6D083DF55790}.Debug|Win32.ActiveCfg = Debug|Win32 - {21070E58-EEC6-4E16-8B4F-6D083DF55790}.Debug|Win32.Build.0 = Debug|Win32 - {21070E58-EEC6-4E16-8B4F-6D083DF55790}.Release|Win32.ActiveCfg = Release|Win32 - {21070E58-EEC6-4E16-8B4F-6D083DF55790}.Release|Win32.Build.0 = Release|Win32 - {632A8F38-D0F0-4D22-86B3-D69F5E6BF63A}.Debug|Win32.ActiveCfg = Debug|Win32 - {632A8F38-D0F0-4D22-86B3-D69F5E6BF63A}.Debug|Win32.Build.0 = Debug|Win32 - {632A8F38-D0F0-4D22-86B3-D69F5E6BF63A}.Release|Win32.ActiveCfg = Release|Win32 - {632A8F38-D0F0-4D22-86B3-D69F5E6BF63A}.Release|Win32.Build.0 = Release|Win32 - {68F5F371-BD7B-4C30-AE5B-0B08F22E0CDE}.Debug|Win32.ActiveCfg = Debug|Win32 - {68F5F371-BD7B-4C30-AE5B-0B08F22E0CDE}.Debug|Win32.Build.0 = Debug|Win32 - {68F5F371-BD7B-4C30-AE5B-0B08F22E0CDE}.Release|Win32.ActiveCfg = Release|Win32 - {68F5F371-BD7B-4C30-AE5B-0B08F22E0CDE}.Release|Win32.Build.0 = Release|Win32 - {625F7391-9A91-48A1-8CFC-79508C822637}.Debug|Win32.ActiveCfg = Debug|Win32 - {625F7391-9A91-48A1-8CFC-79508C822637}.Debug|Win32.Build.0 = Debug|Win32 - {625F7391-9A91-48A1-8CFC-79508C822637}.Release|Win32.ActiveCfg = Release|Win32 - {625F7391-9A91-48A1-8CFC-79508C822637}.Release|Win32.Build.0 = Release|Win32 - {21B2C324-891F-48EA-AD1A-5AE13DE12E28}.Debug|Win32.ActiveCfg = Debug|Win32 - {21B2C324-891F-48EA-AD1A-5AE13DE12E28}.Debug|Win32.Build.0 = Debug|Win32 - {21B2C324-891F-48EA-AD1A-5AE13DE12E28}.Release|Win32.ActiveCfg = Release|Win32 - {21B2C324-891F-48EA-AD1A-5AE13DE12E28}.Release|Win32.Build.0 = Release|Win32 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection -EndGlobal diff --git a/templates/multi-platform-js/proj.win32/HelloJavascript.vcxproj b/templates/multi-platform-js/proj.win32/HelloJavascript.vcxproj deleted file mode 100644 index a3b73dc491..0000000000 --- a/templates/multi-platform-js/proj.win32/HelloJavascript.vcxproj +++ /dev/null @@ -1,218 +0,0 @@ - - - - - Debug - Win32 - - - Release - Win32 - - - - {3B0B58B1-2734-488E-A542-ECEC11EB2455} - HelloJavascript - - - - Application - Unicode - v100 - v110 - v110_xp - - - Application - Unicode - v100 - v110 - v110_xp - - - - - - - - - - - - - - - - - <_ProjectFileVersion>10.0.40219.1 - $(SolutionDir)$(Configuration).win32\ - $(Configuration).win32\ - false - $(SolutionDir)$(Configuration).win32\ - $(Configuration).win32\ - false - AllRules.ruleset - - - AllRules.ruleset - - - - - $(MSBuildProgramFiles32)\Microsoft SDKs\Windows\v7.1A\lib;$(LibraryPath) - - - $(MSBuildProgramFiles32)\Microsoft SDKs\Windows\v7.1A\lib;$(LibraryPath) - - - - _DEBUG;%(PreprocessorDefinitions) - false - Win32 - true - $(IntDir)game.tlb - game.h - - - game_i.c - game_p.c - - - Disabled - $(ProjectDir)..\Classes;$(EngineRoot);$(EngineRoot)cocos;$(EngineRoot)cocos\audio\include;$(EngineRoot)cocos\scripting\javascript\bindings;$(EngineRoot)cocos\scripting\auto-generated\js-bindings;$(EngineRoot)external\spidermonkey\include\win32;$(EngineRoot)external\chipmunk\include\chipmunk;%(AdditionalIncludeDirectories) - WIN32;_WINDOWS;STRICT;_DEBUG;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 "$(EngineRoot)external\spidermonkey\prebuilt\win32\*.*" "$(OutDir)" -xcopy /Y /Q "$(EngineRoot)external\websockets\prebuilt\win32\*.*" "$(OutDir)" - - - libcurl_imp.lib;mozjs-27.lib;ws2_32.lib;sqlite3.lib;websockets.lib;%(AdditionalDependencies) - $(OutDir);%(AdditionalLibraryDirectories) - true - Windows - MachineX86 - - - if not exist "$(OutDir)" mkdir "$(OutDir)" -if exist "$(OutDir)\HelloJavascriptRes" rd /s /q "$(OutDir)\HelloJavascriptRes" -mkdir "$(OutDir)\HelloJavascriptRes" -xcopy "$(EngineRoot)cocos\scripting\javascript\script\*.js" "$(OutDir)\HelloJavascriptRes\" /e /Y -xcopy "$(ProjectDir)..\Resources" "$(OutDir)\HelloJavascriptRes\" /e /Y - - - Copy js and resource files. - - - - - NDEBUG;%(PreprocessorDefinitions) - false - Win32 - true - $(IntDir)game.tlb - game.h - - - game_i.c - game_p.c - - - $(ProjectDir)..\Classes;$(EngineRoot);$(EngineRoot)cocos;$(EngineRoot)cocos\audio\include;$(EngineRoot)cocos\scripting\javascript\bindings;$(EngineRoot)cocos\scripting\auto-generated\js-bindings;$(EngineRoot)external\spidermonkey\include\win32;$(EngineRoot)external\chipmunk\include\chipmunk;%(AdditionalIncludeDirectories) - WIN32;_WINDOWS;STRICT;NDEBUG;XP_WIN;JS_HAVE___INTN;JS_INTPTR_TYPE=int;COCOS2D_JAVASCRIPT=1;CC_ENABLE_CHIPMUNK_INTEGRATION=1;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) - - - 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 "$(EngineRoot)external\spidermonkey\prebuilt\win32\*.*" "$(OutDir)" -xcopy /Y /Q "$(EngineRoot)external\websockets\prebuilt\win32\*.*" "$(OutDir)" - - - libcurl_imp.lib;mozjs-27.lib;ws2_32.lib;sqlite3.lib;websockets.lib;%(AdditionalDependencies) - $(OutDir);%(AdditionalLibraryDirectories) - Windows - MachineX86 - true - - - if not exist "$(OutDir)" mkdir "$(OutDir)" -if exist "$(OutDir)\HelloJavascriptRes" rd /s /q "$(OutDir)\HelloJavascriptRes" -mkdir "$(OutDir)\HelloJavascriptRes" -xcopy "$(EngineRoot)cocos\scripting\javascript\script\*.js" "$(OutDir)\HelloJavascriptRes\" /e /Y -xcopy "$(ProjectDir)..\Resources" "$(OutDir)\HelloJavascriptRes\" /e /Y - Copy js and resource files. - - - - - - - - - - - - - - - - {98a51ba8-fc3a-415b-ac8f-8c7bd464e93e} - - - {f8edd7fa-9a51-4e80-baeb-860825d2eac6} - - - {21070e58-eec6-4e16-8b4f-6d083df55790} - - - {625f7391-9a91-48a1-8cfc-79508c822637} - - - {68f5f371-bd7b-4c30-ae5b-0b08f22e0cde} - - - {39379840-825a-45a0-b363-c09ffef864bd} - - - {632a8f38-d0f0-4d22-86b3-d69f5e6bf63a} - - - {21b2c324-891f-48ea-ad1a-5ae13de12e28} - - - {207bc7a9-ccf1-4f2f-a04d-45f72242ae25} - - - - - - \ No newline at end of file diff --git a/templates/multi-platform-js/proj.win32/HelloJavascript.vcxproj.filters b/templates/multi-platform-js/proj.win32/HelloJavascript.vcxproj.filters deleted file mode 100644 index b3ec546774..0000000000 --- a/templates/multi-platform-js/proj.win32/HelloJavascript.vcxproj.filters +++ /dev/null @@ -1,36 +0,0 @@ - - - - - {ca9c9e15-d942-43a1-aa7a-5f0b74ca1afd} - rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;jpg;jpeg;jpe;png;manifest - - - {ccb2323b-1cfa-41ea-bcf4-ba5f07309396} - - - {e93a77e1-af1e-4400-87d3-504b62ebdbb0} - - - - - win32 - - - Classes - - - - - Classes - - - win32 - - - - - resource - - - \ No newline at end of file diff --git a/templates/multi-platform-js/proj.win32/HelloJavascript.vcxproj.user b/templates/multi-platform-js/proj.win32/HelloJavascript.vcxproj.user deleted file mode 100644 index c6f9b6518d..0000000000 --- a/templates/multi-platform-js/proj.win32/HelloJavascript.vcxproj.user +++ /dev/null @@ -1,11 +0,0 @@ - - - - $(OutDir)\HelloJavascriptRes - WindowsLocalDebugger - - - $(OutDir)\HelloJavascriptRes - WindowsLocalDebugger - - \ No newline at end of file diff --git a/templates/multi-platform-js/proj.win32/game.rc b/templates/multi-platform-js/proj.win32/game.rc deleted file mode 100644 index 1e0a2a0da2..0000000000 --- a/templates/multi-platform-js/proj.win32/game.rc +++ /dev/null @@ -1,86 +0,0 @@ -// 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. -GLFW_ICON ICON "res\\game.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", "game Module\0" - VALUE "FileVersion", "1, 0, 0, 1\0" - VALUE "InternalName", "game\0" - VALUE "LegalCopyright", "Copyright \0" - VALUE "OriginalFilename", "game.exe\0" - VALUE "ProductName", "game 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/templates/multi-platform-js/proj.win32/main.cpp b/templates/multi-platform-js/proj.win32/main.cpp deleted file mode 100644 index 34f40d33cf..0000000000 --- a/templates/multi-platform-js/proj.win32/main.cpp +++ /dev/null @@ -1,34 +0,0 @@ -#include "main.h" -#include "AppDelegate.h" -#include "cocos2d.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/templates/multi-platform-js/proj.win32/main.h b/templates/multi-platform-js/proj.win32/main.h deleted file mode 100644 index e29aeedb3a..0000000000 --- a/templates/multi-platform-js/proj.win32/main.h +++ /dev/null @@ -1,12 +0,0 @@ -#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/templates/multi-platform-js/proj.win32/res/game.ico b/templates/multi-platform-js/proj.win32/res/game.ico deleted file mode 100644 index feaf932a74..0000000000 Binary files a/templates/multi-platform-js/proj.win32/res/game.ico and /dev/null differ diff --git a/templates/multi-platform-js/proj.win32/resource.h b/templates/multi-platform-js/proj.win32/resource.h deleted file mode 100644 index 376870ba13..0000000000 --- a/templates/multi-platform-js/proj.win32/resource.h +++ /dev/null @@ -1,20 +0,0 @@ -//{{NO_DEPENDENCIES}} -// Microsoft Visual C++ generated include file. -// Used by game.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/templates/multi-platform-lua/CMakeLists.txt b/templates/multi-platform-lua/CMakeLists.txt deleted file mode 100644 index f9c58356fd..0000000000 --- a/templates/multi-platform-lua/CMakeLists.txt +++ /dev/null @@ -1,184 +0,0 @@ -cmake_minimum_required(VERSION 2.6) - -set(APP_NAME HelloLua) -project (${APP_NAME}) - -include(cocos2d/build/BuildHelpers.CMakeLists.txt) - -option(USE_CHIPMUNK "Use chipmunk for physics library" ON) -option(USE_BOX2D "Use box2d for physics library" OFF) -option(DEBUG_MODE "Debug or release?" ON) - -if(DEBUG_MODE) - set(CMAKE_BUILD_TYPE DEBUG) -else(DEBUG_MODE) - set(CMAKE_BUILD_TYPE RELEASE) -endif(DEBUG_MODE) - -set(CMAKE_C_FLAGS_DEBUG "-g -Wall -DCOCOS2D_DEBUG=1") -set(CMAKE_CXX_FLAGS_DEBUG ${CMAKE_C_FLAGS_DEBUG}) - -set(CMAKE_C_FLAGS ${CMAKE_C_FLAGS} "-std=c99") -set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} "-std=c++11") - -if(USE_CHIPMUNK) - message("Using chipmunk ...") - add_definitions(-DLINUX -DCC_ENABLE_CHIPMUNK_INTEGRATION=1) -elseif(USE_BOX2D) - message("Using box2d ...") - add_definitions(-DLINUX -DCC_ENABLE_BOX2D_INTEGRATION=1) -else(USE_CHIPMUNK) - message(FATAL_ERROR "Must choose a physics library.") -endif(USE_CHIPMUNK) - -# architecture -if ( CMAKE_SIZEOF_VOID_P EQUAL 8 ) -set(ARCH_DIR "64-bit") -else() -set(ARCH_DIR "32-bit") -endif() - - -set(GAME_SRC - proj.linux/main.cpp - Classes/AppDelegate.cpp -) - -set(COCOS2D_ROOT ${CMAKE_SOURCE_DIR}/cocos2d) - -include_directories( - /usr/local/include/GLFW - Classes - ${COCOS2D_ROOT}/cocos/scripting/lua/bindings - ${COCOS2D_ROOT}/external/lua/lua - ${COCOS2D_ROOT}/external/lua/tolua - ${COCOS2D_ROOT} - ${COCOS2D_ROOT}/cocos - ${COCOS2D_ROOT}/cocos/audio/include - ${COCOS2D_ROOT}/cocos/2d - ${COCOS2D_ROOT}/cocos/2d/renderer - ${COCOS2D_ROOT}/cocos/2d/platform - ${COCOS2D_ROOT}/cocos/2d/platform/desktop - ${COCOS2D_ROOT}/cocos/2d/platform/linux - ${COCOS2D_ROOT}/cocos/base - ${COCOS2D_ROOT}/cocos/physics - ${COCOS2D_ROOT}/cocos/editor-support - ${COCOS2D_ROOT}/cocos/math/kazmath/include - ${COCOS2D_ROOT}/extensions - ${COCOS2D_ROOT}/external - ${COCOS2D_ROOT}/external/edtaa3func - ${COCOS2D_ROOT}/external/jpeg/include/linux - ${COCOS2D_ROOT}/external/tiff/include/linux - ${COCOS2D_ROOT}/external/webp/include/linux - ${COCOS2D_ROOT}/external/tinyxml2 - ${COCOS2D_ROOT}/external/unzip - ${COCOS2D_ROOT}/external/chipmunk/include/chipmunk - ${COCOS2D_ROOT}/external/freetype2/include/linux - ${COCOS2D_ROOT}/external/websockets/include/linux - ${COCOS2D_ROOT}/external/spidermonkey/include/linux - ${COCOS2D_ROOT}/external/linux-specific/fmod/include/${ARCH_DIR} -) - -link_directories( - /usr/local/lib - ${COCOS2D_ROOT}/external/jpeg/prebuilt/linux/${ARCH_DIR} - ${COCOS2D_ROOT}/external/tiff/prebuilt/linux/${ARCH_DIR} - ${COCOS2D_ROOT}/external/webp/prebuilt/linux/${ARCH_DIR} - ${COCOS2D_ROOT}/external/freetype2/prebuilt/linux/${ARCH_DIR} - ${COCOS2D_ROOT}/external/websockets/prebuilt/linux/${ARCH_DIR} - ${COCOS2D_ROOT}/external/spidermonkey/prebuilt/linux/${ARCH_DIR} - ${COCOS2D_ROOT}/external/linux-specific/fmod/prebuilt/${ARCH_DIR} -) - -# kazmath -add_subdirectory(${COCOS2D_ROOT}/cocos/math/kazmath) - -# chipmunk library -add_subdirectory(${COCOS2D_ROOT}/external/chipmunk/src) - -# box2d library -add_subdirectory(${COCOS2D_ROOT}/external/Box2D) - -# unzip library -add_subdirectory(${COCOS2D_ROOT}/external/unzip) - -# tinyxml2 library -add_subdirectory(${COCOS2D_ROOT}/external/tinyxml2) - -# audio -add_subdirectory(${COCOS2D_ROOT}/cocos/audio) - -# cocos base library -add_subdirectory(${COCOS2D_ROOT}/cocos/base) - -# cocos 2d library -add_subdirectory(${COCOS2D_ROOT}/cocos/2d) - -# cocos storage -add_subdirectory(${COCOS2D_ROOT}/cocos/storage) - -# gui -add_subdirectory(${COCOS2D_ROOT}/cocos/gui) - -# network -add_subdirectory(${COCOS2D_ROOT}/cocos/network) - -# extensions -add_subdirectory(${COCOS2D_ROOT}/extensions) - -## Editor Support - -# spine -add_subdirectory(${COCOS2D_ROOT}/cocos/editor-support/spine) - -# cocosbuilder -add_subdirectory(${COCOS2D_ROOT}/cocos/editor-support/cocosbuilder) - -# cocostudio -add_subdirectory(${COCOS2D_ROOT}/cocos/editor-support/cocostudio) - -## Scripting -# lua -add_subdirectory(${COCOS2D_ROOT}/external/lua/lua) - -# tolua -add_subdirectory(${COCOS2D_ROOT}/external/lua/tolua) - -# luabinding -add_subdirectory(${COCOS2D_ROOT}/cocos/scripting/lua) - -# add the executable -add_executable(${APP_NAME} - ${GAME_SRC} -) - -if ( CMAKE_SIZEOF_VOID_P EQUAL 8 ) -set(FMOD_LIB "fmodex64") -else() -set(FMOD_LIB "fmodex") -endif() - -target_link_libraries(${APP_NAME} - luabinding - gui - network - storage - spine - cocostudio - cocosbuilder - extensions - audio - cocos2d - ) - -set(APP_BIN_DIR "${CMAKE_BINARY_DIR}/bin") - -set_target_properties(${APP_NAME} PROPERTIES - RUNTIME_OUTPUT_DIRECTORY "${APP_BIN_DIR}") - -pre_build(${APP_NAME} - COMMAND ${CMAKE_COMMAND} -E remove_directory ${APP_BIN_DIR}/Resources - COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_SOURCE_DIR}/Resources ${APP_BIN_DIR}/Resources - COMMAND ${CMAKE_COMMAND} -E copy_directory ${COCOS2D_ROOT}/cocos/scripting/lua/script ${APP_BIN_DIR}/Resources - ) - diff --git a/templates/multi-platform-lua/Classes/AppDelegate.cpp b/templates/multi-platform-lua/Classes/AppDelegate.cpp deleted file mode 100644 index 38c73e160f..0000000000 --- a/templates/multi-platform-lua/Classes/AppDelegate.cpp +++ /dev/null @@ -1,61 +0,0 @@ -#include "AppDelegate.h" -#include "CCLuaEngine.h" -#include "SimpleAudioEngine.h" - -using namespace CocosDenshion; - -USING_NS_CC; - -AppDelegate::AppDelegate() -{ -} - -AppDelegate::~AppDelegate() -{ - SimpleAudioEngine::end(); -} - -bool AppDelegate::applicationDidFinishLaunching() -{ - // initialize director - auto director = Director::getInstance(); - auto glview = director->getOpenGLView(); - if(!glview) { - glview = GLView::create("My Game"); - director->setOpenGLView(glview); - } - - glview->setDesignResolutionSize(480, 320, ResolutionPolicy::NO_BORDER); - - // turn on display FPS - director->setDisplayStats(true); - - // set FPS. the default value is 1.0/60 if you don't call this - director->setAnimationInterval(1.0 / 60); - - // register lua engine - auto engine = LuaEngine::getInstance(); - ScriptEngineManager::getInstance()->setScriptEngine(engine); - - //The call was commented because it will lead to ZeroBrane Studio can't find correct context when debugging - //engine->executeScriptFile("hello.lua"); - engine->executeString("require 'hello.lua'"); - - 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() -{ - Director::getInstance()->stopAnimation(); - - SimpleAudioEngine::getInstance()->pauseBackgroundMusic(); -} - -// this function will be called when the app is active again -void AppDelegate::applicationWillEnterForeground() -{ - Director::getInstance()->startAnimation(); - - SimpleAudioEngine::getInstance()->resumeBackgroundMusic(); -} diff --git a/templates/multi-platform-lua/Classes/AppDelegate.h b/templates/multi-platform-lua/Classes/AppDelegate.h deleted file mode 100644 index 5cf478d052..0000000000 --- a/templates/multi-platform-lua/Classes/AppDelegate.h +++ /dev/null @@ -1,38 +0,0 @@ -#ifndef __APP_DELEGATE_H__ -#define __APP_DELEGATE_H__ - -#include "cocos2d.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(); - - /** - @brief Implement Director and Scene init code here. - @return true Initialize success, app continue. - @return false Initialize failed, app terminate. - */ - virtual bool applicationDidFinishLaunching(); - - /** - @brief The function be called when the application enter background - @param the pointer of the application - */ - virtual void applicationDidEnterBackground(); - - /** - @brief The function be called when the application enter foreground - @param the pointer of the application - */ - virtual void applicationWillEnterForeground(); -}; - -#endif // __APP_DELEGATE_H__ - diff --git a/templates/multi-platform-lua/Resources/background.mp3.REMOVED.git-id b/templates/multi-platform-lua/Resources/background.mp3.REMOVED.git-id deleted file mode 100644 index cfc16a8a4e..0000000000 --- a/templates/multi-platform-lua/Resources/background.mp3.REMOVED.git-id +++ /dev/null @@ -1 +0,0 @@ -aec1c0a8c8068377fddca5ddd32084d8c3c3c419 \ No newline at end of file diff --git a/templates/multi-platform-lua/Resources/farm.jpg.REMOVED.git-id b/templates/multi-platform-lua/Resources/farm.jpg.REMOVED.git-id deleted file mode 100644 index 4609f3cf02..0000000000 --- a/templates/multi-platform-lua/Resources/farm.jpg.REMOVED.git-id +++ /dev/null @@ -1 +0,0 @@ -d7290c34702d1c6bdb368acb060d93b42d5deff8 \ No newline at end of file diff --git a/templates/multi-platform-lua/Resources/hello.lua b/templates/multi-platform-lua/Resources/hello.lua deleted file mode 100644 index 770e922c9d..0000000000 --- a/templates/multi-platform-lua/Resources/hello.lua +++ /dev/null @@ -1,209 +0,0 @@ -require "Cocos2d" --- cclog -cclog = function(...) - print(string.format(...)) -end - --- for CCLuaEngine traceback -function __G__TRACKBACK__(msg) - cclog("----------------------------------------") - cclog("LUA ERROR: " .. tostring(msg) .. "\n") - cclog(debug.traceback()) - cclog("----------------------------------------") -end - -local function main() - -- avoid memory leak - collectgarbage("setpause", 100) - collectgarbage("setstepmul", 5000) - - --support debug - local targetPlatform = cc.Application:getInstance():getTargetPlatform() - if (cc.PLATFORM_OS_IPHONE == targetPlatform) or (cc.PLATFORM_OS_IPAD == targetPlatform) or - (cc.PLATFORM_OS_ANDROID == targetPlatform) or (cc.PLATFORM_OS_WINDOWS == targetPlatform) or - (cc.PLATFORM_OS_MAC == targetPlatform) then - local host = 'localhost' -- please change localhost to your PC's IP for on-device debugging - require('mobdebug').start(host) - end - require "hello2" - cclog("result is " .. myadd(1, 1)) - - --------------- - - local visibleSize = cc.Director:getInstance():getVisibleSize() - local origin = cc.Director:getInstance():getVisibleOrigin() - - -- add the moving dog - local function creatDog() - local frameWidth = 105 - local frameHeight = 95 - - -- create dog animate - local textureDog = cc.TextureCache:getInstance():addImage("dog.png") - local rect = cc.rect(0, 0, frameWidth, frameHeight) - local frame0 = cc.SpriteFrame:createWithTexture(textureDog, rect) - rect = cc.rect(frameWidth, 0, frameWidth, frameHeight) - local frame1 = cc.SpriteFrame:createWithTexture(textureDog, rect) - - local spriteDog = cc.Sprite:createWithSpriteFrame(frame0) - spriteDog.isPaused = false - spriteDog:setPosition(origin.x, origin.y + visibleSize.height / 4 * 3) ---[[ - local animFrames = CCArray:create() - - animFrames:addObject(frame0) - animFrames:addObject(frame1) -]]-- - - local animation = cc.Animation:createWithSpriteFrames({frame0,frame1}, 0.5) - local animate = cc.Animate:create(animation); - spriteDog:runAction(cc.RepeatForever:create(animate)) - - -- moving dog at every frame - local function tick() - if spriteDog.isPaused then return end - local x, y = spriteDog:getPosition() - if x > origin.x + visibleSize.width then - x = origin.x - else - x = x + 1 - end - - spriteDog:setPositionX(x) - end - - cc.Director:getInstance():getScheduler():scheduleScriptFunc(tick, 0, false) - - return spriteDog - end - - -- create farm - local function createLayerFarm() - local layerFarm = cc.Layer:create() - - -- add in farm background - local bg = cc.Sprite:create("farm.jpg") - bg:setPosition(origin.x + visibleSize.width / 2 + 80, origin.y + visibleSize.height / 2) - layerFarm:addChild(bg) - - -- add land sprite - for i = 0, 3 do - for j = 0, 1 do - local spriteLand = cc.Sprite:create("land.png") - spriteLand:setPosition(200 + j * 180 - i % 2 * 90, 10 + i * 95 / 2) - layerFarm:addChild(spriteLand) - end - end - - -- add crop - local frameCrop = cc.SpriteFrame:create("crop.png", cc.rect(0, 0, 105, 95)) - for i = 0, 3 do - for j = 0, 1 do - local spriteCrop = cc.Sprite:createWithSpriteFrame(frameCrop); - spriteCrop:setPosition(10 + 200 + j * 180 - i % 2 * 90, 30 + 10 + i * 95 / 2) - layerFarm:addChild(spriteCrop) - end - end - - -- add moving dog - local spriteDog = creatDog() - layerFarm:addChild(spriteDog) - - -- handing touch events - local touchBeginPoint = nil - local function onTouchBegan(touch, event) - local location = touch:getLocation() - cclog("onTouchBegan: %0.2f, %0.2f", location.x, location.y) - touchBeginPoint = {x = location.x, y = location.y} - spriteDog.isPaused = true - -- CCTOUCHBEGAN event must return true - return true - end - - local function onTouchMoved(touch, event) - local location = touch:getLocation() - cclog("onTouchMoved: %0.2f, %0.2f", location.x, location.y) - if touchBeginPoint then - local cx, cy = layerFarm:getPosition() - layerFarm:setPosition(cx + location.x - touchBeginPoint.x, - cy + location.y - touchBeginPoint.y) - touchBeginPoint = {x = location.x, y = location.y} - end - end - - local function onTouchEnded(touch, event) - local location = touch:getLocation() - cclog("onTouchEnded: %0.2f, %0.2f", location.x, location.y) - touchBeginPoint = nil - spriteDog.isPaused = false - end - - local listener = cc.EventListenerTouchOneByOne:create() - listener:registerScriptHandler(onTouchBegan,cc.Handler.EVENT_TOUCH_BEGAN ) - listener:registerScriptHandler(onTouchMoved,cc.Handler.EVENT_TOUCH_MOVED ) - listener:registerScriptHandler(onTouchEnded,cc.Handler.EVENT_TOUCH_ENDED ) - local eventDispatcher = layerFarm:getEventDispatcher() - eventDispatcher:addEventListenerWithSceneGraphPriority(listener, layerFarm) - - return layerFarm - end - - - -- create menu - local function createLayerMenu() - local layerMenu = cc.Layer:create() - - local menuPopup, menuTools, effectID - - local function menuCallbackClosePopup() - -- stop test sound effect - cc.SimpleAudioEngine:getInstance():stopEffect(effectID) - menuPopup:setVisible(false) - end - - local function menuCallbackOpenPopup() - -- loop test sound effect - local effectPath = cc.FileUtils:getInstance():fullPathForFilename("effect1.wav") - effectID = cc.SimpleAudioEngine:getInstance():playEffect(effectPath) - menuPopup:setVisible(true) - end - - -- add a popup menu - local menuPopupItem = cc.MenuItemImage:create("menu2.png", "menu2.png") - menuPopupItem:setPosition(0, 0) - menuPopupItem:registerScriptTapHandler(menuCallbackClosePopup) - menuPopup = cc.Menu:create(menuPopupItem) - menuPopup:setPosition(origin.x + visibleSize.width / 2, origin.y + visibleSize.height / 2) - menuPopup:setVisible(false) - layerMenu:addChild(menuPopup) - - -- add the left-bottom "tools" menu to invoke menuPopup - local menuToolsItem = cc.MenuItemImage:create("menu1.png", "menu1.png") - menuToolsItem:setPosition(0, 0) - menuToolsItem:registerScriptTapHandler(menuCallbackOpenPopup) - menuTools = cc.Menu:create(menuToolsItem) - local itemWidth = menuToolsItem:getContentSize().width - local itemHeight = menuToolsItem:getContentSize().height - menuTools:setPosition(origin.x + itemWidth/2, origin.y + itemHeight/2) - layerMenu:addChild(menuTools) - - return layerMenu - end - - -- play background music, preload effect - - -- uncomment below for the BlackBerry version - -- local bgMusicPath = CCFileUtils:getInstance():fullPathForFilename("background.ogg") - local bgMusicPath = cc.FileUtils:getInstance():fullPathForFilename("background.mp3") - cc.SimpleAudioEngine:getInstance():playMusic(bgMusicPath, true) - local effectPath = cc.FileUtils:getInstance():fullPathForFilename("effect1.wav") - cc.SimpleAudioEngine:getInstance():preloadEffect(effectPath) - - -- run - local sceneGame = cc.Scene:create() - sceneGame:addChild(createLayerFarm()) - sceneGame:addChild(createLayerMenu()) - cc.Director:getInstance():runWithScene(sceneGame) -end - -xpcall(main, __G__TRACKBACK__) diff --git a/templates/multi-platform-lua/Resources/hello2.lua b/templates/multi-platform-lua/Resources/hello2.lua deleted file mode 100644 index 27158aa788..0000000000 --- a/templates/multi-platform-lua/Resources/hello2.lua +++ /dev/null @@ -1,3 +0,0 @@ -function myadd(x, y) - return x + y -end \ No newline at end of file diff --git a/templates/multi-platform-lua/Resources/mobdebug.lua b/templates/multi-platform-lua/Resources/mobdebug.lua deleted file mode 100644 index 31ef8af06b..0000000000 --- a/templates/multi-platform-lua/Resources/mobdebug.lua +++ /dev/null @@ -1,1465 +0,0 @@ --- --- MobDebug 0.542 --- Copyright 2011-13 Paul Kulchenko --- Based on RemDebug 1.0 Copyright Kepler Project 2005 --- - -local mobdebug = { - _NAME = "mobdebug", - _VERSION = 0.542, - _COPYRIGHT = "Paul Kulchenko", - _DESCRIPTION = "Mobile Remote Debugger for the Lua programming language", - port = os and os.getenv and os.getenv("MOBDEBUG_PORT") or 8172, - checkcount = 200, - yieldtimeout = 0.02, -} - -local coroutine = coroutine -local error = error -local getfenv = getfenv -local setfenv = setfenv -local loadstring = loadstring or load -- "load" replaced "loadstring" in Lua 5.2 -local io = io -local os = os -local pairs = pairs -local require = require -local setmetatable = setmetatable -local string = string -local tonumber = tonumber -local unpack = table.unpack or unpack -local rawget = rawget - --- if strict.lua is used, then need to avoid referencing some global --- variables, as they can be undefined; --- use rawget to to avoid complaints from strict.lua at run-time. --- it's safe to do the initialization here as all these variables --- should get defined values (of any) before the debugging starts. --- there is also global 'wx' variable, which is checked as part of --- the debug loop as 'wx' can be loaded at any time during debugging. -local genv = _G or _ENV -local jit = rawget(genv, "jit") -local MOAICoroutine = rawget(genv, "MOAICoroutine") - -if not setfenv then -- Lua 5.2 - -- based on http://lua-users.org/lists/lua-l/2010-06/msg00314.html - -- this assumes f is a function - local function findenv(f) - local level = 1 - repeat - local name, value = debug.getupvalue(f, level) - if name == '_ENV' then return level, value end - level = level + 1 - until name == nil - return nil end - getfenv = function (f) return(select(2, findenv(f)) or _G) end - setfenv = function (f, t) - local level = findenv(f) - if level then debug.setupvalue(f, level, t) end - return f end -end - --- check for OS and convert file names to lower case on windows --- (its file system is case insensitive, but case preserving), as setting a --- breakpoint on x:\Foo.lua will not work if the file was loaded as X:\foo.lua. --- OSX and Windows behave the same way (case insensitive, but case preserving) -local iscasepreserving = os and os.getenv and (os.getenv('WINDIR') - or (os.getenv('OS') or ''):match('[Ww]indows') - or os.getenv('DYLD_LIBRARY_PATH')) - or not io.open("/proc") - --- turn jit off based on Mike Pall's comment in this discussion: --- http://www.freelists.org/post/luajit/Debug-hooks-and-JIT,2 --- "You need to turn it off at the start if you plan to receive --- reliable hook calls at any later point in time." -if jit and jit.off then jit.off() end - -local socket = require "socket" -local debug = require "debug" -local coro_debugger -local coro_debugee -local coroutines = {}; setmetatable(coroutines, {__mode = "k"}) -- "weak" keys -local events = { BREAK = 1, WATCH = 2, RESTART = 3, STACK = 4 } -local breakpoints = {} -local watches = {} -local lastsource -local lastfile -local watchescnt = 0 -local abort -- default value is nil; this is used in start/loop distinction -local seen_hook = false -local checkcount = 0 -local step_into = false -local step_over = false -local step_level = 0 -local stack_level = 0 -local server -local buf -local outputs = {} -local iobase = {print = print} -local basedir = "" -local deferror = "execution aborted at default debugee" -local debugee = function () - local a = 1 - for _ = 1, 10 do a = a + 1 end - error(deferror) -end -local function q(s) return s:gsub('([%(%)%.%%%+%-%*%?%[%^%$%]])','%%%1') end - -local serpent = (function() ---- include Serpent module for serialization -local n, v = "serpent", 0.25 -- (C) 2012-13 Paul Kulchenko; MIT License -local c, d = "Paul Kulchenko", "Lua serializer and pretty printer" -local snum = {[tostring(1/0)]='1/0 --[[math.huge]]',[tostring(-1/0)]='-1/0 --[[-math.huge]]',[tostring(0/0)]='0/0'} -local badtype = {thread = true, userdata = true, cdata = true} -local keyword, globals, G = {}, {}, (_G or _ENV) -for _,k in ipairs({'and', 'break', 'do', 'else', 'elseif', 'end', 'false', - 'for', 'function', 'goto', 'if', 'in', 'local', 'nil', 'not', 'or', 'repeat', - 'return', 'then', 'true', 'until', 'while'}) do keyword[k] = true end -for k,v in pairs(G) do globals[v] = k end -- build func to name mapping -for _,g in ipairs({'coroutine', 'debug', 'io', 'math', 'string', 'table', 'os'}) do - for k,v in pairs(G[g]) do globals[v] = g..'.'..k end end - -local function s(t, opts) - local name, indent, fatal, maxnum = opts.name, opts.indent, opts.fatal, opts.maxnum - local sparse, custom, huge = opts.sparse, opts.custom, not opts.nohuge - local space, maxl = (opts.compact and '' or ' '), (opts.maxlevel or math.huge) - local iname, comm = '_'..(name or ''), opts.comment and (tonumber(opts.comment) or math.huge) - local seen, sref, syms, symn = {}, {'local '..iname..'={}'}, {}, 0 - local function gensym(val) return '_'..(tostring(tostring(val)):gsub("[^%w]",""):gsub("(%d%w+)", - -- tostring(val) is needed because __tostring may return a non-string value - function(s) if not syms[s] then symn = symn+1; syms[s] = symn end return syms[s] end)) end - local function safestr(s) return type(s) == "number" and (huge and snum[tostring(s)] or s) - or type(s) ~= "string" and tostring(s) -- escape NEWLINE/010 and EOF/026 - or ("%q"):format(s):gsub("\010","n"):gsub("\026","\\026") end - local function comment(s,l) return comm and (l or 0) < comm and ' --[['..tostring(s)..']]' or '' end - local function globerr(s,l) return globals[s] and globals[s]..comment(s,l) or not fatal - and safestr(select(2, pcall(tostring, s))) or error("Can't serialize "..tostring(s)) end - local function safename(path, name) -- generates foo.bar, foo[3], or foo['b a r'] - local n = name == nil and '' or name - local plain = type(n) == "string" and n:match("^[%l%u_][%w_]*$") and not keyword[n] - local safe = plain and n or '['..safestr(n)..']' - return (path or '')..(plain and path and '.' or '')..safe, safe end - local alphanumsort = type(opts.sortkeys) == 'function' and opts.sortkeys or function(k, o, n) -- k=keys, o=originaltable, n=padding - local maxn, to = tonumber(n) or 12, {number = 'a', string = 'b'} - local function padnum(d) return ("%0"..maxn.."d"):format(d) end - table.sort(k, function(a,b) - -- sort numeric keys first: k[key] is non-nil for numeric keys - return (k[a] and 0 or to[type(a)] or 'z')..(tostring(a):gsub("%d+",padnum)) - < (k[b] and 0 or to[type(b)] or 'z')..(tostring(b):gsub("%d+",padnum)) end) end - local function val2str(t, name, indent, insref, path, plainindex, level) - local ttype, level, mt = type(t), (level or 0), getmetatable(t) - local spath, sname = safename(path, name) - local tag = plainindex and - ((type(name) == "number") and '' or name..space..'='..space) or - (name ~= nil and sname..space..'='..space or '') - if seen[t] then -- already seen this element - sref[#sref+1] = spath..space..'='..space..seen[t] - return tag..'nil'..comment('ref', level) end - if type(mt) == 'table' and (mt.__serialize or mt.__tostring) then -- knows how to serialize itself - seen[t] = insref or spath - if mt.__serialize then t = mt.__serialize(t) else t = tostring(t) end - ttype = type(t) end -- new value falls through to be serialized - if ttype == "table" then - if level >= maxl then return tag..'{}'..comment('max', level) end - seen[t] = insref or spath - if next(t) == nil then return tag..'{}'..comment(t, level) end -- table empty - local maxn, o, out = math.min(#t, maxnum or #t), {}, {} - for key = 1, maxn do o[key] = key end - if not maxnum or #o < maxnum then - local n = #o -- n = n + 1; o[n] is much faster than o[#o+1] on large tables - for key in pairs(t) do if o[key] ~= key then n = n + 1; o[n] = key end end end - if maxnum and #o > maxnum then o[maxnum+1] = nil end - if opts.sortkeys and #o > maxn then alphanumsort(o, t, opts.sortkeys) end - local sparse = sparse and #o > maxn -- disable sparsness if only numeric keys (shorter output) - for n, key in ipairs(o) do - local value, ktype, plainindex = t[key], type(key), n <= maxn and not sparse - if opts.valignore and opts.valignore[value] -- skip ignored values; do nothing - or opts.keyallow and not opts.keyallow[key] - or opts.valtypeignore and opts.valtypeignore[type(value)] -- skipping ignored value types - or sparse and value == nil then -- skipping nils; do nothing - elseif ktype == 'table' or ktype == 'function' or badtype[ktype] then - if not seen[key] and not globals[key] then - sref[#sref+1] = 'placeholder' - local sname = safename(iname, gensym(key)) -- iname is table for local variables - sref[#sref] = val2str(key,sname,indent,sname,iname,true) end - sref[#sref+1] = 'placeholder' - local path = seen[t]..'['..(seen[key] or globals[key] or gensym(key))..']' - sref[#sref] = path..space..'='..space..(seen[value] or val2str(value,nil,indent,path)) - else - out[#out+1] = val2str(value,key,indent,insref,seen[t],plainindex,level+1) - end - end - local prefix = string.rep(indent or '', level) - local head = indent and '{\n'..prefix..indent or '{' - local body = table.concat(out, ','..(indent and '\n'..prefix..indent or space)) - local tail = indent and "\n"..prefix..'}' or '}' - return (custom and custom(tag,head,body,tail) or tag..head..body..tail)..comment(t, level) - elseif badtype[ttype] then - seen[t] = insref or spath - return tag..globerr(t, level) - elseif ttype == 'function' then - seen[t] = insref or spath - local ok, res = pcall(string.dump, t) - local func = ok and ((opts.nocode and "function() --[[..skipped..]] end" or - "loadstring("..safestr(res)..",'@serialized')")..comment(t, level)) - return tag..(func or globerr(t, level)) - else return tag..safestr(t) end -- handle all other types - end - local sepr = indent and "\n" or ";"..space - local body = val2str(t, name, indent) -- this call also populates sref - local tail = #sref>1 and table.concat(sref, sepr)..sepr or '' - local warn = opts.comment and #sref>1 and space.."--[[incomplete output with shared/self-references skipped]]" or '' - return not name and body..warn or "do local "..body..sepr..tail.."return "..name..sepr.."end" -end - -local function merge(a, b) if b then for k,v in pairs(b) do a[k] = v end end; return a; end -return { _NAME = n, _COPYRIGHT = c, _DESCRIPTION = d, _VERSION = v, serialize = s, - dump = function(a, opts) return s(a, merge({name = '_', compact = true, sparse = true}, opts)) end, - line = function(a, opts) return s(a, merge({sortkeys = true, comment = true}, opts)) end, - block = function(a, opts) return s(a, merge({indent = ' ', sortkeys = true, comment = true}, opts)) end } -end)() ---- end of Serpent module - -local function removebasedir(path, basedir) - if iscasepreserving then - -- check if the lowercased path matches the basedir - -- if so, return substring of the original path (to not lowercase it) - return path:lower():find('^'..q(basedir:lower())) - and path:sub(#basedir+1) or path - else - return string.gsub(path, '^'..q(basedir), '') - end -end - -local function stack(start) - local function vars(f) - local func = debug.getinfo(f, "f").func - local i = 1 - local locals = {} - while true do - local name, value = debug.getlocal(f, i) - if not name then break end - if string.sub(name, 1, 1) ~= '(' then locals[name] = {value, tostring(value)} end - i = i + 1 - end - i = 1 - local ups = {} - while func and true do -- check for func as it may be nil for tail calls - local name, value = debug.getupvalue(func, i) - if not name then break end - ups[name] = {value, tostring(value)} - i = i + 1 - end - return locals, ups - end - - local stack = {} - for i = (start or 0), 100 do - local source = debug.getinfo(i, "Snl") - if not source then break end - - local src = source.source - if src:find("@") == 1 then - src = src:sub(2):gsub("\\", "/") - if src:find("%./") == 1 then src = src:sub(3) end - end - - table.insert(stack, { -- remove basedir from source - {source.name, removebasedir(src, basedir), source.linedefined, - source.currentline, source.what, source.namewhat, source.short_src}, - vars(i+1)}) - if source.what == 'main' then break end - end - return stack -end - -local function set_breakpoint(file, line) - if file == '-' and lastfile then file = lastfile - elseif iscasepreserving then file = string.lower(file) end - if not breakpoints[line] then breakpoints[line] = {} end - breakpoints[line][file] = true -end - -local function remove_breakpoint(file, line) - if file == '-' and lastfile then file = lastfile - elseif iscasepreserving then file = string.lower(file) end - if breakpoints[line] then breakpoints[line][file] = nil end -end - -local function has_breakpoint(file, line) - return breakpoints[line] - and breakpoints[line][iscasepreserving and string.lower(file) or file] -end - -local function restore_vars(vars) - if type(vars) ~= 'table' then return end - - -- locals need to be processed in the reverse order, starting from - -- the inner block out, to make sure that the localized variables - -- are correctly updated with only the closest variable with - -- the same name being changed - -- first loop find how many local variables there is, while - -- the second loop processes them from i to 1 - local i = 1 - while true do - local name = debug.getlocal(3, i) - if not name then break end - i = i + 1 - end - i = i - 1 - local written_vars = {} - while i > 0 do - local name = debug.getlocal(3, i) - if not written_vars[name] then - if string.sub(name, 1, 1) ~= '(' then - debug.setlocal(3, i, rawget(vars, name)) - end - written_vars[name] = true - end - i = i - 1 - end - - i = 1 - local func = debug.getinfo(3, "f").func - while true do - local name = debug.getupvalue(func, i) - if not name then break end - if not written_vars[name] then - if string.sub(name, 1, 1) ~= '(' then - debug.setupvalue(func, i, rawget(vars, name)) - end - written_vars[name] = true - end - i = i + 1 - end -end - -local function capture_vars(level) - local vars = {} - local func = debug.getinfo(level or 3, "f").func - local i = 1 - while true do - local name, value = debug.getupvalue(func, i) - if not name then break end - if string.sub(name, 1, 1) ~= '(' then vars[name] = value end - i = i + 1 - end - i = 1 - while true do - local name, value = debug.getlocal(level or 3, i) - if not name then break end - if string.sub(name, 1, 1) ~= '(' then vars[name] = value end - i = i + 1 - end - -- returned 'vars' table plays a dual role: (1) it captures local values - -- and upvalues to be restored later (in case they are modified in "eval"), - -- and (2) it provides an environment for evaluated chunks. - -- getfenv(func) is needed to provide proper environment for functions, - -- including access to globals, but this causes vars[name] to fail in - -- restore_vars on local variables or upvalues with `nil` values when - -- 'strict' is in effect. To avoid this `rawget` is used in restore_vars. - setmetatable(vars, { __index = getfenv(func), __newindex = getfenv(func) }) - return vars -end - -local function stack_depth(start_depth) - for i = start_depth, 0, -1 do - if debug.getinfo(i, "l") then return i+1 end - end - return start_depth -end - -local function is_safe(stack_level) - -- the stack grows up: 0 is getinfo, 1 is is_safe, 2 is debug_hook, 3 is user function - if stack_level == 3 then return true end - for i = 3, stack_level do - -- return if it is not safe to abort - local info = debug.getinfo(i, "S") - if not info then return true end - if info.what == "C" then return false end - end - return true -end - -local function in_debugger() - local this = debug.getinfo(1, "S").source - -- only need to check few frames as mobdebug frames should be close - for i = 3, 7 do - local info = debug.getinfo(i, "S") - if not info then return false end - if info.source == this then return true end - end - return false -end - -local function is_pending(peer) - -- if there is something already in the buffer, skip check - if not buf and checkcount >= mobdebug.checkcount then - peer:settimeout(0) -- non-blocking - buf = peer:receive(1) - peer:settimeout() -- back to blocking - checkcount = 0 - end - return buf -end - -local function debug_hook(event, line) - -- (1) LuaJIT needs special treatment. Because debug_hook is set for - -- *all* coroutines, and not just the one being debugged as in regular Lua - -- (http://lua-users.org/lists/lua-l/2011-06/msg00513.html), - -- need to avoid debugging mobdebug's own code as LuaJIT doesn't - -- always correctly generate call/return hook events (there are more - -- calls than returns, which breaks stack depth calculation and - -- 'step' and 'step over' commands stop working; possibly because - -- 'tail return' events are not generated by LuaJIT). - -- the next line checks if the debugger is run under LuaJIT and if - -- one of debugger methods is present in the stack, it simply returns. - if jit then - -- when luajit is compiled with LUAJIT_ENABLE_LUA52COMPAT, - -- coroutine.running() returns non-nil for the main thread. - local coro, main = coroutine.running() - if not coro or main then coro = 'main' end - local disabled = coroutines[coro] == false - or coroutines[coro] == nil and coro ~= (coro_debugee or 'main') - if coro_debugee and disabled or not coro_debugee and (disabled or in_debugger()) - then return end - end - - -- (2) check if abort has been requested and it's safe to abort - if abort and is_safe(stack_level) then error(abort) end - - -- (3) also check if this debug hook has not been visited for any reason. - -- this check is needed to avoid stepping in too early - -- (for example, when coroutine.resume() is executed inside start()). - if not seen_hook and in_debugger() then return end - - if event == "call" then - stack_level = stack_level + 1 - elseif event == "return" or event == "tail return" then - stack_level = stack_level - 1 - elseif event == "line" then - -- may need to fall through because of the following: - -- (1) step_into - -- (2) step_over and stack_level <= step_level (need stack_level) - -- (3) breakpoint; check for line first as it's known; then for file - -- (4) socket call (only do every Xth check) - -- (5) at least one watch is registered - if not ( - step_into or step_over or breakpoints[line] or watchescnt > 0 - or is_pending(server) - ) then checkcount = checkcount + 1; return end - - checkcount = mobdebug.checkcount -- force check on the next command - - -- this is needed to check if the stack got shorter or longer. - -- unfortunately counting call/return calls is not reliable. - -- the discrepancy may happen when "pcall(load, '')" call is made - -- or when "error()" is called in a function. - -- in either case there are more "call" than "return" events reported. - -- this validation is done for every "line" event, but should be "cheap" - -- as it checks for the stack to get shorter (or longer by one call). - -- start from one level higher just in case we need to grow the stack. - -- this may happen after coroutine.resume call to a function that doesn't - -- have any other instructions to execute. it triggers three returns: - -- "return, tail return, return", which needs to be accounted for. - stack_level = stack_depth(stack_level+1) - - local caller = debug.getinfo(2, "S") - - -- grab the filename and fix it if needed - local file = lastfile - if (lastsource ~= caller.source) then - file, lastsource = caller.source, caller.source - -- technically, users can supply names that may not use '@', - -- for example when they call loadstring('...', 'filename.lua'). - -- Unfortunately, there is no reliable/quick way to figure out - -- what is the filename and what is the source code. - -- The following will work if the supplied filename uses Unix path. - if file:find("^@") then - file = file:gsub("^@", ""):gsub("\\", "/") - -- need this conversion to be applied to relative and absolute - -- file names as you may write "require 'Foo'" to - -- load "foo.lua" (on a case insensitive file system) and breakpoints - -- set on foo.lua will not work if not converted to the same case. - if iscasepreserving then file = string.lower(file) end - if file:find("%./") == 1 then file = file:sub(3) - else file = file:gsub('^'..q(basedir), '') end - -- some file systems allow newlines in file names; remove these. - file = file:gsub("\n", ' ') - else - -- this is either a file name coming from loadstring("chunk", "file"), - -- or the actual source code that needs to be serialized (as it may - -- include newlines); assume it's a file name if it's all on one line. - file = file:find("[\r\n]") and serpent.line(file) or file - end - - -- set to true if we got here; this only needs to be done once per - -- session, so do it here to at least avoid setting it for every line. - seen_hook = true - lastfile = file - end - - local vars, status, res - if (watchescnt > 0) then - vars = capture_vars() - for index, value in pairs(watches) do - setfenv(value, vars) - local ok, fired = pcall(value) - if ok and fired then - status, res = coroutine.resume(coro_debugger, events.WATCH, vars, file, line, index) - break -- any one watch is enough; don't check multiple times - end - end - end - - -- need to get into the "regular" debug handler, but only if there was - -- no watch that was fired. If there was a watch, handle its result. - local getin = (status == nil) and - (step_into - or (step_over and stack_level <= step_level) - or has_breakpoint(file, line) - or is_pending(server)) - - if getin then - vars = vars or capture_vars() - step_into = false - step_over = false - status, res = coroutine.resume(coro_debugger, events.BREAK, vars, file, line) - end - - -- handle 'stack' command that provides stack() information to the debugger - if status and res == 'stack' then - while status and res == 'stack' do - -- resume with the stack trace and variables - if vars then restore_vars(vars) end -- restore vars so they are reflected in stack values - -- this may fail if __tostring method fails at run-time - local ok, snapshot = pcall(stack, 4) - status, res = coroutine.resume(coro_debugger, ok and events.STACK or events.BREAK, snapshot, file, line) - end - end - - -- need to recheck once more as resume after 'stack' command may - -- return something else (for example, 'exit'), which needs to be handled - if status and res and res ~= 'stack' then - if abort == nil and res == "exit" then os.exit(1); return end - abort = res - -- only abort if safe; if not, there is another (earlier) check inside - -- debug_hook, which will abort execution at the first safe opportunity - if is_safe(stack_level) then error(abort) end - elseif not status and res then - error(res, 2) -- report any other (internal) errors back to the application - end - - if vars then restore_vars(vars) end - end -end - -local function stringify_results(status, ...) - if not status then return status, ... end -- on error report as it - - local t = {...} - for i,v in pairs(t) do -- stringify each of the returned values - local ok, res = pcall(serpent.line, v, {nocode = true, comment = 1}) - t[i] = ok and res or ("%q"):format(res):gsub("\010","n"):gsub("\026","\\026") - end - -- stringify table with all returned values - -- this is done to allow each returned value to be used (serialized or not) - -- intependently and to preserve "original" comments - return pcall(serpent.dump, t, {sparse = false}) -end - -local function debugger_loop(sev, svars, sfile, sline) - local command - local app, osname - local eval_env = svars or {} - local function emptyWatch () return false end - local loaded = {} - for k in pairs(package.loaded) do loaded[k] = true end - - while true do - local line, err - local wx = rawget(genv, "wx") -- use rawread to make strict.lua happy - if (wx or mobdebug.yield) and server.settimeout then server:settimeout(mobdebug.yieldtimeout) end - while true do - line, err = server:receive() - if not line and err == "timeout" then - -- yield for wx GUI applications if possible to avoid "busyness" - app = app or (wx and wx.wxGetApp and wx.wxGetApp()) - if app then - local win = app:GetTopWindow() - local inloop = app:IsMainLoopRunning() - osname = osname or wx.wxPlatformInfo.Get():GetOperatingSystemFamilyName() - if win and not inloop then - -- process messages in a regular way - -- and exit as soon as the event loop is idle - if osname == 'Unix' then wx.wxTimer(app):Start(10, true) end - local exitLoop = function() - win:Disconnect(wx.wxID_ANY, wx.wxID_ANY, wx.wxEVT_IDLE) - win:Disconnect(wx.wxID_ANY, wx.wxID_ANY, wx.wxEVT_TIMER) - app:ExitMainLoop() - end - win:Connect(wx.wxEVT_IDLE, exitLoop) - win:Connect(wx.wxEVT_TIMER, exitLoop) - app:MainLoop() - end - elseif mobdebug.yield then mobdebug.yield() - end - elseif not line and err == "closed" then - error("Debugger connection unexpectedly closed", 0) - else - -- if there is something in the pending buffer, prepend it to the line - if buf then line = buf .. line; buf = nil end - break - end - end - if server.settimeout then server:settimeout() end -- back to blocking - command = string.sub(line, string.find(line, "^[A-Z]+")) - if command == "SETB" then - local _, _, _, file, line = string.find(line, "^([A-Z]+)%s+(.-)%s+(%d+)%s*$") - if file and line then - set_breakpoint(file, tonumber(line)) - server:send("200 OK\n") - else - server:send("400 Bad Request\n") - end - elseif command == "DELB" then - local _, _, _, file, line = string.find(line, "^([A-Z]+)%s+(.-)%s+(%d+)%s*$") - if file and line then - remove_breakpoint(file, tonumber(line)) - server:send("200 OK\n") - else - server:send("400 Bad Request\n") - end - elseif command == "EXEC" then - local _, _, chunk = string.find(line, "^[A-Z]+%s+(.+)$") - if chunk then - local func, res = loadstring(chunk) - local status - if func then - setfenv(func, eval_env) - status, res = stringify_results(pcall(func)) - end - if status then - server:send("200 OK " .. #res .. "\n") - server:send(res) - else - server:send("401 Error in Expression " .. #res .. "\n") - server:send(res) - end - else - server:send("400 Bad Request\n") - end - elseif command == "LOAD" then - local _, _, size, name = string.find(line, "^[A-Z]+%s+(%d+)%s+(%S.-)%s*$") - size = tonumber(size) - - if abort == nil then -- no LOAD/RELOAD allowed inside start() - if size > 0 then server:receive(size) end - if sfile and sline then - server:send("201 Started " .. sfile .. " " .. sline .. "\n") - else - server:send("200 OK 0\n") - end - else - -- reset environment to allow required modules to load again - -- remove those packages that weren't loaded when debugger started - for k in pairs(package.loaded) do - if not loaded[k] then package.loaded[k] = nil end - end - - if size == 0 and name == '-' then -- RELOAD the current script being debugged - server:send("200 OK 0\n") - coroutine.yield("load") - else - -- receiving 0 bytes blocks (at least in luasocket 2.0.2), so skip reading - local chunk = size == 0 and "" or server:receive(size) - if chunk then -- LOAD a new script for debugging - local func, res = loadstring(chunk, "@"..name) - if func then - server:send("200 OK 0\n") - debugee = func - coroutine.yield("load") - else - server:send("401 Error in Expression " .. #res .. "\n") - server:send(res) - end - else - server:send("400 Bad Request\n") - end - end - end - elseif command == "SETW" then - local _, _, exp = string.find(line, "^[A-Z]+%s+(.+)%s*$") - if exp then - local func, res = loadstring("return(" .. exp .. ")") - if func then - watchescnt = watchescnt + 1 - local newidx = #watches + 1 - watches[newidx] = func - server:send("200 OK " .. newidx .. "\n") - else - server:send("401 Error in Expression " .. #res .. "\n") - server:send(res) - end - else - server:send("400 Bad Request\n") - end - elseif command == "DELW" then - local _, _, index = string.find(line, "^[A-Z]+%s+(%d+)%s*$") - index = tonumber(index) - if index > 0 and index <= #watches then - watchescnt = watchescnt - (watches[index] ~= emptyWatch and 1 or 0) - watches[index] = emptyWatch - server:send("200 OK\n") - else - server:send("400 Bad Request\n") - end - elseif command == "RUN" then - server:send("200 OK\n") - - local ev, vars, file, line, idx_watch = coroutine.yield() - eval_env = vars - if ev == events.BREAK then - server:send("202 Paused " .. file .. " " .. line .. "\n") - elseif ev == events.WATCH then - server:send("203 Paused " .. file .. " " .. line .. " " .. idx_watch .. "\n") - elseif ev == events.RESTART then - -- nothing to do - else - server:send("401 Error in Execution " .. #file .. "\n") - server:send(file) - end - elseif command == "STEP" then - server:send("200 OK\n") - step_into = true - - local ev, vars, file, line, idx_watch = coroutine.yield() - eval_env = vars - if ev == events.BREAK then - server:send("202 Paused " .. file .. " " .. line .. "\n") - elseif ev == events.WATCH then - server:send("203 Paused " .. file .. " " .. line .. " " .. idx_watch .. "\n") - elseif ev == events.RESTART then - -- nothing to do - else - server:send("401 Error in Execution " .. #file .. "\n") - server:send(file) - end - elseif command == "OVER" or command == "OUT" then - server:send("200 OK\n") - step_over = true - - -- OVER and OUT are very similar except for - -- the stack level value at which to stop - if command == "OUT" then step_level = stack_level - 1 - else step_level = stack_level end - - local ev, vars, file, line, idx_watch = coroutine.yield() - eval_env = vars - if ev == events.BREAK then - server:send("202 Paused " .. file .. " " .. line .. "\n") - elseif ev == events.WATCH then - server:send("203 Paused " .. file .. " " .. line .. " " .. idx_watch .. "\n") - elseif ev == events.RESTART then - -- nothing to do - else - server:send("401 Error in Execution " .. #file .. "\n") - server:send(file) - end - elseif command == "BASEDIR" then - local _, _, dir = string.find(line, "^[A-Z]+%s+(.+)%s*$") - if dir then - basedir = iscasepreserving and string.lower(dir) or dir - -- reset cached source as it may change with basedir - lastsource = nil - server:send("200 OK\n") - else - server:send("400 Bad Request\n") - end - elseif command == "SUSPEND" then - -- do nothing; it already fulfilled its role - elseif command == "STACK" then - -- first check if we can execute the stack command - -- as it requires yielding back to debug_hook it cannot be executed - -- if we have not seen the hook yet as happens after start(). - -- in this case we simply return an empty result - local vars, ev = {} - if seen_hook then - ev, vars = coroutine.yield("stack") - end - if ev and ev ~= events.STACK then - server:send("401 Error in Execution " .. #vars .. "\n") - server:send(vars) - else - local ok, res = pcall(serpent.dump, vars, {nocode = true, sparse = false}) - if ok then - server:send("200 OK " .. res .. "\n") - else - server:send("401 Error in Execution " .. #res .. "\n") - server:send(res) - end - end - elseif command == "OUTPUT" then - local _, _, stream, mode = string.find(line, "^[A-Z]+%s+(%w+)%s+([dcr])%s*$") - if stream and mode and stream == "stdout" then - -- assign "print" in the global environment - genv.print = mode == 'd' and iobase.print or coroutine.wrap(function(...) - -- wrapping into coroutine.wrap protects this function from - -- being stepped through in the debugger - local tbl = {...} - while true do - if mode == 'c' then iobase.print(unpack(tbl)) end - for n = 1, #tbl do - tbl[n] = select(2, pcall(serpent.line, tbl[n], {nocode = true, comment = false})) end - local file = table.concat(tbl, "\t").."\n" - server:send("204 Output " .. stream .. " " .. #file .. "\n" .. file) - tbl = {coroutine.yield()} - end - end) - server:send("200 OK\n") - else - server:send("400 Bad Request\n") - end - elseif command == "EXIT" then - server:send("200 OK\n") - coroutine.yield("exit") - else - server:send("400 Bad Request\n") - end - end -end - -local function connect(controller_host, controller_port) - return (socket.connect4 or socket.connect)(controller_host, controller_port) -end - -local function isrunning() - return coro_debugger and coroutine.status(coro_debugger) == 'suspended' -end - -local lasthost, lastport - --- Starts a debug session by connecting to a controller -local function start(controller_host, controller_port) - -- only one debugging session can be run (as there is only one debug hook) - if isrunning() then return end - - lasthost = controller_host or lasthost - lastport = controller_port or lastport - - controller_host = lasthost or "localhost" - controller_port = lastport or mobdebug.port - - local err - server, err = (socket.connect4 or socket.connect)(controller_host, controller_port) - if server then - -- correct stack depth which already has some calls on it - -- so it doesn't go into negative when those calls return - -- as this breaks subsequence checks in stack_depth(). - -- start from 16th frame, which is sufficiently large for this check. - stack_level = stack_depth(16) - - -- provide our own traceback function to report the error remotely - do - local dtraceback = debug.traceback - debug.traceback = function (...) - if select('#', ...) >= 1 then - local err, lvl = ... - if err and type(err) ~= 'thread' then - local trace = dtraceback(err, (lvl or 2)+1) - if genv.print == iobase.print then -- no remote redirect - return trace - else - genv.print(trace) -- report the error remotely - return -- don't report locally to avoid double reporting - end - end - end - -- direct call to debug.traceback: return the original. - -- debug.traceback(nil, level) doesn't work in Lua 5.1 - -- (http://lua-users.org/lists/lua-l/2011-06/msg00574.html), so - -- simply remove first frame from the stack trace - return (dtraceback(...):gsub("(stack traceback:\n)[^\n]*\n", "%1")) - end - end - coro_debugger = coroutine.create(debugger_loop) - debug.sethook(debug_hook, "lcr") - seen_hook = nil -- reset in case the last start() call was refused - step_into = true -- start with step command - return true - else - print(("Could not connect to %s:%s: %s") - :format(controller_host, controller_port, err or "unknown error")) - end -end - -local function controller(controller_host, controller_port, scratchpad) - -- only one debugging session can be run (as there is only one debug hook) - if isrunning() then return end - - lasthost = controller_host or lasthost - lastport = controller_port or lastport - - controller_host = lasthost or "localhost" - controller_port = lastport or mobdebug.port - - local exitonerror = not scratchpad - local err - server, err = (socket.connect4 or socket.connect)(controller_host, controller_port) - if server then - local function report(trace, err) - local msg = err .. "\n" .. trace - server:send("401 Error in Execution " .. #msg .. "\n") - server:send(msg) - return err - end - - seen_hook = true -- allow to accept all commands - coro_debugger = coroutine.create(debugger_loop) - - while true do - step_into = true -- start with step command - abort = false -- reset abort flag from the previous loop - if scratchpad then checkcount = mobdebug.checkcount end -- force suspend right away - - coro_debugee = coroutine.create(debugee) - debug.sethook(coro_debugee, debug_hook, "lcr") - local status, err = coroutine.resume(coro_debugee) - - -- was there an error or is the script done? - -- 'abort' state is allowed here; ignore it - if abort then - if tostring(abort) == 'exit' then break end - else - if status then -- normal execution is done - break - elseif err and not tostring(err):find(deferror) then - -- report the error back - -- err is not necessarily a string, so convert to string to report - report(debug.traceback(coro_debugee), tostring(err)) - if exitonerror then break end - -- resume once more to clear the response the debugger wants to send - -- need to use capture_vars(2) as three would be the level of - -- the caller for controller(), but because of the tail call, - -- the caller may not exist; - -- This is not entirely safe as the user may see the local - -- variable from console, but they will be reset anyway. - -- This functionality is used when scratchpad is paused to - -- gain access to remote console to modify global variables. - local status, err = coroutine.resume(coro_debugger, events.RESTART, capture_vars(2)) - if not status or status and err == "exit" then break end - end - end - end - else - print(("Could not connect to %s:%s: %s") - :format(controller_host, controller_port, err or "unknown error")) - return false - end - return true -end - -local function scratchpad(controller_host, controller_port) - return controller(controller_host, controller_port, true) -end - -local function loop(controller_host, controller_port) - return controller(controller_host, controller_port, false) -end - -local function on() - if not (isrunning() and server) then return end - - -- main is set to true under Lua5.2 for the "main" chunk. - -- Lua5.1 returns co as `nil` in that case. - local co, main = coroutine.running() - if main then co = nil end - if co then - coroutines[co] = true - debug.sethook(co, debug_hook, "lcr") - else - if jit then coroutines.main = true end - debug.sethook(debug_hook, "lcr") - end -end - -local function off() - if not (isrunning() and server) then return end - - -- main is set to true under Lua5.2 for the "main" chunk. - -- Lua5.1 returns co as `nil` in that case. - local co, main = coroutine.running() - if main then co = nil end - - -- don't remove coroutine hook under LuaJIT as there is only one (global) hook - if co then - coroutines[co] = false - if not jit then debug.sethook(co) end - else - if jit then coroutines.main = false end - if not jit then debug.sethook() end - end - - -- check if there is any thread that is still being debugged under LuaJIT; - -- if not, turn the debugging off - if jit then - local remove = true - for co, debugged in pairs(coroutines) do - if debugged then remove = false; break end - end - if remove then debug.sethook() end - end -end - --- Handles server debugging commands -local function handle(params, client, options) - local _, _, command = string.find(params, "^([a-z]+)") - local file, line, watch_idx - if command == "run" or command == "step" or command == "out" - or command == "over" or command == "exit" then - client:send(string.upper(command) .. "\n") - client:receive() -- this should consume the first '200 OK' response - while true do - local done = true - local breakpoint = client:receive() - if not breakpoint then - print("Program finished") - os.exit() - return -- use return here for those cases where os.exit() is not wanted - end - local _, _, status = string.find(breakpoint, "^(%d+)") - if status == "200" then - -- don't need to do anything - elseif status == "202" then - _, _, file, line = string.find(breakpoint, "^202 Paused%s+(.-)%s+(%d+)%s*$") - if file and line then - print("Paused at file " .. file .. " line " .. line) - end - elseif status == "203" then - _, _, file, line, watch_idx = string.find(breakpoint, "^203 Paused%s+(.-)%s+(%d+)%s+(%d+)%s*$") - if file and line and watch_idx then - print("Paused at file " .. file .. " line " .. line .. " (watch expression " .. watch_idx .. ": [" .. watches[watch_idx] .. "])") - end - elseif status == "204" then - local _, _, stream, size = string.find(breakpoint, "^204 Output (%w+) (%d+)$") - if stream and size then - local msg = client:receive(tonumber(size)) - print(msg) - if outputs[stream] then outputs[stream](msg) end - -- this was just the output, so go back reading the response - done = false - end - elseif status == "401" then - local _, _, size = string.find(breakpoint, "^401 Error in Execution (%d+)$") - if size then - local msg = client:receive(tonumber(size)) - print("Error in remote application: " .. msg) - os.exit(1) - return nil, nil, msg -- use return here for those cases where os.exit() is not wanted - end - else - print("Unknown error") - os.exit(1) - -- use return here for those cases where os.exit() is not wanted - return nil, nil, "Debugger error: unexpected response '" .. breakpoint .. "'" - end - if done then break end - end - elseif command == "setb" then - _, _, _, file, line = string.find(params, "^([a-z]+)%s+(.-)%s+(%d+)%s*$") - if file and line then - -- if this is a file name, and not a file source - if not file:find('^".*"$') then - file = string.gsub(file, "\\", "/") -- convert slash - file = removebasedir(file, basedir) - end - client:send("SETB " .. file .. " " .. line .. "\n") - if client:receive() == "200 OK" then - set_breakpoint(file, line) - else - print("Error: breakpoint not inserted") - end - else - print("Invalid command") - end - elseif command == "setw" then - local _, _, exp = string.find(params, "^[a-z]+%s+(.+)$") - if exp then - client:send("SETW " .. exp .. "\n") - local answer = client:receive() - local _, _, watch_idx = string.find(answer, "^200 OK (%d+)%s*$") - if watch_idx then - watches[watch_idx] = exp - print("Inserted watch exp no. " .. watch_idx) - else - local _, _, size = string.find(answer, "^401 Error in Expression (%d+)$") - if size then - local err = client:receive(tonumber(size)):gsub(".-:%d+:%s*","") - print("Error: watch expression not set: " .. err) - else - print("Error: watch expression not set") - end - end - else - print("Invalid command") - end - elseif command == "delb" then - _, _, _, file, line = string.find(params, "^([a-z]+)%s+(.-)%s+(%d+)%s*$") - if file and line then - -- if this is a file name, and not a file source - if not file:find('^".*"$') then - file = string.gsub(file, "\\", "/") -- convert slash - file = removebasedir(file, basedir) - end - client:send("DELB " .. file .. " " .. line .. "\n") - if client:receive() == "200 OK" then - remove_breakpoint(file, line) - else - print("Error: breakpoint not removed") - end - else - print("Invalid command") - end - elseif command == "delallb" then - for line, breaks in pairs(breakpoints) do - for file, _ in pairs(breaks) do - client:send("DELB " .. file .. " " .. line .. "\n") - if client:receive() == "200 OK" then - remove_breakpoint(file, line) - else - print("Error: breakpoint at file " .. file .. " line " .. line .. " not removed") - end - end - end - elseif command == "delw" then - local _, _, index = string.find(params, "^[a-z]+%s+(%d+)%s*$") - if index then - client:send("DELW " .. index .. "\n") - if client:receive() == "200 OK" then - watches[index] = nil - else - print("Error: watch expression not removed") - end - else - print("Invalid command") - end - elseif command == "delallw" then - for index, exp in pairs(watches) do - client:send("DELW " .. index .. "\n") - if client:receive() == "200 OK" then - watches[index] = nil - else - print("Error: watch expression at index " .. index .. " [" .. exp .. "] not removed") - end - end - elseif command == "eval" or command == "exec" - or command == "load" or command == "loadstring" - or command == "reload" then - local _, _, exp = string.find(params, "^[a-z]+%s+(.+)$") - if exp or (command == "reload") then - if command == "eval" or command == "exec" then - exp = (exp:gsub("%-%-%[(=*)%[.-%]%1%]", "") -- remove comments - :gsub("%-%-.-\n", " ") -- remove line comments - :gsub("\n", " ")) -- convert new lines - if command == "eval" then exp = "return " .. exp end - client:send("EXEC " .. exp .. "\n") - elseif command == "reload" then - client:send("LOAD 0 -\n") - elseif command == "loadstring" then - local _, _, _, file, lines = string.find(exp, "^([\"'])(.-)%1%s+(.+)") - if not file then - _, _, file, lines = string.find(exp, "^(%S+)%s+(.+)") - end - client:send("LOAD " .. #lines .. " " .. file .. "\n") - client:send(lines) - else - local file = io.open(exp, "r") - if not file and pcall(require, "winapi") then - -- if file is not open and winapi is there, try with a short path; - -- this may be needed for unicode paths on windows - winapi.set_encoding(winapi.CP_UTF8) - file = io.open(winapi.short_path(exp), "r") - end - if not file then error("Cannot open file " .. exp) end - -- read the file and remove the shebang line as it causes a compilation error - local lines = file:read("*all"):gsub("^#!.-\n", "\n") - file:close() - - local file = string.gsub(exp, "\\", "/") -- convert slash - file = removebasedir(file, basedir) - client:send("LOAD " .. #lines .. " " .. file .. "\n") - if #lines > 0 then client:send(lines) end - end - while true do - local params, err = client:receive() - if not params then - return nil, nil, "Debugger connection " .. (err or "error") - end - local done = true - local _, _, status, len = string.find(params, "^(%d+).-%s+(%d+)%s*$") - if status == "200" then - len = tonumber(len) - if len > 0 then - local status, res - local str = client:receive(len) - -- handle serialized table with results - local func, err = loadstring(str) - if func then - status, res = pcall(func) - if not status then err = res - elseif type(res) ~= "table" then - err = "received "..type(res).." instead of expected 'table'" - end - end - if err then - print("Error in processing results: " .. err) - return nil, nil, "Error in processing results: " .. err - end - print(unpack(res)) - return res[1], res - end - elseif status == "201" then - _, _, file, line = string.find(params, "^201 Started%s+(.-)%s+(%d+)%s*$") - elseif status == "202" or params == "200 OK" then - -- do nothing; this only happens when RE/LOAD command gets the response - -- that was for the original command that was aborted - elseif status == "204" then - local _, _, stream, size = string.find(params, "^204 Output (%w+) (%d+)$") - if stream and size then - local msg = client:receive(tonumber(size)) - print(msg) - if outputs[stream] then outputs[stream](msg) end - -- this was just the output, so go back reading the response - done = false - end - elseif status == "401" then - len = tonumber(len) - local res = client:receive(len) - print("Error in expression: " .. res) - return nil, nil, res - else - print("Unknown error") - return nil, nil, "Debugger error: unexpected response after EXEC/LOAD '" .. params .. "'" - end - if done then break end - end - else - print("Invalid command") - end - elseif command == "listb" then - for l, v in pairs(breakpoints) do - for f in pairs(v) do - print(f .. ": " .. l) - end - end - elseif command == "listw" then - for i, v in pairs(watches) do - print("Watch exp. " .. i .. ": " .. v) - end - elseif command == "suspend" then - client:send("SUSPEND\n") - elseif command == "stack" then - client:send("STACK\n") - local resp = client:receive() - local _, _, status, res = string.find(resp, "^(%d+)%s+%w+%s+(.+)%s*$") - if status == "200" then - local func, err = loadstring(res) - if func == nil then - print("Error in stack information: " .. err) - return nil, nil, err - end - local ok, stack = pcall(func) - if not ok then - print("Error in stack information: " .. stack) - return nil, nil, stack - end - for _,frame in ipairs(stack) do - print(serpent.line(frame[1], {comment = false})) - end - return stack - elseif status == "401" then - local _, _, len = string.find(resp, "%s+(%d+)%s*$") - len = tonumber(len) - local res = len > 0 and client:receive(len) or "Invalid stack information." - print("Error in expression: " .. res) - return nil, nil, res - else - print("Unknown error") - return nil, nil, "Debugger error: unexpected response after STACK" - end - elseif command == "output" then - local _, _, stream, mode = string.find(params, "^[a-z]+%s+(%w+)%s+([dcr])%s*$") - if stream and mode then - client:send("OUTPUT "..stream.." "..mode.."\n") - local resp = client:receive() - local _, _, status = string.find(resp, "^(%d+)%s+%w+%s*$") - if status == "200" then - print("Stream "..stream.." redirected") - outputs[stream] = type(options) == 'table' and options.handler or nil - else - print("Unknown error") - return nil, nil, "Debugger error: can't redirect "..stream - end - else - print("Invalid command") - end - elseif command == "basedir" then - local _, _, dir = string.find(params, "^[a-z]+%s+(.+)$") - if dir then - dir = string.gsub(dir, "\\", "/") -- convert slash - if not string.find(dir, "/$") then dir = dir .. "/" end - - local remdir = dir:match("\t(.+)") - if remdir then dir = dir:gsub("/?\t.+", "/") end - basedir = dir - - client:send("BASEDIR "..(remdir or dir).."\n") - local resp = client:receive() - local _, _, status = string.find(resp, "^(%d+)%s+%w+%s*$") - if status == "200" then - print("New base directory is " .. basedir) - else - print("Unknown error") - return nil, nil, "Debugger error: unexpected response after BASEDIR" - end - else - print(basedir) - end - elseif command == "help" then - print("setb -- sets a breakpoint") - print("delb -- removes a breakpoint") - print("delallb -- removes all breakpoints") - print("setw -- adds a new watch expression") - print("delw -- removes the watch expression at index") - print("delallw -- removes all watch expressions") - print("run -- runs until next breakpoint") - print("step -- runs until next line, stepping into function calls") - print("over -- runs until next line, stepping over function calls") - print("out -- runs until line after returning from current function") - print("listb -- lists breakpoints") - print("listw -- lists watch expressions") - print("eval -- evaluates expression on the current context and returns its value") - print("exec -- executes statement on the current context") - print("load -- loads a local file for debugging") - print("reload -- restarts the current debugging session") - print("stack -- reports stack trace") - print("output stdout -- capture and redirect io stream (default|copy|redirect)") - print("basedir [] -- sets the base path of the remote application, or shows the current one") - print("exit -- exits debugger") - else - local _, _, spaces = string.find(params, "^(%s*)$") - if not spaces then - print("Invalid command") - return nil, nil, "Invalid command" - end - end - return file, line -end - --- Starts debugging server -local function listen(host, port) - host = host or "*" - port = port or mobdebug.port - - local socket = require "socket" - - print("Lua Remote Debugger") - print("Run the program you wish to debug") - - local server = socket.bind(host, port) - local client = server:accept() - - client:send("STEP\n") - client:receive() - - local breakpoint = client:receive() - local _, _, file, line = string.find(breakpoint, "^202 Paused%s+(.-)%s+(%d+)%s*$") - if file and line then - print("Paused at file " .. file ) - print("Type 'help' for commands") - else - local _, _, size = string.find(breakpoint, "^401 Error in Execution (%d+)%s*$") - if size then - print("Error in remote application: ") - print(client:receive(size)) - end - end - - while true do - io.write("> ") - local line = io.read("*line") - handle(line, client) - end -end - -local cocreate -local function coro() - if cocreate then return end -- only set once - cocreate = cocreate or coroutine.create - coroutine.create = function(f, ...) - return cocreate(function(...) - require("mobdebug").on() - return f(...) - end, ...) - end -end - -local moconew -local function moai() - if moconew then return end -- only set once - moconew = moconew or (MOAICoroutine and MOAICoroutine.new) - if not moconew then return end - MOAICoroutine.new = function(...) - local thread = moconew(...) - -- need to support both thread.run and getmetatable(thread).run, which - -- was used in earlier MOAI versions - local mt = thread.run and thread or getmetatable(thread) - local patched = mt.run - mt.run = function(self, f, ...) - return patched(self, function(...) - require("mobdebug").on() - return f(...) - end, ...) - end - return thread - end -end - --- this is a function that removes all hooks and closes the socket to --- report back to the controller that the debugging is done. --- the script that called `done` can still continue. -local function done() - if not (isrunning() and server) then return end - - if not jit then - for co, debugged in pairs(coroutines) do - if debugged then debug.sethook(co) end - end - end - - debug.sethook() - server:close() - - coro_debugger = nil -- to make sure isrunning() returns `false` - seen_hook = nil -- to make sure that the next start() call works - abort = nil -- to make sure that callback calls use proper "abort" value -end - --- make public functions available -mobdebug.listen = listen -mobdebug.loop = loop -mobdebug.scratchpad = scratchpad -mobdebug.handle = handle -mobdebug.connect = connect -mobdebug.start = start -mobdebug.on = on -mobdebug.off = off -mobdebug.moai = moai -mobdebug.coro = coro -mobdebug.done = done -mobdebug.line = serpent.line -mobdebug.dump = serpent.dump -mobdebug.yield = nil -- callback - --- this is needed to make "require 'modebug'" to work when mobdebug --- module is loaded manually -package.loaded.mobdebug = mobdebug - -return mobdebug diff --git a/templates/multi-platform-lua/proj.android/.classpath b/templates/multi-platform-lua/proj.android/.classpath deleted file mode 100644 index 0b08408342..0000000000 --- a/templates/multi-platform-lua/proj.android/.classpath +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/templates/multi-platform-lua/proj.android/.project b/templates/multi-platform-lua/proj.android/.project deleted file mode 100644 index 046823a87b..0000000000 --- a/templates/multi-platform-lua/proj.android/.project +++ /dev/null @@ -1,33 +0,0 @@ - - - HelloLua - - - - - - com.android.ide.eclipse.adt.ResourceManagerBuilder - - - - - com.android.ide.eclipse.adt.PreCompilerBuilder - - - - - org.eclipse.jdt.core.javabuilder - - - - - com.android.ide.eclipse.adt.ApkBuilder - - - - - - com.android.ide.eclipse.adt.AndroidNature - org.eclipse.jdt.core.javanature - - diff --git a/templates/multi-platform-lua/proj.android/AndroidManifest.xml b/templates/multi-platform-lua/proj.android/AndroidManifest.xml deleted file mode 100644 index ba17733142..0000000000 --- a/templates/multi-platform-lua/proj.android/AndroidManifest.xml +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - diff --git a/templates/multi-platform-lua/proj.android/ant.properties b/templates/multi-platform-lua/proj.android/ant.properties deleted file mode 100644 index b0971e891e..0000000000 --- a/templates/multi-platform-lua/proj.android/ant.properties +++ /dev/null @@ -1,17 +0,0 @@ -# This file is used to override default values used by the Ant build system. -# -# This file must be checked into Version Control Systems, as it is -# integral to the build system of your project. - -# This file is only used by the Ant script. - -# You can use this to override default values such as -# 'source.dir' for the location of your java source folder and -# 'out.dir' for the location of your output folder. - -# You can also use it define how the release builds are signed by declaring -# the following properties: -# 'key.store' for the location of your keystore and -# 'key.alias' for the name of the key to use. -# The password will be asked during the build when you use the 'release' target. - diff --git a/templates/multi-platform-lua/proj.android/build.xml b/templates/multi-platform-lua/proj.android/build.xml deleted file mode 100644 index ff293087f2..0000000000 --- a/templates/multi-platform-lua/proj.android/build.xml +++ /dev/null @@ -1,83 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - diff --git a/templates/multi-platform-lua/proj.android/build_native.py b/templates/multi-platform-lua/proj.android/build_native.py deleted file mode 100755 index f5d485da07..0000000000 --- a/templates/multi-platform-lua/proj.android/build_native.py +++ /dev/null @@ -1,170 +0,0 @@ -#!/usr/bin/python -# build_native.py -# Build native codes - - -import sys -import os, os.path -import shutil -from optparse import OptionParser - -def get_num_of_cpu(): - ''' The build process can be accelerated by running multiple concurrent job processes using the -j-option. - ''' - try: - platform = sys.platform - if platform == 'win32': - if 'NUMBER_OF_PROCESSORS' in os.environ: - return int(os.environ['NUMBER_OF_PROCESSORS']) - else: - return 1 - else: - from numpy.distutils import cpuinfo - return cpuinfo.cpu._getNCPUs() - except Exception: - print "Can't know cpuinfo, use default 1 cpu" - return 1 - -def check_environment_variables_sdk(): - ''' Checking the environment ANDROID_SDK_ROOT, which will be used for building - ''' - - try: - SDK_ROOT = os.environ['ANDROID_SDK_ROOT'] - except Exception: - print "ANDROID_SDK_ROOT not defined. Please define ANDROID_SDK_ROOT in your environment" - sys.exit(1) - - return SDK_ROOT - -def check_environment_variables(): - ''' Checking the environment NDK_ROOT, which will be used for building - ''' - - try: - NDK_ROOT = os.environ['NDK_ROOT'] - except Exception: - print "NDK_ROOT not defined. Please define NDK_ROOT in your environment" - sys.exit(1) - - return NDK_ROOT - -def select_toolchain_version(): - '''Because ndk-r8e uses gcc4.6 as default. gcc4.6 doesn't support c++11. So we should select gcc4.7 when - using ndk-r8e. But gcc4.7 is removed in ndk-r9, so we should determine whether gcc4.7 exist. - Conclution: - ndk-r8e -> use gcc4.7 - ndk-r9 -> use gcc4.8 - ''' - - ndk_root = check_environment_variables() - if os.path.isdir(os.path.join(ndk_root,"toolchains/arm-linux-androideabi-4.8")): - os.environ['NDK_TOOLCHAIN_VERSION'] = '4.8' - print "The Selected NDK toolchain version was 4.8 !" - elif os.path.isdir(os.path.join(ndk_root,"toolchains/arm-linux-androideabi-4.7")): - os.environ['NDK_TOOLCHAIN_VERSION'] = '4.7' - print "The Selected NDK toolchain version was 4.7 !" - else: - print "Couldn't find the gcc toolchain." - exit(1) - -def do_build(cocos_root, ndk_root, app_android_root,ndk_build_param,sdk_root,android_platform,build_mode): - - ndk_path = os.path.join(ndk_root, "ndk-build") - - # windows should use ";" to seperate module paths - platform = sys.platform - if platform == 'win32': - ndk_module_path = 'NDK_MODULE_PATH=%s;%s/external;%s/cocos' % (cocos_root, cocos_root, cocos_root) - else: - ndk_module_path = 'NDK_MODULE_PATH=%s:%s/external:%s/cocos' % (cocos_root, cocos_root, cocos_root) - - num_of_cpu = get_num_of_cpu() - - if ndk_build_param == None: - command = '%s -j%d -C %s %s' % (ndk_path, num_of_cpu, app_android_root, ndk_module_path) - else: - command = '%s -j%d -C %s %s %s' % (ndk_path, num_of_cpu, app_android_root, ''.join(str(e) for e in ndk_build_param), ndk_module_path) - if os.system(command) != 0: - raise Exception("Build dynamic library for project [ " + app_android_root + " ] fails!") - elif android_platform is not None: - sdk_tool_path = os.path.join(sdk_root, "tools/android") - cocoslib_path = os.path.join(cocos_root, "cocos/2d/platform/android/java") - command = '%s update lib-project -t %s -p %s' % (sdk_tool_path,android_platform,cocoslib_path) - if os.system(command) != 0: - raise Exception("update cocos lib-project [ " + cocoslib_path + " ] fails!") - command = '%s update project -t %s -p %s -s' % (sdk_tool_path,android_platform,app_android_root) - if os.system(command) != 0: - raise Exception("update project [ " + app_android_root + " ] fails!") - buildfile_path = os.path.join(app_android_root, "build.xml") - command = 'ant clean %s -f %s -Dsdk.dir=%s' % (build_mode,buildfile_path,sdk_root) - os.system(command) - -def copy_files(src, dst): - - for item in os.listdir(src): - path = os.path.join(src, item) - # Android can not package the file that ends with ".gz" - if not item.startswith('.') and not item.endswith('.gz') and os.path.isfile(path): - shutil.copy(path, dst) - if os.path.isdir(path): - new_dst = os.path.join(dst, item) - os.mkdir(new_dst) - copy_files(path, new_dst) - -def copy_resources(app_android_root): - - # remove app_android_root/assets if it exists - assets_dir = os.path.join(app_android_root, "assets") - if os.path.isdir(assets_dir): - shutil.rmtree(assets_dir) - - # copy resources - os.mkdir(assets_dir) - resources_dir = os.path.join(app_android_root, "../Resources") - if os.path.isdir(resources_dir): - copy_files(resources_dir, assets_dir) - - # lua project should copy lua script - resources_dir = os.path.join(app_android_root, "../cocos2d/cocos/scripting/lua/script") - copy_files(resources_dir, assets_dir) - -def build(ndk_build_param,android_platform,build_mode): - - ndk_root = check_environment_variables() - sdk_root = None - select_toolchain_version() - - current_dir = os.path.dirname(os.path.realpath(__file__)) - cocos_root = os.path.join(current_dir, "../cocos2d") - - app_android_root = current_dir - copy_resources(app_android_root) - - if android_platform is not None: - sdk_root = check_environment_variables_sdk() - if android_platform.isdigit(): - android_platform = 'android-'+android_platform - else: - print 'please use vaild android platform' - exit(1) - - if build_mode is None: - build_mode = 'debug' - elif build_mode != 'release': - build_mode = 'debug' - - do_build(cocos_root, ndk_root, app_android_root,ndk_build_param,sdk_root,android_platform,build_mode) - -# -------------- main -------------- -if __name__ == '__main__': - - parser = OptionParser() - parser.add_option("-n", "--ndk", dest="ndk_build_param", help='parameter for ndk-build') - parser.add_option("-p", "--platform", dest="android_platform", - help='parameter for android-update.Without the parameter,the script just build dynamic library for project. Valid android-platform are:[10|11|12|13|14|15|16|17|18|19]') - parser.add_option("-b", "--build", dest="build_mode", - help='the build mode for java project,debug[default] or release.Get more information,please refer to http://developer.android.com/tools/building/building-cmdline.html') - (opts, args) = parser.parse_args() - - build(opts.ndk_build_param,opts.android_platform,opts.build_mode) diff --git a/templates/multi-platform-lua/proj.android/jni/Android.mk b/templates/multi-platform-lua/proj.android/jni/Android.mk deleted file mode 100644 index eb2ff9f081..0000000000 --- a/templates/multi-platform-lua/proj.android/jni/Android.mk +++ /dev/null @@ -1,20 +0,0 @@ -LOCAL_PATH := $(call my-dir) - -include $(CLEAR_VARS) - -LOCAL_MODULE := cocos2dlua_shared - -LOCAL_MODULE_FILENAME := libcocos2dlua - -LOCAL_SRC_FILES := hellolua/main.cpp \ - ../../Classes/AppDelegate.cpp - - -LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../Classes \ - $(LOCAL_PATH)/../../cocos2d/external/lua/tolua - -LOCAL_WHOLE_STATIC_LIBRARIES := cocos_lua_static - -include $(BUILD_SHARED_LIBRARY) - -$(call import-module,scripting/lua/bindings) \ No newline at end of file diff --git a/templates/multi-platform-lua/proj.android/jni/Application.mk b/templates/multi-platform-lua/proj.android/jni/Application.mk deleted file mode 100644 index de85c24eda..0000000000 --- a/templates/multi-platform-lua/proj.android/jni/Application.mk +++ /dev/null @@ -1,4 +0,0 @@ -APP_STL := gnustl_static -APP_CPPFLAGS := -frtti -DCOCOS2D_DEBUG=1 -DCC_ENABLE_CHIPMUNK_INTEGRATION=1 -std=c++11 -fsigned-char -APP_CPPFLAGS += -fexceptions - diff --git a/templates/multi-platform-lua/proj.android/jni/hellolua/main.cpp b/templates/multi-platform-lua/proj.android/jni/hellolua/main.cpp deleted file mode 100644 index a8b36b317d..0000000000 --- a/templates/multi-platform-lua/proj.android/jni/hellolua/main.cpp +++ /dev/null @@ -1,16 +0,0 @@ -#include "AppDelegate.h" -#include "cocos2d.h" -#include "CCEventType.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 (struct android_app* app) { - LOGD("cocos_android_app_init"); - AppDelegate *pAppDelegate = new AppDelegate(); -} diff --git a/templates/multi-platform-lua/proj.android/proguard-project.txt b/templates/multi-platform-lua/proj.android/proguard-project.txt deleted file mode 100644 index f2fe1559a2..0000000000 --- a/templates/multi-platform-lua/proj.android/proguard-project.txt +++ /dev/null @@ -1,20 +0,0 @@ -# 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/templates/multi-platform-lua/proj.android/project.properties b/templates/multi-platform-lua/proj.android/project.properties deleted file mode 100644 index 870a4a196d..0000000000 --- a/templates/multi-platform-lua/proj.android/project.properties +++ /dev/null @@ -1,13 +0,0 @@ -# This file is automatically generated by Android Tools. -# Do not modify this file -- YOUR CHANGES WILL BE ERASED! -# -# This file must be checked in Version Control Systems. -# -# To customize properties used by the Ant build system use, -# "ant.properties", and override values to adapt the script to your -# project structure. - -# Project target. -target=android-10 - -android.library.reference.1=../cocos2d/cocos/2d/platform/android/java diff --git a/templates/multi-platform-lua/proj.android/res/values/strings.xml b/templates/multi-platform-lua/proj.android/res/values/strings.xml deleted file mode 100644 index d2c2ebdfb1..0000000000 --- a/templates/multi-platform-lua/proj.android/res/values/strings.xml +++ /dev/null @@ -1,4 +0,0 @@ - - - HelloLua - diff --git a/templates/multi-platform-lua/proj.android/src/org/cocos2dx/lua/Cocos2dxActivity.java b/templates/multi-platform-lua/proj.android/src/org/cocos2dx/lua/Cocos2dxActivity.java deleted file mode 100644 index 64291576f5..0000000000 --- a/templates/multi-platform-lua/proj.android/src/org/cocos2dx/lua/Cocos2dxActivity.java +++ /dev/null @@ -1,32 +0,0 @@ -package org.cocos2dx.lua; - -import android.app.NativeActivity; -import android.os.Bundle; - -public class Cocos2dxActivity extends NativeActivity{ - - @Override - protected void onCreate(Bundle savedInstanceState) { - // TODO Auto-generated method stub - super.onCreate(savedInstanceState); - - //For supports translucency - - //1.change "attribs" in cocos\2d\platform\android\nativeactivity.cpp - /*const EGLint attribs[] = { - EGL_SURFACE_TYPE, EGL_WINDOW_BIT, - EGL_RENDERABLE_TYPE, EGL_OPENGL_ES2_BIT, - //EGL_BLUE_SIZE, 5, -->delete - //EGL_GREEN_SIZE, 6, -->delete - //EGL_RED_SIZE, 5, -->delete - EGL_BUFFER_SIZE, 32, //-->new field - EGL_DEPTH_SIZE, 16, - EGL_STENCIL_SIZE, 8, - EGL_NONE - };*/ - - //2.Set the format of window - // getWindow().setFormat(PixelFormat.TRANSLUCENT); - - } -} diff --git a/templates/multi-platform-lua/proj.ios_mac/HelloLua.xcodeproj/project.pbxproj b/templates/multi-platform-lua/proj.ios_mac/HelloLua.xcodeproj/project.pbxproj deleted file mode 100644 index c078a091f1..0000000000 --- a/templates/multi-platform-lua/proj.ios_mac/HelloLua.xcodeproj/project.pbxproj +++ /dev/null @@ -1,1028 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 46; - objects = { - -/* Begin PBXBuildFile section */ - 01A8D331187A504A001CC002 /* CocoStudio.lua in Resources */ = {isa = PBXBuildFile; fileRef = 01A8D32E187A5049001CC002 /* CocoStudio.lua */; }; - 01A8D332187A504A001CC002 /* CocoStudio.lua in Resources */ = {isa = PBXBuildFile; fileRef = 01A8D32E187A5049001CC002 /* CocoStudio.lua */; }; - 01A8D333187A504A001CC002 /* extern.lua in Resources */ = {isa = PBXBuildFile; fileRef = 01A8D32F187A504A001CC002 /* extern.lua */; }; - 01A8D334187A504A001CC002 /* extern.lua in Resources */ = {isa = PBXBuildFile; fileRef = 01A8D32F187A504A001CC002 /* extern.lua */; }; - 01A8D335187A504A001CC002 /* GuiConstants.lua in Resources */ = {isa = PBXBuildFile; fileRef = 01A8D330187A504A001CC002 /* GuiConstants.lua */; }; - 01A8D336187A504A001CC002 /* GuiConstants.lua in Resources */ = {isa = PBXBuildFile; fileRef = 01A8D330187A504A001CC002 /* GuiConstants.lua */; }; - 15A8A4441834C43700142BE0 /* libchipmunk iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 15A8A4291834BDA200142BE0 /* libchipmunk iOS.a */; }; - 15A8A4451834C43700142BE0 /* libcocos2dx iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 15A8A4251834BDA200142BE0 /* libcocos2dx iOS.a */; }; - 15A8A4461834C43700142BE0 /* libcocos2dx-extensions iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 15A8A4271834BDA200142BE0 /* libcocos2dx-extensions iOS.a */; }; - 15A8A4471834C43700142BE0 /* libCocosDenshion iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 15A8A42D1834BDA200142BE0 /* libCocosDenshion iOS.a */; }; - 15A8A4481834C43700142BE0 /* libluabindings iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 15A8A4311834BDA200142BE0 /* libluabindings iOS.a */; }; - 15A8A4491834C64F00142BE0 /* Icon-114.png in Resources */ = {isa = PBXBuildFile; fileRef = 5023810C17EBBCAC00990C9B /* Icon-114.png */; }; - 15A8A4641834C6AD00142BE0 /* AudioEngine.lua in Resources */ = {isa = PBXBuildFile; fileRef = 15A8A4551834C6AD00142BE0 /* AudioEngine.lua */; }; - 15A8A4651834C6AD00142BE0 /* AudioEngine.lua in Resources */ = {isa = PBXBuildFile; fileRef = 15A8A4551834C6AD00142BE0 /* AudioEngine.lua */; }; - 15A8A4661834C6AD00142BE0 /* CCBReaderLoad.lua in Resources */ = {isa = PBXBuildFile; fileRef = 15A8A4561834C6AD00142BE0 /* CCBReaderLoad.lua */; }; - 15A8A4671834C6AD00142BE0 /* CCBReaderLoad.lua in Resources */ = {isa = PBXBuildFile; fileRef = 15A8A4561834C6AD00142BE0 /* CCBReaderLoad.lua */; }; - 15A8A4681834C6AD00142BE0 /* Cocos2d.lua in Resources */ = {isa = PBXBuildFile; fileRef = 15A8A4571834C6AD00142BE0 /* Cocos2d.lua */; }; - 15A8A4691834C6AD00142BE0 /* Cocos2d.lua in Resources */ = {isa = PBXBuildFile; fileRef = 15A8A4571834C6AD00142BE0 /* Cocos2d.lua */; }; - 15A8A46A1834C6AD00142BE0 /* Cocos2dConstants.lua in Resources */ = {isa = PBXBuildFile; fileRef = 15A8A4581834C6AD00142BE0 /* Cocos2dConstants.lua */; }; - 15A8A46B1834C6AD00142BE0 /* Cocos2dConstants.lua in Resources */ = {isa = PBXBuildFile; fileRef = 15A8A4581834C6AD00142BE0 /* Cocos2dConstants.lua */; }; - 15A8A46C1834C6AD00142BE0 /* Deprecated.lua in Resources */ = {isa = PBXBuildFile; fileRef = 15A8A4591834C6AD00142BE0 /* Deprecated.lua */; }; - 15A8A46D1834C6AD00142BE0 /* Deprecated.lua in Resources */ = {isa = PBXBuildFile; fileRef = 15A8A4591834C6AD00142BE0 /* Deprecated.lua */; }; - 15A8A46E1834C6AD00142BE0 /* DeprecatedClass.lua in Resources */ = {isa = PBXBuildFile; fileRef = 15A8A45A1834C6AD00142BE0 /* DeprecatedClass.lua */; }; - 15A8A46F1834C6AD00142BE0 /* DeprecatedClass.lua in Resources */ = {isa = PBXBuildFile; fileRef = 15A8A45A1834C6AD00142BE0 /* DeprecatedClass.lua */; }; - 15A8A4701834C6AD00142BE0 /* DeprecatedEnum.lua in Resources */ = {isa = PBXBuildFile; fileRef = 15A8A45B1834C6AD00142BE0 /* DeprecatedEnum.lua */; }; - 15A8A4711834C6AD00142BE0 /* DeprecatedEnum.lua in Resources */ = {isa = PBXBuildFile; fileRef = 15A8A45B1834C6AD00142BE0 /* DeprecatedEnum.lua */; }; - 15A8A4721834C6AD00142BE0 /* DeprecatedOpenglEnum.lua in Resources */ = {isa = PBXBuildFile; fileRef = 15A8A45C1834C6AD00142BE0 /* DeprecatedOpenglEnum.lua */; }; - 15A8A4731834C6AD00142BE0 /* DeprecatedOpenglEnum.lua in Resources */ = {isa = PBXBuildFile; fileRef = 15A8A45C1834C6AD00142BE0 /* DeprecatedOpenglEnum.lua */; }; - 15A8A4741834C6AD00142BE0 /* DrawPrimitives.lua in Resources */ = {isa = PBXBuildFile; fileRef = 15A8A45D1834C6AD00142BE0 /* DrawPrimitives.lua */; }; - 15A8A4751834C6AD00142BE0 /* DrawPrimitives.lua in Resources */ = {isa = PBXBuildFile; fileRef = 15A8A45D1834C6AD00142BE0 /* DrawPrimitives.lua */; }; - 15A8A4761834C6AD00142BE0 /* json.lua in Resources */ = {isa = PBXBuildFile; fileRef = 15A8A45E1834C6AD00142BE0 /* json.lua */; }; - 15A8A4771834C6AD00142BE0 /* json.lua in Resources */ = {isa = PBXBuildFile; fileRef = 15A8A45E1834C6AD00142BE0 /* json.lua */; }; - 15A8A4781834C6AD00142BE0 /* luaj.lua in Resources */ = {isa = PBXBuildFile; fileRef = 15A8A45F1834C6AD00142BE0 /* luaj.lua */; }; - 15A8A4791834C6AD00142BE0 /* luaj.lua in Resources */ = {isa = PBXBuildFile; fileRef = 15A8A45F1834C6AD00142BE0 /* luaj.lua */; }; - 15A8A47A1834C6AD00142BE0 /* luaoc.lua in Resources */ = {isa = PBXBuildFile; fileRef = 15A8A4601834C6AD00142BE0 /* luaoc.lua */; }; - 15A8A47B1834C6AD00142BE0 /* luaoc.lua in Resources */ = {isa = PBXBuildFile; fileRef = 15A8A4601834C6AD00142BE0 /* luaoc.lua */; }; - 15A8A47C1834C6AD00142BE0 /* Opengl.lua in Resources */ = {isa = PBXBuildFile; fileRef = 15A8A4611834C6AD00142BE0 /* Opengl.lua */; }; - 15A8A47D1834C6AD00142BE0 /* Opengl.lua in Resources */ = {isa = PBXBuildFile; fileRef = 15A8A4611834C6AD00142BE0 /* Opengl.lua */; }; - 15A8A47E1834C6AD00142BE0 /* OpenglConstants.lua in Resources */ = {isa = PBXBuildFile; fileRef = 15A8A4621834C6AD00142BE0 /* OpenglConstants.lua */; }; - 15A8A47F1834C6AD00142BE0 /* OpenglConstants.lua in Resources */ = {isa = PBXBuildFile; fileRef = 15A8A4621834C6AD00142BE0 /* OpenglConstants.lua */; }; - 15A8A4801834C6AD00142BE0 /* StudioConstants.lua in Resources */ = {isa = PBXBuildFile; fileRef = 15A8A4631834C6AD00142BE0 /* StudioConstants.lua */; }; - 15A8A4811834C6AD00142BE0 /* StudioConstants.lua in Resources */ = {isa = PBXBuildFile; fileRef = 15A8A4631834C6AD00142BE0 /* StudioConstants.lua */; }; - 15A8A4821834C73500142BE0 /* libchipmunk Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 15A8A41B1834BDA200142BE0 /* libchipmunk Mac.a */; }; - 15A8A4831834C73500142BE0 /* libcocos2dx Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 15A8A4171834BDA200142BE0 /* libcocos2dx Mac.a */; }; - 15A8A4841834C73500142BE0 /* libcocos2dx-extensions Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 15A8A4191834BDA200142BE0 /* libcocos2dx-extensions Mac.a */; }; - 15A8A4851834C73500142BE0 /* libCocosDenshion Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 15A8A41F1834BDA200142BE0 /* libCocosDenshion Mac.a */; }; - 15A8A4861834C73500142BE0 /* libluabindings Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 15A8A4231834BDA200142BE0 /* libluabindings Mac.a */; }; - 15A8A4881834C90F00142BE0 /* libcurl.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 15A8A4871834C90E00142BE0 /* libcurl.dylib */; }; - 15FFA0FD1894DDEF00C96D45 /* mobdebug.lua in Resources */ = {isa = PBXBuildFile; fileRef = 15FFA0FC1894DDEF00C96D45 /* mobdebug.lua */; }; - 15FFA0FE1894DDEF00C96D45 /* mobdebug.lua in Resources */ = {isa = PBXBuildFile; fileRef = 15FFA0FC1894DDEF00C96D45 /* mobdebug.lua */; }; - 1AC3622F16D47C5C000847F2 /* background.mp3 in Resources */ = {isa = PBXBuildFile; fileRef = 1AC3622316D47C5C000847F2 /* background.mp3 */; }; - 1AC3623016D47C5C000847F2 /* background.ogg in Resources */ = {isa = PBXBuildFile; fileRef = 1AC3622416D47C5C000847F2 /* background.ogg */; }; - 1AC3623116D47C5C000847F2 /* crop.png in Resources */ = {isa = PBXBuildFile; fileRef = 1AC3622516D47C5C000847F2 /* crop.png */; }; - 1AC3623216D47C5C000847F2 /* dog.png in Resources */ = {isa = PBXBuildFile; fileRef = 1AC3622616D47C5C000847F2 /* dog.png */; }; - 1AC3623316D47C5C000847F2 /* effect1.wav in Resources */ = {isa = PBXBuildFile; fileRef = 1AC3622716D47C5C000847F2 /* effect1.wav */; }; - 1AC3623416D47C5C000847F2 /* farm.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 1AC3622816D47C5C000847F2 /* farm.jpg */; }; - 1AC3623516D47C5C000847F2 /* fonts in Resources */ = {isa = PBXBuildFile; fileRef = 1AC3622916D47C5C000847F2 /* fonts */; }; - 1AC3623616D47C5C000847F2 /* hello.lua in Resources */ = {isa = PBXBuildFile; fileRef = 1AC3622A16D47C5C000847F2 /* hello.lua */; }; - 1AC3623716D47C5C000847F2 /* hello2.lua in Resources */ = {isa = PBXBuildFile; fileRef = 1AC3622B16D47C5C000847F2 /* hello2.lua */; }; - 1AC3623816D47C5C000847F2 /* land.png in Resources */ = {isa = PBXBuildFile; fileRef = 1AC3622C16D47C5C000847F2 /* land.png */; }; - 1AC3623916D47C5C000847F2 /* menu1.png in Resources */ = {isa = PBXBuildFile; fileRef = 1AC3622D16D47C5C000847F2 /* menu1.png */; }; - 1AC3623A16D47C5C000847F2 /* menu2.png in Resources */ = {isa = PBXBuildFile; fileRef = 1AC3622E16D47C5C000847F2 /* menu2.png */; }; - 1AF4C403178663F200122817 /* libz.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 1AF4C402178663F200122817 /* libz.dylib */; }; - 5023811817EBBCAC00990C9B /* AppController.mm in Sources */ = {isa = PBXBuildFile; fileRef = 5023810817EBBCAC00990C9B /* AppController.mm */; }; - 5023811917EBBCAC00990C9B /* Default-568h@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 5023810917EBBCAC00990C9B /* Default-568h@2x.png */; }; - 5023811A17EBBCAC00990C9B /* Default.png in Resources */ = {isa = PBXBuildFile; fileRef = 5023810A17EBBCAC00990C9B /* Default.png */; }; - 5023811B17EBBCAC00990C9B /* Default@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 5023810B17EBBCAC00990C9B /* Default@2x.png */; }; - 5023811D17EBBCAC00990C9B /* Icon-120.png in Resources */ = {isa = PBXBuildFile; fileRef = 5023810D17EBBCAC00990C9B /* Icon-120.png */; }; - 5023811E17EBBCAC00990C9B /* Icon-144.png in Resources */ = {isa = PBXBuildFile; fileRef = 5023810E17EBBCAC00990C9B /* Icon-144.png */; }; - 5023811F17EBBCAC00990C9B /* Icon-152.png in Resources */ = {isa = PBXBuildFile; fileRef = 5023810F17EBBCAC00990C9B /* Icon-152.png */; }; - 5023812017EBBCAC00990C9B /* Icon-57.png in Resources */ = {isa = PBXBuildFile; fileRef = 5023811017EBBCAC00990C9B /* Icon-57.png */; }; - 5023812117EBBCAC00990C9B /* Icon-72.png in Resources */ = {isa = PBXBuildFile; fileRef = 5023811117EBBCAC00990C9B /* Icon-72.png */; }; - 5023812217EBBCAC00990C9B /* Icon-76.png in Resources */ = {isa = PBXBuildFile; fileRef = 5023811217EBBCAC00990C9B /* Icon-76.png */; }; - 5023812417EBBCAC00990C9B /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 5023811417EBBCAC00990C9B /* main.m */; }; - 5023812517EBBCAC00990C9B /* RootViewController.mm in Sources */ = {isa = PBXBuildFile; fileRef = 5023811717EBBCAC00990C9B /* RootViewController.mm */; }; - 5023813317EBBCE400990C9B /* AppDelegate.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F293BB7E15EB831F00256477 /* AppDelegate.cpp */; }; - 5023813717EBBCE400990C9B /* libz.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 1AF4C402178663F200122817 /* libz.dylib */; }; - 5023813E17EBBCE400990C9B /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F293B3CC15EB7BE500256477 /* QuartzCore.framework */; }; - 5023814017EBBCE400990C9B /* OpenAL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F293B3D015EB7BE500256477 /* OpenAL.framework */; }; - 5023814117EBBCE400990C9B /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F293B3D215EB7BE500256477 /* AudioToolbox.framework */; }; - 5023814217EBBCE400990C9B /* AVFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F293B3D415EB7BE500256477 /* AVFoundation.framework */; }; - 5023814417EBBCE400990C9B /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F293B3D815EB7BE500256477 /* Foundation.framework */; }; - 5023814517EBBCE400990C9B /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F293B3DA15EB7BE500256477 /* CoreGraphics.framework */; }; - 5023814817EBBCE400990C9B /* background.mp3 in Resources */ = {isa = PBXBuildFile; fileRef = 1AC3622316D47C5C000847F2 /* background.mp3 */; }; - 5023814917EBBCE400990C9B /* background.ogg in Resources */ = {isa = PBXBuildFile; fileRef = 1AC3622416D47C5C000847F2 /* background.ogg */; }; - 5023814A17EBBCE400990C9B /* crop.png in Resources */ = {isa = PBXBuildFile; fileRef = 1AC3622516D47C5C000847F2 /* crop.png */; }; - 5023814B17EBBCE400990C9B /* dog.png in Resources */ = {isa = PBXBuildFile; fileRef = 1AC3622616D47C5C000847F2 /* dog.png */; }; - 5023814D17EBBCE400990C9B /* effect1.wav in Resources */ = {isa = PBXBuildFile; fileRef = 1AC3622716D47C5C000847F2 /* effect1.wav */; }; - 5023814F17EBBCE400990C9B /* farm.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 1AC3622816D47C5C000847F2 /* farm.jpg */; }; - 5023815017EBBCE400990C9B /* fonts in Resources */ = {isa = PBXBuildFile; fileRef = 1AC3622916D47C5C000847F2 /* fonts */; }; - 5023815117EBBCE400990C9B /* hello.lua in Resources */ = {isa = PBXBuildFile; fileRef = 1AC3622A16D47C5C000847F2 /* hello.lua */; }; - 5023815217EBBCE400990C9B /* hello2.lua in Resources */ = {isa = PBXBuildFile; fileRef = 1AC3622B16D47C5C000847F2 /* hello2.lua */; }; - 5023815317EBBCE400990C9B /* land.png in Resources */ = {isa = PBXBuildFile; fileRef = 1AC3622C16D47C5C000847F2 /* land.png */; }; - 5023815617EBBCE400990C9B /* menu1.png in Resources */ = {isa = PBXBuildFile; fileRef = 1AC3622D16D47C5C000847F2 /* menu1.png */; }; - 5023815717EBBCE400990C9B /* menu2.png in Resources */ = {isa = PBXBuildFile; fileRef = 1AC3622E16D47C5C000847F2 /* menu2.png */; }; - 5023817617EBBE3400990C9B /* Icon.icns in Resources */ = {isa = PBXBuildFile; fileRef = 5023817217EBBE3400990C9B /* Icon.icns */; }; - 5023817817EBBE3400990C9B /* main.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 5023817417EBBE3400990C9B /* main.cpp */; }; - 5023817A17EBBE8300990C9B /* OpenGLES.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5023817917EBBE8300990C9B /* OpenGLES.framework */; }; - 50805AAF17EBBEAA004CFAD3 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 50805AAE17EBBEAA004CFAD3 /* UIKit.framework */; }; - 5091733617ECE17A00D62437 /* Icon-29.png in Resources */ = {isa = PBXBuildFile; fileRef = 5091733017ECE17A00D62437 /* Icon-29.png */; }; - 5091733717ECE17A00D62437 /* Icon-40.png in Resources */ = {isa = PBXBuildFile; fileRef = 5091733117ECE17A00D62437 /* Icon-40.png */; }; - 5091733817ECE17A00D62437 /* Icon-50.png in Resources */ = {isa = PBXBuildFile; fileRef = 5091733217ECE17A00D62437 /* Icon-50.png */; }; - 5091733917ECE17A00D62437 /* Icon-58.png in Resources */ = {isa = PBXBuildFile; fileRef = 5091733317ECE17A00D62437 /* Icon-58.png */; }; - 5091733A17ECE17A00D62437 /* Icon-80.png in Resources */ = {isa = PBXBuildFile; fileRef = 5091733417ECE17A00D62437 /* Icon-80.png */; }; - 5091733B17ECE17A00D62437 /* Icon-100.png in Resources */ = {isa = PBXBuildFile; fileRef = 5091733517ECE17A00D62437 /* Icon-100.png */; }; - 50D7C96C17EBBEDF005D0B91 /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 50D7C96B17EBBEDF005D0B91 /* OpenGL.framework */; }; - 50D7C96E17EBBEE6005D0B91 /* AppKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 50D7C96D17EBBEE6005D0B91 /* AppKit.framework */; }; - 50D7C97017EBBEEC005D0B91 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 50D7C96F17EBBEEC005D0B91 /* IOKit.framework */; }; - D6B061351803AC000077942B /* CoreMotion.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D6B061341803AC000077942B /* CoreMotion.framework */; }; - F293B3CD15EB7BE500256477 /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F293B3CC15EB7BE500256477 /* QuartzCore.framework */; }; - F293B3D115EB7BE500256477 /* OpenAL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F293B3D015EB7BE500256477 /* OpenAL.framework */; }; - F293B3D315EB7BE500256477 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F293B3D215EB7BE500256477 /* AudioToolbox.framework */; }; - F293B3D515EB7BE500256477 /* AVFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F293B3D415EB7BE500256477 /* AVFoundation.framework */; }; - F293B3D915EB7BE500256477 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F293B3D815EB7BE500256477 /* Foundation.framework */; }; - F293B3DB15EB7BE500256477 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F293B3DA15EB7BE500256477 /* CoreGraphics.framework */; }; - F293BB9C15EB831F00256477 /* AppDelegate.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F293BB7E15EB831F00256477 /* AppDelegate.cpp */; }; -/* End PBXBuildFile section */ - -/* Begin PBXContainerItemProxy section */ - 15A8A4161834BDA200142BE0 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 15A8A4031834BDA200142BE0 /* cocos2d_libs.xcodeproj */; - proxyType = 2; - remoteGlobalIDString = 1551A33F158F2AB200E66CFE; - remoteInfo = "cocos2dx Mac"; - }; - 15A8A4181834BDA200142BE0 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 15A8A4031834BDA200142BE0 /* cocos2d_libs.xcodeproj */; - proxyType = 2; - remoteGlobalIDString = A03F2FD617814595006731B9; - remoteInfo = "cocos2dx-extensions Mac"; - }; - 15A8A41A1834BDA200142BE0 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 15A8A4031834BDA200142BE0 /* cocos2d_libs.xcodeproj */; - proxyType = 2; - remoteGlobalIDString = A03F2CB81780BD04006731B9; - remoteInfo = "chipmunk Mac"; - }; - 15A8A41C1834BDA200142BE0 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 15A8A4031834BDA200142BE0 /* cocos2d_libs.xcodeproj */; - proxyType = 2; - remoteGlobalIDString = A03F2D9B1780BDF7006731B9; - remoteInfo = "box2d Mac"; - }; - 15A8A41E1834BDA200142BE0 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 15A8A4031834BDA200142BE0 /* cocos2d_libs.xcodeproj */; - proxyType = 2; - remoteGlobalIDString = A03F2ED617814268006731B9; - remoteInfo = "CocosDenshion Mac"; - }; - 15A8A4201834BDA200142BE0 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 15A8A4031834BDA200142BE0 /* cocos2d_libs.xcodeproj */; - proxyType = 2; - remoteGlobalIDString = A03F31FD1781479B006731B9; - remoteInfo = "jsbindings Mac"; - }; - 15A8A4221834BDA200142BE0 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 15A8A4031834BDA200142BE0 /* cocos2d_libs.xcodeproj */; - proxyType = 2; - remoteGlobalIDString = 1A6FB53017854BC300CDF010; - remoteInfo = "luabindings Mac"; - }; - 15A8A4241834BDA200142BE0 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 15A8A4031834BDA200142BE0 /* cocos2d_libs.xcodeproj */; - proxyType = 2; - remoteGlobalIDString = A07A4D641783777C0073F6A7; - remoteInfo = "cocos2dx iOS"; - }; - 15A8A4261834BDA200142BE0 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 15A8A4031834BDA200142BE0 /* cocos2d_libs.xcodeproj */; - proxyType = 2; - remoteGlobalIDString = A07A4EFC1783867C0073F6A7; - remoteInfo = "cocos2dx-extensions iOS"; - }; - 15A8A4281834BDA200142BE0 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 15A8A4031834BDA200142BE0 /* cocos2d_libs.xcodeproj */; - proxyType = 2; - remoteGlobalIDString = A07A4F3B178387670073F6A7; - remoteInfo = "chipmunk iOS"; - }; - 15A8A42A1834BDA200142BE0 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 15A8A4031834BDA200142BE0 /* cocos2d_libs.xcodeproj */; - proxyType = 2; - remoteGlobalIDString = A07A4F9E1783876B0073F6A7; - remoteInfo = "box2d iOS"; - }; - 15A8A42C1834BDA200142BE0 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 15A8A4031834BDA200142BE0 /* cocos2d_libs.xcodeproj */; - proxyType = 2; - remoteGlobalIDString = A07A4FB4178387730073F6A7; - remoteInfo = "CocosDenshion iOS"; - }; - 15A8A42E1834BDA200142BE0 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 15A8A4031834BDA200142BE0 /* cocos2d_libs.xcodeproj */; - proxyType = 2; - remoteGlobalIDString = A07A5030178387750073F6A7; - remoteInfo = "jsbindings iOS"; - }; - 15A8A4301834BDA200142BE0 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 15A8A4031834BDA200142BE0 /* cocos2d_libs.xcodeproj */; - proxyType = 2; - remoteGlobalIDString = 1A119791178526AA00D62A44; - remoteInfo = "luabindings iOS"; - }; -/* End PBXContainerItemProxy section */ - -/* Begin PBXFileReference section */ - 01A8D32E187A5049001CC002 /* CocoStudio.lua */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = CocoStudio.lua; path = ../cocos2d/cocos/scripting/lua/script/CocoStudio.lua; sourceTree = ""; }; - 01A8D32F187A504A001CC002 /* extern.lua */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = extern.lua; path = ../cocos2d/cocos/scripting/lua/script/extern.lua; sourceTree = ""; }; - 01A8D330187A504A001CC002 /* GuiConstants.lua */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = GuiConstants.lua; path = ../cocos2d/cocos/scripting/lua/script/GuiConstants.lua; sourceTree = ""; }; - 15A8A4031834BDA200142BE0 /* cocos2d_libs.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = cocos2d_libs.xcodeproj; path = ../cocos2d/build/cocos2d_libs.xcodeproj; sourceTree = ""; }; - 15A8A4551834C6AD00142BE0 /* AudioEngine.lua */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = AudioEngine.lua; path = ../cocos2d/cocos/scripting/lua/script/AudioEngine.lua; sourceTree = ""; }; - 15A8A4561834C6AD00142BE0 /* CCBReaderLoad.lua */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = CCBReaderLoad.lua; path = ../cocos2d/cocos/scripting/lua/script/CCBReaderLoad.lua; sourceTree = ""; }; - 15A8A4571834C6AD00142BE0 /* Cocos2d.lua */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = Cocos2d.lua; path = ../cocos2d/cocos/scripting/lua/script/Cocos2d.lua; sourceTree = ""; }; - 15A8A4581834C6AD00142BE0 /* Cocos2dConstants.lua */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = Cocos2dConstants.lua; path = ../cocos2d/cocos/scripting/lua/script/Cocos2dConstants.lua; sourceTree = ""; }; - 15A8A4591834C6AD00142BE0 /* Deprecated.lua */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = Deprecated.lua; path = ../cocos2d/cocos/scripting/lua/script/Deprecated.lua; sourceTree = ""; }; - 15A8A45A1834C6AD00142BE0 /* DeprecatedClass.lua */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = DeprecatedClass.lua; path = ../cocos2d/cocos/scripting/lua/script/DeprecatedClass.lua; sourceTree = ""; }; - 15A8A45B1834C6AD00142BE0 /* DeprecatedEnum.lua */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = DeprecatedEnum.lua; path = ../cocos2d/cocos/scripting/lua/script/DeprecatedEnum.lua; sourceTree = ""; }; - 15A8A45C1834C6AD00142BE0 /* DeprecatedOpenglEnum.lua */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = DeprecatedOpenglEnum.lua; path = ../cocos2d/cocos/scripting/lua/script/DeprecatedOpenglEnum.lua; sourceTree = ""; }; - 15A8A45D1834C6AD00142BE0 /* DrawPrimitives.lua */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = DrawPrimitives.lua; path = ../cocos2d/cocos/scripting/lua/script/DrawPrimitives.lua; sourceTree = ""; }; - 15A8A45E1834C6AD00142BE0 /* json.lua */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = json.lua; path = ../cocos2d/cocos/scripting/lua/script/json.lua; sourceTree = ""; }; - 15A8A45F1834C6AD00142BE0 /* luaj.lua */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = luaj.lua; path = ../cocos2d/cocos/scripting/lua/script/luaj.lua; sourceTree = ""; }; - 15A8A4601834C6AD00142BE0 /* luaoc.lua */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = luaoc.lua; path = ../cocos2d/cocos/scripting/lua/script/luaoc.lua; sourceTree = ""; }; - 15A8A4611834C6AD00142BE0 /* Opengl.lua */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = Opengl.lua; path = ../cocos2d/cocos/scripting/lua/script/Opengl.lua; sourceTree = ""; }; - 15A8A4621834C6AD00142BE0 /* OpenglConstants.lua */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = OpenglConstants.lua; path = ../cocos2d/cocos/scripting/lua/script/OpenglConstants.lua; sourceTree = ""; }; - 15A8A4631834C6AD00142BE0 /* StudioConstants.lua */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = StudioConstants.lua; path = ../cocos2d/cocos/scripting/lua/script/StudioConstants.lua; sourceTree = ""; }; - 15A8A4871834C90E00142BE0 /* libcurl.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libcurl.dylib; path = usr/lib/libcurl.dylib; sourceTree = SDKROOT; }; - 15C1568D1683131500D239F2 /* libcurl.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libcurl.a; path = ../cocos2d/cocos2dx/platform/third_party/ios/libraries/libcurl.a; sourceTree = ""; }; - 15FFA0FC1894DDEF00C96D45 /* mobdebug.lua */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = mobdebug.lua; sourceTree = ""; }; - 1AC3622316D47C5C000847F2 /* background.mp3 */ = {isa = PBXFileReference; lastKnownFileType = audio.mp3; name = background.mp3; path = ../Resources/background.mp3; sourceTree = ""; }; - 1AC3622416D47C5C000847F2 /* background.ogg */ = {isa = PBXFileReference; lastKnownFileType = file; name = background.ogg; path = ../Resources/background.ogg; sourceTree = ""; }; - 1AC3622516D47C5C000847F2 /* crop.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = crop.png; path = ../Resources/crop.png; sourceTree = ""; }; - 1AC3622616D47C5C000847F2 /* dog.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = dog.png; path = ../Resources/dog.png; sourceTree = ""; }; - 1AC3622716D47C5C000847F2 /* effect1.wav */ = {isa = PBXFileReference; lastKnownFileType = audio.wav; name = effect1.wav; path = ../Resources/effect1.wav; sourceTree = ""; }; - 1AC3622816D47C5C000847F2 /* farm.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; name = farm.jpg; path = ../Resources/farm.jpg; sourceTree = ""; }; - 1AC3622916D47C5C000847F2 /* fonts */ = {isa = PBXFileReference; lastKnownFileType = folder; name = fonts; path = ../Resources/fonts; sourceTree = ""; }; - 1AC3622A16D47C5C000847F2 /* hello.lua */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = hello.lua; path = ../Resources/hello.lua; sourceTree = ""; }; - 1AC3622B16D47C5C000847F2 /* hello2.lua */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = hello2.lua; path = ../Resources/hello2.lua; sourceTree = ""; }; - 1AC3622C16D47C5C000847F2 /* land.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = land.png; path = ../Resources/land.png; sourceTree = ""; }; - 1AC3622D16D47C5C000847F2 /* menu1.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = menu1.png; path = ../Resources/menu1.png; sourceTree = ""; }; - 1AC3622E16D47C5C000847F2 /* menu2.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = menu2.png; path = ../Resources/menu2.png; sourceTree = ""; }; - 1AF4C402178663F200122817 /* libz.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libz.dylib; path = usr/lib/libz.dylib; sourceTree = SDKROOT; }; - 5023810717EBBCAC00990C9B /* AppController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppController.h; sourceTree = ""; }; - 5023810817EBBCAC00990C9B /* AppController.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = AppController.mm; sourceTree = ""; }; - 5023810917EBBCAC00990C9B /* Default-568h@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default-568h@2x.png"; sourceTree = ""; }; - 5023810A17EBBCAC00990C9B /* Default.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Default.png; sourceTree = ""; }; - 5023810B17EBBCAC00990C9B /* Default@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default@2x.png"; sourceTree = ""; }; - 5023810C17EBBCAC00990C9B /* Icon-114.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Icon-114.png"; sourceTree = ""; }; - 5023810D17EBBCAC00990C9B /* Icon-120.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Icon-120.png"; sourceTree = ""; }; - 5023810E17EBBCAC00990C9B /* Icon-144.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Icon-144.png"; sourceTree = ""; }; - 5023810F17EBBCAC00990C9B /* Icon-152.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Icon-152.png"; sourceTree = ""; }; - 5023811017EBBCAC00990C9B /* Icon-57.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Icon-57.png"; sourceTree = ""; }; - 5023811117EBBCAC00990C9B /* Icon-72.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Icon-72.png"; sourceTree = ""; }; - 5023811217EBBCAC00990C9B /* Icon-76.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Icon-76.png"; sourceTree = ""; }; - 5023811317EBBCAC00990C9B /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - 5023811417EBBCAC00990C9B /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; - 5023811517EBBCAC00990C9B /* Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Prefix.pch; sourceTree = ""; }; - 5023811617EBBCAC00990C9B /* RootViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RootViewController.h; sourceTree = ""; }; - 5023811717EBBCAC00990C9B /* RootViewController.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = RootViewController.mm; sourceTree = ""; }; - 5023816B17EBBCE400990C9B /* HelloLua Mac.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "HelloLua Mac.app"; sourceTree = BUILT_PRODUCTS_DIR; }; - 5023817217EBBE3400990C9B /* Icon.icns */ = {isa = PBXFileReference; lastKnownFileType = image.icns; path = Icon.icns; sourceTree = ""; }; - 5023817317EBBE3400990C9B /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - 5023817417EBBE3400990C9B /* main.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = main.cpp; sourceTree = ""; }; - 5023817517EBBE3400990C9B /* Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Prefix.pch; sourceTree = ""; }; - 5023817917EBBE8300990C9B /* OpenGLES.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = OpenGLES.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/OpenGLES.framework; sourceTree = DEVELOPER_DIR; }; - 50805AAE17EBBEAA004CFAD3 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/UIKit.framework; sourceTree = DEVELOPER_DIR; }; - 5091733017ECE17A00D62437 /* Icon-29.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Icon-29.png"; sourceTree = ""; }; - 5091733117ECE17A00D62437 /* Icon-40.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Icon-40.png"; sourceTree = ""; }; - 5091733217ECE17A00D62437 /* Icon-50.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Icon-50.png"; sourceTree = ""; }; - 5091733317ECE17A00D62437 /* Icon-58.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Icon-58.png"; sourceTree = ""; }; - 5091733417ECE17A00D62437 /* Icon-80.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Icon-80.png"; sourceTree = ""; }; - 5091733517ECE17A00D62437 /* Icon-100.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Icon-100.png"; sourceTree = ""; }; - 50D7C96B17EBBEDF005D0B91 /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = OpenGL.framework; path = System/Library/Frameworks/OpenGL.framework; sourceTree = SDKROOT; }; - 50D7C96D17EBBEE6005D0B91 /* AppKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AppKit.framework; path = System/Library/Frameworks/AppKit.framework; sourceTree = SDKROOT; }; - 50D7C96F17EBBEEC005D0B91 /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = IOKit.framework; path = System/Library/Frameworks/IOKit.framework; sourceTree = SDKROOT; }; - D6B061341803AC000077942B /* CoreMotion.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreMotion.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/CoreMotion.framework; sourceTree = DEVELOPER_DIR; }; - F293B3C815EB7BE500256477 /* HelloLua iOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "HelloLua iOS.app"; sourceTree = BUILT_PRODUCTS_DIR; }; - F293B3CC15EB7BE500256477 /* QuartzCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuartzCore.framework; path = System/Library/Frameworks/QuartzCore.framework; sourceTree = SDKROOT; }; - F293B3CE15EB7BE500256477 /* OpenGLES.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = OpenGLES.framework; path = System/Library/Frameworks/OpenGLES.framework; sourceTree = SDKROOT; }; - F293B3D015EB7BE500256477 /* OpenAL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = OpenAL.framework; path = System/Library/Frameworks/OpenAL.framework; sourceTree = SDKROOT; }; - F293B3D215EB7BE500256477 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AudioToolbox.framework; path = System/Library/Frameworks/AudioToolbox.framework; sourceTree = SDKROOT; }; - F293B3D415EB7BE500256477 /* AVFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AVFoundation.framework; path = System/Library/Frameworks/AVFoundation.framework; sourceTree = SDKROOT; }; - F293B3D615EB7BE500256477 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; - F293B3D815EB7BE500256477 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; - F293B3DA15EB7BE500256477 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; - F293BB7E15EB831F00256477 /* AppDelegate.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = AppDelegate.cpp; path = ../Classes/AppDelegate.cpp; sourceTree = ""; }; - F293BB7F15EB831F00256477 /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = ../Classes/AppDelegate.h; sourceTree = ""; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - 5023813617EBBCE400990C9B /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 15A8A4881834C90F00142BE0 /* libcurl.dylib in Frameworks */, - 15A8A4821834C73500142BE0 /* libchipmunk Mac.a in Frameworks */, - 15A8A4831834C73500142BE0 /* libcocos2dx Mac.a in Frameworks */, - 15A8A4841834C73500142BE0 /* libcocos2dx-extensions Mac.a in Frameworks */, - 15A8A4851834C73500142BE0 /* libCocosDenshion Mac.a in Frameworks */, - 15A8A4861834C73500142BE0 /* libluabindings Mac.a in Frameworks */, - 50D7C97017EBBEEC005D0B91 /* IOKit.framework in Frameworks */, - 50D7C96E17EBBEE6005D0B91 /* AppKit.framework in Frameworks */, - 50D7C96C17EBBEDF005D0B91 /* OpenGL.framework in Frameworks */, - 5023813717EBBCE400990C9B /* libz.dylib in Frameworks */, - 5023813E17EBBCE400990C9B /* QuartzCore.framework in Frameworks */, - 5023814017EBBCE400990C9B /* OpenAL.framework in Frameworks */, - 5023814117EBBCE400990C9B /* AudioToolbox.framework in Frameworks */, - 5023814217EBBCE400990C9B /* AVFoundation.framework in Frameworks */, - 5023814417EBBCE400990C9B /* Foundation.framework in Frameworks */, - 5023814517EBBCE400990C9B /* CoreGraphics.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - F293B3C515EB7BE500256477 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 15A8A4441834C43700142BE0 /* libchipmunk iOS.a in Frameworks */, - 15A8A4451834C43700142BE0 /* libcocos2dx iOS.a in Frameworks */, - 15A8A4461834C43700142BE0 /* libcocos2dx-extensions iOS.a in Frameworks */, - 15A8A4471834C43700142BE0 /* libCocosDenshion iOS.a in Frameworks */, - 15A8A4481834C43700142BE0 /* libluabindings iOS.a in Frameworks */, - D6B061351803AC000077942B /* CoreMotion.framework in Frameworks */, - 1AF4C403178663F200122817 /* libz.dylib in Frameworks */, - 50805AAF17EBBEAA004CFAD3 /* UIKit.framework in Frameworks */, - 5023817A17EBBE8300990C9B /* OpenGLES.framework in Frameworks */, - F293B3CD15EB7BE500256477 /* QuartzCore.framework in Frameworks */, - F293B3D115EB7BE500256477 /* OpenAL.framework in Frameworks */, - F293B3D315EB7BE500256477 /* AudioToolbox.framework in Frameworks */, - F293B3D515EB7BE500256477 /* AVFoundation.framework in Frameworks */, - F293B3D915EB7BE500256477 /* Foundation.framework in Frameworks */, - F293B3DB15EB7BE500256477 /* CoreGraphics.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 15A8A4041834BDA200142BE0 /* Products */ = { - isa = PBXGroup; - children = ( - 15A8A4171834BDA200142BE0 /* libcocos2dx Mac.a */, - 15A8A4191834BDA200142BE0 /* libcocos2dx-extensions Mac.a */, - 15A8A41B1834BDA200142BE0 /* libchipmunk Mac.a */, - 15A8A41D1834BDA200142BE0 /* libbox2d Mac.a */, - 15A8A41F1834BDA200142BE0 /* libCocosDenshion Mac.a */, - 15A8A4211834BDA200142BE0 /* libjsbindings Mac.a */, - 15A8A4231834BDA200142BE0 /* libluabindings Mac.a */, - 15A8A4251834BDA200142BE0 /* libcocos2dx iOS.a */, - 15A8A4271834BDA200142BE0 /* libcocos2dx-extensions iOS.a */, - 15A8A4291834BDA200142BE0 /* libchipmunk iOS.a */, - 15A8A42B1834BDA200142BE0 /* libbox2d iOS.a */, - 15A8A42D1834BDA200142BE0 /* libCocosDenshion iOS.a */, - 15A8A42F1834BDA200142BE0 /* libjsbindings iOS.a */, - 15A8A4311834BDA200142BE0 /* libluabindings iOS.a */, - ); - name = Products; - sourceTree = ""; - }; - 1A0227A417A3AA1A00B867AD /* Lua Common */ = { - isa = PBXGroup; - children = ( - 01A8D32E187A5049001CC002 /* CocoStudio.lua */, - 01A8D32F187A504A001CC002 /* extern.lua */, - 01A8D330187A504A001CC002 /* GuiConstants.lua */, - 15A8A4551834C6AD00142BE0 /* AudioEngine.lua */, - 15A8A4561834C6AD00142BE0 /* CCBReaderLoad.lua */, - 15A8A4571834C6AD00142BE0 /* Cocos2d.lua */, - 15A8A4581834C6AD00142BE0 /* Cocos2dConstants.lua */, - 15A8A4591834C6AD00142BE0 /* Deprecated.lua */, - 15A8A45A1834C6AD00142BE0 /* DeprecatedClass.lua */, - 15A8A45B1834C6AD00142BE0 /* DeprecatedEnum.lua */, - 15A8A45C1834C6AD00142BE0 /* DeprecatedOpenglEnum.lua */, - 15A8A45D1834C6AD00142BE0 /* DrawPrimitives.lua */, - 15A8A45E1834C6AD00142BE0 /* json.lua */, - 15A8A45F1834C6AD00142BE0 /* luaj.lua */, - 15A8A4601834C6AD00142BE0 /* luaoc.lua */, - 15A8A4611834C6AD00142BE0 /* Opengl.lua */, - 15A8A4621834C6AD00142BE0 /* OpenglConstants.lua */, - 15A8A4631834C6AD00142BE0 /* StudioConstants.lua */, - ); - name = "Lua Common"; - sourceTree = ""; - }; - 5023810617EBBCAC00990C9B /* ios */ = { - isa = PBXGroup; - children = ( - 5023810717EBBCAC00990C9B /* AppController.h */, - 5023810817EBBCAC00990C9B /* AppController.mm */, - 5023810917EBBCAC00990C9B /* Default-568h@2x.png */, - 5023810A17EBBCAC00990C9B /* Default.png */, - 5023810B17EBBCAC00990C9B /* Default@2x.png */, - 5091734A17ECE18300D62437 /* Icons */, - 5023811317EBBCAC00990C9B /* Info.plist */, - 5023811417EBBCAC00990C9B /* main.m */, - 5023811517EBBCAC00990C9B /* Prefix.pch */, - 5023811617EBBCAC00990C9B /* RootViewController.h */, - 5023811717EBBCAC00990C9B /* RootViewController.mm */, - ); - path = ios; - sourceTree = ""; - }; - 5023817117EBBE3400990C9B /* mac */ = { - isa = PBXGroup; - children = ( - 5023817217EBBE3400990C9B /* Icon.icns */, - 5023817317EBBE3400990C9B /* Info.plist */, - 5023817417EBBE3400990C9B /* main.cpp */, - 5023817517EBBE3400990C9B /* Prefix.pch */, - ); - path = mac; - sourceTree = ""; - }; - 5091734A17ECE18300D62437 /* Icons */ = { - isa = PBXGroup; - children = ( - 5091733017ECE17A00D62437 /* Icon-29.png */, - 5091733117ECE17A00D62437 /* Icon-40.png */, - 5091733217ECE17A00D62437 /* Icon-50.png */, - 5091733317ECE17A00D62437 /* Icon-58.png */, - 5091733417ECE17A00D62437 /* Icon-80.png */, - 5091733517ECE17A00D62437 /* Icon-100.png */, - 5023810C17EBBCAC00990C9B /* Icon-114.png */, - 5023810D17EBBCAC00990C9B /* Icon-120.png */, - 5023810E17EBBCAC00990C9B /* Icon-144.png */, - 5023810F17EBBCAC00990C9B /* Icon-152.png */, - 5023811017EBBCAC00990C9B /* Icon-57.png */, - 5023811117EBBCAC00990C9B /* Icon-72.png */, - 5023811217EBBCAC00990C9B /* Icon-76.png */, - ); - name = Icons; - sourceTree = ""; - }; - F293B3BD15EB7BE500256477 = { - isa = PBXGroup; - children = ( - 15A8A4031834BDA200142BE0 /* cocos2d_libs.xcodeproj */, - 5023810617EBBCAC00990C9B /* ios */, - 5023817117EBBE3400990C9B /* mac */, - F293BB7C15EB830F00256477 /* Classes */, - F293B3CB15EB7BE500256477 /* Frameworks */, - 1A0227A417A3AA1A00B867AD /* Lua Common */, - F293B3C915EB7BE500256477 /* Products */, - F293BC4615EB859D00256477 /* Resources */, - ); - sourceTree = ""; - }; - F293B3C915EB7BE500256477 /* Products */ = { - isa = PBXGroup; - children = ( - F293B3C815EB7BE500256477 /* HelloLua iOS.app */, - 5023816B17EBBCE400990C9B /* HelloLua Mac.app */, - ); - name = Products; - sourceTree = ""; - }; - F293B3CB15EB7BE500256477 /* Frameworks */ = { - isa = PBXGroup; - children = ( - 15A8A4871834C90E00142BE0 /* libcurl.dylib */, - D6B061341803AC000077942B /* CoreMotion.framework */, - 50D7C96F17EBBEEC005D0B91 /* IOKit.framework */, - 50D7C96D17EBBEE6005D0B91 /* AppKit.framework */, - 50D7C96B17EBBEDF005D0B91 /* OpenGL.framework */, - 50805AAE17EBBEAA004CFAD3 /* UIKit.framework */, - 5023817917EBBE8300990C9B /* OpenGLES.framework */, - 1AF4C402178663F200122817 /* libz.dylib */, - 15C1568D1683131500D239F2 /* libcurl.a */, - F293B3CC15EB7BE500256477 /* QuartzCore.framework */, - F293B3CE15EB7BE500256477 /* OpenGLES.framework */, - F293B3D015EB7BE500256477 /* OpenAL.framework */, - F293B3D215EB7BE500256477 /* AudioToolbox.framework */, - F293B3D415EB7BE500256477 /* AVFoundation.framework */, - F293B3D615EB7BE500256477 /* UIKit.framework */, - F293B3D815EB7BE500256477 /* Foundation.framework */, - F293B3DA15EB7BE500256477 /* CoreGraphics.framework */, - ); - name = Frameworks; - sourceTree = ""; - }; - F293BB7C15EB830F00256477 /* Classes */ = { - isa = PBXGroup; - children = ( - F293BB7E15EB831F00256477 /* AppDelegate.cpp */, - F293BB7F15EB831F00256477 /* AppDelegate.h */, - ); - name = Classes; - sourceTree = ""; - }; - F293BC4615EB859D00256477 /* Resources */ = { - isa = PBXGroup; - children = ( - 15FFA0FC1894DDEF00C96D45 /* mobdebug.lua */, - 1AC3622316D47C5C000847F2 /* background.mp3 */, - 1AC3622416D47C5C000847F2 /* background.ogg */, - 1AC3622516D47C5C000847F2 /* crop.png */, - 1AC3622616D47C5C000847F2 /* dog.png */, - 1AC3622716D47C5C000847F2 /* effect1.wav */, - 1AC3622816D47C5C000847F2 /* farm.jpg */, - 1AC3622916D47C5C000847F2 /* fonts */, - 1AC3622A16D47C5C000847F2 /* hello.lua */, - 1AC3622B16D47C5C000847F2 /* hello2.lua */, - 1AC3622C16D47C5C000847F2 /* land.png */, - 1AC3622D16D47C5C000847F2 /* menu1.png */, - 1AC3622E16D47C5C000847F2 /* menu2.png */, - ); - name = Resources; - path = ../Resources; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXNativeTarget section */ - 5023812617EBBCE400990C9B /* HelloLua Mac */ = { - isa = PBXNativeTarget; - buildConfigurationList = 5023816817EBBCE400990C9B /* Build configuration list for PBXNativeTarget "HelloLua Mac" */; - buildPhases = ( - 5023813117EBBCE400990C9B /* Sources */, - 5023813617EBBCE400990C9B /* Frameworks */, - 5023814617EBBCE400990C9B /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = "HelloLua Mac"; - productName = HelloLua; - productReference = 5023816B17EBBCE400990C9B /* HelloLua Mac.app */; - productType = "com.apple.product-type.application"; - }; - F293B3C715EB7BE500256477 /* HelloLua iOS */ = { - isa = PBXNativeTarget; - buildConfigurationList = F293B6C415EB7BEA00256477 /* Build configuration list for PBXNativeTarget "HelloLua iOS" */; - buildPhases = ( - F293B3C415EB7BE500256477 /* Sources */, - F293B3C515EB7BE500256477 /* Frameworks */, - F293B3C615EB7BE500256477 /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = "HelloLua iOS"; - productName = HelloLua; - productReference = F293B3C815EB7BE500256477 /* HelloLua iOS.app */; - productType = "com.apple.product-type.application"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - F293B3BF15EB7BE500256477 /* Project object */ = { - isa = PBXProject; - attributes = { - LastUpgradeCheck = 0500; - TargetAttributes = { - F293B3C715EB7BE500256477 = { - DevelopmentTeam = MDDB52YB8L; - }; - }; - }; - buildConfigurationList = F293B3C215EB7BE500256477 /* Build configuration list for PBXProject "HelloLua" */; - compatibilityVersion = "Xcode 3.2"; - developmentRegion = English; - hasScannedForEncodings = 0; - knownRegions = ( - en, - ); - mainGroup = F293B3BD15EB7BE500256477; - productRefGroup = F293B3C915EB7BE500256477 /* Products */; - projectDirPath = ""; - projectReferences = ( - { - ProductGroup = 15A8A4041834BDA200142BE0 /* Products */; - ProjectRef = 15A8A4031834BDA200142BE0 /* cocos2d_libs.xcodeproj */; - }, - ); - projectRoot = ""; - targets = ( - F293B3C715EB7BE500256477 /* HelloLua iOS */, - 5023812617EBBCE400990C9B /* HelloLua Mac */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXReferenceProxy section */ - 15A8A4171834BDA200142BE0 /* libcocos2dx Mac.a */ = { - isa = PBXReferenceProxy; - fileType = archive.ar; - path = "libcocos2dx Mac.a"; - remoteRef = 15A8A4161834BDA200142BE0 /* PBXContainerItemProxy */; - sourceTree = BUILT_PRODUCTS_DIR; - }; - 15A8A4191834BDA200142BE0 /* libcocos2dx-extensions Mac.a */ = { - isa = PBXReferenceProxy; - fileType = archive.ar; - path = "libcocos2dx-extensions Mac.a"; - remoteRef = 15A8A4181834BDA200142BE0 /* PBXContainerItemProxy */; - sourceTree = BUILT_PRODUCTS_DIR; - }; - 15A8A41B1834BDA200142BE0 /* libchipmunk Mac.a */ = { - isa = PBXReferenceProxy; - fileType = archive.ar; - path = "libchipmunk Mac.a"; - remoteRef = 15A8A41A1834BDA200142BE0 /* PBXContainerItemProxy */; - sourceTree = BUILT_PRODUCTS_DIR; - }; - 15A8A41D1834BDA200142BE0 /* libbox2d Mac.a */ = { - isa = PBXReferenceProxy; - fileType = archive.ar; - path = "libbox2d Mac.a"; - remoteRef = 15A8A41C1834BDA200142BE0 /* PBXContainerItemProxy */; - sourceTree = BUILT_PRODUCTS_DIR; - }; - 15A8A41F1834BDA200142BE0 /* libCocosDenshion Mac.a */ = { - isa = PBXReferenceProxy; - fileType = archive.ar; - path = "libCocosDenshion Mac.a"; - remoteRef = 15A8A41E1834BDA200142BE0 /* PBXContainerItemProxy */; - sourceTree = BUILT_PRODUCTS_DIR; - }; - 15A8A4211834BDA200142BE0 /* libjsbindings Mac.a */ = { - isa = PBXReferenceProxy; - fileType = archive.ar; - path = "libjsbindings Mac.a"; - remoteRef = 15A8A4201834BDA200142BE0 /* PBXContainerItemProxy */; - sourceTree = BUILT_PRODUCTS_DIR; - }; - 15A8A4231834BDA200142BE0 /* libluabindings Mac.a */ = { - isa = PBXReferenceProxy; - fileType = archive.ar; - path = "libluabindings Mac.a"; - remoteRef = 15A8A4221834BDA200142BE0 /* PBXContainerItemProxy */; - sourceTree = BUILT_PRODUCTS_DIR; - }; - 15A8A4251834BDA200142BE0 /* libcocos2dx iOS.a */ = { - isa = PBXReferenceProxy; - fileType = archive.ar; - path = "libcocos2dx iOS.a"; - remoteRef = 15A8A4241834BDA200142BE0 /* PBXContainerItemProxy */; - sourceTree = BUILT_PRODUCTS_DIR; - }; - 15A8A4271834BDA200142BE0 /* libcocos2dx-extensions iOS.a */ = { - isa = PBXReferenceProxy; - fileType = archive.ar; - path = "libcocos2dx-extensions iOS.a"; - remoteRef = 15A8A4261834BDA200142BE0 /* PBXContainerItemProxy */; - sourceTree = BUILT_PRODUCTS_DIR; - }; - 15A8A4291834BDA200142BE0 /* libchipmunk iOS.a */ = { - isa = PBXReferenceProxy; - fileType = archive.ar; - path = "libchipmunk iOS.a"; - remoteRef = 15A8A4281834BDA200142BE0 /* PBXContainerItemProxy */; - sourceTree = BUILT_PRODUCTS_DIR; - }; - 15A8A42B1834BDA200142BE0 /* libbox2d iOS.a */ = { - isa = PBXReferenceProxy; - fileType = archive.ar; - path = "libbox2d iOS.a"; - remoteRef = 15A8A42A1834BDA200142BE0 /* PBXContainerItemProxy */; - sourceTree = BUILT_PRODUCTS_DIR; - }; - 15A8A42D1834BDA200142BE0 /* libCocosDenshion iOS.a */ = { - isa = PBXReferenceProxy; - fileType = archive.ar; - path = "libCocosDenshion iOS.a"; - remoteRef = 15A8A42C1834BDA200142BE0 /* PBXContainerItemProxy */; - sourceTree = BUILT_PRODUCTS_DIR; - }; - 15A8A42F1834BDA200142BE0 /* libjsbindings iOS.a */ = { - isa = PBXReferenceProxy; - fileType = archive.ar; - path = "libjsbindings iOS.a"; - remoteRef = 15A8A42E1834BDA200142BE0 /* PBXContainerItemProxy */; - sourceTree = BUILT_PRODUCTS_DIR; - }; - 15A8A4311834BDA200142BE0 /* libluabindings iOS.a */ = { - isa = PBXReferenceProxy; - fileType = archive.ar; - path = "libluabindings iOS.a"; - remoteRef = 15A8A4301834BDA200142BE0 /* PBXContainerItemProxy */; - sourceTree = BUILT_PRODUCTS_DIR; - }; -/* End PBXReferenceProxy section */ - -/* Begin PBXResourcesBuildPhase section */ - 5023814617EBBCE400990C9B /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 15A8A4711834C6AD00142BE0 /* DeprecatedEnum.lua in Resources */, - 15FFA0FE1894DDEF00C96D45 /* mobdebug.lua in Resources */, - 5023814817EBBCE400990C9B /* background.mp3 in Resources */, - 5023814917EBBCE400990C9B /* background.ogg in Resources */, - 5023814A17EBBCE400990C9B /* crop.png in Resources */, - 15A8A4811834C6AD00142BE0 /* StudioConstants.lua in Resources */, - 15A8A4791834C6AD00142BE0 /* luaj.lua in Resources */, - 15A8A4671834C6AD00142BE0 /* CCBReaderLoad.lua in Resources */, - 5023814B17EBBCE400990C9B /* dog.png in Resources */, - 5023814D17EBBCE400990C9B /* effect1.wav in Resources */, - 15A8A46B1834C6AD00142BE0 /* Cocos2dConstants.lua in Resources */, - 5023814F17EBBCE400990C9B /* farm.jpg in Resources */, - 15A8A4771834C6AD00142BE0 /* json.lua in Resources */, - 15A8A46F1834C6AD00142BE0 /* DeprecatedClass.lua in Resources */, - 15A8A47F1834C6AD00142BE0 /* OpenglConstants.lua in Resources */, - 5023815017EBBCE400990C9B /* fonts in Resources */, - 15A8A47D1834C6AD00142BE0 /* Opengl.lua in Resources */, - 15A8A4691834C6AD00142BE0 /* Cocos2d.lua in Resources */, - 15A8A4731834C6AD00142BE0 /* DeprecatedOpenglEnum.lua in Resources */, - 5023815117EBBCE400990C9B /* hello.lua in Resources */, - 15A8A46D1834C6AD00142BE0 /* Deprecated.lua in Resources */, - 5023815217EBBCE400990C9B /* hello2.lua in Resources */, - 15A8A4751834C6AD00142BE0 /* DrawPrimitives.lua in Resources */, - 15A8A47B1834C6AD00142BE0 /* luaoc.lua in Resources */, - 5023815317EBBCE400990C9B /* land.png in Resources */, - 5023815617EBBCE400990C9B /* menu1.png in Resources */, - 5023815717EBBCE400990C9B /* menu2.png in Resources */, - 5023817617EBBE3400990C9B /* Icon.icns in Resources */, - 15A8A4651834C6AD00142BE0 /* AudioEngine.lua in Resources */, - 01A8D332187A504A001CC002 /* CocoStudio.lua in Resources */, - 01A8D334187A504A001CC002 /* extern.lua in Resources */, - 01A8D336187A504A001CC002 /* GuiConstants.lua in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - F293B3C615EB7BE500256477 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 15A8A46E1834C6AD00142BE0 /* DeprecatedClass.lua in Resources */, - 15A8A4491834C64F00142BE0 /* Icon-114.png in Resources */, - 5023811D17EBBCAC00990C9B /* Icon-120.png in Resources */, - 15A8A47E1834C6AD00142BE0 /* OpenglConstants.lua in Resources */, - 5091733B17ECE17A00D62437 /* Icon-100.png in Resources */, - 15A8A4781834C6AD00142BE0 /* luaj.lua in Resources */, - 1AC3622F16D47C5C000847F2 /* background.mp3 in Resources */, - 1AC3623016D47C5C000847F2 /* background.ogg in Resources */, - 1AC3623116D47C5C000847F2 /* crop.png in Resources */, - 15A8A47C1834C6AD00142BE0 /* Opengl.lua in Resources */, - 15A8A4741834C6AD00142BE0 /* DrawPrimitives.lua in Resources */, - 1AC3623216D47C5C000847F2 /* dog.png in Resources */, - 5023811B17EBBCAC00990C9B /* Default@2x.png in Resources */, - 1AC3623316D47C5C000847F2 /* effect1.wav in Resources */, - 15A8A4681834C6AD00142BE0 /* Cocos2d.lua in Resources */, - 5091733617ECE17A00D62437 /* Icon-29.png in Resources */, - 15A8A4801834C6AD00142BE0 /* StudioConstants.lua in Resources */, - 5023811917EBBCAC00990C9B /* Default-568h@2x.png in Resources */, - 1AC3623416D47C5C000847F2 /* farm.jpg in Resources */, - 1AC3623516D47C5C000847F2 /* fonts in Resources */, - 15A8A4721834C6AD00142BE0 /* DeprecatedOpenglEnum.lua in Resources */, - 15A8A4701834C6AD00142BE0 /* DeprecatedEnum.lua in Resources */, - 15A8A46A1834C6AD00142BE0 /* Cocos2dConstants.lua in Resources */, - 1AC3623616D47C5C000847F2 /* hello.lua in Resources */, - 5091733917ECE17A00D62437 /* Icon-58.png in Resources */, - 15FFA0FD1894DDEF00C96D45 /* mobdebug.lua in Resources */, - 15A8A4641834C6AD00142BE0 /* AudioEngine.lua in Resources */, - 1AC3623716D47C5C000847F2 /* hello2.lua in Resources */, - 1AC3623816D47C5C000847F2 /* land.png in Resources */, - 15A8A4661834C6AD00142BE0 /* CCBReaderLoad.lua in Resources */, - 5023811F17EBBCAC00990C9B /* Icon-152.png in Resources */, - 5023812017EBBCAC00990C9B /* Icon-57.png in Resources */, - 1AC3623916D47C5C000847F2 /* menu1.png in Resources */, - 15A8A47A1834C6AD00142BE0 /* luaoc.lua in Resources */, - 1AC3623A16D47C5C000847F2 /* menu2.png in Resources */, - 5023812217EBBCAC00990C9B /* Icon-76.png in Resources */, - 15A8A46C1834C6AD00142BE0 /* Deprecated.lua in Resources */, - 5091733A17ECE17A00D62437 /* Icon-80.png in Resources */, - 5091733717ECE17A00D62437 /* Icon-40.png in Resources */, - 5023811E17EBBCAC00990C9B /* Icon-144.png in Resources */, - 15A8A4761834C6AD00142BE0 /* json.lua in Resources */, - 5023811A17EBBCAC00990C9B /* Default.png in Resources */, - 5091733817ECE17A00D62437 /* Icon-50.png in Resources */, - 5023812117EBBCAC00990C9B /* Icon-72.png in Resources */, - 01A8D331187A504A001CC002 /* CocoStudio.lua in Resources */, - 01A8D333187A504A001CC002 /* extern.lua in Resources */, - 01A8D335187A504A001CC002 /* GuiConstants.lua in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXResourcesBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ - 5023813117EBBCE400990C9B /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 5023813317EBBCE400990C9B /* AppDelegate.cpp in Sources */, - 5023817817EBBE3400990C9B /* main.cpp in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - F293B3C415EB7BE500256477 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 5023812517EBBCAC00990C9B /* RootViewController.mm in Sources */, - F293BB9C15EB831F00256477 /* AppDelegate.cpp in Sources */, - 5023812417EBBCAC00990C9B /* main.m in Sources */, - 5023811817EBBCAC00990C9B /* AppController.mm in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin XCBuildConfiguration section */ - 5023816917EBBCE400990C9B /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = YES; - ARCHS = "$(ARCHS_STANDARD_64_BIT)"; - COMBINE_HIDPI_IMAGES = YES; - GCC_DYNAMIC_NO_PIC = NO; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = mac/Prefix.pch; - GCC_PREPROCESSOR_DEFINITIONS = ( - CC_TARGET_OS_MAC, - "$(inherited)", - ); - HEADER_SEARCH_PATHS = ""; - INFOPLIST_FILE = mac/Info.plist; - LIBRARY_SEARCH_PATHS = ""; - OTHER_LDFLAGS = ( - "-image_base", - 100000000, - "-pagezero_size", - 10000, - ); - SDKROOT = macosx; - USER_HEADER_SEARCH_PATHS = "$(inherited) $(SRCROOT)/../cocos2d/cocos $(SRCROOT)/../cocos2d/cocos/base $(SRCROOT)/../cocos2d/cocos/2d $(SRCROOT)/../cocos2d/cocos/physics $(SRCROOT)/../cocos2d/cocos/math/kazmath/include $(SRCROOT)/../cocos2d/cocos/2d/platform/mac $(SRCROOT)/../cocos2d/cocos/audio/include $(SRCROOT)/../cocos2d/cocos/editor-support $(SRCROOT)/../cocos2d/cocos/gui $(SRCROOT)/../cocos2d/external/chipmunk/include/chipmunk $(SRCROOT)/../cocos2d/external $(SRCROOT)/../cocos2d/external/glfw3/include/mac $(SRCROOT)/../cocos2d/cocos/scripting/lua/bindings $(SRCROOT)/../cocos2d/external/lua/luajit/include $(SRCROOT)/../cocos2d/external/lua/tolua"; - }; - name = Debug; - }; - 5023816A17EBBCE400990C9B /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = YES; - ARCHS = "$(ARCHS_STANDARD_64_BIT)"; - COMBINE_HIDPI_IMAGES = YES; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = mac/Prefix.pch; - GCC_PREPROCESSOR_DEFINITIONS = ( - CC_TARGET_OS_MAC, - "$(inherited)", - ); - HEADER_SEARCH_PATHS = ""; - INFOPLIST_FILE = mac/Info.plist; - LIBRARY_SEARCH_PATHS = ""; - OTHER_LDFLAGS = ( - "-image_base", - 100000000, - "-pagezero_size", - 10000, - ); - SDKROOT = macosx; - USER_HEADER_SEARCH_PATHS = "$(inherited) $(SRCROOT)/../cocos2d/cocos $(SRCROOT)/../cocos2d/cocos/base $(SRCROOT)/../cocos2d/cocos/2d $(SRCROOT)/../cocos2d/cocos/physics $(SRCROOT)/../cocos2d/cocos/math/kazmath/include $(SRCROOT)/../cocos2d/cocos/2d/platform/mac $(SRCROOT)/../cocos2d/cocos/audio/include $(SRCROOT)/../cocos2d/cocos/editor-support $(SRCROOT)/../cocos2d/cocos/gui $(SRCROOT)/../cocos2d/external/chipmunk/include/chipmunk $(SRCROOT)/../cocos2d/external $(SRCROOT)/../cocos2d/external/glfw3/include/mac $(SRCROOT)/../cocos2d/cocos/scripting/lua/bindings $(SRCROOT)/../cocos2d/external/lua/luajit/include $(SRCROOT)/../cocos2d/external/lua/tolua"; - }; - name = Release; - }; - F293B6C215EB7BEA00256477 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - CLANG_CXX_LANGUAGE_STANDARD = "c++0x"; - CLANG_CXX_LIBRARY = "libc++"; - COPY_PHASE_STRIP = NO; - GCC_C_LANGUAGE_STANDARD = c99; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_PREPROCESSOR_DEFINITIONS = ( - DEBUG, - "COCOS2D_DEBUG=1", - USE_FILE32API, - "CC_LUA_ENGINE_ENABLED=1", - "CC_ENABLE_CHIPMUNK_INTEGRATION=1", - ); - GCC_SYMBOLS_PRIVATE_EXTERN = NO; - GCC_WARN_ABOUT_RETURN_TYPE = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = ( - "\"$(PROJECT_NAME)/libs/cocos2dx/kazmath/include\"", - "\"$(PROJECT_NAME)/libs/cocos2dx\"", - "\"$(PROJECT_NAME)/libs/CocosDenshion/include\"", - "\"$(SDKROOT)/usr/include/libxml2\"", - "\"$(SRCROOT)/../../cocos2dx/\"", - "\"$(SRCROOT)/../../cocos2dx/kazmath/include\"", - "\"$(SRCROOT)/../../external/lua/tolua\"", - "\"$(SRCROOT)/../../external/lua/src\"", - "$(SRCROOT)/../../external/lua/cocos2dx_support", - "$(SRCROOT)/../../cocos2dx/platform/ios", - "$(SRCROOT)/../../cocos2dx/include", - ); - ONLY_ACTIVE_ARCH = YES; - PRODUCT_NAME = "$(TARGET_NAME)"; - }; - name = Debug; - }; - F293B6C315EB7BEA00256477 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - CLANG_CXX_LANGUAGE_STANDARD = "c++0x"; - CLANG_CXX_LIBRARY = "libc++"; - GCC_C_LANGUAGE_STANDARD = c99; - GCC_PREPROCESSOR_DEFINITIONS = ( - NDEBUG, - USE_FILE32API, - "CC_LUA_ENGINE_ENABLED=1", - "CC_ENABLE_CHIPMUNK_INTEGRATION=1", - ); - GCC_WARN_ABOUT_RETURN_TYPE = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = ( - "\"$(PROJECT_NAME)/libs/cocos2dx/kazmath/include\"", - "\"$(PROJECT_NAME)/libs/cocos2dx\"", - "\"$(PROJECT_NAME)/libs/CocosDenshion/include\"", - "\"$(SDKROOT)/usr/include/libxml2\"", - "\"$(SRCROOT)/../../cocos2dx/\"", - "\"$(SRCROOT)/../../cocos2dx/kazmath/include\"", - "\"$(SRCROOT)/../../external/lua/tolua\"", - "\"$(SRCROOT)/../../external/lua/src\"", - "$(SRCROOT)/../../external/lua/cocos2dx_support", - "$(SRCROOT)/../../cocos2dx/platform/ios", - "$(SRCROOT)/../../cocos2dx/include", - ); - OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1"; - PRODUCT_NAME = "$(TARGET_NAME)"; - VALIDATE_PRODUCT = YES; - }; - name = Release; - }; - F293B6C515EB7BEA00256477 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = YES; - CODE_SIGN_IDENTITY = "iPhone Developer"; - COMPRESS_PNG_FILES = NO; - GCC_DYNAMIC_NO_PIC = NO; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = ios/Prefix.pch; - GCC_PREPROCESSOR_DEFINITIONS = ( - CC_TARGET_OS_IPHONE, - "$(inherited)", - ); - HEADER_SEARCH_PATHS = ""; - INFOPLIST_FILE = ios/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 5.0; - LIBRARY_SEARCH_PATHS = ""; - SDKROOT = iphoneos; - TARGETED_DEVICE_FAMILY = "1,2"; - USER_HEADER_SEARCH_PATHS = "$(inherited) $(SRCROOT)/../cocos2d/cocos $(SRCROOT)/../cocos2d/cocos/base $(SRCROOT)/../cocos2d/cocos/2d $(SRCROOT)/../cocos2d/cocos/physics $(SRCROOT)/../cocos2d/cocos/math/kazmath/include $(SRCROOT)/../cocos2d/cocos/2d/platform/ios $(SRCROOT)/../cocos2d/cocos/audio/include $(SRCROOT)/../cocos2d/cocos/editor-support $(SRCROOT)/../cocos2d/cocos/gui $(SRCROOT)/../cocos2d/external/chipmunk/include/chipmunk $(SRCROOT)/../cocos2d/external $(SRCROOT)/../cocos2d/cocos/scripting/lua/bindings $(SRCROOT)/../cocos2d/external/lua/luajit/include $(SRCROOT)/../cocos2d/external/lua/tolua"; - }; - name = Debug; - }; - F293B6C615EB7BEA00256477 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = YES; - CODE_SIGN_IDENTITY = "iPhone Developer"; - COMPRESS_PNG_FILES = NO; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = ios/Prefix.pch; - GCC_PREPROCESSOR_DEFINITIONS = ( - CC_TARGET_OS_IPHONE, - "$(inherited)", - ); - HEADER_SEARCH_PATHS = ""; - INFOPLIST_FILE = ios/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 5.0; - LIBRARY_SEARCH_PATHS = ""; - SDKROOT = iphoneos; - TARGETED_DEVICE_FAMILY = "1,2"; - USER_HEADER_SEARCH_PATHS = "$(inherited) $(SRCROOT)/../cocos2d/cocos $(SRCROOT)/../cocos2d/cocos/base $(SRCROOT)/../cocos2d/cocos/2d $(SRCROOT)/../cocos2d/cocos/physics $(SRCROOT)/../cocos2d/cocos/math/kazmath/include $(SRCROOT)/../cocos2d/cocos/2d/platform/ios $(SRCROOT)/../cocos2d/cocos/audio/include $(SRCROOT)/../cocos2d/cocos/editor-support $(SRCROOT)/../cocos2d/cocos/gui $(SRCROOT)/../cocos2d/external/chipmunk/include/chipmunk $(SRCROOT)/../cocos2d/external $(SRCROOT)/../cocos2d/cocos/scripting/lua/bindings $(SRCROOT)/../cocos2d/external/lua/luajit/include $(SRCROOT)/../cocos2d/external/lua/tolua"; - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - 5023816817EBBCE400990C9B /* Build configuration list for PBXNativeTarget "HelloLua Mac" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 5023816917EBBCE400990C9B /* Debug */, - 5023816A17EBBCE400990C9B /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - F293B3C215EB7BE500256477 /* Build configuration list for PBXProject "HelloLua" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - F293B6C215EB7BEA00256477 /* Debug */, - F293B6C315EB7BEA00256477 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - F293B6C415EB7BEA00256477 /* Build configuration list for PBXNativeTarget "HelloLua iOS" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - F293B6C515EB7BEA00256477 /* Debug */, - F293B6C615EB7BEA00256477 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; -/* End XCConfigurationList section */ - }; - rootObject = F293B3BF15EB7BE500256477 /* Project object */; -} diff --git a/templates/multi-platform-lua/proj.ios_mac/ios/AppController.h b/templates/multi-platform-lua/proj.ios_mac/ios/AppController.h deleted file mode 100644 index ee440a30a8..0000000000 --- a/templates/multi-platform-lua/proj.ios_mac/ios/AppController.h +++ /dev/null @@ -1,34 +0,0 @@ -/**************************************************************************** - Copyright (c) 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/templates/multi-platform-lua/proj.ios_mac/ios/AppController.mm b/templates/multi-platform-lua/proj.ios_mac/ios/AppController.mm deleted file mode 100644 index d0a96a28ec..0000000000 --- a/templates/multi-platform-lua/proj.ios_mac/ios/AppController.mm +++ /dev/null @@ -1,143 +0,0 @@ -/**************************************************************************** - Copyright (c) 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 "AppController.h" -#import "cocos2d.h" -#import "CCEAGLView.h" -#import "AppDelegate.h" - -#import "RootViewController.h" - -@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_DEPTH_COMPONENT16 - 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::GLView::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. - */ - //We don't need to call this method any more. It will interupt user defined game pause&resume logic - /* cocos2d::Director::getInstance()->pause(); */ -} - -- (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. - */ - //We don't need to call this method any more. It will interupt user defined game pause&resume logic - /* 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/templates/multi-platform-lua/proj.ios_mac/ios/Default-568h@2x.png.REMOVED.git-id b/templates/multi-platform-lua/proj.ios_mac/ios/Default-568h@2x.png.REMOVED.git-id deleted file mode 100644 index 8f5838f3a8..0000000000 --- a/templates/multi-platform-lua/proj.ios_mac/ios/Default-568h@2x.png.REMOVED.git-id +++ /dev/null @@ -1 +0,0 @@ -66c6d1cead373b45218424f6a82f370897e443e4 \ No newline at end of file diff --git a/templates/multi-platform-lua/proj.ios_mac/ios/Default@2x.png.REMOVED.git-id b/templates/multi-platform-lua/proj.ios_mac/ios/Default@2x.png.REMOVED.git-id deleted file mode 100644 index 8843505b20..0000000000 --- a/templates/multi-platform-lua/proj.ios_mac/ios/Default@2x.png.REMOVED.git-id +++ /dev/null @@ -1 +0,0 @@ -84689888a14a2123d2b39f7f2f61be8c15207479 \ No newline at end of file diff --git a/templates/multi-platform-lua/proj.ios_mac/ios/Prefix.pch b/templates/multi-platform-lua/proj.ios_mac/ios/Prefix.pch deleted file mode 100644 index b4311a0a3d..0000000000 --- a/templates/multi-platform-lua/proj.ios_mac/ios/Prefix.pch +++ /dev/null @@ -1,8 +0,0 @@ -// -// Prefix header for all source files of the 'HelloLua' target in the 'HelloLua' project -// - -#ifdef __OBJC__ - #import - #import -#endif diff --git a/templates/multi-platform-lua/proj.ios_mac/ios/RootViewController.h b/templates/multi-platform-lua/proj.ios_mac/ios/RootViewController.h deleted file mode 100644 index a68782316e..0000000000 --- a/templates/multi-platform-lua/proj.ios_mac/ios/RootViewController.h +++ /dev/null @@ -1,33 +0,0 @@ -/**************************************************************************** - Copyright (c) 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 - - -@interface RootViewController : UIViewController { - -} -- (BOOL)prefersStatusBarHidden; -@end diff --git a/templates/multi-platform-lua/proj.ios_mac/ios/RootViewController.mm b/templates/multi-platform-lua/proj.ios_mac/ios/RootViewController.mm deleted file mode 100644 index 2374fae2d2..0000000000 --- a/templates/multi-platform-lua/proj.ios_mac/ios/RootViewController.mm +++ /dev/null @@ -1,108 +0,0 @@ -/**************************************************************************** - Copyright (c) 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 "RootViewController.h" -#import "cocos2d.h" -#import "CCEAGLView.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; -} - -- (void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation { - [super didRotateFromInterfaceOrientation:fromInterfaceOrientation]; - - cocos2d::GLView *glview = cocos2d::Director::getInstance()->getOpenGLView(); - CCEAGLView *eaglview = (CCEAGLView*) glview->getEAGLView(); - - CGSize s = CGSizeMake([eaglview getWidth], [eaglview getHeight]); - - cocos2d::Application::getInstance()->applicationScreenSizeChanged((int) s.width, (int) s.height); -} - -//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/templates/multi-platform-lua/proj.ios_mac/ios/main.m b/templates/multi-platform-lua/proj.ios_mac/ios/main.m deleted file mode 100644 index 4135c21f5d..0000000000 --- a/templates/multi-platform-lua/proj.ios_mac/ios/main.m +++ /dev/null @@ -1,15 +0,0 @@ -// -// main.m -// HelloLua -// -// Copyright __MyCompanyName__ 2011. All rights reserved. -// - -#import - -int main(int argc, char *argv[]) { - NSAutoreleasePool *pool = [NSAutoreleasePool new]; - int retVal = UIApplicationMain(argc, argv, nil, @"AppController"); - [pool release]; - return retVal; -} diff --git a/templates/multi-platform-lua/proj.ios_mac/mac/Icon.icns.REMOVED.git-id b/templates/multi-platform-lua/proj.ios_mac/mac/Icon.icns.REMOVED.git-id deleted file mode 100644 index 0c90afdb6d..0000000000 --- a/templates/multi-platform-lua/proj.ios_mac/mac/Icon.icns.REMOVED.git-id +++ /dev/null @@ -1 +0,0 @@ -2040fc6fe624353ae1d3db50cd3d450f4fda5afc \ No newline at end of file diff --git a/templates/multi-platform-lua/proj.ios_mac/mac/Prefix.pch b/templates/multi-platform-lua/proj.ios_mac/mac/Prefix.pch deleted file mode 100644 index 46c36a7e99..0000000000 --- a/templates/multi-platform-lua/proj.ios_mac/mac/Prefix.pch +++ /dev/null @@ -1,7 +0,0 @@ -// -// Prefix header for all source files of the 'Paralaxer' target in the 'Paralaxer' project -// - -#ifdef __OBJC__ - #import -#endif diff --git a/templates/multi-platform-lua/proj.ios_mac/mac/main.cpp b/templates/multi-platform-lua/proj.ios_mac/mac/main.cpp deleted file mode 100644 index 96f027e13d..0000000000 --- a/templates/multi-platform-lua/proj.ios_mac/mac/main.cpp +++ /dev/null @@ -1,34 +0,0 @@ -/**************************************************************************** - 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/templates/multi-platform-lua/proj.linux/main.cpp b/templates/multi-platform-lua/proj.linux/main.cpp deleted file mode 100644 index c5b735da78..0000000000 --- a/templates/multi-platform-lua/proj.linux/main.cpp +++ /dev/null @@ -1,15 +0,0 @@ -#include "../Classes/AppDelegate.h" - -#include -#include -#include -#include - -USING_NS_CC; - -int main(int argc, char **argv) -{ - // create the application instance - AppDelegate app; - return Application::getInstance()->run(); -} diff --git a/templates/multi-platform-lua/proj.win32/HelloLua.sln b/templates/multi-platform-lua/proj.win32/HelloLua.sln deleted file mode 100644 index 5f6caa40b0..0000000000 --- a/templates/multi-platform-lua/proj.win32/HelloLua.sln +++ /dev/null @@ -1,93 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 2012 -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "HelloLua", "HelloLua.vcxproj", "{4E6A7A0E-DDD8-4BAA-8B22-C964069364ED}" - ProjectSection(ProjectDependencies) = postProject - {21B2C324-891F-48EA-AD1A-5AE13DE12E28} = {21B2C324-891F-48EA-AD1A-5AE13DE12E28} - {B7C2A162-DEC9-4418-972E-240AB3CBFCAE} = {B7C2A162-DEC9-4418-972E-240AB3CBFCAE} - {DDC3E27F-004D-4DD4-9DD3-931A013D2159} = {DDC3E27F-004D-4DD4-9DD3-931A013D2159} - {98A51BA8-FC3A-415B-AC8F-8C7BD464E93E} = {98A51BA8-FC3A-415B-AC8F-8C7BD464E93E} - {207BC7A9-CCF1-4F2F-A04D-45F72242AE25} = {207BC7A9-CCF1-4F2F-A04D-45F72242AE25} - {F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6} = {F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6} - EndProjectSection -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libExtensions", "..\cocos2d\extensions\proj.win32\libExtensions.vcxproj", "{21B2C324-891F-48EA-AD1A-5AE13DE12E28}" - ProjectSection(ProjectDependencies) = postProject - {98A51BA8-FC3A-415B-AC8F-8C7BD464E93E} = {98A51BA8-FC3A-415B-AC8F-8C7BD464E93E} - {207BC7A9-CCF1-4F2F-A04D-45F72242AE25} = {207BC7A9-CCF1-4F2F-A04D-45F72242AE25} - {F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6} = {F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6} - EndProjectSection -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libchipmunk", "..\cocos2d\external\chipmunk\proj.win32\chipmunk.vcxproj", "{207BC7A9-CCF1-4F2F-A04D-45F72242AE25}" -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libcocos2d", "..\cocos2d\cocos\2d\cocos2d.vcxproj", "{98A51BA8-FC3A-415B-AC8F-8C7BD464E93E}" -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libAudio", "..\cocos2d\cocos\audio\proj.win32\CocosDenshion.vcxproj", "{F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6}" -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "liblua", "..\cocos2d\cocos\scripting\lua\bindings\liblua.vcxproj", "{DDC3E27F-004D-4DD4-9DD3-931A013D2159}" -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libNetwork", "..\cocos2d\cocos\network\proj.win32\libNetwork.vcxproj", "{DF2638C0-8128-4847-867C-6EAFE3DEE7B5}" -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libCocosBuilder", "..\cocos2d\cocos\editor-support\cocosbuilder\proj.win32\libCocosBuilder.vcxproj", "{811C0DAB-7B96-4BD3-A154-B7572B58E4AB}" -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libCocosStudio", "..\cocos2d\cocos\editor-support\cocostudio\proj.win32\libCocosStudio.vcxproj", "{B57CF53F-2E49-4031-9822-047CC0E6BDE2}" -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libGUI", "..\cocos2d\cocos\gui\proj.win32\libGUI.vcxproj", "{7E06E92C-537A-442B-9E4A-4761C84F8A1A}" -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libSpine", "..\cocos2d\cocos\editor-support\spine\proj.win32\libSpine.vcxproj", "{B7C2A162-DEC9-4418-972E-240AB3CBFCAE}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Win32 = Debug|Win32 - Release|Win32 = Release|Win32 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {4E6A7A0E-DDD8-4BAA-8B22-C964069364ED}.Debug|Win32.ActiveCfg = Debug|Win32 - {4E6A7A0E-DDD8-4BAA-8B22-C964069364ED}.Debug|Win32.Build.0 = Debug|Win32 - {4E6A7A0E-DDD8-4BAA-8B22-C964069364ED}.Release|Win32.ActiveCfg = Release|Win32 - {4E6A7A0E-DDD8-4BAA-8B22-C964069364ED}.Release|Win32.Build.0 = Release|Win32 - {21B2C324-891F-48EA-AD1A-5AE13DE12E28}.Debug|Win32.ActiveCfg = Debug|Win32 - {21B2C324-891F-48EA-AD1A-5AE13DE12E28}.Debug|Win32.Build.0 = Debug|Win32 - {21B2C324-891F-48EA-AD1A-5AE13DE12E28}.Release|Win32.ActiveCfg = Release|Win32 - {21B2C324-891F-48EA-AD1A-5AE13DE12E28}.Release|Win32.Build.0 = Release|Win32 - {207BC7A9-CCF1-4F2F-A04D-45F72242AE25}.Debug|Win32.ActiveCfg = Debug|Win32 - {207BC7A9-CCF1-4F2F-A04D-45F72242AE25}.Debug|Win32.Build.0 = Debug|Win32 - {207BC7A9-CCF1-4F2F-A04D-45F72242AE25}.Release|Win32.ActiveCfg = Release|Win32 - {207BC7A9-CCF1-4F2F-A04D-45F72242AE25}.Release|Win32.Build.0 = Release|Win32 - {98A51BA8-FC3A-415B-AC8F-8C7BD464E93E}.Debug|Win32.ActiveCfg = Debug|Win32 - {98A51BA8-FC3A-415B-AC8F-8C7BD464E93E}.Debug|Win32.Build.0 = Debug|Win32 - {98A51BA8-FC3A-415B-AC8F-8C7BD464E93E}.Release|Win32.ActiveCfg = Release|Win32 - {98A51BA8-FC3A-415B-AC8F-8C7BD464E93E}.Release|Win32.Build.0 = Release|Win32 - {F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6}.Debug|Win32.ActiveCfg = Debug|Win32 - {F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6}.Debug|Win32.Build.0 = Debug|Win32 - {F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6}.Release|Win32.ActiveCfg = Release|Win32 - {F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6}.Release|Win32.Build.0 = Release|Win32 - {DDC3E27F-004D-4DD4-9DD3-931A013D2159}.Debug|Win32.ActiveCfg = Debug|Win32 - {DDC3E27F-004D-4DD4-9DD3-931A013D2159}.Debug|Win32.Build.0 = Debug|Win32 - {DDC3E27F-004D-4DD4-9DD3-931A013D2159}.Release|Win32.ActiveCfg = Release|Win32 - {DDC3E27F-004D-4DD4-9DD3-931A013D2159}.Release|Win32.Build.0 = Release|Win32 - {DF2638C0-8128-4847-867C-6EAFE3DEE7B5}.Debug|Win32.ActiveCfg = Debug|Win32 - {DF2638C0-8128-4847-867C-6EAFE3DEE7B5}.Debug|Win32.Build.0 = Debug|Win32 - {DF2638C0-8128-4847-867C-6EAFE3DEE7B5}.Release|Win32.ActiveCfg = Release|Win32 - {DF2638C0-8128-4847-867C-6EAFE3DEE7B5}.Release|Win32.Build.0 = Release|Win32 - {811C0DAB-7B96-4BD3-A154-B7572B58E4AB}.Debug|Win32.ActiveCfg = Debug|Win32 - {811C0DAB-7B96-4BD3-A154-B7572B58E4AB}.Debug|Win32.Build.0 = Debug|Win32 - {811C0DAB-7B96-4BD3-A154-B7572B58E4AB}.Release|Win32.ActiveCfg = Release|Win32 - {811C0DAB-7B96-4BD3-A154-B7572B58E4AB}.Release|Win32.Build.0 = Release|Win32 - {B57CF53F-2E49-4031-9822-047CC0E6BDE2}.Debug|Win32.ActiveCfg = Debug|Win32 - {B57CF53F-2E49-4031-9822-047CC0E6BDE2}.Debug|Win32.Build.0 = Debug|Win32 - {B57CF53F-2E49-4031-9822-047CC0E6BDE2}.Release|Win32.ActiveCfg = Release|Win32 - {B57CF53F-2E49-4031-9822-047CC0E6BDE2}.Release|Win32.Build.0 = Release|Win32 - {7E06E92C-537A-442B-9E4A-4761C84F8A1A}.Debug|Win32.ActiveCfg = Debug|Win32 - {7E06E92C-537A-442B-9E4A-4761C84F8A1A}.Debug|Win32.Build.0 = Debug|Win32 - {7E06E92C-537A-442B-9E4A-4761C84F8A1A}.Release|Win32.ActiveCfg = Release|Win32 - {7E06E92C-537A-442B-9E4A-4761C84F8A1A}.Release|Win32.Build.0 = Release|Win32 - {B7C2A162-DEC9-4418-972E-240AB3CBFCAE}.Debug|Win32.ActiveCfg = Debug|Win32 - {B7C2A162-DEC9-4418-972E-240AB3CBFCAE}.Debug|Win32.Build.0 = Debug|Win32 - {B7C2A162-DEC9-4418-972E-240AB3CBFCAE}.Release|Win32.ActiveCfg = Release|Win32 - {B7C2A162-DEC9-4418-972E-240AB3CBFCAE}.Release|Win32.Build.0 = Release|Win32 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection -EndGlobal diff --git a/templates/multi-platform-lua/proj.win32/HelloLua.vcxproj b/templates/multi-platform-lua/proj.win32/HelloLua.vcxproj deleted file mode 100644 index dade088c62..0000000000 --- a/templates/multi-platform-lua/proj.win32/HelloLua.vcxproj +++ /dev/null @@ -1,212 +0,0 @@ - - - - - Debug - Win32 - - - Release - Win32 - - - - {4E6A7A0E-DDD8-4BAA-8B22-C964069364ED} - HelloLua - - - - Application - true - Unicode - v100 - v110 - v110_xp - - - Application - false - Unicode - v100 - v110 - v110_xp - - - - - - - - - - - - - - - - - $(SolutionDir)$(Configuration).win32\ - $(Configuration).win32\ - true - $(IncludePath) - $(SourcePath); - AllRules.ruleset - - - $(SolutionDir)$(Configuration).win32\ - $(Configuration).win32\ - false - - - $(MSBuildProgramFiles32)\Microsoft SDKs\Windows\v7.1A\lib;$(LibraryPath) - - - $(MSBuildProgramFiles32)\Microsoft SDKs\Windows\v7.1A\lib;$(LibraryPath) - - - - $(ProjectDir)..\Classes;$(EngineRoot)cocos\audio\include;$(EngineRoot)cocos\scripting\auto-generated\lua-bindings;$(EngineRoot)cocos\scripting\lua\bindings;$(EngineRoot)external;$(EngineRoot)external\lua\tolua;$(EngineRoot)external\lua\lua;$(EngineRoot)external\chipmunk\include\chipmunk;%(AdditionalIncludeDirectories) - - - Level3 - MultiThreadedDebugDLL - false - EditAndContinue - EnableFastChecks - Disabled - WIN32;_WINDOWS;STRICT;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS_DEBUG;COCOS2D_DEBUG=1;%(PreprocessorDefinitions) - 4267;4251;4244;%(DisableSpecificWarnings) - true - - - Windows - MachineX86 - true - $(OutDir);%(AdditionalLibraryDirectories) - libcurl_imp.lib;lua51.lib;websockets.lib;%(AdditionalDependencies) - - - 0x0409 - $(MSBuildProgramFiles32)\Microsoft SDKs\Windows\v7.1A\include;$(IntDir);%(AdditionalIncludeDirectories) - _DEBUG;%(PreprocessorDefinitions) - - - false - Win32 - _DEBUG;%(PreprocessorDefinitions) - HelloLua.h - HelloLua_i.c - HelloLua_p.c - true - $(IntDir)/HelloLua.tlb - - - - - xcopy "$(ProjectDir)..\cocos2d\cocos\scripting\lua\script" "$(ProjectDir)..\Resources" /e /Y - - - - - if not exist "$(OutDir)" mkdir "$(OutDir)" -xcopy /Y /Q "$(ProjectDir)..\cocos2d\external\websockets\prebuilt\win32\*.*" "$(OutDir)" - - - - - $(ProjectDir)..\Classes;$(EngineRoot)cocos\audio\include;$(EngineRoot)cocos\scripting\auto-generated\lua-bindings;$(EngineRoot)cocos\scripting\lua\bindings;$(EngineRoot)external;$(EngineRoot)external\lua\tolua;$(EngineRoot)external\lua\lua;$(EngineRoot)external\chipmunk\include\chipmunk;%(AdditionalIncludeDirectories) - - - Level3 - MultiThreadedDLL - - - - - WIN32;_WINDOWS;STRICT;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGSNDEBUG;%(PreprocessorDefinitions) - 4267;4251;4244;%(DisableSpecificWarnings) - true - - - Windows - MachineX86 - $(OutDir);%(AdditionalLibraryDirectories) - lua51.lib;websockets.lib;%(AdditionalDependencies) - true - - - 0x0409 - $(MSBuildProgramFiles32)\Microsoft SDKs\Windows\v7.1A\include;$(IntDir);%(AdditionalIncludeDirectories) - NDEBUG;%(PreprocessorDefinitions) - - - false - Win32 - NDEBUG;%(PreprocessorDefinitions) - HelloLua.h - HelloLua_i.c - HelloLua_p.c - true - $(IntDir)/HelloLua.tlb - - - - - - - - - - - if not exist "$(OutDir)" mkdir "$(OutDir)" -xcopy /Y /Q "$(ProjectDir)..\cocos2d\external\websockets\prebuilt\win32\*.*" "$(OutDir)" - - - - - - - - - - - - - - - - {98a51ba8-fc3a-415b-ac8f-8c7bd464e93e} - - - {f8edd7fa-9a51-4e80-baeb-860825d2eac6} - - - {811c0dab-7b96-4bd3-a154-b7572b58e4ab} - - - {b57cf53f-2e49-4031-9822-047cc0e6bde2} - - - {b7c2a162-dec9-4418-972e-240ab3cbfcae} - - - {7e06e92c-537a-442b-9e4a-4761c84f8a1a} - - - {df2638c0-8128-4847-867c-6eafe3dee7b5} - - - {ddc3e27f-004d-4dd4-9dd3-931a013d2159} - - - {21b2c324-891f-48ea-ad1a-5ae13de12e28} - - - {207bc7a9-ccf1-4f2f-a04d-45f72242ae25} - - - - - - \ No newline at end of file diff --git a/templates/multi-platform-lua/proj.win32/HelloLua.vcxproj.filters b/templates/multi-platform-lua/proj.win32/HelloLua.vcxproj.filters deleted file mode 100644 index d1c7475e23..0000000000 --- a/templates/multi-platform-lua/proj.win32/HelloLua.vcxproj.filters +++ /dev/null @@ -1,35 +0,0 @@ - - - - - {fc5cb953-2953-4968-83b3-39e3ff951754} - - - {037a9a02-b906-4cc5-ad98-304acd4e25ee} - - - {2d1d0979-58cd-4ab6-b91c-13650158f1fa} - - - - - Classes - - - win32 - - - - - Classes - - - win32 - - - - - resource - - - \ No newline at end of file diff --git a/templates/multi-platform-lua/proj.win32/HelloLua.vcxproj.user b/templates/multi-platform-lua/proj.win32/HelloLua.vcxproj.user deleted file mode 100644 index 62b0b77aeb..0000000000 --- a/templates/multi-platform-lua/proj.win32/HelloLua.vcxproj.user +++ /dev/null @@ -1,10 +0,0 @@ - - - - false - $(ProjectDir)..\Resources - $(ProjectDir)..\Resources - WindowsLocalDebugger - WindowsLocalDebugger - - \ No newline at end of file diff --git a/templates/multi-platform-lua/proj.win32/game.rc b/templates/multi-platform-lua/proj.win32/game.rc deleted file mode 100644 index e7b5e3e327..0000000000 --- a/templates/multi-platform-lua/proj.win32/game.rc +++ /dev/null @@ -1,86 +0,0 @@ -// 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. -GLFW_ICON ICON "res\\game.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", "HelloLua Module\0" - VALUE "FileVersion", "1, 0, 0, 1\0" - VALUE "InternalName", "HelloLua\0" - VALUE "LegalCopyright", "Copyright \0" - VALUE "OriginalFilename", "HelloLua.exe\0" - VALUE "ProductName", "HelloLua 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/templates/multi-platform-lua/proj.win32/main.cpp b/templates/multi-platform-lua/proj.win32/main.cpp deleted file mode 100644 index d9b2ddaa2e..0000000000 --- a/templates/multi-platform-lua/proj.win32/main.cpp +++ /dev/null @@ -1,34 +0,0 @@ -#include "main.h" -#include "AppDelegate.h" -#include "cocos2d.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/templates/multi-platform-lua/proj.win32/main.h b/templates/multi-platform-lua/proj.win32/main.h deleted file mode 100644 index d756fd1e57..0000000000 --- a/templates/multi-platform-lua/proj.win32/main.h +++ /dev/null @@ -1,10 +0,0 @@ -#ifndef __MAIN_H__ -#define __MAIN_H__ - -#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers - -// Windows Header Files: -#include -#include - -#endif // __WINMAIN_H__ diff --git a/templates/multi-platform-lua/proj.win32/res/game.ico b/templates/multi-platform-lua/proj.win32/res/game.ico deleted file mode 100644 index feaf932a74..0000000000 Binary files a/templates/multi-platform-lua/proj.win32/res/game.ico and /dev/null differ diff --git a/templates/multi-platform-lua/proj.win32/resource.h b/templates/multi-platform-lua/proj.win32/resource.h deleted file mode 100644 index 53d93ae7d3..0000000000 --- a/templates/multi-platform-lua/proj.win32/resource.h +++ /dev/null @@ -1,20 +0,0 @@ -//{{NO_DEPENDENCIES}} -// Microsoft Visual C++ generated include file. -// Used by game.RC -// - -#define IDS_PROJNAME 100 -#define IDR_TESTLUA 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