| 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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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() |
| OLD | NEW |