Chromium Code Reviews| Index: platform_tools/android/gyp_gen/android_framework_gyp.py |
| diff --git a/platform_tools/android/gyp_gen/android_framework_gyp.py b/platform_tools/android/gyp_gen/android_framework_gyp.py |
| index 34a9eeec4796068e90cc2e6835324f86b0a80482..d2afabd1e8f18c2f09ed10c1c5724d2ede5543e6 100644 |
| --- a/platform_tools/android/gyp_gen/android_framework_gyp.py |
| +++ b/platform_tools/android/gyp_gen/android_framework_gyp.py |
| @@ -59,9 +59,12 @@ def main(target_dir, target_file, skia_arch_type, have_neon, |
| import gyp |
| + # Determine the host that we are building from |
| + host_os = os.uname()[0].lower() |
|
msarett
2015/07/22 14:27:41
Maybe it doesn't need to be this complicated and h
|
| + |
| # Set GYP_DEFINES for building for the android framework. |
| - gyp_defines = ('skia_android_framework=1 OS=android skia_arch_type=%s ' |
| - % skia_arch_type) |
| + gyp_defines = ('skia_android_framework=1 OS=android host_os=%s ' |
| + 'skia_arch_type=%s ' % (host_os, skia_arch_type)) |
| if skia_arch_type == 'arm': |
| # Always version 7 (which implies thumb) for arm |
| gyp_defines += 'arm_version=7 ' |