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

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

Issue 290603002: Generate Android.mk for DM. (Closed) Base URL: https://skia.googlesource.com/skia.git@generate_gm
Patch Set: Remove one more generated file. 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 | « gyp/dm.gyp ('k') | platform_tools/android/gyp_gen/makefile_writer.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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 place_in_local_tmp=True) 145 place_in_local_tmp=True)
146 146
147 tool_makefile_writer.generate_tool(gyp_dir=tmp_folder, 147 tool_makefile_writer.generate_tool(gyp_dir=tmp_folder,
148 target_file='gm.gyp', 148 target_file='gm.gyp',
149 skia_trunk=target_dir, 149 skia_trunk=target_dir,
150 dest_dir='gm', 150 dest_dir='gm',
151 skia_lib_var_dict=common, 151 skia_lib_var_dict=common,
152 local_module_name='skia_gm', 152 local_module_name='skia_gm',
153 local_module_tags=['optional']) 153 local_module_tags=['optional'])
154 154
155 tool_makefile_writer.generate_tool(gyp_dir=tmp_folder,
156 target_file='dm.gyp',
157 skia_trunk=target_dir,
158 dest_dir='dm',
159 skia_lib_var_dict=common,
160 local_module_name='skia_dm',
161 local_module_tags=['optional'])
162
155 # Now that the defines have been written to SkUserConfig and they've been 163 # Now that the defines have been written to SkUserConfig and they've been
156 # used to skip adding them to the tools makefiles, they are not needed in 164 # used to skip adding them to the tools makefiles, they are not needed in
157 # Android.mk. Reset DEFINES. 165 # Android.mk. Reset DEFINES.
158 common.DEFINES.reset() 166 common.DEFINES.reset()
159 167
160 # Further trim arm_neon_var_dict with arm_var_dict. After this call, 168 # Further trim arm_neon_var_dict with arm_var_dict. After this call,
161 # arm_var_dict (which will now be the intersection) includes all definitions 169 # arm_var_dict (which will now be the intersection) includes all definitions
162 # used by both arm and arm + neon, and arm_neon_var_dict will only contain 170 # used by both arm and arm + neon, and arm_neon_var_dict will only contain
163 # those specific to arm + neon. 171 # those specific to arm + neon.
164 arm_var_dict = vars_dict_lib.intersect([arm_var_dict, arm_neon_var_dict]) 172 arm_var_dict = vars_dict_lib.intersect([arm_var_dict, arm_neon_var_dict])
(...skipping 17 matching lines...) Expand all
182 'arm64')) 190 'arm64'))
183 191
184 makefile_writer.write_android_mk(target_dir=target_dir, 192 makefile_writer.write_android_mk(target_dir=target_dir,
185 common=common, deviations_from_common=deviations_from_common) 193 common=common, deviations_from_common=deviations_from_common)
186 194
187 finally: 195 finally:
188 shutil.rmtree(tmp_folder) 196 shutil.rmtree(tmp_folder)
189 197
190 if __name__ == '__main__': 198 if __name__ == '__main__':
191 main() 199 main()
OLDNEW
« no previous file with comments | « gyp/dm.gyp ('k') | platform_tools/android/gyp_gen/makefile_writer.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698