Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(96)

Unified Diff: platform_tools/android/gyp_gen/android_framework_gyp.py

Issue 2359793002: Add mips dsp arch variants to gyp_to_android.py. (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « platform_tools/android/bin/gyp_to_android.py ('k') | platform_tools/android/gyp_gen/makefile_writer.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 = []
« no previous file with comments | « platform_tools/android/bin/gyp_to_android.py ('k') | platform_tools/android/gyp_gen/makefile_writer.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698