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

Unified Diff: platform_tools/android/bin/gyp_to_android.py

Issue 183953002: Updates to the Android.mk writer. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 10 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
Index: platform_tools/android/bin/gyp_to_android.py
diff --git a/platform_tools/android/bin/gyp_to_android.py b/platform_tools/android/bin/gyp_to_android.py
index 7990ae9d8b97acf0269f193b20b1230eef29d428..a03ccb6d9f8552b642aa1601d1ff71e03a793d35 100644
--- a/platform_tools/android/bin/gyp_to_android.py
+++ b/platform_tools/android/bin/gyp_to_android.py
@@ -101,17 +101,15 @@ def main(target_dir=None):
arm_var_dict = generate_var_dict(tmp_folder, main_gyp_file, 'arm', False)
arm_neon_var_dict = generate_var_dict(tmp_folder, main_gyp_file, 'arm',
True)
- if variables.INCLUDE_X86_OPTS:
- x86_var_dict = generate_var_dict(tmp_folder, main_gyp_file, 'x86', False)
- else:
- x86_var_dict = None
+ x86_var_dict = generate_var_dict(tmp_folder, main_gyp_file, 'x86', False)
+
+ mips_var_dict = generate_var_dict(tmp_folder, main_gyp_file, 'mips', False)
# Compute the intersection of all targets. All the files in the intersection
# should be part of the makefile always. Each dict will now contain trimmed
# lists containing only variable definitions specific to that configuration.
- var_dict_list = [default_var_dict, arm_var_dict, arm_neon_var_dict]
- if variables.INCLUDE_X86_OPTS:
- var_dict_list.append(x86_var_dict)
+ var_dict_list = [default_var_dict, arm_var_dict, arm_neon_var_dict,
+ x86_var_dict, mips_var_dict]
common = vars_dict_lib.intersect(var_dict_list)
# Further trim arm_neon_var_dict with arm_var_dict. After this call,
@@ -120,12 +118,20 @@ def main(target_dir=None):
# those specific to arm + neon.
arm_var_dict = vars_dict_lib.intersect([arm_var_dict, arm_neon_var_dict])
+ # Now create a list of VarsDictData holding everything but common.
+ li = list()
+ li.append(makefile_writer.VarsDictData(arm_var_dict, 'arm'))
+ li.append(makefile_writer.VarsDictData(arm_neon_var_dict, 'arm',
+ 'ARCH_ARM_HAVE_NEON'))
+ li.append(makefile_writer.VarsDictData(x86_var_dict, 'x86'))
+ # Currently, x86_64 is identical to x86
+ li.append(makefile_writer.VarsDictData(x86_var_dict, 'x86_64'))
+
+ li.append(makefile_writer.VarsDictData(mips_var_dict, 'mips'))
+
makefile_writer.write_android_mk(target_dir=target_dir,
common=common,
- arm=arm_var_dict,
- arm_neon=arm_neon_var_dict,
- x86=x86_var_dict,
- default=default_var_dict)
+ the_rest=li)
finally:
shutil.rmtree(tmp_folder)
« no previous file with comments | « no previous file | platform_tools/android/gyp_gen/makefile_writer.py » ('j') | platform_tools/android/gyp_gen/makefile_writer.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698