mirror of https://github.com/axmolengine/axmol.git
issue #2905:simple game and assets manager build ok on android
This commit is contained in:
parent
4d28d0ab8b
commit
9c3cac759c
|
@ -36,7 +36,8 @@ LOCAL_C_INCLUDES := $(LOCAL_PATH) \
|
|||
$(LOCAL_PATH)/../../../CocosDenshion/include \
|
||||
$(LOCAL_PATH)/../../auto-generated/js-bindings \
|
||||
$(LOCAL_PATH)/../../../../extensions \
|
||||
$(LOCAL_PATH)/../../../editor-support/cocostudio
|
||||
$(LOCAL_PATH)/../../../editor-support/cocostudio \
|
||||
$(LOCAL_PATH)/../../../editor-support/cocosbuilder
|
||||
|
||||
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH) \
|
||||
$(LOCAL_PATH)/../../auto-generated/js-bindings
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
#include "CCApplication.h"
|
||||
#include "cocos2d.h"
|
||||
#include "AssetsManager/AssetsManager.h"
|
||||
#include "extensions/assets-manager/AssetsManager.h"
|
||||
|
||||
/**
|
||||
@brief The cocos2d Application.
|
||||
|
|
|
@ -68,7 +68,7 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|||
COCOS2DX_ROOT="$DIR/../../../.."
|
||||
APP_ROOT="$DIR/.."
|
||||
APP_ANDROID_ROOT="$DIR"
|
||||
BINDINGS_JS_ROOT="$APP_ROOT/../../../scripting/javascript/bindings/js"
|
||||
BINDINGS_JS_ROOT="$APP_ROOT/../../../cocos/scripting/javascript/script"
|
||||
|
||||
echo "NDK_ROOT = $NDK_ROOT"
|
||||
echo "COCOS2DX_ROOT = $COCOS2DX_ROOT"
|
||||
|
@ -119,5 +119,5 @@ if [[ "$buildexternalsfromsource" ]]; then
|
|||
else
|
||||
echo "Using prebuilt externals"
|
||||
"$NDK_ROOT"/ndk-build -C "$APP_ANDROID_ROOT" $* \
|
||||
"NDK_MODULE_PATH=${COCOS2DX_ROOT}:${COCOS2DX_ROOT}/cocos2dx/platform/third_party/android/prebuilt"
|
||||
"NDK_MODULE_PATH=${COCOS2DX_ROOT}:${COCOS2DX_ROOT}/cocos:${COCOS2DX_ROOT}/external"
|
||||
fi
|
||||
|
|
|
@ -11,18 +11,10 @@ LOCAL_SRC_FILES := hellocpp/main.cpp \
|
|||
|
||||
LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../Classes
|
||||
|
||||
LOCAL_WHOLE_STATIC_LIBRARIES := cocos2dx_static
|
||||
LOCAL_WHOLE_STATIC_LIBRARIES += cocosdenshion_static
|
||||
LOCAL_WHOLE_STATIC_LIBRARIES += spidermonkey_static
|
||||
LOCAL_WHOLE_STATIC_LIBRARIES += scriptingcore-spidermonkey
|
||||
LOCAL_WHOLE_STATIC_LIBRARIES += cocos2dxandroid_static
|
||||
LOCAL_WHOLE_STATIC_LIBRARIES := cocos_jsb_static
|
||||
|
||||
LOCAL_EXPORT_CFLAGS := -DCOCOS2D_DEBUG=2 -DCOCOS2D_JAVASCRIPT
|
||||
|
||||
include $(BUILD_SHARED_LIBRARY)
|
||||
|
||||
$(call import-module,cocos2dx)
|
||||
$(call import-module,audio/android)
|
||||
$(call import-module,scripting/javascript/spidermonkey-android)
|
||||
$(call import-module,scripting/javascript/bindings)
|
||||
$(call import-module,cocos2dx/platform/android)
|
||||
|
|
|
@ -104,4 +104,4 @@ fi
|
|||
echo "Building in debug"
|
||||
|
||||
"$NDK_ROOT"/ndk-build NDK_DEBUG=1 -C "$APP_ANDROID_ROOT" \
|
||||
"NDK_MODULE_PATH=${COCOS2DX_ROOT}:${COCOS2DX_ROOT}/cocos2dx/platform/third_party/android/prebuilt"
|
||||
"NDK_MODULE_PATH=${COCOS2DX_ROOT}:${COCOS2DX_ROOT}/cocos:${COCOS2DX_ROOT}/external"
|
||||
|
|
|
@ -13,11 +13,9 @@ LOCAL_SRC_FILES := hellocpp/main.cpp \
|
|||
|
||||
LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../Classes
|
||||
|
||||
LOCAL_WHOLE_STATIC_LIBRARIES := cocos2dx_static cocos2dxandroid_static cocosdenshion_static
|
||||
LOCAL_WHOLE_STATIC_LIBRARIES := cocos2dx_static cocosdenshion_static
|
||||
|
||||
include $(BUILD_SHARED_LIBRARY)
|
||||
|
||||
$(call import-module,audio/android)
|
||||
$(call import-module,cocos2dx)
|
||||
$(call import-module,extensions)
|
||||
$(call import-module,cocos2dx/platform/android)
|
||||
$(call import-module,2d)
|
||||
|
|
Loading…
Reference in New Issue