| 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..3d0536b8c2f3edd369e9b55e0a6b867b121da013 100644
|
| --- a/platform_tools/android/gyp_gen/android_framework_gyp.py
|
| +++ b/platform_tools/android/gyp_gen/android_framework_gyp.py
|
| @@ -25,7 +25,7 @@ assert 'gyp' in DIR_CONTENTS
|
| DEBUG_FAILURE = True
|
|
|
| def main(target_dir, target_file, skia_arch_type, have_neon,
|
| - gyp_source_dir=None):
|
| + have_mips_dspr2, have_mips_dspr1, gyp_source_dir=None):
|
| """Create gypd files based on target_file.
|
|
|
| Args:
|
| @@ -70,6 +70,14 @@ def main(target_dir, target_file, skia_arch_type, have_neon,
|
| else:
|
| gyp_defines += 'arm_neon=0 '
|
|
|
| + if skia_arch_type == 'mips':
|
| + if have_mips_dspr2:
|
| + gyp_defines += 'mips_arch_variant=mips32r2 '
|
| + gyp_defines += 'mips_dsp=2 '
|
| + elif have_mips_dspr1:
|
| + gyp_defines += 'mips_arch_variant=mips32r2 '
|
| + gyp_defines += 'mips_dsp=1 '
|
| +
|
| os.environ['GYP_DEFINES'] = gyp_defines
|
|
|
| args = []
|
|
|