Merge pull request #12069 from hugohuang1111/v3_del_duplicate_fw_file
[M] remove duplicate file of framework
|
@ -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();
|
||||
}
|
|
@ -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;
|
||||
}
|
|
@ -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__
|
|
@ -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"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
|
@ -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)
|
|
@ -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
|
|
@ -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();
|
||||
}
|
|
@ -1,11 +0,0 @@
|
|||
<Solution>
|
||||
<PropertyGroup Name="HelloCpp" Version="2.1.0.0" Type="CocosStudio" />
|
||||
<SolutionFolder>
|
||||
<Group ctype="ResourceGroup">
|
||||
<RootFolder Name=".">
|
||||
<Project Name="MainScene.csd" />
|
||||
<Image Name="HelloWorld.png" />
|
||||
</RootFolder>
|
||||
</Group>
|
||||
</SolutionFolder>
|
||||
</Solution>
|
|
@ -1 +0,0 @@
|
|||
<Properties PublishDirectory="Resources/res" SolutionSize="960 * 640" DefaultSerializer="Serializer_FlatBuffers" CustomSerializer="Serializer_FlatBuffers" />
|
|
@ -1,6 +0,0 @@
|
|||
<UserData>
|
||||
<OpenedDocuments>
|
||||
<FilePathData Path="MainScene.csd" />
|
||||
</OpenedDocuments>
|
||||
<ActiveDocument Path="MainScene.csd" />
|
||||
</UserData>
|
Before Width: | Height: | Size: 471 KiB |
Before Width: | Height: | Size: 471 KiB |
|
@ -1,29 +0,0 @@
|
|||
<GameProjectFile>
|
||||
<PropertyGroup Type="Scene" Name="MainScene" ID="a2ee0952-26b5-49ae-8bf9-4f1d6279b798" Version="2.1.0.0" />
|
||||
<Content ctype="GameProjectContent">
|
||||
<Content>
|
||||
<Animation Duration="0" Speed="1.0000" />
|
||||
<ObjectData Name="Scene" FrameEvent="" RightMargin="-960.0000" TopMargin="-640.0000" ctype="SingleNodeObjectData">
|
||||
<Position X="0.0000" Y="0.0000" />
|
||||
<Scale ScaleX="1.0000" ScaleY="1.0000" />
|
||||
<AnchorPoint />
|
||||
<CColor A="255" R="255" G="255" B="255" />
|
||||
<Size X="960.0000" Y="640.0000" />
|
||||
<PrePosition X="0.0000" Y="0.0000" />
|
||||
<PreSize X="0.0000" Y="0.0000" />
|
||||
<Children>
|
||||
<NodeObjectData Name="Default" ActionTag="953446860" FrameEvent="" Tag="5" ObjectIndex="2" ctype="SpriteObjectData">
|
||||
<Position X="480.0000" Y="320.0000" />
|
||||
<Scale ScaleX="1.0000" ScaleY="1.0000" />
|
||||
<AnchorPoint ScaleX="0.5000" ScaleY="0.5000" />
|
||||
<CColor A="255" R="255" G="255" B="255" />
|
||||
<Size X="960.0000" Y="640.0000" />
|
||||
<PrePosition X="0.5000" Y="0.5000" />
|
||||
<PreSize X="0.0000" Y="0.0000" />
|
||||
<FileData Type="Normal" Path="HelloWorld.png" />
|
||||
</NodeObjectData>
|
||||
</Children>
|
||||
</ObjectData>
|
||||
</Content>
|
||||
</Content>
|
||||
</GameProjectFile>
|
|
@ -1,11 +0,0 @@
|
|||
<Solution>
|
||||
<PropertyGroup Name="HelloCpp" Version="2.1.0.0" Type="CocosStudio" />
|
||||
<SolutionFolder>
|
||||
<Group ctype="ResourceGroup">
|
||||
<RootFolder Name=".">
|
||||
<Project Name="MainScene.csd" />
|
||||
<Image Name="HelloWorld.png" />
|
||||
</RootFolder>
|
||||
</Group>
|
||||
</SolutionFolder>
|
||||
</Solution>
|
|
@ -1 +0,0 @@
|
|||
<Properties publishHasCocos2dxCode="False" PublishDirectory="Resources/res" SolutionSize="640 * 960" DefaultSerializer="Serializer_FlatBuffers" CustomSerializer="Serializer_FlatBuffers" />
|
|
@ -1,6 +0,0 @@
|
|||
<UserData>
|
||||
<OpenedDocuments>
|
||||
<FilePathData Path="MainScene.csd" />
|
||||
</OpenedDocuments>
|
||||
<ActiveDocument Path="MainScene.csd" />
|
||||
</UserData>
|
Before Width: | Height: | Size: 140 KiB |
Before Width: | Height: | Size: 140 KiB |
|
@ -1,29 +0,0 @@
|
|||
<GameProjectFile>
|
||||
<PropertyGroup Type="Scene" Name="MainScene" ID="a2ee0952-26b5-49ae-8bf9-4f1d6279b798" Version="2.1.0.0" />
|
||||
<Content ctype="GameProjectContent">
|
||||
<Content>
|
||||
<Animation Duration="0" Speed="1.0000" />
|
||||
<ObjectData Name="Scene" FrameEvent="" ctype="SingleNodeObjectData">
|
||||
<Position X="0.0000" Y="0.0000" />
|
||||
<Scale ScaleX="1.0000" ScaleY="1.0000" />
|
||||
<AnchorPoint />
|
||||
<CColor A="255" R="255" G="255" B="255" />
|
||||
<Size X="640.0000" Y="960.0000" />
|
||||
<PrePosition X="0.0000" Y="0.0000" />
|
||||
<PreSize X="0.0000" Y="0.0000" />
|
||||
<Children>
|
||||
<NodeObjectData Name="Default" ActionTag="-620272433" FrameEvent="" Tag="5" ObjectIndex="3" ctype="SpriteObjectData">
|
||||
<Position X="320.0000" Y="480.0000" />
|
||||
<Scale ScaleX="1.0000" ScaleY="1.0000" />
|
||||
<AnchorPoint ScaleX="0.5000" ScaleY="0.5000" />
|
||||
<CColor A="255" R="255" G="255" B="255" />
|
||||
<Size X="640.0000" Y="960.0000" />
|
||||
<PrePosition X="0.5000" Y="0.5000" />
|
||||
<PreSize X="0.0000" Y="0.0000" />
|
||||
<FileData Type="Normal" Path="HelloWorld.png" />
|
||||
</NodeObjectData>
|
||||
</Children>
|
||||
</ObjectData>
|
||||
</Content>
|
||||
</Content>
|
||||
</GameProjectFile>
|
Before Width: | Height: | Size: 134 KiB |
Before Width: | Height: | Size: 353 KiB |
Before Width: | Height: | Size: 748 KiB |
Before Width: | Height: | Size: 87 KiB |
Before Width: | Height: | Size: 140 KiB |
|
@ -1,16 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>HelloJavascript</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>org.ccdt.cocosproject</nature>
|
||||
<nature>org.ccdt.jsdt.core.jsNature</nature>
|
||||
</natures>
|
||||
<cocosprojecttemplate>
|
||||
<version>1.2</version>
|
||||
</cocosprojecttemplate>
|
||||
</projectDescription>
|
|
@ -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"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -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"
|
||||
}
|
||||
]
|
||||
}
|
|
@ -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)
|
|
@ -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
|
|
@ -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"
|
||||
}
|
||||
]
|
||||
}
|
|
@ -1,20 +0,0 @@
|
|||
#include "main.h"
|
||||
#include "SimulatorWin.h"
|
||||
#include <shellapi.h>
|
||||
|
||||
#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();
|
||||
}
|
|
@ -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
|
|
@ -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 <windows.h>
|
||||
|
||||
// C RunTime Header Files
|
||||
#include <stdlib.h>
|
||||
#include <malloc.h>
|
||||
#include <memory.h>
|
||||
#include <tchar.h>
|
||||
|
||||
|
||||
// TODO: reference additional headers your program requires here
|
|
@ -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 <SDKDDKVer.h>
|
|
@ -1,27 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Cocos2d-html5 Hello World test</title>
|
||||
<link rel="icon" type="image/GIF" href="res/favicon.ico"/>
|
||||
<meta name="apple-mobile-web-app-capable" content="yes"/>
|
||||
<meta name="full-screen" content="yes"/>
|
||||
<meta name="screen-orientation" content="portrait"/>
|
||||
<meta name="x5-fullscreen" content="true"/>
|
||||
<meta name="360-fullscreen" content="true"/>
|
||||
<style>
|
||||
body, canvas, div {
|
||||
-moz-user-select: none;
|
||||
-webkit-user-select: none;
|
||||
-ms-user-select: none;
|
||||
-khtml-user-select: none;
|
||||
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body style="padding:0; margin: 0; background: #000;">
|
||||
<canvas id="gameCanvas" width="800" height="450"></canvas>
|
||||
<script src="frameworks/cocos2d-html5/CCBoot.js"></script>
|
||||
<script src="main.js"></script>
|
||||
</body>
|
||||
</html>
|
|
@ -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();
|
|
@ -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"
|
||||
]
|
||||
}
|
|
@ -1,11 +0,0 @@
|
|||
<Solution>
|
||||
<PropertyGroup Name="HelloJavascript" Version="2.1.0.0" Type="CocosStudio" />
|
||||
<SolutionFolder>
|
||||
<Group ctype="ResourceGroup">
|
||||
<RootFolder Name=".">
|
||||
<Project Name="MainScene.csd" />
|
||||
<Image Name="HelloWorld.png" />
|
||||
</RootFolder>
|
||||
</Group>
|
||||
</SolutionFolder>
|
||||
</Solution>
|
|
@ -1 +0,0 @@
|
|||
<Properties PublishDirectory="res" SolutionSize="960 * 640" DefaultSerializer="Serializer_FlatBuffers" CustomSerializer="Serializer_FlatBuffers" />
|
|
@ -1,6 +0,0 @@
|
|||
<UserData>
|
||||
<OpenedDocuments>
|
||||
<FilePathData Path="MainScene.csd" />
|
||||
</OpenedDocuments>
|
||||
<ActiveDocument Path="MainScene.csd" />
|
||||
</UserData>
|
Before Width: | Height: | Size: 471 KiB |
|
@ -1,29 +0,0 @@
|
|||
<GameProjectFile>
|
||||
<PropertyGroup Type="Scene" Name="MainScene" ID="a2ee0952-26b5-49ae-8bf9-4f1d6279b798" Version="2.1.0.0" />
|
||||
<Content ctype="GameProjectContent">
|
||||
<Content>
|
||||
<Animation Duration="0" Speed="1.0000" />
|
||||
<ObjectData Name="Scene" FrameEvent="" RightMargin="-960.0000" TopMargin="-640.0000" ctype="SingleNodeObjectData">
|
||||
<Position X="0.0000" Y="0.0000" />
|
||||
<Scale ScaleX="1.0000" ScaleY="1.0000" />
|
||||
<AnchorPoint />
|
||||
<CColor A="255" R="255" G="255" B="255" />
|
||||
<Size X="960.0000" Y="640.0000" />
|
||||
<PrePosition X="0.0000" Y="0.0000" />
|
||||
<PreSize X="0.0000" Y="0.0000" />
|
||||
<Children>
|
||||
<NodeObjectData Name="Default" ActionTag="953446860" FrameEvent="" Tag="5" ObjectIndex="2" ctype="SpriteObjectData">
|
||||
<Position X="480.0000" Y="320.0000" />
|
||||
<Scale ScaleX="1.0000" ScaleY="1.0000" />
|
||||
<AnchorPoint ScaleX="0.5000" ScaleY="0.5000" />
|
||||
<CColor A="255" R="255" G="255" B="255" />
|
||||
<Size X="960.0000" Y="640.0000" />
|
||||
<PrePosition X="0.5000" Y="0.5000" />
|
||||
<PreSize X="0.0000" Y="0.0000" />
|
||||
<FileData Type="Normal" Path="HelloWorld.png" />
|
||||
</NodeObjectData>
|
||||
</Children>
|
||||
</ObjectData>
|
||||
</Content>
|
||||
</Content>
|
||||
</GameProjectFile>
|
Before Width: | Height: | Size: 471 KiB |
|
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,11 +0,0 @@
|
|||
<Solution>
|
||||
<PropertyGroup Name="HelloJavascript" Version="2.1.0.0" Type="CocosStudio" />
|
||||
<SolutionFolder>
|
||||
<Group ctype="ResourceGroup">
|
||||
<RootFolder Name=".">
|
||||
<Project Name="MainScene.csd" />
|
||||
<Image Name="HelloWorld.png" />
|
||||
</RootFolder>
|
||||
</Group>
|
||||
</SolutionFolder>
|
||||
</Solution>
|
|
@ -1 +0,0 @@
|
|||
<Properties publishHasCocos2dxCode="False" PublishDirectory="res" SolutionSize="640 * 960" DefaultSerializer="Serializer_FlatBuffers" CustomSerializer="Serializer_FlatBuffers" />
|
|
@ -1,6 +0,0 @@
|
|||
<UserData>
|
||||
<OpenedDocuments>
|
||||
<FilePathData Path="MainScene.csd" />
|
||||
</OpenedDocuments>
|
||||
<ActiveDocument Path="MainScene.csd" />
|
||||
</UserData>
|
Before Width: | Height: | Size: 140 KiB |
|
@ -1,29 +0,0 @@
|
|||
<GameProjectFile>
|
||||
<PropertyGroup Type="Scene" Name="MainScene" ID="a2ee0952-26b5-49ae-8bf9-4f1d6279b798" Version="2.1.0.0" />
|
||||
<Content ctype="GameProjectContent">
|
||||
<Content>
|
||||
<Animation Duration="0" Speed="1.0000" />
|
||||
<ObjectData Name="Scene" FrameEvent="" ctype="SingleNodeObjectData">
|
||||
<Position X="0.0000" Y="0.0000" />
|
||||
<Scale ScaleX="1.0000" ScaleY="1.0000" />
|
||||
<AnchorPoint />
|
||||
<CColor A="255" R="255" G="255" B="255" />
|
||||
<Size X="640.0000" Y="960.0000" />
|
||||
<PrePosition X="0.0000" Y="0.0000" />
|
||||
<PreSize X="0.0000" Y="0.0000" />
|
||||
<Children>
|
||||
<NodeObjectData Name="Default" ActionTag="-620272433" FrameEvent="" Tag="5" ObjectIndex="3" ctype="SpriteObjectData">
|
||||
<Position X="320.0000" Y="480.0000" />
|
||||
<Scale ScaleX="1.0000" ScaleY="1.0000" />
|
||||
<AnchorPoint ScaleX="0.5000" ScaleY="0.5000" />
|
||||
<CColor A="255" R="255" G="255" B="255" />
|
||||
<Size X="640.0000" Y="960.0000" />
|
||||
<PrePosition X="0.5000" Y="0.5000" />
|
||||
<PreSize X="0.0000" Y="0.0000" />
|
||||
<FileData Type="Normal" Path="HelloWorld.png" />
|
||||
</NodeObjectData>
|
||||
</Children>
|
||||
</ObjectData>
|
||||
</Content>
|
||||
</Content>
|
||||
</GameProjectFile>
|
Before Width: | Height: | Size: 134 KiB |
Before Width: | Height: | Size: 353 KiB |
Before Width: | Height: | Size: 748 KiB |
Before Width: | Height: | Size: 87 KiB |
Before Width: | Height: | Size: 140 KiB |
Before Width: | Height: | Size: 140 KiB |
|
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
|
@ -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);
|
||||
}
|
||||
});
|
||||
|
|
@ -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]);
|
||||
}
|
|
@ -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"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
|
@ -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)
|
||||
|
|
@ -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
|
|
@ -1,21 +0,0 @@
|
|||
#include "main.h"
|
||||
#include "SimulatorWin.h"
|
||||
#include <shellapi.h>
|
||||
|
||||
#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();
|
||||
}
|
|
@ -1,11 +0,0 @@
|
|||
<Solution>
|
||||
<PropertyGroup Name="HelloLua" Version="2.1.0.0" Type="CocosStudio" />
|
||||
<SolutionFolder>
|
||||
<Group ctype="ResourceGroup">
|
||||
<RootFolder Name=".">
|
||||
<Project Name="MainScene.csd" />
|
||||
<Image Name="HelloWorld.png" />
|
||||
</RootFolder>
|
||||
</Group>
|
||||
</SolutionFolder>
|
||||
</Solution>
|
|
@ -1 +0,0 @@
|
|||
<Properties PublishDirectory="res" SolutionSize="960 * 640" DefaultSerializer="Serializer_FlatBuffers" CustomSerializer="Serializer_FlatBuffers" />
|
|
@ -1,6 +0,0 @@
|
|||
<UserData>
|
||||
<OpenedDocuments>
|
||||
<FilePathData Path="MainScene.csd" />
|
||||
</OpenedDocuments>
|
||||
<ActiveDocument Path="MainScene.csd" />
|
||||
</UserData>
|
Before Width: | Height: | Size: 471 KiB |
|
@ -1,29 +0,0 @@
|
|||
<GameProjectFile>
|
||||
<PropertyGroup Type="Scene" Name="MainScene" ID="a2ee0952-26b5-49ae-8bf9-4f1d6279b798" Version="2.1.0.0" />
|
||||
<Content ctype="GameProjectContent">
|
||||
<Content>
|
||||
<Animation Duration="0" Speed="1.0000" />
|
||||
<ObjectData Name="Scene" FrameEvent="" RightMargin="-960.0000" TopMargin="-640.0000" ctype="SingleNodeObjectData">
|
||||
<Position X="0.0000" Y="0.0000" />
|
||||
<Scale ScaleX="1.0000" ScaleY="1.0000" />
|
||||
<AnchorPoint />
|
||||
<CColor A="255" R="255" G="255" B="255" />
|
||||
<Size X="960.0000" Y="640.0000" />
|
||||
<PrePosition X="0.0000" Y="0.0000" />
|
||||
<PreSize X="0.0000" Y="0.0000" />
|
||||
<Children>
|
||||
<NodeObjectData Name="Default" ActionTag="953446860" FrameEvent="" Tag="5" ObjectIndex="2" ctype="SpriteObjectData">
|
||||
<Position X="480.0000" Y="320.0000" />
|
||||
<Scale ScaleX="1.0000" ScaleY="1.0000" />
|
||||
<AnchorPoint ScaleX="0.5000" ScaleY="0.5000" />
|
||||
<CColor A="255" R="255" G="255" B="255" />
|
||||
<Size X="960.0000" Y="640.0000" />
|
||||
<PrePosition X="0.5000" Y="0.5000" />
|
||||
<PreSize X="0.0000" Y="0.0000" />
|
||||
<FileData Type="Normal" Path="HelloWorld.png" />
|
||||
</NodeObjectData>
|
||||
</Children>
|
||||
</ObjectData>
|
||||
</Content>
|
||||
</Content>
|
||||
</GameProjectFile>
|
Before Width: | Height: | Size: 471 KiB |
|
@ -1,11 +0,0 @@
|
|||
<Solution>
|
||||
<PropertyGroup Name="HelloLua" Version="2.1.0.0" Type="CocosStudio" />
|
||||
<SolutionFolder>
|
||||
<Group ctype="ResourceGroup">
|
||||
<RootFolder Name=".">
|
||||
<Project Name="MainScene.csd" />
|
||||
<Image Name="HelloWorld.png" />
|
||||
</RootFolder>
|
||||
</Group>
|
||||
</SolutionFolder>
|
||||
</Solution>
|
|
@ -1 +0,0 @@
|
|||
<Properties publishHasCocos2dxCode="False" PublishDirectory="res" SolutionSize="640 * 960" DefaultSerializer="Serializer_FlatBuffers" CustomSerializer="Serializer_FlatBuffers" />
|
|
@ -1,6 +0,0 @@
|
|||
<UserData>
|
||||
<OpenedDocuments>
|
||||
<FilePathData Path="MainScene.csd" />
|
||||
</OpenedDocuments>
|
||||
<ActiveDocument Path="MainScene.csd" />
|
||||
</UserData>
|
Before Width: | Height: | Size: 140 KiB |
|
@ -1,29 +0,0 @@
|
|||
<GameProjectFile>
|
||||
<PropertyGroup Type="Scene" Name="MainScene" ID="a2ee0952-26b5-49ae-8bf9-4f1d6279b798" Version="2.1.0.0" />
|
||||
<Content ctype="GameProjectContent">
|
||||
<Content>
|
||||
<Animation Duration="0" Speed="1.0000" />
|
||||
<ObjectData Name="Scene" FrameEvent="" ctype="SingleNodeObjectData">
|
||||
<Position X="0.0000" Y="0.0000" />
|
||||
<Scale ScaleX="1.0000" ScaleY="1.0000" />
|
||||
<AnchorPoint />
|
||||
<CColor A="255" R="255" G="255" B="255" />
|
||||
<Size X="640.0000" Y="960.0000" />
|
||||
<PrePosition X="0.0000" Y="0.0000" />
|
||||
<PreSize X="0.0000" Y="0.0000" />
|
||||
<Children>
|
||||
<NodeObjectData Name="Default" ActionTag="-620272433" FrameEvent="" Tag="5" ObjectIndex="3" ctype="SpriteObjectData">
|
||||
<Position X="320.0000" Y="480.0000" />
|
||||
<Scale ScaleX="1.0000" ScaleY="1.0000" />
|
||||
<AnchorPoint ScaleX="0.5000" ScaleY="0.5000" />
|
||||
<CColor A="255" R="255" G="255" B="255" />
|
||||
<Size X="640.0000" Y="960.0000" />
|
||||
<PrePosition X="0.5000" Y="0.5000" />
|
||||
<PreSize X="0.0000" Y="0.0000" />
|
||||
<FileData Type="Normal" Path="HelloWorld.png" />
|
||||
</NodeObjectData>
|
||||
</Children>
|
||||
</ObjectData>
|
||||
</Content>
|
||||
</Content>
|
||||
</GameProjectFile>
|
Before Width: | Height: | Size: 134 KiB |
Before Width: | Height: | Size: 353 KiB |
Before Width: | Height: | Size: 748 KiB |
Before Width: | Height: | Size: 87 KiB |
Before Width: | Height: | Size: 140 KiB |
Before Width: | Height: | Size: 140 KiB |
|
@ -1,8 +0,0 @@
|
|||
|
||||
local MyApp = class("MyApp", cc.load("mvc").AppBase)
|
||||
|
||||
function MyApp:onCreate()
|
||||
math.randomseed(os.time())
|
||||
end
|
||||
|
||||
return MyApp
|
|
@ -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
|
|
@ -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
|
||||
}
|
|
@ -1 +0,0 @@
|
|||
python ./bin/gen_cocos_libs.py --repo-x ../../ -c
|
|
@ -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)
|
|
@ -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)
|
||||
|
||||
|
|
@ -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)
|
|
@ -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)
|