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

Side by Side Diff: platform_tools/android/bin/gyp_to_android.py

Issue 282053002: Generate bench/Android.mk from gyp. (Closed) Base URL: https://skia.googlesource.com/skia.git@baselines
Patch Set: Remove modifications to generated files to submit. Created 6 years, 7 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 unified diff | Download patch
« no previous file with comments | « include/utils/SkJSONCPP.h ('k') | platform_tools/android/gyp_gen/gypd_parser.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 2
3 # Copyright 2014 Google Inc. 3 # Copyright 2014 Google Inc.
4 # 4 #
5 # Use of this source code is governed by a BSD-style license that can be 5 # Use of this source code is governed by a BSD-style license that can be
6 # found in the LICENSE file. 6 # found in the LICENSE file.
7 7
8 """ 8 """
9 Script for generating the Android framework's version of Skia from gyp 9 Script for generating the Android framework's version of Skia from gyp
10 files. 10 files.
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 ordered_set=common.DEFINES) 128 ordered_set=common.DEFINES)
129 129
130 tool_makefile_writer.generate_tool(gyp_dir=tmp_folder, 130 tool_makefile_writer.generate_tool(gyp_dir=tmp_folder,
131 target_file='tests.gyp', 131 target_file='tests.gyp',
132 skia_trunk=target_dir, 132 skia_trunk=target_dir,
133 dest_dir='tests', 133 dest_dir='tests',
134 skia_lib_var_dict=common, 134 skia_lib_var_dict=common,
135 local_module_name='skia_test', 135 local_module_name='skia_test',
136 local_module_tags=['eng', 'tests']) 136 local_module_tags=['eng', 'tests'])
137 137
138 # TODO (scroggo): Generate bench/Android.mk. See skbug.com/2448 138 tool_makefile_writer.generate_tool(gyp_dir=tmp_folder,
139 #tool_makefile_writer.generate_tool(gyp_dir=tmp_folder, 139 target_file='bench.gyp',
140 # target_file='bench.gyp', 140 skia_trunk=target_dir,
141 # skia_trunk=target_dir, 141 dest_dir='bench',
142 # dest_dir='bench', 142 skia_lib_var_dict=common,
143 # skia_lib_var_dict=common, 143 local_module_name='skia_bench',
144 # local_module_name='skia_bench', 144 local_module_tags=['tests'],
145 # local_module_tags=['tests']) 145 place_in_local_tmp=True)
146 146
147 # Now that the defines have been written to SkUserConfig and they've been 147 # Now that the defines have been written to SkUserConfig and they've been
148 # used to skip adding them to the tools makefiles, they are not needed in 148 # used to skip adding them to the tools makefiles, they are not needed in
149 # Android.mk. Reset DEFINES. 149 # Android.mk. Reset DEFINES.
150 common.DEFINES.reset() 150 common.DEFINES.reset()
151 151
152 # Further trim arm_neon_var_dict with arm_var_dict. After this call, 152 # Further trim arm_neon_var_dict with arm_var_dict. After this call,
153 # arm_var_dict (which will now be the intersection) includes all definitions 153 # arm_var_dict (which will now be the intersection) includes all definitions
154 # used by both arm and arm + neon, and arm_neon_var_dict will only contain 154 # used by both arm and arm + neon, and arm_neon_var_dict will only contain
155 # those specific to arm + neon. 155 # those specific to arm + neon.
(...skipping 18 matching lines...) Expand all
174 'arm64')) 174 'arm64'))
175 175
176 makefile_writer.write_android_mk(target_dir=target_dir, 176 makefile_writer.write_android_mk(target_dir=target_dir,
177 common=common, deviations_from_common=deviations_from_common) 177 common=common, deviations_from_common=deviations_from_common)
178 178
179 finally: 179 finally:
180 shutil.rmtree(tmp_folder) 180 shutil.rmtree(tmp_folder)
181 181
182 if __name__ == '__main__': 182 if __name__ == '__main__':
183 main() 183 main()
OLDNEW
« no previous file with comments | « include/utils/SkJSONCPP.h ('k') | platform_tools/android/gyp_gen/gypd_parser.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698