diff --git a/tools/framework-compile/bin-templates/cpp-template-default/Classes/AppDelegate.cpp b/tools/framework-compile/bin-templates/cpp-template-default/Classes/AppDelegate.cpp deleted file mode 100644 index 61c8759b30..0000000000 --- a/tools/framework-compile/bin-templates/cpp-template-default/Classes/AppDelegate.cpp +++ /dev/null @@ -1,67 +0,0 @@ -#include "AppDelegate.h" -#include "HelloWorldScene.h" - -USING_NS_CC; - -AppDelegate::AppDelegate() { - -} - -AppDelegate::~AppDelegate() -{ -} - -//if you want a different context,just modify the value of glContextAttrs -//it will takes effect on all platforms -void AppDelegate::initGLContextAttrs() -{ - //set OpenGL context attributions,now can only set six attributions: - //red,green,blue,alpha,depth,stencil - GLContextAttrs glContextAttrs = {8, 8, 8, 8, 24, 8}; - - GLView::setGLContextAttrs(glContextAttrs); -} - -bool AppDelegate::applicationDidFinishLaunching() { - // initialize director - auto director = Director::getInstance(); - auto glview = director->getOpenGLView(); - if(!glview) { - glview = GLViewImpl::createWithRect("HelloCpp", Rect(0, 0, 960, 640)); - director->setOpenGLView(glview); - } - - director->getOpenGLView()->setDesignResolutionSize(960, 640, ResolutionPolicy::SHOW_ALL); - - // 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); - - FileUtils::getInstance()->addSearchPath("res"); - - // create a scene. it's an autorelease object - auto scene = HelloWorld::createScene(); - - // run - director->runWithScene(scene); - - 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(); - - // if you use SimpleAudioEngine, it must be pause - // SimpleAudioEngine::getInstance()->pauseBackgroundMusic(); -} - -// this function will be called when the app is active again -void AppDelegate::applicationWillEnterForeground() { - Director::getInstance()->startAnimation(); - - // if you use SimpleAudioEngine, it must resume here - // SimpleAudioEngine::getInstance()->resumeBackgroundMusic(); -} diff --git a/tools/framework-compile/bin-templates/cpp-template-default/Classes/HelloWorldScene.cpp b/tools/framework-compile/bin-templates/cpp-template-default/Classes/HelloWorldScene.cpp deleted file mode 100644 index 3b69de8682..0000000000 --- a/tools/framework-compile/bin-templates/cpp-template-default/Classes/HelloWorldScene.cpp +++ /dev/null @@ -1,39 +0,0 @@ -#include "HelloWorldScene.h" -#include "cocostudio/CocoStudio.h" -#include "ui/CocosGUI.h" - -USING_NS_CC; - -using namespace cocostudio::timeline; - -Scene* HelloWorld::createScene() -{ - // 'scene' is an autorelease object - auto scene = Scene::create(); - - // 'layer' is an autorelease object - auto layer = HelloWorld::create(); - - // add layer as a child to scene - scene->addChild(layer); - - // return the scene - return scene; -} - -// on "init" you need to initialize your instance -bool HelloWorld::init() -{ - ////////////////////////////// - // 1. super init first - if ( !Layer::init() ) - { - return false; - } - - auto rootNode = CSLoader::createNode("MainScene.csb"); - - addChild(rootNode); - - return true; -} diff --git a/tools/framework-compile/bin-templates/cpp-template-default/Classes/HelloWorldScene.h b/tools/framework-compile/bin-templates/cpp-template-default/Classes/HelloWorldScene.h deleted file mode 100644 index 97c7312abe..0000000000 --- a/tools/framework-compile/bin-templates/cpp-template-default/Classes/HelloWorldScene.h +++ /dev/null @@ -1,19 +0,0 @@ -#ifndef __HELLOWORLD_SCENE_H__ -#define __HELLOWORLD_SCENE_H__ - -#include "cocos2d.h" - -class HelloWorld : public cocos2d::Layer -{ -public: - // there's no 'id' in cpp, so we recommend returning the class instance pointer - static cocos2d::Scene* createScene(); - - // Here's a difference. Method 'init' in cocos2d-x returns bool, instead of returning 'id' in cocos2d-iphone - virtual bool init(); - - // implement the "static create()" method manually - CREATE_FUNC(HelloWorld); -}; - -#endif // __HELLOWORLD_SCENE_H__ diff --git a/tools/framework-compile/bin-templates/cpp-template-default/cocos-project-template.json b/tools/framework-compile/bin-templates/cpp-template-default/cocos-project-template.json deleted file mode 100644 index ee6547410c..0000000000 --- a/tools/framework-compile/bin-templates/cpp-template-default/cocos-project-template.json +++ /dev/null @@ -1,110 +0,0 @@ -{ - "do_default":{ - "exclude_from_template": [ - "res-landscape", - "res-portrait" - ], - "append_from_template": { - "from": "res-landscape", - "to": "" - }, - "project_rename":{ - "src_project_name":"HelloCpp", - "files":[ - "proj.win32/PROJECT_NAME.vcxproj", - "proj.win32/PROJECT_NAME.vcxproj.filters", - "proj.win32/PROJECT_NAME.vcxproj.user", - "proj.win32/PROJECT_NAME.sln", - "proj.ios_mac/PROJECT_NAME.xcodeproj", - "PROJECT_NAME.ccs", - "PROJECT_NAME.cfg", - "PROJECT_NAME.udf" - ] - }, - "project_replace_project_name":{ - "src_project_name":"HelloCpp", - "files":[ - "Classes/AppDelegate.cpp", - "proj.win32/PROJECT_NAME.vcxproj", - "proj.win32/PROJECT_NAME.vcxproj.filters", - "proj.win32/PROJECT_NAME.vcxproj.user", - "proj.win32/PROJECT_NAME.sln", - "PROJECT_NAME.ccs", - "proj.win32/main.cpp", - "proj.android/.project", - "proj.android/.cproject", - "proj.android/AndroidManifest.xml", - "proj.android/build.xml", - "proj.android/res/values/strings.xml", - "proj.ios_mac/ios/main.m", - "proj.ios_mac/ios/Prefix.pch", - "proj.ios_mac/PROJECT_NAME.xcodeproj/project.pbxproj" - ] - }, - "project_replace_package_name":{ - "src_package_name":"org.cocos2dx.hellocpp", - "files":[ - "proj.android/AndroidManifest.xml" - ] - }, - "project_replace_mac_bundleid": { - "src_bundle_id": "org.cocos2dx.hellocpp", - "files": [ - "proj.ios_mac/mac/Info.plist" - ] - }, - "project_replace_ios_bundleid": { - "src_bundle_id": "org.cocos2dx.hellocpp", - "files": [ - "proj.ios_mac/ios/Info.plist" - ] - } - }, - "change_orientation": { - "append_from_template": { - "from": "res-portrait", - "to": "" - }, - "modify_files": [ - { - "file_path": "Classes/AppDelegate.cpp", - "pattern": "GLViewImpl::createWithRect\\((.*),\\s*Rect\\(\\s*(\\d+),\\s*(\\d+),\\s*(\\d+),\\s*(\\d+)\\)\\)", - "replace_string": "GLViewImpl::createWithRect(\\1, Rect(\\2, \\3, \\5, \\4))" - }, - { - "file_path": "Classes/AppDelegate.cpp", - "pattern": "setDesignResolutionSize\\(\\s*(\\d+),\\s*(\\d+),(.*)\\)", - "replace_string": "setDesignResolutionSize(\\2, \\1,\\3)" - }, - { - "file_path": "proj.ios_mac/ios/Info.plist", - "pattern": "UIInterfaceOrientationLandscapeRight", - "replace_string": "UIInterfaceOrientationPortrait" - }, - { - "file_path": "proj.ios_mac/ios/Info.plist", - "pattern": "UIInterfaceOrientationLandscapeLeft", - "replace_string": "UIInterfaceOrientationPortraitUpsideDown" - }, - { - "file_path": "proj.android/AndroidManifest.xml", - "pattern": "android:screenOrientation=\\\".*\\\"", - "replace_string": "android:screenOrientation=\"portrait\"" - } - ], - "project_rename":{ - "src_project_name":"HelloCpp", - "files":[ - "PROJECT_NAME.ccs", - "PROJECT_NAME.cfg", - "PROJECT_NAME.udf" - ] - }, - "project_replace_project_name":{ - "src_project_name":"HelloCpp", - "files":[ - "PROJECT_NAME.ccs" - ] - } - } -} diff --git a/tools/framework-compile/bin-templates/cpp-template-default/proj.android/jni/Android.mk b/tools/framework-compile/bin-templates/cpp-template-default/proj.android/jni/Android.mk deleted file mode 100644 index 87dd5b18d8..0000000000 --- a/tools/framework-compile/bin-templates/cpp-template-default/proj.android/jni/Android.mk +++ /dev/null @@ -1,19 +0,0 @@ -LOCAL_PATH := $(call my-dir) - -include $(CLEAR_VARS) - -LOCAL_MODULE := cocos2dcpp_shared - -LOCAL_MODULE_FILENAME := libcocos2dcpp - -LOCAL_SRC_FILES := hellocpp/main.cpp \ - ../../Classes/AppDelegate.cpp \ - ../../Classes/HelloWorldScene.cpp - -LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../Classes - -LOCAL_STATIC_LIBRARIES := cocos2dx_static - -include $(BUILD_SHARED_LIBRARY) - -$(call import-module,./prebuilt-mk) diff --git a/tools/framework-compile/bin-templates/cpp-template-default/proj.win32/HelloCpp.sln b/tools/framework-compile/bin-templates/cpp-template-default/proj.win32/HelloCpp.sln deleted file mode 100644 index 7ce5950d05..0000000000 --- a/tools/framework-compile/bin-templates/cpp-template-default/proj.win32/HelloCpp.sln +++ /dev/null @@ -1,20 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 2013 -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "HelloCpp", "HelloCpp.vcxproj", "{76A39BB2-9B84-4C65-98A5-654D86B86F2A}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Win32 = Debug|Win32 - Release|Win32 = Release|Win32 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {76A39BB2-9B84-4C65-98A5-654D86B86F2A}.Debug|Win32.ActiveCfg = Debug|Win32 - {76A39BB2-9B84-4C65-98A5-654D86B86F2A}.Debug|Win32.Build.0 = Debug|Win32 - {76A39BB2-9B84-4C65-98A5-654D86B86F2A}.Release|Win32.ActiveCfg = Release|Win32 - {76A39BB2-9B84-4C65-98A5-654D86B86F2A}.Release|Win32.Build.0 = Release|Win32 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection -EndGlobal diff --git a/tools/framework-compile/bin-templates/cpp-template-default/proj.win32/main.cpp b/tools/framework-compile/bin-templates/cpp-template-default/proj.win32/main.cpp deleted file mode 100644 index 38ae466fb6..0000000000 --- a/tools/framework-compile/bin-templates/cpp-template-default/proj.win32/main.cpp +++ /dev/null @@ -1,22 +0,0 @@ -#include "main.h" -#include "AppDelegate.h" -#include "cocos2d.h" - -USING_NS_CC; - -#pragma comment(lib,"libcocos2d.lib") -#pragma comment(lib,"libbox2d.lib") -#pragma comment(lib,"libSpine.lib") - -int APIENTRY _tWinMain(HINSTANCE hInstance, - HINSTANCE hPrevInstance, - LPTSTR lpCmdLine, - int nCmdShow) -{ - UNREFERENCED_PARAMETER(hPrevInstance); - UNREFERENCED_PARAMETER(lpCmdLine); - - // create the application instance - AppDelegate app; - return Application::getInstance()->run(); -} diff --git a/tools/framework-compile/bin-templates/cpp-template-default/res-landscape/HelloCpp.ccs b/tools/framework-compile/bin-templates/cpp-template-default/res-landscape/HelloCpp.ccs deleted file mode 100644 index 85b613be7f..0000000000 --- a/tools/framework-compile/bin-templates/cpp-template-default/res-landscape/HelloCpp.ccs +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - \ No newline at end of file diff --git a/tools/framework-compile/bin-templates/cpp-template-default/res-landscape/HelloCpp.cfg b/tools/framework-compile/bin-templates/cpp-template-default/res-landscape/HelloCpp.cfg deleted file mode 100644 index 6cc05df521..0000000000 --- a/tools/framework-compile/bin-templates/cpp-template-default/res-landscape/HelloCpp.cfg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/tools/framework-compile/bin-templates/cpp-template-default/res-landscape/HelloCpp.udf b/tools/framework-compile/bin-templates/cpp-template-default/res-landscape/HelloCpp.udf deleted file mode 100644 index 6aca43ea0b..0000000000 --- a/tools/framework-compile/bin-templates/cpp-template-default/res-landscape/HelloCpp.udf +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/tools/framework-compile/bin-templates/cpp-template-default/res-landscape/Resources/res/HelloWorld.png b/tools/framework-compile/bin-templates/cpp-template-default/res-landscape/Resources/res/HelloWorld.png deleted file mode 100644 index b5500fbaf8..0000000000 Binary files a/tools/framework-compile/bin-templates/cpp-template-default/res-landscape/Resources/res/HelloWorld.png and /dev/null differ diff --git a/tools/framework-compile/bin-templates/cpp-template-default/res-landscape/Resources/res/MainScene.csb b/tools/framework-compile/bin-templates/cpp-template-default/res-landscape/Resources/res/MainScene.csb deleted file mode 100644 index 4719ea61b2..0000000000 Binary files a/tools/framework-compile/bin-templates/cpp-template-default/res-landscape/Resources/res/MainScene.csb and /dev/null differ diff --git a/tools/framework-compile/bin-templates/cpp-template-default/res-landscape/cocosstudio/HelloWorld.png b/tools/framework-compile/bin-templates/cpp-template-default/res-landscape/cocosstudio/HelloWorld.png deleted file mode 100644 index b5500fbaf8..0000000000 Binary files a/tools/framework-compile/bin-templates/cpp-template-default/res-landscape/cocosstudio/HelloWorld.png and /dev/null differ diff --git a/tools/framework-compile/bin-templates/cpp-template-default/res-landscape/cocosstudio/MainScene.csd b/tools/framework-compile/bin-templates/cpp-template-default/res-landscape/cocosstudio/MainScene.csd deleted file mode 100644 index 8f21e41f91..0000000000 --- a/tools/framework-compile/bin-templates/cpp-template-default/res-landscape/cocosstudio/MainScene.csd +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/tools/framework-compile/bin-templates/cpp-template-default/res-portrait/HelloCpp.ccs b/tools/framework-compile/bin-templates/cpp-template-default/res-portrait/HelloCpp.ccs deleted file mode 100644 index 85b613be7f..0000000000 --- a/tools/framework-compile/bin-templates/cpp-template-default/res-portrait/HelloCpp.ccs +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - \ No newline at end of file diff --git a/tools/framework-compile/bin-templates/cpp-template-default/res-portrait/HelloCpp.cfg b/tools/framework-compile/bin-templates/cpp-template-default/res-portrait/HelloCpp.cfg deleted file mode 100644 index dde42893e1..0000000000 --- a/tools/framework-compile/bin-templates/cpp-template-default/res-portrait/HelloCpp.cfg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/tools/framework-compile/bin-templates/cpp-template-default/res-portrait/HelloCpp.udf b/tools/framework-compile/bin-templates/cpp-template-default/res-portrait/HelloCpp.udf deleted file mode 100644 index 6aca43ea0b..0000000000 --- a/tools/framework-compile/bin-templates/cpp-template-default/res-portrait/HelloCpp.udf +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/tools/framework-compile/bin-templates/cpp-template-default/res-portrait/Resources/res/HelloWorld.png b/tools/framework-compile/bin-templates/cpp-template-default/res-portrait/Resources/res/HelloWorld.png deleted file mode 100644 index 0a82fdeb40..0000000000 Binary files a/tools/framework-compile/bin-templates/cpp-template-default/res-portrait/Resources/res/HelloWorld.png and /dev/null differ diff --git a/tools/framework-compile/bin-templates/cpp-template-default/res-portrait/Resources/res/MainScene.csb b/tools/framework-compile/bin-templates/cpp-template-default/res-portrait/Resources/res/MainScene.csb deleted file mode 100644 index 023aea8024..0000000000 Binary files a/tools/framework-compile/bin-templates/cpp-template-default/res-portrait/Resources/res/MainScene.csb and /dev/null differ diff --git a/tools/framework-compile/bin-templates/cpp-template-default/res-portrait/cocosstudio/HelloWorld.png b/tools/framework-compile/bin-templates/cpp-template-default/res-portrait/cocosstudio/HelloWorld.png deleted file mode 100644 index 0a82fdeb40..0000000000 Binary files a/tools/framework-compile/bin-templates/cpp-template-default/res-portrait/cocosstudio/HelloWorld.png and /dev/null differ diff --git a/tools/framework-compile/bin-templates/cpp-template-default/res-portrait/cocosstudio/MainScene.csd b/tools/framework-compile/bin-templates/cpp-template-default/res-portrait/cocosstudio/MainScene.csd deleted file mode 100644 index 378cea89b1..0000000000 --- a/tools/framework-compile/bin-templates/cpp-template-default/res-portrait/cocosstudio/MainScene.csd +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/tools/framework-compile/bin-templates/cpp-template-default/res-portrait/proj.ios_mac/ios/Default-568h@2x.png b/tools/framework-compile/bin-templates/cpp-template-default/res-portrait/proj.ios_mac/ios/Default-568h@2x.png deleted file mode 100644 index 44addc0dc7..0000000000 Binary files a/tools/framework-compile/bin-templates/cpp-template-default/res-portrait/proj.ios_mac/ios/Default-568h@2x.png and /dev/null differ diff --git a/tools/framework-compile/bin-templates/cpp-template-default/res-portrait/proj.ios_mac/ios/Default-667h@2x.png b/tools/framework-compile/bin-templates/cpp-template-default/res-portrait/proj.ios_mac/ios/Default-667h@2x.png deleted file mode 100644 index c53043134c..0000000000 Binary files a/tools/framework-compile/bin-templates/cpp-template-default/res-portrait/proj.ios_mac/ios/Default-667h@2x.png and /dev/null differ diff --git a/tools/framework-compile/bin-templates/cpp-template-default/res-portrait/proj.ios_mac/ios/Default-736h@3x.png b/tools/framework-compile/bin-templates/cpp-template-default/res-portrait/proj.ios_mac/ios/Default-736h@3x.png deleted file mode 100644 index c707886c8d..0000000000 Binary files a/tools/framework-compile/bin-templates/cpp-template-default/res-portrait/proj.ios_mac/ios/Default-736h@3x.png and /dev/null differ diff --git a/tools/framework-compile/bin-templates/cpp-template-default/res-portrait/proj.ios_mac/ios/Default.png b/tools/framework-compile/bin-templates/cpp-template-default/res-portrait/proj.ios_mac/ios/Default.png deleted file mode 100644 index dcb80725de..0000000000 Binary files a/tools/framework-compile/bin-templates/cpp-template-default/res-portrait/proj.ios_mac/ios/Default.png and /dev/null differ diff --git a/tools/framework-compile/bin-templates/cpp-template-default/res-portrait/proj.ios_mac/ios/Default@2x.png b/tools/framework-compile/bin-templates/cpp-template-default/res-portrait/proj.ios_mac/ios/Default@2x.png deleted file mode 100644 index 0a82fdeb40..0000000000 Binary files a/tools/framework-compile/bin-templates/cpp-template-default/res-portrait/proj.ios_mac/ios/Default@2x.png and /dev/null differ diff --git a/tools/framework-compile/bin-templates/js-template-runtime/.project b/tools/framework-compile/bin-templates/js-template-runtime/.project deleted file mode 100644 index 9e20382744..0000000000 --- a/tools/framework-compile/bin-templates/js-template-runtime/.project +++ /dev/null @@ -1,16 +0,0 @@ - - - HelloJavascript - - - - - - - org.ccdt.cocosproject - org.ccdt.jsdt.core.jsNature - - - 1.2 - - diff --git a/tools/framework-compile/bin-templates/js-template-runtime/cocos-project-template.json b/tools/framework-compile/bin-templates/js-template-runtime/cocos-project-template.json deleted file mode 100644 index b21b2215db..0000000000 --- a/tools/framework-compile/bin-templates/js-template-runtime/cocos-project-template.json +++ /dev/null @@ -1,166 +0,0 @@ -{ - "do_default":{ - "exclude_from_template":[ - "frameworks/runtime-src", - "res-landscape", - "res-portrait" - ], - "append_from_template": { - "from": "res-landscape", - "to": "" - }, - "project_rename": { - "src_project_name": "HelloJavascript", - "files": [ - "PROJECT_NAME.ccs", - "PROJECT_NAME.cfg", - "PROJECT_NAME.udf" - ] - }, - "project_replace_project_name":{ - "src_project_name":"HelloJavascript", - "files":[ - "config.json", - ".project", - "PROJECT_NAME.ccs" - ] - }, - "append_dir":[ - { - "from": "cocos/scripting/js-bindings/script", - "to": "script", - "include": [ - "*.js" - ] - } - ] - }, - "do_add_native_support":{ - "append_from_template":{ - "from":"frameworks/runtime-src", - "to":"frameworks/runtime-src", - "exclude":[ - "proj.android/bin", - "proj.android/assets", - "proj.ios_mac/HelloJavascript.xcodeproj/project.xcworkspace", - "proj.ios_mac/HelloJavascript.xcodeproj/xcuserdata", - "proj.win32/Debug.win32", - "proj.win32/Release.win32", - "proj.win32/HelloJavascript.sdf" - ] - }, - "append_dir":[ - { - "from":"tools/bindings-generator", - "to":"tools/bindings-generator", - "exclude":[ - ".git" - ] - }, - { - "from":"tools", - "to":"tools", - "include":[ - "tojs" - ] - } - ], - "project_rename":{ - "src_project_name":"HelloJavascript", - "files":[ - "frameworks/runtime-src/proj.win32/PROJECT_NAME.vcxproj", - "frameworks/runtime-src/proj.win32/PROJECT_NAME.vcxproj.filters", - "frameworks/runtime-src/proj.win32/PROJECT_NAME.vcxproj.user", - "frameworks/runtime-src/proj.win32/PROJECT_NAME.sln", - "frameworks/runtime-src/proj.ios_mac/PROJECT_NAME.xcodeproj" - ] - }, - "project_replace_project_name":{ - "src_project_name":"HelloJavascript", - "files":[ - "config.json", - ".project", - "frameworks/runtime-src/proj.win32/PROJECT_NAME.vcxproj", - "frameworks/runtime-src/proj.win32/PROJECT_NAME.vcxproj.filters", - "frameworks/runtime-src/proj.win32/PROJECT_NAME.vcxproj.user", - "frameworks/runtime-src/proj.win32/PROJECT_NAME.sln", - "frameworks/runtime-src/proj.win32/main.cpp", - "frameworks/runtime-src/proj.android/.project", - "frameworks/runtime-src/proj.android/AndroidManifest.xml", - "frameworks/runtime-src/proj.android/build.xml", - "frameworks/runtime-src/proj.android/res/values/strings.xml", - "frameworks/runtime-src/proj.ios_mac/ios/main.m", - "frameworks/runtime-src/proj.ios_mac/ios/Prefix.pch", - "frameworks/runtime-src/proj.ios_mac/mac/SimulatorApp.mm", - "frameworks/runtime-src/proj.ios_mac/PROJECT_NAME.xcodeproj/project.pbxproj", - "frameworks/runtime-src/Classes/AppDelegate.cpp" - ] - }, - "project_replace_package_name":{ - "src_package_name":"org.cocos2dx.hellojavascript", - "files":[ - "frameworks/runtime-src/proj.android/AndroidManifest.xml" - ] - }, - "project_replace_mac_bundleid":{ - "src_bundle_id":"org.cocos2dx.hellojavascript", - "files":[ - "frameworks/runtime-src/proj.ios_mac/mac/Info.plist" - ] - }, - "project_replace_ios_bundleid":{ - "src_bundle_id":"org.cocos2dx.hellojavascript", - "files":[ - "frameworks/runtime-src/proj.ios_mac/ios/Info.plist" - ] - } - }, - "change_orientation": { - "append_from_template": { - "from": "res-portrait", - "to": "" - }, - "modify_files": [ - { - "file_path": "config.json", - "pattern": "\\\"isLandscape\\\"\\s*:.*,", - "replace_string": "\"isLandscape\": false," - }, - { - "file_path": "main.js", - "pattern": "setDesignResolutionSize\\(\\s*(\\d+),\\s*(\\d+),(.*)\\)", - "replace_string": "setDesignResolutionSize(\\2, \\1,\\3)" - }, - { - "file_path": "frameworks/runtime-src/proj.ios_mac/ios/Info.plist", - "pattern": "UIInterfaceOrientationLandscapeRight", - "replace_string": "UIInterfaceOrientationPortrait" - }, - { - "file_path": "frameworks/runtime-src/proj.ios_mac/ios/Info.plist", - "pattern": "UIInterfaceOrientationLandscapeLeft", - "replace_string": "UIInterfaceOrientationPortraitUpsideDown" - }, - { - "file_path": "frameworks/runtime-src/proj.android/AndroidManifest.xml", - "pattern": "android:screenOrientation=\\\".*\\\"", - "replace_string": "android:screenOrientation=\"portrait\"" - } - ], - "project_rename":{ - "src_project_name":"HelloJavascript", - "files":[ - "PROJECT_NAME.ccs", - "PROJECT_NAME.cfg", - "PROJECT_NAME.udf" - ] - }, - "project_replace_project_name":{ - "src_project_name":"HelloJavascript", - "files":[ - "PROJECT_NAME.ccs" - ] - } - } -} - diff --git a/tools/framework-compile/bin-templates/js-template-runtime/frameworks/runtime-src/proj.android/build-cfg.json b/tools/framework-compile/bin-templates/js-template-runtime/frameworks/runtime-src/proj.android/build-cfg.json deleted file mode 100644 index fc702ad446..0000000000 --- a/tools/framework-compile/bin-templates/js-template-runtime/frameworks/runtime-src/proj.android/build-cfg.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "ndk_module_path" :[ - "../../cocos2d-x", - "../../cocos2d-x/cocos", - "../../cocos2d-x/external" - ], - "copy_resources": [ - { - "from": "../../../src", - "to": "src" - }, - { - "from": "../../../res", - "to": "res" - }, - { - "from": "../../../main.js", - "to": "" - } - ], - "must_copy_resources": [ - { - "from": "../../../config.json", - "to": "" - }, - { - "from": "../../../project.json", - "to": "" - }, - { - "from": "../../../script", - "to": "script" - } - ] -} diff --git a/tools/framework-compile/bin-templates/js-template-runtime/frameworks/runtime-src/proj.android/jni/Android.mk b/tools/framework-compile/bin-templates/js-template-runtime/frameworks/runtime-src/proj.android/jni/Android.mk deleted file mode 100644 index 0e65d7c033..0000000000 --- a/tools/framework-compile/bin-templates/js-template-runtime/frameworks/runtime-src/proj.android/jni/Android.mk +++ /dev/null @@ -1,25 +0,0 @@ -LOCAL_PATH := $(call my-dir) - -include $(CLEAR_VARS) - -LOCAL_MODULE := cocos2djs_shared - -LOCAL_MODULE_FILENAME := libcocos2djs - -LOCAL_SRC_FILES := \ -../../Classes/AppDelegate.cpp \ -../../Classes/ide-support/SimpleConfigParser.cpp \ -../../Classes/ide-support/RuntimeJsImpl.cpp \ -hellojavascript/main.cpp - -LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../Classes - - -LOCAL_STATIC_LIBRARIES := cocos2d_js_static -LOCAL_STATIC_LIBRARIES += cocos2d_simulator_static - -include $(BUILD_SHARED_LIBRARY) - - -$(call import-module,scripting/js-bindings/proj.android/prebuilt-mk) -$(call import-module,tools/simulator/libsimulator/proj.android/prebuilt-mk) diff --git a/tools/framework-compile/bin-templates/js-template-runtime/frameworks/runtime-src/proj.win32/HelloJavascript.sln b/tools/framework-compile/bin-templates/js-template-runtime/frameworks/runtime-src/proj.win32/HelloJavascript.sln deleted file mode 100644 index 3b7a101943..0000000000 --- a/tools/framework-compile/bin-templates/js-template-runtime/frameworks/runtime-src/proj.win32/HelloJavascript.sln +++ /dev/null @@ -1,20 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 2013 -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "HelloJavascript", "HelloJavascript.vcxproj", "{3B0B58B1-2734-488E-A542-ECEC11EB2455}" -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 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection -EndGlobal diff --git a/tools/framework-compile/bin-templates/js-template-runtime/frameworks/runtime-src/proj.win32/build-cfg.json b/tools/framework-compile/bin-templates/js-template-runtime/frameworks/runtime-src/proj.win32/build-cfg.json deleted file mode 100644 index 4b878ccb25..0000000000 --- a/tools/framework-compile/bin-templates/js-template-runtime/frameworks/runtime-src/proj.win32/build-cfg.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "copy_resources": [ - { - "from": "../../../src", - "to": "src" - }, - { - "from": "../../../res", - "to": "res" - }, - { - "from": "../../../main.js", - "to": "" - }, - { - "from": "../../../project.json", - "to": "" - }, - { - "from": "../../../config.json", - "to": "" - }, - { - "from": "../Classes/ide-support/lang", - "to": "" - } - ], - "must_copy_resources": [ - { - "from": "../../../script", - "to": "script" - } - ] -} diff --git a/tools/framework-compile/bin-templates/js-template-runtime/frameworks/runtime-src/proj.win32/main.cpp b/tools/framework-compile/bin-templates/js-template-runtime/frameworks/runtime-src/proj.win32/main.cpp deleted file mode 100644 index 9229bc26b1..0000000000 --- a/tools/framework-compile/bin-templates/js-template-runtime/frameworks/runtime-src/proj.win32/main.cpp +++ /dev/null @@ -1,20 +0,0 @@ -#include "main.h" -#include "SimulatorWin.h" -#include - -#pragma comment(lib,"libcocos2d.lib") -#pragma comment(lib,"libjscocos2d.lib") -#pragma comment(lib,"libbox2d.lib") -#pragma comment(lib,"libSpine.lib") -#pragma comment(lib,"libsimulator.lib") - -int APIENTRY _tWinMain(HINSTANCE hInstance, - HINSTANCE hPrevInstance, - LPTSTR lpCmdLine, - int nCmdShow) -{ - UNREFERENCED_PARAMETER(hPrevInstance); - UNREFERENCED_PARAMETER(lpCmdLine); - auto simulator = SimulatorWin::getInstance(); - return simulator->run(); -} diff --git a/tools/framework-compile/bin-templates/js-template-runtime/frameworks/runtime-src/proj.win32/stdafx.cpp b/tools/framework-compile/bin-templates/js-template-runtime/frameworks/runtime-src/proj.win32/stdafx.cpp deleted file mode 100644 index b8b9773e01..0000000000 --- a/tools/framework-compile/bin-templates/js-template-runtime/frameworks/runtime-src/proj.win32/stdafx.cpp +++ /dev/null @@ -1,8 +0,0 @@ -// stdafx.cpp : source file that includes just the standard includes -// player.pch will be the pre-compiled header -// stdafx.obj will contain the pre-compiled type information - -#include "stdafx.h" - -// TODO: reference any additional headers you need in STDAFX.H -// and not in this file diff --git a/tools/framework-compile/bin-templates/js-template-runtime/frameworks/runtime-src/proj.win32/stdafx.h b/tools/framework-compile/bin-templates/js-template-runtime/frameworks/runtime-src/proj.win32/stdafx.h deleted file mode 100644 index bb80440ee2..0000000000 --- a/tools/framework-compile/bin-templates/js-template-runtime/frameworks/runtime-src/proj.win32/stdafx.h +++ /dev/null @@ -1,21 +0,0 @@ -// stdafx.h : include file for standard system include files, -// or project specific include files that are used frequently, but -// are changed infrequently -// - -#pragma once - -#include "targetver.h" - -#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers -// Windows Header Files: -#include - -// C RunTime Header Files -#include -#include -#include -#include - - -// TODO: reference additional headers your program requires here diff --git a/tools/framework-compile/bin-templates/js-template-runtime/frameworks/runtime-src/proj.win32/targetver.h b/tools/framework-compile/bin-templates/js-template-runtime/frameworks/runtime-src/proj.win32/targetver.h deleted file mode 100644 index 87c0086de7..0000000000 --- a/tools/framework-compile/bin-templates/js-template-runtime/frameworks/runtime-src/proj.win32/targetver.h +++ /dev/null @@ -1,8 +0,0 @@ -#pragma once - -// Including SDKDDKVer.h defines the highest available Windows platform. - -// If you wish to build your application for a previous Windows platform, include WinSDKVer.h and -// set the _WIN32_WINNT macro to the platform you wish to support before including SDKDDKVer.h. - -#include diff --git a/tools/framework-compile/bin-templates/js-template-runtime/index.html b/tools/framework-compile/bin-templates/js-template-runtime/index.html deleted file mode 100644 index 2687063cc2..0000000000 --- a/tools/framework-compile/bin-templates/js-template-runtime/index.html +++ /dev/null @@ -1,27 +0,0 @@ - - - - - Cocos2d-html5 Hello World test - - - - - - - - - - - - - - \ No newline at end of file diff --git a/tools/framework-compile/bin-templates/js-template-runtime/main.js b/tools/framework-compile/bin-templates/js-template-runtime/main.js deleted file mode 100644 index bd03fe9460..0000000000 --- a/tools/framework-compile/bin-templates/js-template-runtime/main.js +++ /dev/null @@ -1,59 +0,0 @@ -/** - * A brief explanation for "project.json": - * Here is the content of project.json file, this is the global configuration for your game, you can modify it to customize some behavior. - * The detail of each field is under it. - { - "project_type": "javascript", - // "project_type" indicate the program language of your project, you can ignore this field - - "debugMode" : 1, - // "debugMode" possible values : - // 0 - No message will be printed. - // 1 - cc.error, cc.assert, cc.warn, cc.log will print in console. - // 2 - cc.error, cc.assert, cc.warn will print in console. - // 3 - cc.error, cc.assert will print in console. - // 4 - cc.error, cc.assert, cc.warn, cc.log will print on canvas, available only on web. - // 5 - cc.error, cc.assert, cc.warn will print on canvas, available only on web. - // 6 - cc.error, cc.assert will print on canvas, available only on web. - - "showFPS" : true, - // Left bottom corner fps information will show when "showFPS" equals true, otherwise it will be hide. - - "frameRate" : 60, - // "frameRate" set the wanted frame rate for your game, but the real fps depends on your game implementation and the running environment. - - "id" : "gameCanvas", - // "gameCanvas" sets the id of your canvas element on the web page, it's useful only on web. - - "renderMode" : 0, - // "renderMode" sets the renderer type, only useful on web : - // 0 - Automatically chosen by engine - // 1 - Forced to use canvas renderer - // 2 - Forced to use WebGL renderer, but this will be ignored on mobile browsers - - "engineDir" : "frameworks/cocos2d-html5/", - // In debug mode, if you use the whole engine to develop your game, you should specify its relative path with "engineDir", - // but if you are using a single engine file, you can ignore it. - - "modules" : ["cocos2d"], - // "modules" defines which modules you will need in your game, it's useful only on web, - // using this can greatly reduce your game's resource size, and the cocos console tool can package your game with only the modules you set. - // For details about modules definitions, you can refer to "../../frameworks/cocos2d-html5/modulesConfig.json". - - "jsList" : [ - ] - // "jsList" sets the list of js files in your game. - } - * - */ - -cc.game.onStart = function(){ - cc.view.adjustViewPort(true); - cc.view.setDesignResolutionSize(960, 640, cc.ResolutionPolicy.SHOW_ALL); - cc.view.resizeWithBrowserSize(true); - //load resources - cc.LoaderScene.preload(g_resources, function () { - cc.director.runScene(new HelloWorldScene()); - }, this); -}; -cc.game.run(); diff --git a/tools/framework-compile/bin-templates/js-template-runtime/project.json b/tools/framework-compile/bin-templates/js-template-runtime/project.json deleted file mode 100644 index c49eeb0a5d..0000000000 --- a/tools/framework-compile/bin-templates/js-template-runtime/project.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "project_type": "javascript", - - "debugMode" : 1, - "showFPS" : true, - "frameRate" : 60, - "id" : "gameCanvas", - "renderMode" : 0, - "engineDir":"frameworks/cocos2d-html5", - - "modules" : ["cocos2d", "cocostudio"], - - "jsList" : [ - "src/resource.js", - "src/app.js" - ] -} diff --git a/tools/framework-compile/bin-templates/js-template-runtime/res-landscape/HelloJavascript.ccs b/tools/framework-compile/bin-templates/js-template-runtime/res-landscape/HelloJavascript.ccs deleted file mode 100644 index 419dc8db77..0000000000 --- a/tools/framework-compile/bin-templates/js-template-runtime/res-landscape/HelloJavascript.ccs +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - diff --git a/tools/framework-compile/bin-templates/js-template-runtime/res-landscape/HelloJavascript.cfg b/tools/framework-compile/bin-templates/js-template-runtime/res-landscape/HelloJavascript.cfg deleted file mode 100644 index 847a2e3733..0000000000 --- a/tools/framework-compile/bin-templates/js-template-runtime/res-landscape/HelloJavascript.cfg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/tools/framework-compile/bin-templates/js-template-runtime/res-landscape/HelloJavascript.udf b/tools/framework-compile/bin-templates/js-template-runtime/res-landscape/HelloJavascript.udf deleted file mode 100644 index 6aca43ea0b..0000000000 --- a/tools/framework-compile/bin-templates/js-template-runtime/res-landscape/HelloJavascript.udf +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/tools/framework-compile/bin-templates/js-template-runtime/res-landscape/cocosstudio/HelloWorld.png b/tools/framework-compile/bin-templates/js-template-runtime/res-landscape/cocosstudio/HelloWorld.png deleted file mode 100644 index b5500fbaf8..0000000000 Binary files a/tools/framework-compile/bin-templates/js-template-runtime/res-landscape/cocosstudio/HelloWorld.png and /dev/null differ diff --git a/tools/framework-compile/bin-templates/js-template-runtime/res-landscape/cocosstudio/MainScene.csd b/tools/framework-compile/bin-templates/js-template-runtime/res-landscape/cocosstudio/MainScene.csd deleted file mode 100644 index 8f21e41f91..0000000000 --- a/tools/framework-compile/bin-templates/js-template-runtime/res-landscape/cocosstudio/MainScene.csd +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/tools/framework-compile/bin-templates/js-template-runtime/res-landscape/res/HelloWorld.png b/tools/framework-compile/bin-templates/js-template-runtime/res-landscape/res/HelloWorld.png deleted file mode 100644 index b5500fbaf8..0000000000 Binary files a/tools/framework-compile/bin-templates/js-template-runtime/res-landscape/res/HelloWorld.png and /dev/null differ diff --git a/tools/framework-compile/bin-templates/js-template-runtime/res-landscape/res/MainScene.json b/tools/framework-compile/bin-templates/js-template-runtime/res-landscape/res/MainScene.json deleted file mode 100644 index 50e08edf9f..0000000000 --- a/tools/framework-compile/bin-templates/js-template-runtime/res-landscape/res/MainScene.json +++ /dev/null @@ -1,85 +0,0 @@ -{ - "ID": "a2ee0952-26b5-49ae-8bf9-4f1d6279b798", - "Version": "2.1.0.0", - "Type": "Scene", - "Name": "MainScene", - "Content": { - "Content": { - "Animation": { - "Duration": 0, - "Speed": 1.0, - "Timelines": [], - "ctype": "TimelineActionData" - }, - "AnimationList": [], - "ObjectData": { - "PrePosition": { - "X": 0.0, - "Y": 0.0 - }, - "PreSize": { - "X": 0.0, - "Y": 0.0 - }, - "RightMargin": -960.0, - "TopMargin": -640.0, - "Children": [ - { - "FileData": { - "Type": "Normal", - "Path": "HelloWorld.png" - }, - "Tag": 5, - "PrePosition": { - "X": 0.5, - "Y": 0.5 - }, - "PreSize": { - "X": 0.0, - "Y": 0.0 - }, - "ActionTag": 953446860, - "Position": { - "X": 480.0, - "Y": 320.0 - }, - "Scale": { - "ScaleX": 1.0, - "ScaleY": 1.0 - }, - "AnchorPoint": { - "ScaleX": 0.5, - "ScaleY": 0.5 - }, - "CColor": {}, - "Size": { - "X": 960.0, - "Y": 640.0 - }, - "FrameEvent": "", - "Name": "Default", - "ctype": "SpriteObjectData" - } - ], - "Position": { - "X": 0.0, - "Y": 0.0 - }, - "Scale": { - "ScaleX": 1.0, - "ScaleY": 1.0 - }, - "AnchorPoint": {}, - "CColor": {}, - "Size": { - "X": 960.0, - "Y": 640.0 - }, - "FrameEvent": "", - "Name": "Scene", - "ctype": "SingleNodeObjectData" - }, - "ctype": "GameProjectData" - } - } -} \ No newline at end of file diff --git a/tools/framework-compile/bin-templates/js-template-runtime/res-portrait/HelloJavascript.ccs b/tools/framework-compile/bin-templates/js-template-runtime/res-portrait/HelloJavascript.ccs deleted file mode 100644 index 419dc8db77..0000000000 --- a/tools/framework-compile/bin-templates/js-template-runtime/res-portrait/HelloJavascript.ccs +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - diff --git a/tools/framework-compile/bin-templates/js-template-runtime/res-portrait/HelloJavascript.cfg b/tools/framework-compile/bin-templates/js-template-runtime/res-portrait/HelloJavascript.cfg deleted file mode 100644 index eef30416de..0000000000 --- a/tools/framework-compile/bin-templates/js-template-runtime/res-portrait/HelloJavascript.cfg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/tools/framework-compile/bin-templates/js-template-runtime/res-portrait/HelloJavascript.udf b/tools/framework-compile/bin-templates/js-template-runtime/res-portrait/HelloJavascript.udf deleted file mode 100644 index 6aca43ea0b..0000000000 --- a/tools/framework-compile/bin-templates/js-template-runtime/res-portrait/HelloJavascript.udf +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/tools/framework-compile/bin-templates/js-template-runtime/res-portrait/cocosstudio/HelloWorld.png b/tools/framework-compile/bin-templates/js-template-runtime/res-portrait/cocosstudio/HelloWorld.png deleted file mode 100644 index 0a82fdeb40..0000000000 Binary files a/tools/framework-compile/bin-templates/js-template-runtime/res-portrait/cocosstudio/HelloWorld.png and /dev/null differ diff --git a/tools/framework-compile/bin-templates/js-template-runtime/res-portrait/cocosstudio/MainScene.csd b/tools/framework-compile/bin-templates/js-template-runtime/res-portrait/cocosstudio/MainScene.csd deleted file mode 100644 index 378cea89b1..0000000000 --- a/tools/framework-compile/bin-templates/js-template-runtime/res-portrait/cocosstudio/MainScene.csd +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/tools/framework-compile/bin-templates/js-template-runtime/res-portrait/frameworks/runtime-src/proj.ios_mac/ios/Default-568h@2x.png b/tools/framework-compile/bin-templates/js-template-runtime/res-portrait/frameworks/runtime-src/proj.ios_mac/ios/Default-568h@2x.png deleted file mode 100644 index 44addc0dc7..0000000000 Binary files a/tools/framework-compile/bin-templates/js-template-runtime/res-portrait/frameworks/runtime-src/proj.ios_mac/ios/Default-568h@2x.png and /dev/null differ diff --git a/tools/framework-compile/bin-templates/js-template-runtime/res-portrait/frameworks/runtime-src/proj.ios_mac/ios/Default-667h@2x.png b/tools/framework-compile/bin-templates/js-template-runtime/res-portrait/frameworks/runtime-src/proj.ios_mac/ios/Default-667h@2x.png deleted file mode 100644 index c53043134c..0000000000 Binary files a/tools/framework-compile/bin-templates/js-template-runtime/res-portrait/frameworks/runtime-src/proj.ios_mac/ios/Default-667h@2x.png and /dev/null differ diff --git a/tools/framework-compile/bin-templates/js-template-runtime/res-portrait/frameworks/runtime-src/proj.ios_mac/ios/Default-736h@3x.png b/tools/framework-compile/bin-templates/js-template-runtime/res-portrait/frameworks/runtime-src/proj.ios_mac/ios/Default-736h@3x.png deleted file mode 100644 index c707886c8d..0000000000 Binary files a/tools/framework-compile/bin-templates/js-template-runtime/res-portrait/frameworks/runtime-src/proj.ios_mac/ios/Default-736h@3x.png and /dev/null differ diff --git a/tools/framework-compile/bin-templates/js-template-runtime/res-portrait/frameworks/runtime-src/proj.ios_mac/ios/Default.png b/tools/framework-compile/bin-templates/js-template-runtime/res-portrait/frameworks/runtime-src/proj.ios_mac/ios/Default.png deleted file mode 100644 index dcb80725de..0000000000 Binary files a/tools/framework-compile/bin-templates/js-template-runtime/res-portrait/frameworks/runtime-src/proj.ios_mac/ios/Default.png and /dev/null differ diff --git a/tools/framework-compile/bin-templates/js-template-runtime/res-portrait/frameworks/runtime-src/proj.ios_mac/ios/Default@2x.png b/tools/framework-compile/bin-templates/js-template-runtime/res-portrait/frameworks/runtime-src/proj.ios_mac/ios/Default@2x.png deleted file mode 100644 index 0a82fdeb40..0000000000 Binary files a/tools/framework-compile/bin-templates/js-template-runtime/res-portrait/frameworks/runtime-src/proj.ios_mac/ios/Default@2x.png and /dev/null differ diff --git a/tools/framework-compile/bin-templates/js-template-runtime/res-portrait/res/HelloWorld.png b/tools/framework-compile/bin-templates/js-template-runtime/res-portrait/res/HelloWorld.png deleted file mode 100644 index 0a82fdeb40..0000000000 Binary files a/tools/framework-compile/bin-templates/js-template-runtime/res-portrait/res/HelloWorld.png and /dev/null differ diff --git a/tools/framework-compile/bin-templates/js-template-runtime/res-portrait/res/MainScene.json b/tools/framework-compile/bin-templates/js-template-runtime/res-portrait/res/MainScene.json deleted file mode 100644 index 2aea47c0c4..0000000000 --- a/tools/framework-compile/bin-templates/js-template-runtime/res-portrait/res/MainScene.json +++ /dev/null @@ -1,83 +0,0 @@ -{ - "ID": "a2ee0952-26b5-49ae-8bf9-4f1d6279b798", - "Version": "2.1.0.0", - "Type": "Scene", - "Name": "MainScene", - "Content": { - "Content": { - "Animation": { - "Duration": 0, - "Speed": 1.0, - "Timelines": [], - "ctype": "TimelineActionData" - }, - "AnimationList": [], - "ObjectData": { - "PrePosition": { - "X": 0.0, - "Y": 0.0 - }, - "PreSize": { - "X": 0.0, - "Y": 0.0 - }, - "Children": [ - { - "FileData": { - "Type": "Normal", - "Path": "HelloWorld.png" - }, - "Tag": 5, - "PrePosition": { - "X": 0.5, - "Y": 0.5 - }, - "PreSize": { - "X": 0.0, - "Y": 0.0 - }, - "ActionTag": -620272433, - "Position": { - "X": 320.0, - "Y": 480.0 - }, - "Scale": { - "ScaleX": 1.0, - "ScaleY": 1.0 - }, - "AnchorPoint": { - "ScaleX": 0.5, - "ScaleY": 0.5 - }, - "CColor": {}, - "Size": { - "X": 640.0, - "Y": 960.0 - }, - "FrameEvent": "", - "Name": "Default", - "ctype": "SpriteObjectData" - } - ], - "Position": { - "X": 0.0, - "Y": 0.0 - }, - "Scale": { - "ScaleX": 1.0, - "ScaleY": 1.0 - }, - "AnchorPoint": {}, - "CColor": {}, - "Size": { - "X": 640.0, - "Y": 960.0 - }, - "FrameEvent": "", - "Name": "Scene", - "ctype": "SingleNodeObjectData" - }, - "ctype": "GameProjectData" - } - } -} \ No newline at end of file diff --git a/tools/framework-compile/bin-templates/js-template-runtime/src/app.js b/tools/framework-compile/bin-templates/js-template-runtime/src/app.js deleted file mode 100644 index 48fde6a0f0..0000000000 --- a/tools/framework-compile/bin-templates/js-template-runtime/src/app.js +++ /dev/null @@ -1,29 +0,0 @@ - -var HelloWorldLayer = cc.Layer.extend({ - sprite:null, - ctor: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 the window size - var size = cc.winSize; - - var mainscene = ccs.load(res.MainScene_json); - this.addChild(mainscene.node); - - return true; - } -}); - -var HelloWorldScene = cc.Scene.extend({ - onEnter:function () { - this._super(); - var layer = new HelloWorldLayer(); - this.addChild(layer); - } -}); - diff --git a/tools/framework-compile/bin-templates/js-template-runtime/src/resource.js b/tools/framework-compile/bin-templates/js-template-runtime/src/resource.js deleted file mode 100644 index f7ee39fbde..0000000000 --- a/tools/framework-compile/bin-templates/js-template-runtime/src/resource.js +++ /dev/null @@ -1,9 +0,0 @@ -var res = { - HelloWorld_png : "res/HelloWorld.png", - MainScene_json : "res/MainScene.json" -}; - -var g_resources = []; -for (var i in res) { - g_resources.push(res[i]); -} diff --git a/tools/framework-compile/bin-templates/lua-template-runtime/cocos-project-template.json b/tools/framework-compile/bin-templates/lua-template-runtime/cocos-project-template.json deleted file mode 100644 index 9afbe4c6e7..0000000000 --- a/tools/framework-compile/bin-templates/lua-template-runtime/cocos-project-template.json +++ /dev/null @@ -1,152 +0,0 @@ -{ - "do_default": { - "exclude_from_template": [ - "frameworks/runtime-src", - "res-landscape", - "res-portrait" - ], - "append_from_template": { - "from": "res-landscape", - "to": "" - }, - "project_rename": { - "src_project_name": "HelloLua", - "files": [ - "PROJECT_NAME.ccs", - "PROJECT_NAME.cfg", - "PROJECT_NAME.udf" - ] - }, - "project_replace_project_name": { - "src_project_name": "HelloLua", - "files": [ - "config.json", - ".project", - "PROJECT_NAME.ccs" - ] - }, - "append_dir": [ - { - "from": "cocos/scripting/lua-bindings/script", - "to": "src/cocos", - "exclude": [] - } - ] - }, - "do_add_native_support": { - "append_from_template": { - "from": "frameworks/runtime-src", - "to": "frameworks/runtime-src", - "exclude": [ - "proj.android/bin", - "proj.android/assets", - "proj.ios_mac/HelloLua.xcodeproj/project.xcworkspace", - "proj.ios_mac/HelloLua.xcodeproj/xcuserdata", - "proj.win32/Debug.win32", - "proj.win32/Release.win32", - "proj.win32/HelloLua.sdf" - ] - }, - "project_rename": { - "src_project_name": "HelloLua", - "files": [ - "frameworks/runtime-src/proj.win32/PROJECT_NAME.vcxproj", - "frameworks/runtime-src/proj.win32/PROJECT_NAME.vcxproj.filters", - "frameworks/runtime-src/proj.win32/PROJECT_NAME.vcxproj.user", - "frameworks/runtime-src/proj.win32/PROJECT_NAME.sln", - "frameworks/runtime-src/proj.ios_mac/PROJECT_NAME.xcodeproj" - ] - }, - "project_replace_project_name": { - "src_project_name": "HelloLua", - "files": [ - "config.json", - ".project", - "frameworks/runtime-src/proj.win32/PROJECT_NAME.vcxproj", - "frameworks/runtime-src/proj.win32/PROJECT_NAME.vcxproj.filters", - "frameworks/runtime-src/proj.win32/PROJECT_NAME.vcxproj.user", - "frameworks/runtime-src/proj.win32/PROJECT_NAME.sln", - "frameworks/runtime-src/proj.win32/main.cpp", - "frameworks/runtime-src/proj.android/.project", - "frameworks/runtime-src/proj.android/AndroidManifest.xml", - "frameworks/runtime-src/proj.android/build.xml", - "frameworks/runtime-src/proj.android/res/values/strings.xml", - "frameworks/runtime-src/proj.ios_mac/ios/main.m", - "frameworks/runtime-src/proj.ios_mac/ios/Prefix.pch", - "frameworks/runtime-src/proj.ios_mac/mac/SimulatorApp.mm", - "frameworks/runtime-src/proj.ios_mac/PROJECT_NAME.xcodeproj/project.pbxproj", - "frameworks/runtime-src/Classes/AppDelegate.cpp" - ] - }, - "project_replace_package_name": { - "src_package_name": "org.cocos2dx.hellolua", - "files": [ - "frameworks/runtime-src/proj.android/AndroidManifest.xml" - ] - }, - "project_replace_mac_bundleid": { - "src_bundle_id": "org.cocos2dx.hellolua", - "files": [ - "frameworks/runtime-src/proj.ios_mac/mac/Info.plist" - ] - }, - "project_replace_ios_bundleid": { - "src_bundle_id": "org.cocos2dx.hellolua", - "files": [ - "frameworks/runtime-src/proj.ios_mac/ios/Info.plist" - ] - } - }, - "change_orientation": { - "append_from_template": { - "from": "res-portrait", - "to": "" - }, - "modify_files": [ - { - "file_path": "config.json", - "pattern": "\\\"isLandscape\\\"\\s*:.*,", - "replace_string": "\"isLandscape\": false," - }, - { - "file_path": "src/config.lua", - "pattern": "width\\s*=.*,", - "replace_string": "width = 640," - }, - { - "file_path": "src/config.lua", - "pattern": "height\\s*=.*,", - "replace_string": "height = 960," - }, - { - "file_path": "frameworks/runtime-src/proj.ios_mac/ios/Info.plist", - "pattern": "UIInterfaceOrientationLandscapeRight", - "replace_string": "UIInterfaceOrientationPortrait" - }, - { - "file_path": "frameworks/runtime-src/proj.ios_mac/ios/Info.plist", - "pattern": "UIInterfaceOrientationLandscapeLeft", - "replace_string": "UIInterfaceOrientationPortraitUpsideDown" - }, - { - "file_path": "frameworks/runtime-src/proj.android/AndroidManifest.xml", - "pattern": "android:screenOrientation=\\\".*\\\"", - "replace_string": "android:screenOrientation=\"portrait\"" - } - ], - "project_rename":{ - "src_project_name":"HelloLua", - "files":[ - "PROJECT_NAME.ccs", - "PROJECT_NAME.cfg", - "PROJECT_NAME.udf" - ] - }, - "project_replace_project_name":{ - "src_project_name":"HelloLua", - "files":[ - "PROJECT_NAME.ccs" - ] - } - } -} diff --git a/tools/framework-compile/bin-templates/lua-template-runtime/frameworks/runtime-src/proj.android/jni/Android.mk b/tools/framework-compile/bin-templates/lua-template-runtime/frameworks/runtime-src/proj.android/jni/Android.mk deleted file mode 100644 index 2194cb485d..0000000000 --- a/tools/framework-compile/bin-templates/lua-template-runtime/frameworks/runtime-src/proj.android/jni/Android.mk +++ /dev/null @@ -1,25 +0,0 @@ -LOCAL_PATH := $(call my-dir) - -include $(CLEAR_VARS) - -LOCAL_MODULE := cocos2dlua_shared - -LOCAL_MODULE_FILENAME := libcocos2dlua - -FILE_LIST := hellolua/main.cpp -FILE_LIST += $(wildcard $(LOCAL_PATH)/../../Classes/*.cpp) -FILE_LIST += $(wildcard $(LOCAL_PATH)/../../Classes/ide-support/*.cpp) -FILE_LIST += $(wildcard $(LOCAL_PATH)/../../Classes/ide-support/*.c) - -LOCAL_SRC_FILES := $(FILE_LIST:$(LOCAL_PATH)/%=%) - -LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../Classes - -LOCAL_STATIC_LIBRARIES := cocos2d_lua_static -LOCAL_STATIC_LIBRARIES += cocos2d_simulator_static - -include $(BUILD_SHARED_LIBRARY) - -$(call import-module,scripting/lua-bindings/proj.android/prebuilt-mk) -$(call import-module,tools/simulator/libsimulator/proj.android/prebuilt-mk) - diff --git a/tools/framework-compile/bin-templates/lua-template-runtime/frameworks/runtime-src/proj.win32/HelloLua.sln b/tools/framework-compile/bin-templates/lua-template-runtime/frameworks/runtime-src/proj.win32/HelloLua.sln deleted file mode 100644 index c2509746ae..0000000000 --- a/tools/framework-compile/bin-templates/lua-template-runtime/frameworks/runtime-src/proj.win32/HelloLua.sln +++ /dev/null @@ -1,20 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 2013 -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "HelloLua", "HelloLua.vcxproj", "{4E6A7A0E-DDD8-4BAA-8B22-C964069364ED}" -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 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection -EndGlobal diff --git a/tools/framework-compile/bin-templates/lua-template-runtime/frameworks/runtime-src/proj.win32/main.cpp b/tools/framework-compile/bin-templates/lua-template-runtime/frameworks/runtime-src/proj.win32/main.cpp deleted file mode 100644 index ba3b237f11..0000000000 --- a/tools/framework-compile/bin-templates/lua-template-runtime/frameworks/runtime-src/proj.win32/main.cpp +++ /dev/null @@ -1,21 +0,0 @@ -#include "main.h" -#include "SimulatorWin.h" -#include - -#pragma comment(lib,"libcocos2d.lib") -#pragma comment(lib,"libluacocos2d.lib") -#pragma comment(lib,"libbox2d.lib") -#pragma comment(lib,"libSpine.lib") -#pragma comment(lib,"libsimulator.lib") - - -int APIENTRY _tWinMain(HINSTANCE hInstance, - HINSTANCE hPrevInstance, - LPTSTR lpCmdLine, - int nCmdShow) -{ - UNREFERENCED_PARAMETER(hPrevInstance); - UNREFERENCED_PARAMETER(lpCmdLine); - auto simulator = SimulatorWin::getInstance(); - return simulator->run(); -} diff --git a/tools/framework-compile/bin-templates/lua-template-runtime/res-landscape/HelloLua.ccs b/tools/framework-compile/bin-templates/lua-template-runtime/res-landscape/HelloLua.ccs deleted file mode 100644 index a05198a093..0000000000 --- a/tools/framework-compile/bin-templates/lua-template-runtime/res-landscape/HelloLua.ccs +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - diff --git a/tools/framework-compile/bin-templates/lua-template-runtime/res-landscape/HelloLua.cfg b/tools/framework-compile/bin-templates/lua-template-runtime/res-landscape/HelloLua.cfg deleted file mode 100644 index 847a2e3733..0000000000 --- a/tools/framework-compile/bin-templates/lua-template-runtime/res-landscape/HelloLua.cfg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/tools/framework-compile/bin-templates/lua-template-runtime/res-landscape/HelloLua.udf b/tools/framework-compile/bin-templates/lua-template-runtime/res-landscape/HelloLua.udf deleted file mode 100644 index 6aca43ea0b..0000000000 --- a/tools/framework-compile/bin-templates/lua-template-runtime/res-landscape/HelloLua.udf +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/tools/framework-compile/bin-templates/lua-template-runtime/res-landscape/cocosstudio/HelloWorld.png b/tools/framework-compile/bin-templates/lua-template-runtime/res-landscape/cocosstudio/HelloWorld.png deleted file mode 100644 index b5500fbaf8..0000000000 Binary files a/tools/framework-compile/bin-templates/lua-template-runtime/res-landscape/cocosstudio/HelloWorld.png and /dev/null differ diff --git a/tools/framework-compile/bin-templates/lua-template-runtime/res-landscape/cocosstudio/MainScene.csd b/tools/framework-compile/bin-templates/lua-template-runtime/res-landscape/cocosstudio/MainScene.csd deleted file mode 100644 index 8f21e41f91..0000000000 --- a/tools/framework-compile/bin-templates/lua-template-runtime/res-landscape/cocosstudio/MainScene.csd +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/tools/framework-compile/bin-templates/lua-template-runtime/res-landscape/res/HelloWorld.png b/tools/framework-compile/bin-templates/lua-template-runtime/res-landscape/res/HelloWorld.png deleted file mode 100644 index b5500fbaf8..0000000000 Binary files a/tools/framework-compile/bin-templates/lua-template-runtime/res-landscape/res/HelloWorld.png and /dev/null differ diff --git a/tools/framework-compile/bin-templates/lua-template-runtime/res-landscape/res/MainScene.csb b/tools/framework-compile/bin-templates/lua-template-runtime/res-landscape/res/MainScene.csb deleted file mode 100644 index 4719ea61b2..0000000000 Binary files a/tools/framework-compile/bin-templates/lua-template-runtime/res-landscape/res/MainScene.csb and /dev/null differ diff --git a/tools/framework-compile/bin-templates/lua-template-runtime/res-portrait/HelloLua.ccs b/tools/framework-compile/bin-templates/lua-template-runtime/res-portrait/HelloLua.ccs deleted file mode 100644 index a05198a093..0000000000 --- a/tools/framework-compile/bin-templates/lua-template-runtime/res-portrait/HelloLua.ccs +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - diff --git a/tools/framework-compile/bin-templates/lua-template-runtime/res-portrait/HelloLua.cfg b/tools/framework-compile/bin-templates/lua-template-runtime/res-portrait/HelloLua.cfg deleted file mode 100644 index eef30416de..0000000000 --- a/tools/framework-compile/bin-templates/lua-template-runtime/res-portrait/HelloLua.cfg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/tools/framework-compile/bin-templates/lua-template-runtime/res-portrait/HelloLua.udf b/tools/framework-compile/bin-templates/lua-template-runtime/res-portrait/HelloLua.udf deleted file mode 100644 index 6aca43ea0b..0000000000 --- a/tools/framework-compile/bin-templates/lua-template-runtime/res-portrait/HelloLua.udf +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/tools/framework-compile/bin-templates/lua-template-runtime/res-portrait/cocosstudio/HelloWorld.png b/tools/framework-compile/bin-templates/lua-template-runtime/res-portrait/cocosstudio/HelloWorld.png deleted file mode 100644 index 0a82fdeb40..0000000000 Binary files a/tools/framework-compile/bin-templates/lua-template-runtime/res-portrait/cocosstudio/HelloWorld.png and /dev/null differ diff --git a/tools/framework-compile/bin-templates/lua-template-runtime/res-portrait/cocosstudio/MainScene.csd b/tools/framework-compile/bin-templates/lua-template-runtime/res-portrait/cocosstudio/MainScene.csd deleted file mode 100644 index 378cea89b1..0000000000 --- a/tools/framework-compile/bin-templates/lua-template-runtime/res-portrait/cocosstudio/MainScene.csd +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/tools/framework-compile/bin-templates/lua-template-runtime/res-portrait/frameworks/runtime-src/proj.ios_mac/ios/Default-568h@2x.png b/tools/framework-compile/bin-templates/lua-template-runtime/res-portrait/frameworks/runtime-src/proj.ios_mac/ios/Default-568h@2x.png deleted file mode 100644 index 44addc0dc7..0000000000 Binary files a/tools/framework-compile/bin-templates/lua-template-runtime/res-portrait/frameworks/runtime-src/proj.ios_mac/ios/Default-568h@2x.png and /dev/null differ diff --git a/tools/framework-compile/bin-templates/lua-template-runtime/res-portrait/frameworks/runtime-src/proj.ios_mac/ios/Default-667h@2x.png b/tools/framework-compile/bin-templates/lua-template-runtime/res-portrait/frameworks/runtime-src/proj.ios_mac/ios/Default-667h@2x.png deleted file mode 100644 index c53043134c..0000000000 Binary files a/tools/framework-compile/bin-templates/lua-template-runtime/res-portrait/frameworks/runtime-src/proj.ios_mac/ios/Default-667h@2x.png and /dev/null differ diff --git a/tools/framework-compile/bin-templates/lua-template-runtime/res-portrait/frameworks/runtime-src/proj.ios_mac/ios/Default-736h@3x.png b/tools/framework-compile/bin-templates/lua-template-runtime/res-portrait/frameworks/runtime-src/proj.ios_mac/ios/Default-736h@3x.png deleted file mode 100644 index c707886c8d..0000000000 Binary files a/tools/framework-compile/bin-templates/lua-template-runtime/res-portrait/frameworks/runtime-src/proj.ios_mac/ios/Default-736h@3x.png and /dev/null differ diff --git a/tools/framework-compile/bin-templates/lua-template-runtime/res-portrait/frameworks/runtime-src/proj.ios_mac/ios/Default.png b/tools/framework-compile/bin-templates/lua-template-runtime/res-portrait/frameworks/runtime-src/proj.ios_mac/ios/Default.png deleted file mode 100644 index dcb80725de..0000000000 Binary files a/tools/framework-compile/bin-templates/lua-template-runtime/res-portrait/frameworks/runtime-src/proj.ios_mac/ios/Default.png and /dev/null differ diff --git a/tools/framework-compile/bin-templates/lua-template-runtime/res-portrait/frameworks/runtime-src/proj.ios_mac/ios/Default@2x.png b/tools/framework-compile/bin-templates/lua-template-runtime/res-portrait/frameworks/runtime-src/proj.ios_mac/ios/Default@2x.png deleted file mode 100644 index 0a82fdeb40..0000000000 Binary files a/tools/framework-compile/bin-templates/lua-template-runtime/res-portrait/frameworks/runtime-src/proj.ios_mac/ios/Default@2x.png and /dev/null differ diff --git a/tools/framework-compile/bin-templates/lua-template-runtime/res-portrait/res/HelloWorld.png b/tools/framework-compile/bin-templates/lua-template-runtime/res-portrait/res/HelloWorld.png deleted file mode 100644 index 0a82fdeb40..0000000000 Binary files a/tools/framework-compile/bin-templates/lua-template-runtime/res-portrait/res/HelloWorld.png and /dev/null differ diff --git a/tools/framework-compile/bin-templates/lua-template-runtime/res-portrait/res/MainScene.csb b/tools/framework-compile/bin-templates/lua-template-runtime/res-portrait/res/MainScene.csb deleted file mode 100644 index 023aea8024..0000000000 Binary files a/tools/framework-compile/bin-templates/lua-template-runtime/res-portrait/res/MainScene.csb and /dev/null differ diff --git a/tools/framework-compile/bin-templates/lua-template-runtime/src/app/MyApp.lua b/tools/framework-compile/bin-templates/lua-template-runtime/src/app/MyApp.lua deleted file mode 100644 index e8d1a9f35b..0000000000 --- a/tools/framework-compile/bin-templates/lua-template-runtime/src/app/MyApp.lua +++ /dev/null @@ -1,8 +0,0 @@ - -local MyApp = class("MyApp", cc.load("mvc").AppBase) - -function MyApp:onCreate() - math.randomseed(os.time()) -end - -return MyApp diff --git a/tools/framework-compile/bin-templates/lua-template-runtime/src/app/views/MainScene.lua b/tools/framework-compile/bin-templates/lua-template-runtime/src/app/views/MainScene.lua deleted file mode 100644 index 9696977793..0000000000 --- a/tools/framework-compile/bin-templates/lua-template-runtime/src/app/views/MainScene.lua +++ /dev/null @@ -1,10 +0,0 @@ - -local MainScene = class("MainScene", cc.load("mvc").ViewBase) - -MainScene.RESOURCE_FILENAME = "MainScene.csb" - -function MainScene:onCreate() - printf("resource node = %s", tostring(self:getResourceNode())) -end - -return MainScene diff --git a/tools/framework-compile/bin-templates/lua-template-runtime/src/config.lua b/tools/framework-compile/bin-templates/lua-template-runtime/src/config.lua deleted file mode 100644 index 2a7389f3ae..0000000000 --- a/tools/framework-compile/bin-templates/lua-template-runtime/src/config.lua +++ /dev/null @@ -1,26 +0,0 @@ - --- 0 - disable debug info, 1 - less debug info, 2 - verbose debug info -DEBUG = 2 - --- use framework, will disable all deprecated API, false - use legacy API -CC_USE_FRAMEWORK = true - --- show FPS on screen -CC_SHOW_FPS = true - --- disable create unexpected global variable -CC_DISABLE_GLOBAL = true - --- for module display -CC_DESIGN_RESOLUTION = { - width = 960, - height = 640, - autoscale = "SHOW_ALL", - callback = function(framesize) - local ratio = framesize.width / framesize.height - if ratio <= 1.34 then - -- iPad 768*1024(1536*2048) is 4:3 screen - return {autoscale = "SHOW_ALL"} - end - end -} diff --git a/tools/framework-compile/gen_cocos_libs.sh b/tools/framework-compile/gen_cocos_libs.sh deleted file mode 100644 index f4b1416a4c..0000000000 --- a/tools/framework-compile/gen_cocos_libs.sh +++ /dev/null @@ -1 +0,0 @@ -python ./bin/gen_cocos_libs.py --repo-x ../../ -c diff --git a/tools/framework-compile/x-modified/cocos/audio/android/prebuilt-mk/Android.mk b/tools/framework-compile/x-modified/cocos/audio/android/prebuilt-mk/Android.mk deleted file mode 100644 index d1c0de6237..0000000000 --- a/tools/framework-compile/x-modified/cocos/audio/android/prebuilt-mk/Android.mk +++ /dev/null @@ -1,28 +0,0 @@ -LOCAL_PATH := $(call my-dir) -include $(CLEAR_VARS) - -LOCAL_MODULE := cocosdenshion_static - -LOCAL_MODULE_FILENAME := libcocosdenshion - -LOCAL_SRC_FILES := __LIBS_DIR__/android/$(TARGET_ARCH_ABI)/libcocosdenshion.a - -LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/../../include - - -include $(PREBUILT_STATIC_LIBRARY) - -#new audio engine -include $(CLEAR_VARS) - -LOCAL_MODULE := audioengine_static - -LOCAL_MODULE_FILENAME := libaudioengine - -LOCAL_SRC_FILES := __LIBS_DIR__/android/$(TARGET_ARCH_ABI)/libaudioengine.a - -LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/../../include - -LOCAL_EXPORT_LDLIBS := -lOpenSLES - -include $(PREBUILT_STATIC_LIBRARY) diff --git a/tools/framework-compile/x-modified/cocos/prebuilt-mk/Android.mk b/tools/framework-compile/x-modified/cocos/prebuilt-mk/Android.mk deleted file mode 100644 index 4b10f22afa..0000000000 --- a/tools/framework-compile/x-modified/cocos/prebuilt-mk/Android.mk +++ /dev/null @@ -1,86 +0,0 @@ -LOCAL_PATH := $(call my-dir) - -include $(CLEAR_VARS) - -LOCAL_MODULE := cocos2dx_internal_static - -LOCAL_MODULE_FILENAME := libcocos2dxinternal - -LOCAL_SRC_FILES := __LIBS_DIR__/android/$(TARGET_ARCH_ABI)/libcocos2dxinternal.a - - -LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/.. \ -$(LOCAL_PATH)/../. \ -$(LOCAL_PATH)/../platform \ -$(LOCAL_PATH)/../base \ -$(LOCAL_PATH)/../../external \ -$(LOCAL_PATH)/../../external/tinyxml2 \ -$(LOCAL_PATH)/../../external/unzip \ -$(LOCAL_PATH)/../../external/chipmunk/include/chipmunk \ -$(LOCAL_PATH)/../../external/xxhash \ -$(LOCAL_PATH)/../../external/nslog - - -LOCAL_EXPORT_LDLIBS := -lGLESv2 \ - -llog \ - -landroid - -LOCAL_WHOLE_STATIC_LIBRARIES := cocos_freetype2_static -LOCAL_WHOLE_STATIC_LIBRARIES += cocos_png_static -LOCAL_WHOLE_STATIC_LIBRARIES += cocos_jpeg_static -LOCAL_WHOLE_STATIC_LIBRARIES += cocos_tiff_static -LOCAL_WHOLE_STATIC_LIBRARIES += cocos_webp_static -LOCAL_WHOLE_STATIC_LIBRARIES += cocos_chipmunk_static -LOCAL_WHOLE_STATIC_LIBRARIES += cocos_zlib_static - -LOCAL_WHOLE_STATIC_LIBRARIES += cocos2dxandroid_static - -# define the macro to compile through support/zip_support/ioapi.c -LOCAL_CFLAGS := -DUSE_FILE32API -LOCAL_CPPFLAGS := -Wno-deprecated-declarations -Wno-extern-c-compat -LOCAL_EXPORT_CFLAGS := -DUSE_FILE32API -LOCAL_EXPORT_CPPFLAGS := -Wno-deprecated-declarations -Wno-extern-c-compat - -include $(PREBUILT_STATIC_LIBRARY) - -#============================================================== - -include $(CLEAR_VARS) - -LOCAL_MODULE := cocos2dx_static -LOCAL_MODULE_FILENAME := libcocos2d - -LOCAL_SRC_FILES := __LIBS_DIR__/android/$(TARGET_ARCH_ABI)/libcocos2d.a - -LOCAL_WHOLE_STATIC_LIBRARIES := cocostudio_static -LOCAL_WHOLE_STATIC_LIBRARIES += audioengine_static -LOCAL_WHOLE_STATIC_LIBRARIES += cocos3d_static -LOCAL_WHOLE_STATIC_LIBRARIES += cocosbuilder_static -LOCAL_WHOLE_STATIC_LIBRARIES += spine_static -LOCAL_WHOLE_STATIC_LIBRARIES += cocos_network_static - -include $(PREBUILT_STATIC_LIBRARY) - -#============================================================== -$(call import-module,freetype2/prebuilt/android) -$(call import-module, platform/android/prebuilt-mk) -$(call import-module,png/prebuilt/android) -$(call import-module,jpeg/prebuilt/android) -$(call import-module,tiff/prebuilt/android) -$(call import-module,webp/prebuilt/android) -$(call import-module,chipmunk/prebuilt/android) -$(call import-module, 3d/prebuilt-mk) -$(call import-module, audio/android/prebuilt-mk) -$(call import-module, editor-support/cocosbuilder/prebuilt-mk) -$(call import-module, editor-support/cocostudio/prebuilt-mk) -$(call import-module, editor-support/spine/prebuilt-mk) -$(call import-module, network/prebuilt-mk) -$(call import-module, ui/prebuilt-mk) -$(call import-module, extensions/prebuilt-mk) -$(call import-module, Box2D/prebuilt-mk) -$(call import-module,curl/prebuilt/android) -$(call import-module,websockets/prebuilt/android) -$(call import-module, flatbuffers/prebuilt-mk) -$(call import-module, zlib/prebuilt/android) - - diff --git a/tools/framework-compile/x-modified/cocos/scripting/js-bindings/proj.android/prebuilt-mk/Android.mk b/tools/framework-compile/x-modified/cocos/scripting/js-bindings/proj.android/prebuilt-mk/Android.mk deleted file mode 100644 index a532a9a883..0000000000 --- a/tools/framework-compile/x-modified/cocos/scripting/js-bindings/proj.android/prebuilt-mk/Android.mk +++ /dev/null @@ -1,66 +0,0 @@ -LOCAL_PATH := $(call my-dir) - -include $(CLEAR_VARS) - -LOCAL_MODULE := cocos2d_js_android_static - -LOCAL_MODULE_FILENAME := libjscocos2dandroid - -LOCAL_SRC_FILES := __LIBS_DIR__/android/$(TARGET_ARCH_ABI)/libjscocos2dandroid.a - -LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../.. \ - $(LOCAL_PATH)/../manual \ - $(LOCAL_PATH)/../manual/platform/android \ - $(LOCAL_PATH)/../../../base \ - $(LOCAL_PATH)/../../../../external/chipmunk/include/chipmunk - -LOCAL_EXPORT_LDLIBS := -lGLESv2 \ - -llog \ - -landroid - -LOCAL_STATIC_LIBRARIES := spidermonkey_static - -include $(PREBUILT_STATIC_LIBRARY) - -#============================================================== - -include $(CLEAR_VARS) - -LOCAL_MODULE := cocos2d_js_static - -LOCAL_MODULE_FILENAME := libjscocos2d - -LOCAL_SRC_FILES := __LIBS_DIR__/prebuilt/android/$(TARGET_ARCH_ABI)/libjscocos2d.a - - -LOCAL_CFLAGS := -DCOCOS2D_JAVASCRIPT - -LOCAL_EXPORT_CFLAGS := -DCOCOS2D_JAVASCRIPT - -LOCAL_C_INCLUDES := $(LOCAL_PATH)/../manual \ - $(LOCAL_PATH)/../auto \ - $(LOCAL_PATH)/../../../2d \ - $(LOCAL_PATH)/../../../base \ - $(LOCAL_PATH)/../../../ui \ - $(LOCAL_PATH)/../../../audio/include \ - $(LOCAL_PATH)/../../../storage \ - $(LOCAL_PATH)/../../../../extensions \ - $(LOCAL_PATH)/../../../editor-support/spine \ - $(LOCAL_PATH)/../../../editor-support/cocosbuilder \ - $(LOCAL_PATH)/../../../editor-support/cocostudio - - -LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/../../manual \ - $(LOCAL_PATH)/../../auto \ - $(LOCAL_PATH)/../../../../audio/include - -LOCAL_WHOLE_STATIC_LIBRARIES := cocos2d_js_android_static - -LOCAL_WHOLE_STATIC_LIBRARIES += cocos2dx_static -LOCAL_WHOLE_STATIC_LIBRARIES += cocos_localstorage_static - -include $(PREBUILT_STATIC_LIBRARY) - -$(call import-module,./prebuilt-mk) -$(call import-module,external/spidermonkey/prebuilt/android) -$(call import-module,storage/local-storage/prebuilt-mk) diff --git a/tools/framework-compile/x-modified/cocos/scripting/lua-bindings/proj.android/prebuilt-mk/Android.mk b/tools/framework-compile/x-modified/cocos/scripting/lua-bindings/proj.android/prebuilt-mk/Android.mk deleted file mode 100644 index f51b6f34a2..0000000000 --- a/tools/framework-compile/x-modified/cocos/scripting/lua-bindings/proj.android/prebuilt-mk/Android.mk +++ /dev/null @@ -1,54 +0,0 @@ -LOCAL_PATH := $(call my-dir) - -include $(CLEAR_VARS) - -LOCAL_MODULE := cocos2d_lua_android_static - -LOCAL_MODULE_FILENAME := libluacocos2dandroid - -LOCAL_SRC_FILES := __LIBS_DIR__/prebuilt/android/$(TARGET_ARCH_ABI)/libluacocos2dandroid.a - - -LOCAL_EXPORT_LDLIBS := -lGLESv2 \ - -llog \ - -landroid - -LOCAL_WHOLE_STATIC_LIBRARIES := luajit_static - -include $(PREBUILT_STATIC_LIBRARY) - -#============================================================== - -include $(CLEAR_VARS) - -LOCAL_MODULE := cocos2d_lua_static - -LOCAL_MODULE_FILENAME := libluacocos2d - -LOCAL_SRC_FILES := __LIBS_DIR__/prebuilt/android/$(TARGET_ARCH_ABI)/libluacocos2d.a - -LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/../../../../../external/lua/tolua \ -$(LOCAL_PATH)/../../../../../external/lua/luajit/include \ -$(LOCAL_PATH)/../../auto \ -$(LOCAL_PATH)/../../manual \ -$(LOCAL_PATH)/../../manual/cocos2d \ -$(LOCAL_PATH)/../../manual/3d \ -$(LOCAL_PATH)/../../manual/cocosdenshion \ -$(LOCAL_PATH)/../../manual/audioengine \ -$(LOCAL_PATH)/../../manual/network \ -$(LOCAL_PATH)/../../manual/cocosbuilder \ -$(LOCAL_PATH)/../../manual/cocostudio \ -$(LOCAL_PATH)/../../manual/spine \ -$(LOCAL_PATH)/../../manual/extension \ -$(LOCAL_PATH)/../../manual/ui \ -$(LOCAL_PATH)/../../../../../external/lua/quick \ -$(LOCAL_PATH)/../../../../.. - -LOCAL_WHOLE_STATIC_LIBRARIES := cocos2d_lua_android_static - -LOCAL_WHOLE_STATIC_LIBRARIES += cocos2dx_static - -include $(PREBUILT_STATIC_LIBRARY) - -$(call import-module,lua/luajit/prebuilt/android) -$(call import-module, ./prebuilt-mk)