mirror of https://github.com/axmolengine/axmol.git
commit
d938968c4c
|
@ -0,0 +1,29 @@
|
||||||
|
LOCAL_PATH := $(call my-dir)
|
||||||
|
include $(CLEAR_VARS)
|
||||||
|
LOCAL_MODULE := game_logic
|
||||||
|
|
||||||
|
LOCAL_SRC_FILES := \
|
||||||
|
AppDelegate.cpp \
|
||||||
|
../../lua/cocos2dx_support/LuaEngineImpl.cpp \
|
||||||
|
../../lua/cocos2dx_support/Cocos2dxLuaLoader.cpp \
|
||||||
|
../../lua/cocos2dx_support/LuaCocos2d.cpp \
|
||||||
|
../../lua/cocos2dx_support/LuaEngine.cpp \
|
||||||
|
../../lua/CocosDenshion_support/LuaSimpleAudioEngine.cpp
|
||||||
|
|
||||||
|
LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../cocos2dx \
|
||||||
|
$(LOCAL_PATH)/../../cocos2dx/platform \
|
||||||
|
$(LOCAL_PATH)/../../cocos2dx/include \
|
||||||
|
$(LOCAL_PATH)/../../cocos2dx/lua_support \
|
||||||
|
$(LOCAL_PATH)/../../CocosDenshion/include \
|
||||||
|
$(LOCAL_PATH)/../../lua/lua \
|
||||||
|
$(LOCAL_PATH)/../../lua/tolua \
|
||||||
|
$(LOCAL_PATH)/../../lua/cocos2dx_support \
|
||||||
|
$(LOCAL_PATH)/../../lua/CocosDenshion_support
|
||||||
|
|
||||||
|
LOCAL_LDLIBS := -L$(call host-path, $(LOCAL_PATH)/../Android/libs/$(TARGET_ARCH_ABI)) \
|
||||||
|
-L$(call host-path, $(LOCAL_PATH)/../../cocos2dx/platform/third_party/android/libraries/$(TARGET_ARCH_ABI)) -lcurl \
|
||||||
|
-lcocos2d \
|
||||||
|
-lcocosdenshion \
|
||||||
|
-llua
|
||||||
|
|
||||||
|
include $(BUILD_SHARED_LIBRARY)
|
|
@ -24,7 +24,8 @@ using namespace CocosDenshion;
|
||||||
AppDelegate::AppDelegate()
|
AppDelegate::AppDelegate()
|
||||||
:m_pLuaEngine(NULL)
|
:m_pLuaEngine(NULL)
|
||||||
{
|
{
|
||||||
_CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF|_CRTDBG_LEAK_CHECK_DF);
|
// fixed me
|
||||||
|
//_CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF|_CRTDBG_LEAK_CHECK_DF);
|
||||||
}
|
}
|
||||||
|
|
||||||
AppDelegate::~AppDelegate()
|
AppDelegate::~AppDelegate()
|
||||||
|
|
|
@ -97,13 +97,13 @@ animation:addFrame(frame0)
|
||||||
animation:addFrame(frame1)
|
animation:addFrame(frame1)
|
||||||
animation:setDelay(0.5)
|
animation:setDelay(0.5)
|
||||||
animation:setName('wait')
|
animation:setName('wait')
|
||||||
--[[
|
|
||||||
animFrames = cocos2d.CCMutableArray_CCSpriteFrame__:new(2)
|
animFrames = cocos2d.CCMutableArray_CCSpriteFrame__:new(2)
|
||||||
animFrames:addObject(frame0)
|
animFrames:addObject(frame0)
|
||||||
animFrames:addObject(frame1)
|
animFrames:addObject(frame1)
|
||||||
--animation = cocos2d.CCAnimation:animationWithName("wait", 0.5, animFrames)
|
--animation = cocos2d.CCAnimation:animationWithName("wait", 0.5, animFrames)
|
||||||
animation = cocos2d.CCAnimation:animationWithFrames(animFrames,0.5)
|
animation = cocos2d.CCAnimation:animationWithFrames(animFrames,0.5)
|
||||||
--]]
|
|
||||||
|
|
||||||
animation = cocos2d.CCAnimation:animationWithFrames(animFrames, 0.5)
|
animation = cocos2d.CCAnimation:animationWithFrames(animFrames, 0.5)
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# set params
|
# set params
|
||||||
ANDROID_NDK_ROOT=/cygdrive/e/android-ndk-r5
|
ANDROID_NDK_ROOT=/cygdrive/d/programe/android/ndk/android-ndk-r6b
|
||||||
COCOS2DX_ROOT=/cygdrive/d/Work7/cocos2d-x
|
COCOS2DX_ROOT=/cygdrive/e/cocos2d-x
|
||||||
|
|
||||||
GAME_ROOT=$COCOS2DX_ROOT/HelloLua
|
GAME_ROOT=$COCOS2DX_ROOT/HelloLua
|
||||||
GAME_ANDROID_ROOT=$GAME_ROOT/android
|
GAME_ANDROID_ROOT=$GAME_ROOT/android
|
||||||
|
|
|
@ -6,6 +6,6 @@ subdirs := $(addprefix $(LOCAL_PATH)/../../../,$(addsuffix /Android.mk, \
|
||||||
CocosDenshion/android \
|
CocosDenshion/android \
|
||||||
lua/proj.android/jni \
|
lua/proj.android/jni \
|
||||||
))
|
))
|
||||||
subdirs += $(LOCAL_PATH)/helloworld/Android.mk
|
subdirs += $(LOCAL_PATH)/../../Classes/Android.mk $(LOCAL_PATH)/helloworld/Android.mk
|
||||||
|
|
||||||
include $(subdirs)
|
include $(subdirs)
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
# it is needed for ndk-r5
|
# it is needed for ndk-r5
|
||||||
APP_STL := stlport_static
|
APP_STL := stlport_static
|
||||||
APP_MODULES := cocos2d cocosdenshion lua game
|
|
||||||
|
APP_MODULES := cocos2d cocosdenshion lua game_logic game
|
|
@ -2,32 +2,16 @@ LOCAL_PATH := $(call my-dir)
|
||||||
include $(CLEAR_VARS)
|
include $(CLEAR_VARS)
|
||||||
LOCAL_MODULE := game
|
LOCAL_MODULE := game
|
||||||
|
|
||||||
LOCAL_SRC_FILES := main.cpp \
|
LOCAL_SRC_FILES := main.cpp
|
||||||
../../../Classes/AppDelegate.cpp \
|
|
||||||
../../../../lua/cocos2dx_support/LuaEngineImpl.cpp \
|
|
||||||
../../../../lua/cocos2dx_support/Cocos2dxLuaLoader.cpp \
|
|
||||||
../../../../lua/cocos2dx_support/LuaCocos2d.cpp \
|
|
||||||
../../../../lua/cocos2dx_support/LuaEngine.cpp \
|
|
||||||
../../../../lua/CocosDenshion_support/LuaSimpleAudioEngine.cpp
|
|
||||||
|
|
||||||
LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../../../cocos2dx \
|
LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../../../cocos2dx \
|
||||||
$(LOCAL_PATH)/../../../../cocos2dx/platform \
|
$(LOCAL_PATH)/../../../../cocos2dx/platform \
|
||||||
$(LOCAL_PATH)/../../../../cocos2dx/include \
|
$(LOCAL_PATH)/../../../../cocos2dx/include \
|
||||||
$(LOCAL_PATH)/../../../../cocos2dx/lua_support \
|
|
||||||
$(LOCAL_PATH)/../../../../CocosDenshion/include \
|
|
||||||
$(LOCAL_PATH)/../../../Classes \
|
|
||||||
$(LOCAL_PATH)/../../../../lua/lua \
|
|
||||||
$(LOCAL_PATH)/../../../../lua/tolua \
|
|
||||||
$(LOCAL_PATH)/../../../../lua/cocos2dx_support \
|
$(LOCAL_PATH)/../../../../lua/cocos2dx_support \
|
||||||
$(LOCAL_PATH)/../../../../lua/CocosDenshion_support
|
$(LOCAL_PATH)/../../../Classes
|
||||||
# it is used for ndk-r5
|
|
||||||
# if you build with ndk-r4, comment it
|
LOCAL_LDLIBS := -L$(call host-path, $(LOCAL_PATH)/../../libs/$(TARGET_ARCH_ABI)) \
|
||||||
# because the new Windows toolchain doesn't support Cygwin's drive
|
|
||||||
# mapping (i.e /cygdrive/c/ instead of C:/)
|
|
||||||
LOCAL_LDLIBS := -L$(call host-path, $(LOCAL_PATH)/../../libs/armeabi) \
|
|
||||||
-L$(call host-path, $(LOCAL_PATH)/../../../../cocos2dx/platform/third_party/android/libraries) -lcurl \
|
|
||||||
-lcocos2d \
|
-lcocos2d \
|
||||||
-lcocosdenshion \
|
-lgame_logic
|
||||||
-llua
|
|
||||||
|
|
||||||
include $(BUILD_SHARED_LIBRARY)
|
include $(BUILD_SHARED_LIBRARY)
|
|
@ -60,6 +60,7 @@ public class HelloLua extends Cocos2dxActivity{
|
||||||
System.loadLibrary("cocos2d");
|
System.loadLibrary("cocos2d");
|
||||||
System.loadLibrary("cocosdenshion");
|
System.loadLibrary("cocosdenshion");
|
||||||
System.loadLibrary("lua");
|
System.loadLibrary("lua");
|
||||||
|
System.loadLibrary("game_logic");
|
||||||
System.loadLibrary("game");
|
System.loadLibrary("game");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,18 @@
|
||||||
|
LOCAL_PATH := $(call my-dir)
|
||||||
|
include $(CLEAR_VARS)
|
||||||
|
LOCAL_MODULE := game_logic
|
||||||
|
|
||||||
|
LOCAL_SRC_FILES := AppDelegate.cpp \
|
||||||
|
HelloWorldScene.cpp
|
||||||
|
|
||||||
|
LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../cocos2dx \
|
||||||
|
$(LOCAL_PATH)/../../cocos2dx/platform \
|
||||||
|
$(LOCAL_PATH)/../../cocos2dx/include \
|
||||||
|
$(LOCAL_PATH)/../../CocosDenshion/include \
|
||||||
|
$(LOCAL_PATH)/../../cocos2dx/lua_support
|
||||||
|
|
||||||
|
LOCAL_LDLIBS := -L$(call host-path, $(LOCAL_PATH)/../android/libs/$(TARGET_ARCH_ABI)) \
|
||||||
|
-lcocos2d -lcocosdenshion \
|
||||||
|
-L$(call host-path, $(LOCAL_PATH)/../../cocos2dx/platform/third_party/android/libraries/$(TARGET_ARCH_ABI)) -lcurl
|
||||||
|
|
||||||
|
include $(BUILD_SHARED_LIBRARY)
|
|
@ -1,17 +0,0 @@
|
||||||
# This file is used to override default values used by the Ant build system.
|
|
||||||
#
|
|
||||||
# This file must be checked in Version Control Systems, as it is
|
|
||||||
# integral to the build system of your project.
|
|
||||||
|
|
||||||
# This file is only used by the Ant script.
|
|
||||||
|
|
||||||
# You can use this to override default values such as
|
|
||||||
# 'source.dir' for the location of your java source folder and
|
|
||||||
# 'out.dir' for the location of your output folder.
|
|
||||||
|
|
||||||
# You can also use it define how the release builds are signed by declaring
|
|
||||||
# the following properties:
|
|
||||||
# 'key.store' for the location of your keystore and
|
|
||||||
# 'key.alias' for the name of the key to use.
|
|
||||||
# The password will be asked during the build when you use the 'release' target.
|
|
||||||
|
|
|
@ -1,79 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<project name="HelloWorld" default="help">
|
|
||||||
|
|
||||||
<!-- The local.properties file is created and updated by the 'android'
|
|
||||||
tool.
|
|
||||||
It contains the path to the SDK. It should *NOT* be checked into
|
|
||||||
Version Control Systems. -->
|
|
||||||
<property file="local.properties" />
|
|
||||||
|
|
||||||
<!-- The build.properties file can be created by you and is never touched
|
|
||||||
by the 'android' tool. This is the place to change some of the
|
|
||||||
default property values used by the Ant rules.
|
|
||||||
Here are some properties you may want to change/update:
|
|
||||||
|
|
||||||
source.dir
|
|
||||||
The name of the source directory. Default is 'src'.
|
|
||||||
out.dir
|
|
||||||
The name of the output directory. Default is 'bin'.
|
|
||||||
|
|
||||||
Properties related to the SDK location or the project target should
|
|
||||||
be updated using the 'android' tool with the 'update' action.
|
|
||||||
|
|
||||||
This file is an integral part of the build system for your
|
|
||||||
application and should be checked into Version Control Systems.
|
|
||||||
|
|
||||||
-->
|
|
||||||
<property file="build.properties" />
|
|
||||||
|
|
||||||
<!-- The default.properties file is created and updated by the 'android'
|
|
||||||
tool, as well as ADT.
|
|
||||||
This file is an integral part of the build system for your
|
|
||||||
application and should be checked into Version Control Systems. -->
|
|
||||||
<property file="default.properties" />
|
|
||||||
|
|
||||||
|
|
||||||
<!-- Required pre-setup import -->
|
|
||||||
<import file="${sdk.dir}/tools/ant/pre_setup.xml" />
|
|
||||||
|
|
||||||
|
|
||||||
<!-- extension targets. Uncomment the ones where you want to do custom work
|
|
||||||
in between standard targets -->
|
|
||||||
<!--
|
|
||||||
<target name="-pre-build">
|
|
||||||
</target>
|
|
||||||
<target name="-pre-compile">
|
|
||||||
</target>
|
|
||||||
|
|
||||||
[This is typically used for code obfuscation.
|
|
||||||
Compiled code location: ${out.classes.absolute.dir}
|
|
||||||
If this is not done in place, override ${out.dex.input.absolute.dir}]
|
|
||||||
<target name="-post-compile">
|
|
||||||
</target>
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!-- Execute the Android Setup task that will setup some properties
|
|
||||||
specific to the target, and import the build rules files.
|
|
||||||
|
|
||||||
The rules file is imported from
|
|
||||||
<SDK>/tools/ant/
|
|
||||||
Depending on the project type it can be either:
|
|
||||||
- main_rules.xml
|
|
||||||
- lib_rules.xml
|
|
||||||
- test_rules.xml
|
|
||||||
|
|
||||||
To customize existing targets, there are two options:
|
|
||||||
- Customize only one target:
|
|
||||||
- copy/paste the target into this file, *before* the
|
|
||||||
<setup> task.
|
|
||||||
- customize it to your needs.
|
|
||||||
- Customize the whole script.
|
|
||||||
- copy/paste the content of the rules files (minus the top node)
|
|
||||||
into this file, *after* the <setup> task
|
|
||||||
- disable the import of the rules by changing the setup task
|
|
||||||
below to <setup import="false" />.
|
|
||||||
- customize to your needs.
|
|
||||||
-->
|
|
||||||
<setup />
|
|
||||||
|
|
||||||
</project>
|
|
|
@ -1,5 +1,5 @@
|
||||||
# set params
|
# set params
|
||||||
ANDROID_NDK_ROOT=/cygdrive/d/programe/android/ndk/android-ndk-r6
|
ANDROID_NDK_ROOT=/cygdrive/d/programe/android/ndk/android-ndk-r6b
|
||||||
COCOS2DX_ROOT=/cygdrive/e/cocos2d-x
|
COCOS2DX_ROOT=/cygdrive/e/cocos2d-x
|
||||||
HELLOWORLD_ROOT=$COCOS2DX_ROOT/HelloWorld/android
|
HELLOWORLD_ROOT=$COCOS2DX_ROOT/HelloWorld/android
|
||||||
|
|
||||||
|
|
|
@ -5,6 +5,6 @@ subdirs := $(addprefix $(LOCAL_PATH)/../../../,$(addsuffix /Android.mk, \
|
||||||
cocos2dx \
|
cocos2dx \
|
||||||
CocosDenshion/android \
|
CocosDenshion/android \
|
||||||
))
|
))
|
||||||
subdirs += $(LOCAL_PATH)/helloworld/Android.mk
|
subdirs += $(LOCAL_PATH)/../../Classes/Android.mk $(LOCAL_PATH)/helloworld/Android.mk
|
||||||
|
|
||||||
include $(subdirs)
|
include $(subdirs)
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
# it is needed for ndk-r5
|
# it is needed for ndk-r5
|
||||||
APP_STL := stlport_static
|
APP_STL := stlport_static
|
||||||
|
|
||||||
APP_MODULES := cocos2d cocosdenshion helloworld
|
APP_ABI := armeabi armeabi-v7a
|
||||||
|
|
||||||
|
APP_MODULES := cocos2d cocosdenshion game_logic helloworld
|
|
@ -2,23 +2,14 @@ LOCAL_PATH := $(call my-dir)
|
||||||
include $(CLEAR_VARS)
|
include $(CLEAR_VARS)
|
||||||
LOCAL_MODULE := helloworld
|
LOCAL_MODULE := helloworld
|
||||||
|
|
||||||
LOCAL_SRC_FILES := main.cpp \
|
LOCAL_SRC_FILES := main.cpp
|
||||||
../../../Classes/AppDelegate.cpp \
|
|
||||||
../../../Classes/HelloWorldScene.cpp
|
|
||||||
|
|
||||||
LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../../../cocos2dx \
|
LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../../../cocos2dx \
|
||||||
$(LOCAL_PATH)/../../../../cocos2dx/platform \
|
$(LOCAL_PATH)/../../../../cocos2dx/platform \
|
||||||
$(LOCAL_PATH)/../../../../cocos2dx/include \
|
$(LOCAL_PATH)/../../../../cocos2dx/include \
|
||||||
$(LOCAL_PATH)/../../../../cocos2dx/lua_support \
|
|
||||||
$(LOCAL_PATH)/../../../../CocosDenshion/include \
|
|
||||||
$(LOCAL_PATH)/../../../Classes
|
$(LOCAL_PATH)/../../../Classes
|
||||||
|
|
||||||
# it is used for ndk-r5
|
LOCAL_LDLIBS := -L$(call host-path, $(LOCAL_PATH)/../../libs/$(TARGET_ARCH_ABI)) \
|
||||||
# if you build with ndk-r4, comment it
|
-lcocos2d -llog -lgame_logic
|
||||||
# because the new Windows toolchain doesn't support Cygwin's drive
|
|
||||||
# mapping (i.e /cygdrive/c/ instead of C:/)
|
|
||||||
LOCAL_LDLIBS := -L$(call host-path, $(LOCAL_PATH)/../../libs/armeabi) \
|
|
||||||
-lcocos2d -llog -lcocosdenshion \
|
|
||||||
-L$(call host-path, $(LOCAL_PATH)/../../../../cocos2dx/platform/third_party/android/libraries) -lcurl
|
|
||||||
|
|
||||||
include $(BUILD_SHARED_LIBRARY)
|
include $(BUILD_SHARED_LIBRARY)
|
|
@ -1,10 +0,0 @@
|
||||||
# This file is automatically generated by Android Tools.
|
|
||||||
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
|
|
||||||
#
|
|
||||||
# This file must *NOT* be checked in Version Control Systems,
|
|
||||||
# as it contains information specific to your local configuration.
|
|
||||||
|
|
||||||
# location of the SDK. This is only used by Ant
|
|
||||||
# For customization when using a Version Control System, please read the
|
|
||||||
# header note.
|
|
||||||
sdk.dir=/home/laschweinski/android/android-sdk-linux_86
|
|
|
@ -1,40 +0,0 @@
|
||||||
-optimizationpasses 5
|
|
||||||
-dontusemixedcaseclassnames
|
|
||||||
-dontskipnonpubliclibraryclasses
|
|
||||||
-dontpreverify
|
|
||||||
-verbose
|
|
||||||
-optimizations !code/simplification/arithmetic,!field/*,!class/merging/*
|
|
||||||
|
|
||||||
-keep public class * extends android.app.Activity
|
|
||||||
-keep public class * extends android.app.Application
|
|
||||||
-keep public class * extends android.app.Service
|
|
||||||
-keep public class * extends android.content.BroadcastReceiver
|
|
||||||
-keep public class * extends android.content.ContentProvider
|
|
||||||
-keep public class * extends android.app.backup.BackupAgentHelper
|
|
||||||
-keep public class * extends android.preference.Preference
|
|
||||||
-keep public class com.android.vending.licensing.ILicensingService
|
|
||||||
|
|
||||||
-keepclasseswithmembernames class * {
|
|
||||||
native <methods>;
|
|
||||||
}
|
|
||||||
|
|
||||||
-keepclasseswithmembers class * {
|
|
||||||
public <init>(android.content.Context, android.util.AttributeSet);
|
|
||||||
}
|
|
||||||
|
|
||||||
-keepclasseswithmembers class * {
|
|
||||||
public <init>(android.content.Context, android.util.AttributeSet, int);
|
|
||||||
}
|
|
||||||
|
|
||||||
-keepclassmembers class * extends android.app.Activity {
|
|
||||||
public void *(android.view.View);
|
|
||||||
}
|
|
||||||
|
|
||||||
-keepclassmembers enum * {
|
|
||||||
public static **[] values();
|
|
||||||
public static ** valueOf(java.lang.String);
|
|
||||||
}
|
|
||||||
|
|
||||||
-keep class * implements android.os.Parcelable {
|
|
||||||
public static final android.os.Parcelable$Creator *;
|
|
||||||
}
|
|
|
@ -58,6 +58,7 @@ public class ApplicationDemo extends Cocos2dxActivity{
|
||||||
static {
|
static {
|
||||||
System.loadLibrary("cocos2d");
|
System.loadLibrary("cocos2d");
|
||||||
System.loadLibrary("cocosdenshion");
|
System.loadLibrary("cocosdenshion");
|
||||||
|
System.loadLibrary("game_logic");
|
||||||
System.loadLibrary("helloworld");
|
System.loadLibrary("helloworld");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -104,21 +104,15 @@ tileMap_parallax_nodes/CCTileMapAtlas.cpp \
|
||||||
touch_dispatcher/CCTouchDispatcher.cpp \
|
touch_dispatcher/CCTouchDispatcher.cpp \
|
||||||
touch_dispatcher/CCTouchHandler.cpp
|
touch_dispatcher/CCTouchHandler.cpp
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
LOCAL_C_INCLUDES := $(LOCAL_PATH)/ \
|
LOCAL_C_INCLUDES := $(LOCAL_PATH)/ \
|
||||||
$(LOCAL_PATH)/include \
|
$(LOCAL_PATH)/include \
|
||||||
$(LOCAL_PATH)/platform \
|
$(LOCAL_PATH)/platform \
|
||||||
$(LOCAL_PATH)/platform/third_party/android/iconv \
|
$(LOCAL_PATH)/platform/third_party/android/iconv \
|
||||||
$(LOCAL_PATH)/platform/third_party/android/libpng \
|
$(LOCAL_PATH)/platform/third_party/android/libpng \
|
||||||
$(LOCAL_PATH)/platform/third_party/android/libxml2 \
|
$(LOCAL_PATH)/platform/third_party/android/libxml2 \
|
||||||
$(LOCAL_PATH)/platform/third_party/android/libjpeg
|
$(LOCAL_PATH)/platform/third_party/android/libjpeg
|
||||||
|
|
||||||
# it is used for ndk-r5
|
LOCAL_LDLIBS := -L$(call host-path, $(LOCAL_PATH)/platform/third_party/android/libraries/$(TARGET_ARCH_ABI)) \
|
||||||
# if you build with ndk-r4, comment it
|
|
||||||
# because the new Windows toolchain doesn't support Cygwin's drive
|
|
||||||
# mapping (i.e /cygdrive/c/ instead of C:/)
|
|
||||||
LOCAL_LDLIBS := -L$(call host-path, $(LOCAL_PATH)/platform/third_party/android/libraries) \
|
|
||||||
-lGLESv1_CM -llog -lz \
|
-lGLESv1_CM -llog -lz \
|
||||||
-lpng \
|
-lpng \
|
||||||
-lxml2 \
|
-lxml2 \
|
||||||
|
|
1
cocos2dx/platform/third_party/android/libraries/armeabi-v7a/libcurl.a.REMOVED.git-id
vendored
Normal file
1
cocos2dx/platform/third_party/android/libraries/armeabi-v7a/libcurl.a.REMOVED.git-id
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
89c49d395ece44cf2d891cd5c2a84f819e229d30
|
1
cocos2dx/platform/third_party/android/libraries/armeabi-v7a/libiconv.a.REMOVED.git-id
vendored
Normal file
1
cocos2dx/platform/third_party/android/libraries/armeabi-v7a/libiconv.a.REMOVED.git-id
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
ed7341a4fe082dfc3323ab2808729baf6faf72a6
|
1
cocos2dx/platform/third_party/android/libraries/armeabi-v7a/libjpeg.a.REMOVED.git-id
vendored
Normal file
1
cocos2dx/platform/third_party/android/libraries/armeabi-v7a/libjpeg.a.REMOVED.git-id
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
09011474ff4df140a34e82e7cdb5c86cf9a522bc
|
1
cocos2dx/platform/third_party/android/libraries/armeabi-v7a/libpng.a.REMOVED.git-id
vendored
Normal file
1
cocos2dx/platform/third_party/android/libraries/armeabi-v7a/libpng.a.REMOVED.git-id
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
d3c4c2e8858fd0eb83f2f4f8e501d10394836add
|
1
cocos2dx/platform/third_party/android/libraries/armeabi-v7a/libxml2.a.REMOVED.git-id
vendored
Normal file
1
cocos2dx/platform/third_party/android/libraries/armeabi-v7a/libxml2.a.REMOVED.git-id
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
9666bcac0a33d1dcfd5361266eca55f1bace1daf
|
|
@ -0,0 +1 @@
|
||||||
|
fca1b81187a22728c6c352f121ac03f8abf2ae75
|
1
cocos2dx/platform/third_party/android/libraries/x86/libiconv.a.REMOVED.git-id
vendored
Normal file
1
cocos2dx/platform/third_party/android/libraries/x86/libiconv.a.REMOVED.git-id
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
f8727a9fe8bb39473706cd3b98cb9a12a4304c6f
|
|
@ -0,0 +1 @@
|
||||||
|
42f26e695ffe165b38102fd3b9bd0e2be617bf2b
|
|
@ -0,0 +1 @@
|
||||||
|
e3e0e06dbb367746764f6b1146884f6ef75bb5a2
|
|
@ -0,0 +1 @@
|
||||||
|
3100e9f83cf078971b4b48b757bf5ebac2d02d37
|
|
@ -1 +1 @@
|
||||||
dd5941759f1e46eade02974d86ba7cbe12e19a17
|
951c67fac55daba4ee275b27a56bc63831d0ac44
|
|
@ -0,0 +1,108 @@
|
||||||
|
LOCAL_PATH := $(call my-dir)
|
||||||
|
include $(CLEAR_VARS)
|
||||||
|
LOCAL_MODULE := game_logic
|
||||||
|
|
||||||
|
LOCAL_SRC_FILES := \
|
||||||
|
tests/AccelerometerTest/AccelerometerTest.cpp \
|
||||||
|
tests/ActionManagerTest/ActionManagerTest.cpp \
|
||||||
|
tests/ActionsTest/ActionsTest.cpp \
|
||||||
|
tests/Box2DTest/Box2dTest.cpp \
|
||||||
|
tests/Box2DTestBed/Box2dView.cpp \
|
||||||
|
tests/Box2DTestBed/GLES-Render.cpp \
|
||||||
|
tests/Box2DTestBed/Test.cpp \
|
||||||
|
tests/Box2DTestBed/TestEntries.cpp \
|
||||||
|
tests/BugsTest/Bug-1159.cpp \
|
||||||
|
tests/BugsTest/Bug-1174.cpp \
|
||||||
|
tests/BugsTest/Bug-350.cpp \
|
||||||
|
tests/BugsTest/Bug-422.cpp \
|
||||||
|
tests/BugsTest/Bug-624.cpp \
|
||||||
|
tests/BugsTest/Bug-886.cpp \
|
||||||
|
tests/BugsTest/Bug-899.cpp \
|
||||||
|
tests/BugsTest/Bug-914.cpp \
|
||||||
|
tests/BugsTest/BugsTest.cpp \
|
||||||
|
tests/BugsTest/Bug-458/Bug-458.cpp \
|
||||||
|
tests/BugsTest/Bug-458/QuestionContainerSprite.cpp \
|
||||||
|
tests/ChipmunkTest/Bounce.cpp \
|
||||||
|
tests/ChipmunkTest/Joints.cpp \
|
||||||
|
tests/ChipmunkTest/LogoSmash.cpp \
|
||||||
|
tests/ChipmunkTest/MagnetsElectric.cpp \
|
||||||
|
tests/ChipmunkTest/OneWay.cpp \
|
||||||
|
tests/ChipmunkTest/Planet.cpp \
|
||||||
|
tests/ChipmunkTest/Player.cpp \
|
||||||
|
tests/ChipmunkTest/Plink.cpp \
|
||||||
|
tests/ChipmunkTest/Pump.cpp \
|
||||||
|
tests/ChipmunkTest/PyramidStack.cpp \
|
||||||
|
tests/ChipmunkTest/PyramidTopple.cpp \
|
||||||
|
tests/ChipmunkTest/Query.cpp \
|
||||||
|
tests/ChipmunkTest/Sensors.cpp \
|
||||||
|
tests/ChipmunkTest/Simple.cpp \
|
||||||
|
tests/ChipmunkTest/Springies.cpp \
|
||||||
|
tests/ChipmunkTest/Tank.cpp \
|
||||||
|
tests/ChipmunkTest/TheoJansen.cpp \
|
||||||
|
tests/ChipmunkTest/Tumble.cpp \
|
||||||
|
tests/ChipmunkTest/UnsafeOps.cpp \
|
||||||
|
tests/ChipmunkTest/cocos2dChipmunkDemo.cpp \
|
||||||
|
tests/ChipmunkTest/drawSpace.cpp \
|
||||||
|
tests/ClickAndMoveTest/ClickAndMoveTest.cpp \
|
||||||
|
tests/CocosDenshionTest/CocosDenshionTest.cpp \
|
||||||
|
tests/CocosNodeTest/CocosNodeTest.cpp \
|
||||||
|
tests/CurlTest/CurlTest.cpp \
|
||||||
|
tests/CurrentLanguageTest/CurrentLanguageTest.cpp \
|
||||||
|
tests/DirectorTest/DirectorTest.cpp \
|
||||||
|
tests/DrawPrimitivesTest/DrawPrimitivesTest.cpp \
|
||||||
|
tests/EaseActionsTest/EaseActionsTest.cpp \
|
||||||
|
tests/EffectsAdvancedTest/EffectsAdvancedTest.cpp \
|
||||||
|
tests/EffectsTest/EffectsTest.cpp \
|
||||||
|
tests/FontTest/FontTest.cpp \
|
||||||
|
tests/HiResTest/HiResTest.cpp \
|
||||||
|
tests/IntervalTest/IntervalTest.cpp \
|
||||||
|
tests/KeypadTest/KeypadTest.cpp \
|
||||||
|
tests/LabelTest/LabelTest.cpp \
|
||||||
|
tests/LayerTest/LayerTest.cpp \
|
||||||
|
tests/TextInputTest/TextInputTest.cpp \
|
||||||
|
tests/MenuTest/MenuTest.cpp \
|
||||||
|
tests/MotionStreakTest/MotionStreakTest.cpp \
|
||||||
|
tests/ParallaxTest/ParallaxTest.cpp \
|
||||||
|
tests/ParticleTest/ParticleTest.cpp \
|
||||||
|
tests/PerformanceTest/PerformanceNodeChildrenTest.cpp \
|
||||||
|
tests/PerformanceTest/PerformanceParticleTest.cpp \
|
||||||
|
tests/PerformanceTest/PerformanceSpriteTest.cpp \
|
||||||
|
tests/PerformanceTest/PerformanceTest.cpp \
|
||||||
|
tests/PerformanceTest/PerformanceTextureTest.cpp \
|
||||||
|
tests/PerformanceTest/PerformanceTouchesTest.cpp \
|
||||||
|
tests/ProgressActionsTest/ProgressActionsTest.cpp \
|
||||||
|
tests/RenderTextureTest/RenderTextureTest.cpp \
|
||||||
|
tests/RotateWorldTest/RotateWorldTest.cpp \
|
||||||
|
tests/SceneTest/SceneTest.cpp \
|
||||||
|
tests/SchedulerTest/SchedulerTest.cpp \
|
||||||
|
tests/SpriteTest/SpriteTest.cpp \
|
||||||
|
tests/TextureCacheTest/TextureCacheTest.cpp \
|
||||||
|
tests/Texture2dTest/Texture2dTest.cpp \
|
||||||
|
tests/TileMapTest/TileMapTest.cpp \
|
||||||
|
tests/TouchesTest/Ball.cpp \
|
||||||
|
tests/TouchesTest/Paddle.cpp \
|
||||||
|
tests/TouchesTest/TouchesTest.cpp \
|
||||||
|
tests/TransitionsTest/TransitionsTest.cpp \
|
||||||
|
tests/UserDefaultTest/UserDefaultTest.cpp \
|
||||||
|
tests/ZwoptexTest/ZwoptexTest.cpp \
|
||||||
|
tests/controller.cpp \
|
||||||
|
tests/testBasic.cpp \
|
||||||
|
AppDelegate.cpp
|
||||||
|
|
||||||
|
LOCAL_C_INCLUDES := $(LOCAL_PATH)/../cocos2dx \
|
||||||
|
$(LOCAL_PATH)/../cocos2dx/include \
|
||||||
|
$(LOCAL_PATH)/../cocos2dx/platform \
|
||||||
|
$(LOCAL_PATH)/../cocos2dx/platform/third_party/android/ \
|
||||||
|
$(LOCAL_PATH)/../chipmunk/include/chipmunk \
|
||||||
|
$(LOCAL_PATH)/../CocosDenshion/include \
|
||||||
|
$(LOCAL_PATH)/..
|
||||||
|
|
||||||
|
|
||||||
|
LOCAL_LDLIBS := -L$(call host-path, $(LOCAL_PATH)/test.android/libs/$(TARGET_ARCH_ABI)) \
|
||||||
|
-lGLESv1_CM \
|
||||||
|
-lcocos2d -llog -lcocosdenshion \
|
||||||
|
-lbox2d -lchipmunk \
|
||||||
|
-L$(call host-path, $(LOCAL_PATH)/../cocos2dx/platform/third_party/android/libraries/$(TARGET_ARCH_ABI)) -lcurl
|
||||||
|
|
||||||
|
include $(BUILD_SHARED_LIBRARY)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# set params
|
# set params
|
||||||
ANDROID_NDK_ROOT=/cygdrive/d/programe/android/ndk/android-ndk-r6
|
ANDROID_NDK_ROOT=/cygdrive/d/programe/android/ndk/android-ndk-r6b
|
||||||
COCOS2DX_ROOT=/cygdrive/e/cocos2d-x
|
COCOS2DX_ROOT=/cygdrive/e/cocos2d-x
|
||||||
TESTS_ROOT=$COCOS2DX_ROOT/tests/test.android
|
TESTS_ROOT=$COCOS2DX_ROOT/tests/test.android
|
||||||
|
|
||||||
|
|
|
@ -4,10 +4,10 @@ include $(CLEAR_VARS)
|
||||||
subdirs := $(addprefix $(LOCAL_PATH)/../../../,$(addsuffix /Android.mk, \
|
subdirs := $(addprefix $(LOCAL_PATH)/../../../,$(addsuffix /Android.mk, \
|
||||||
Box2D \
|
Box2D \
|
||||||
chipmunk \
|
chipmunk \
|
||||||
cocos2dx \
|
cocos2dx \
|
||||||
CocosDenshion/android \
|
CocosDenshion/android \
|
||||||
))
|
))
|
||||||
|
|
||||||
subdirs += $(LOCAL_PATH)/tests/Android.mk
|
subdirs += $(LOCAL_PATH)/../../Android.mk $(LOCAL_PATH)/tests/Android.mk
|
||||||
|
|
||||||
include $(subdirs)
|
include $(subdirs)
|
||||||
|
|
|
@ -2,4 +2,4 @@
|
||||||
APP_STL := stlport_static
|
APP_STL := stlport_static
|
||||||
APP_ABI := armeabi armeabi-v7a
|
APP_ABI := armeabi armeabi-v7a
|
||||||
|
|
||||||
APP_MODULES := cocos2d cocosdenshion chipmunk box2d tests
|
APP_MODULES := cocos2d cocosdenshion chipmunk box2d game_logic tests
|
||||||
|
|
|
@ -2,113 +2,17 @@ LOCAL_PATH := $(call my-dir)
|
||||||
include $(CLEAR_VARS)
|
include $(CLEAR_VARS)
|
||||||
LOCAL_MODULE := tests
|
LOCAL_MODULE := tests
|
||||||
|
|
||||||
LOCAL_SRC_FILES := main.cpp \
|
LOCAL_SRC_FILES := main.cpp
|
||||||
../../../tests/AccelerometerTest/AccelerometerTest.cpp \
|
|
||||||
../../../tests/ActionManagerTest/ActionManagerTest.cpp \
|
|
||||||
../../../tests/ActionsTest/ActionsTest.cpp \
|
|
||||||
../../../tests/Box2DTest/Box2dTest.cpp \
|
|
||||||
../../../tests/Box2DTestBed/Box2dView.cpp \
|
|
||||||
../../../tests/Box2DTestBed/GLES-Render.cpp \
|
|
||||||
../../../tests/Box2DTestBed/Test.cpp \
|
|
||||||
../../../tests/Box2DTestBed/TestEntries.cpp \
|
|
||||||
../../../tests/BugsTest/Bug-1159.cpp \
|
|
||||||
../../../tests/BugsTest/Bug-1174.cpp \
|
|
||||||
../../../tests/BugsTest/Bug-350.cpp \
|
|
||||||
../../../tests/BugsTest/Bug-422.cpp \
|
|
||||||
../../../tests/BugsTest/Bug-624.cpp \
|
|
||||||
../../../tests/BugsTest/Bug-886.cpp \
|
|
||||||
../../../tests/BugsTest/Bug-899.cpp \
|
|
||||||
../../../tests/BugsTest/Bug-914.cpp \
|
|
||||||
../../../tests/BugsTest/BugsTest.cpp \
|
|
||||||
../../../tests/BugsTest/Bug-458/Bug-458.cpp \
|
|
||||||
../../../tests/BugsTest/Bug-458/QuestionContainerSprite.cpp \
|
|
||||||
../../../tests/ChipmunkTest/Bounce.cpp \
|
|
||||||
../../../tests/ChipmunkTest/Joints.cpp \
|
|
||||||
../../../tests/ChipmunkTest/LogoSmash.cpp \
|
|
||||||
../../../tests/ChipmunkTest/MagnetsElectric.cpp \
|
|
||||||
../../../tests/ChipmunkTest/OneWay.cpp \
|
|
||||||
../../../tests/ChipmunkTest/Planet.cpp \
|
|
||||||
../../../tests/ChipmunkTest/Player.cpp \
|
|
||||||
../../../tests/ChipmunkTest/Plink.cpp \
|
|
||||||
../../../tests/ChipmunkTest/Pump.cpp \
|
|
||||||
../../../tests/ChipmunkTest/PyramidStack.cpp \
|
|
||||||
../../../tests/ChipmunkTest/PyramidTopple.cpp \
|
|
||||||
../../../tests/ChipmunkTest/Query.cpp \
|
|
||||||
../../../tests/ChipmunkTest/Sensors.cpp \
|
|
||||||
../../../tests/ChipmunkTest/Simple.cpp \
|
|
||||||
../../../tests/ChipmunkTest/Springies.cpp \
|
|
||||||
../../../tests/ChipmunkTest/Tank.cpp \
|
|
||||||
../../../tests/ChipmunkTest/TheoJansen.cpp \
|
|
||||||
../../../tests/ChipmunkTest/Tumble.cpp \
|
|
||||||
../../../tests/ChipmunkTest/UnsafeOps.cpp \
|
|
||||||
../../../tests/ChipmunkTest/cocos2dChipmunkDemo.cpp \
|
|
||||||
../../../tests/ChipmunkTest/drawSpace.cpp \
|
|
||||||
../../../tests/ClickAndMoveTest/ClickAndMoveTest.cpp \
|
|
||||||
../../../tests/CocosDenshionTest/CocosDenshionTest.cpp \
|
|
||||||
../../../tests/CocosNodeTest/CocosNodeTest.cpp \
|
|
||||||
../../../tests/CurlTest/CurlTest.cpp \
|
|
||||||
../../../tests/CurrentLanguageTest/CurrentLanguageTest.cpp \
|
|
||||||
../../../tests/DirectorTest/DirectorTest.cpp \
|
|
||||||
../../../tests/DrawPrimitivesTest/DrawPrimitivesTest.cpp \
|
|
||||||
../../../tests/EaseActionsTest/EaseActionsTest.cpp \
|
|
||||||
../../../tests/EffectsAdvancedTest/EffectsAdvancedTest.cpp \
|
|
||||||
../../../tests/EffectsTest/EffectsTest.cpp \
|
|
||||||
../../../tests/FontTest/FontTest.cpp \
|
|
||||||
../../../tests/HiResTest/HiResTest.cpp \
|
|
||||||
../../../tests/IntervalTest/IntervalTest.cpp \
|
|
||||||
../../../tests/KeypadTest/KeypadTest.cpp \
|
|
||||||
../../../tests/LabelTest/LabelTest.cpp \
|
|
||||||
../../../tests/LayerTest/LayerTest.cpp \
|
|
||||||
../../../tests/TextInputTest/TextInputTest.cpp \
|
|
||||||
../../../tests/MenuTest/MenuTest.cpp \
|
|
||||||
../../../tests/MotionStreakTest/MotionStreakTest.cpp \
|
|
||||||
../../../tests/ParallaxTest/ParallaxTest.cpp \
|
|
||||||
../../../tests/ParticleTest/ParticleTest.cpp \
|
|
||||||
../../../tests/PerformanceTest/PerformanceNodeChildrenTest.cpp \
|
|
||||||
../../../tests/PerformanceTest/PerformanceParticleTest.cpp \
|
|
||||||
../../../tests/PerformanceTest/PerformanceSpriteTest.cpp \
|
|
||||||
../../../tests/PerformanceTest/PerformanceTest.cpp \
|
|
||||||
../../../tests/PerformanceTest/PerformanceTextureTest.cpp \
|
|
||||||
../../../tests/PerformanceTest/PerformanceTouchesTest.cpp \
|
|
||||||
../../../tests/ProgressActionsTest/ProgressActionsTest.cpp \
|
|
||||||
../../../tests/RenderTextureTest/RenderTextureTest.cpp \
|
|
||||||
../../../tests/RotateWorldTest/RotateWorldTest.cpp \
|
|
||||||
../../../tests/SceneTest/SceneTest.cpp \
|
|
||||||
../../../tests/SchedulerTest/SchedulerTest.cpp \
|
|
||||||
../../../tests/SpriteTest/SpriteTest.cpp \
|
|
||||||
../../../tests/TextureCacheTest/TextureCacheTest.cpp \
|
|
||||||
../../../tests/Texture2dTest/Texture2dTest.cpp \
|
|
||||||
../../../tests/TileMapTest/TileMapTest.cpp \
|
|
||||||
../../../tests/TouchesTest/Ball.cpp \
|
|
||||||
../../../tests/TouchesTest/Paddle.cpp \
|
|
||||||
../../../tests/TouchesTest/TouchesTest.cpp \
|
|
||||||
../../../tests/TransitionsTest/TransitionsTest.cpp \
|
|
||||||
../../../tests/UserDefaultTest/UserDefaultTest.cpp \
|
|
||||||
../../../tests/ZwoptexTest/ZwoptexTest.cpp \
|
|
||||||
../../../tests/controller.cpp \
|
|
||||||
../../../tests/testBasic.cpp \
|
|
||||||
../../../AppDelegate.cpp
|
|
||||||
|
|
||||||
LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../../../cocos2dx \
|
LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../../../cocos2dx \
|
||||||
$(LOCAL_PATH)/../../../../cocos2dx/include \
|
$(LOCAL_PATH)/../../../../cocos2dx/platform \
|
||||||
$(LOCAL_PATH)/../../../../cocos2dx/platform \
|
$(LOCAL_PATH)/../../../../cocos2dx/include \
|
||||||
$(LOCAL_PATH)/../../../../cocos2dx/platform/third_party/android/ \
|
$(LOCAL_PATH)/../../..
|
||||||
$(LOCAL_PATH)/../../../tests \
|
|
||||||
$(LOCAL_PATH)/../../../.. \
|
|
||||||
$(LOCAL_PATH)/../../.. \
|
|
||||||
$(LOCAL_PATH)/../../../../chipmunk/include/chipmunk \
|
|
||||||
$(LOCAL_PATH)/../../../../CocosDenshion/include
|
|
||||||
|
|
||||||
|
|
||||||
# it is used for ndk-r5
|
LOCAL_LDLIBS := -L$(call host-path, $(LOCAL_PATH)/../../libs/$(TARGET_ARCH_ABI)) \
|
||||||
# if you build with ndk-r4, comment it
|
|
||||||
# because the new Windows toolchain doesn't support Cygwin's drive
|
|
||||||
# mapping (i.e /cygdrive/c/ instead of C:/)
|
|
||||||
LOCAL_LDLIBS := -L$(call host-path, $(LOCAL_PATH)/../../libs/armeabi) \
|
|
||||||
-lGLESv1_CM \
|
-lGLESv1_CM \
|
||||||
-lcocos2d -llog -lcocosdenshion \
|
-lcocos2d -llog -lgame_logic
|
||||||
-lbox2d -lchipmunk \
|
|
||||||
-L$(call host-path, $(LOCAL_PATH)/../../../../cocos2dx/platform/third_party/android/libraries) -lcurl
|
|
||||||
|
|
||||||
include $(BUILD_SHARED_LIBRARY)
|
include $(BUILD_SHARED_LIBRARY)
|
||||||
|
|
||||||
|
|
|
@ -63,6 +63,7 @@ public class TestsDemo extends Cocos2dxActivity{
|
||||||
System.loadLibrary("chipmunk");
|
System.loadLibrary("chipmunk");
|
||||||
System.loadLibrary("box2d");
|
System.loadLibrary("box2d");
|
||||||
System.loadLibrary("cocos2d");
|
System.loadLibrary("cocos2d");
|
||||||
|
System.loadLibrary("game_logic");
|
||||||
System.loadLibrary("tests");
|
System.loadLibrary("tests");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue