diff --git a/build/android-build.py b/build/android-build.py index 13ed0b0499..c66414d47b 100755 --- a/build/android-build.py +++ b/build/android-build.py @@ -163,7 +163,7 @@ def copy_resources(target, app_android_root): copy_files(resources_dir, assets_dir) if target == "testjavascript": - resources_dir = os.path.join(app_android_root, "../../tests/") + resources_dir = os.path.join(app_android_root, "../tests/") copy_files(resources_dir, assets_dir) @@ -189,12 +189,12 @@ def build_samples(target,ndk_build_param,android_platform,build_mode): cocos_root = os.path.join(current_dir, "..") if android_platform is not None: - sdk_root = check_environment_variables_sdk() - if android_platform.isdigit(): - android_platform = 'android-'+android_platform - else: - print 'please use vaild android platform' - exit(1) + sdk_root = check_environment_variables_sdk() + if android_platform.isdigit(): + android_platform = 'android-'+android_platform + else: + print 'please use vaild android platform' + exit(1) if build_mode is None: build_mode = 'debug' diff --git a/samples/test-lua/proj.android/jni/Android.mk b/samples/test-lua/proj.android/jni/Android.mk index 4bc4ceafb3..e75e0de694 100644 --- a/samples/test-lua/proj.android/jni/Android.mk +++ b/samples/test-lua/proj.android/jni/Android.mk @@ -12,9 +12,9 @@ LOCAL_SRC_FILES += testlua/main.cpp \ LOCAL_C_INCLUDES += $(LOCAL_PATH)/../../Classes \ - $(LOCAL_PATH)/../../../../../external/lua/tolua \ - $(LOCAL_PATH)/../../../../../extensions \ - $(LOCAL_PATH)/../../../../../cocos/scripting/lua/bindings + $(LOCAL_PATH)/../../../../external/lua/tolua \ + $(LOCAL_PATH)/../../../../extensions \ + $(LOCAL_PATH)/../../../../cocos/scripting/lua/bindings LOCAL_STATIC_LIBRARIES := curl_static_prebuilt