From 5d26bc045c95089068c99e26bf241e38afab5f94 Mon Sep 17 00:00:00 2001 From: Christopher O'Connell Date: Mon, 10 Nov 2014 00:38:32 -0700 Subject: [PATCH] Fixed failure in call to make when the android app folder contains spaces in the path. --- templates/cpp-template-default/proj.android/build_native.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/cpp-template-default/proj.android/build_native.py b/templates/cpp-template-default/proj.android/build_native.py index 97c9f89991..9a8d26ab1b 100755 --- a/templates/cpp-template-default/proj.android/build_native.py +++ b/templates/cpp-template-default/proj.android/build_native.py @@ -73,7 +73,8 @@ def do_build(cocos_root, ndk_root, app_android_root,ndk_build_param,sdk_root,and ndk_path = os.path.join(ndk_root, "ndk-build") num_of_cpu = get_num_of_cpu() - + + app_android_root = app_android_root.replace(' ', '\\ ') if ndk_build_param == None: command = '%s -j%d -C %s NDK_DEBUG=%d' % (ndk_path, num_of_cpu, app_android_root, build_mode=='debug') else: