OLD | NEW |
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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 local_module_tags=['tests'], | 140 local_module_tags=['tests'], |
141 desired_targets=['tests']) | 141 desired_targets=['tests']) |
142 | 142 |
143 tool_makefile_writer.generate_tool(gyp_dir=tmp_folder, | 143 tool_makefile_writer.generate_tool(gyp_dir=tmp_folder, |
144 target_file='bench.gyp', | 144 target_file='bench.gyp', |
145 skia_trunk=target_dir, | 145 skia_trunk=target_dir, |
146 dest_dir='bench', | 146 dest_dir='bench', |
147 skia_lib_var_dict=common, | 147 skia_lib_var_dict=common, |
148 local_module_name='skia_bench', | 148 local_module_name='skia_bench', |
149 local_module_tags=['tests'], | 149 local_module_tags=['tests'], |
150 desired_targets=['bench'], | 150 desired_targets=['bench']) |
151 place_in_local_tmp=True) | |
152 | 151 |
153 tool_makefile_writer.generate_tool(gyp_dir=tmp_folder, | 152 tool_makefile_writer.generate_tool(gyp_dir=tmp_folder, |
154 target_file='gm.gyp', | 153 target_file='gm.gyp', |
155 skia_trunk=target_dir, | 154 skia_trunk=target_dir, |
156 dest_dir='gm', | 155 dest_dir='gm', |
157 skia_lib_var_dict=common, | 156 skia_lib_var_dict=common, |
158 local_module_name='skia_gm', | 157 local_module_name='skia_gm', |
159 local_module_tags=['tests'], | 158 local_module_tags=['tests'], |
160 desired_targets=['gm']) | 159 desired_targets=['gm']) |
161 | 160 |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 'arm64')) | 200 'arm64')) |
202 | 201 |
203 makefile_writer.write_android_mk(target_dir=target_dir, | 202 makefile_writer.write_android_mk(target_dir=target_dir, |
204 common=common, deviations_from_common=deviations_from_common) | 203 common=common, deviations_from_common=deviations_from_common) |
205 | 204 |
206 finally: | 205 finally: |
207 shutil.rmtree(tmp_folder) | 206 shutil.rmtree(tmp_folder) |
208 | 207 |
209 if __name__ == '__main__': | 208 if __name__ == '__main__': |
210 main() | 209 main() |
OLD | NEW |