diff options
author | volzhs <volzhs@gmail.com> | 2016-05-24 05:25:22 +0900 |
---|---|---|
committer | volzhs <volzhs@gmail.com> | 2016-05-24 05:25:22 +0900 |
commit | 5eb14d3af08a97e71222a8972996d86e3ceed54b (patch) | |
tree | 828e22e8b5134d228fce8de57bb3e50a6cabebc7 /platform/android | |
parent | b777b32470fc7cba345f3ff2ee419074104f8f9b (diff) |
fix unexpected char: '\' error on windows
error occurred when register additional directory for android module on windows.
### config.py ###
```
def can_build(plat):
return plat=="android"
def configure(env):
if (env['platform'] == 'android'):
env.android_add_res_dir("android/res")
```
Diffstat (limited to 'platform/android')
-rw-r--r-- | platform/android/SCsub | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/platform/android/SCsub b/platform/android/SCsub index fab8458b26..c8feac8690 100644 --- a/platform/android/SCsub +++ b/platform/android/SCsub @@ -65,17 +65,17 @@ for x in env.android_java_dirs: gradle_res_dirs_text="" for x in env.android_res_dirs: - gradle_res_dirs_text+=",'"+x+"'" + gradle_res_dirs_text+=",'"+x.replace("\\","/")+"'" gradle_aidl_dirs_text="" for x in env.android_aidl_dirs: - gradle_aidl_dirs_text+=",'"+x+"'" + gradle_aidl_dirs_text+=",'"+x.replace("\\","/")+"'" gradle_jni_dirs_text="" for x in env.android_jni_dirs: - gradle_jni_dirs_text+=",'"+x+"'" + gradle_jni_dirs_text+=",'"+x.replace("\\","/")+"'" gradle_asset_dirs_text="" |