Fixed failure in call to make when the android app folder contains spaces in the path.

This commit is contained in:
Christopher O'Connell 2014-11-10 00:38:32 -07:00
parent cd24f91014
commit 5d26bc045c
1 changed files with 2 additions and 1 deletions

View File

@ -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: