mirror of https://github.com/axmolengine/axmol.git
issue #2509:make lua android template build ok
This commit is contained in:
parent
222cb93aaf
commit
4d28d0ab8b
|
@ -80,7 +80,7 @@ fi
|
|||
done
|
||||
|
||||
# copy common luaScript
|
||||
for file in "$APP_ROOT"/../../scripting/lua/script/*
|
||||
for file in "$APP_ROOT"/../../cocos/scripting/lua/script/*
|
||||
do
|
||||
if [ -d "$file" ]; then
|
||||
cp -rf "$file" "$APP_ANDROID_ROOT"/assets
|
||||
|
@ -94,9 +94,9 @@ done
|
|||
if [[ "$buildexternalsfromsource" ]]; then
|
||||
echo "Building external dependencies from source"
|
||||
"$NDK_ROOT"/ndk-build -C "$APP_ANDROID_ROOT" $* \
|
||||
"NDK_MODULE_PATH=${COCOS2DX_ROOT}:${COCOS2DX_ROOT}/cocos2dx/platform/third_party/android/source"
|
||||
"NDK_MODULE_PATH=${COCOS2DX_ROOT}:${COCOS2DX_ROOT}/cocos:${COCOS2DX_ROOT}/external"
|
||||
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
|
|
@ -15,19 +15,8 @@ LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../Classes
|
|||
|
||||
LOCAL_STATIC_LIBRARIES := curl_static_prebuilt
|
||||
|
||||
LOCAL_WHOLE_STATIC_LIBRARIES := cocos2dx_static
|
||||
LOCAL_WHOLE_STATIC_LIBRARIES += cocosdenshion_static
|
||||
LOCAL_WHOLE_STATIC_LIBRARIES += cocos_lua_static
|
||||
LOCAL_WHOLE_STATIC_LIBRARIES += box2d_static
|
||||
LOCAL_WHOLE_STATIC_LIBRARIES += cocos_extension_static
|
||||
LOCAL_WHOLE_STATIC_LIBRARIES += cocos2dxandroid_static
|
||||
LOCAL_WHOLE_STATIC_LIBRARIES := cocos_lua_static
|
||||
|
||||
include $(BUILD_SHARED_LIBRARY)
|
||||
|
||||
$(call import-module,cocos2dx)
|
||||
$(call import-module,audio/android)
|
||||
$(call import-module,scripting/lua/proj.android)
|
||||
$(call import-module,cocos2dx/platform/third_party/android/prebuilt/libcurl)
|
||||
$(call import-module,extensions)
|
||||
$(call import-module,external/Box2D)
|
||||
$(call import-module,cocos2dx/platform/android)
|
||||
$(call import-module,scripting/lua/bindings)
|
Loading…
Reference in New Issue