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 """Code for generating Android.mk for a tool.""" | 8 """Code for generating Android.mk for a tool.""" |
9 | 9 |
10 | 10 |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 ensure we do not duplicate anything in this Android.mk. | 66 ensure we do not duplicate anything in this Android.mk. |
67 local_module_name: Name for this tool, to set as LOCAL_MODULE. | 67 local_module_name: Name for this tool, to set as LOCAL_MODULE. |
68 local_module_tags: Tags to pass to LOCAL_MODULE_TAG. | 68 local_module_tags: Tags to pass to LOCAL_MODULE_TAG. |
69 desired_targets: List of targets to parse. | 69 desired_targets: List of targets to parse. |
70 gyp_source_dir: Source directory for gyp. | 70 gyp_source_dir: Source directory for gyp. |
71 """ | 71 """ |
72 result_file = android_framework_gyp.main(target_dir=gyp_dir, | 72 result_file = android_framework_gyp.main(target_dir=gyp_dir, |
73 target_file=target_file, | 73 target_file=target_file, |
74 skia_arch_type='other', | 74 skia_arch_type='other', |
75 have_neon=False, | 75 have_neon=False, |
| 76 have_mips_dspr2=False, |
| 77 have_mips_dspr1=False, |
76 gyp_source_dir=gyp_source_dir) | 78 gyp_source_dir=gyp_source_dir) |
77 | 79 |
78 var_dict = vars_dict_lib.VarsDict() | 80 var_dict = vars_dict_lib.VarsDict() |
79 | 81 |
80 # Add known targets from skia_lib, so we do not reparse them. | 82 # Add known targets from skia_lib, so we do not reparse them. |
81 var_dict.KNOWN_TARGETS.set(skia_lib_var_dict.KNOWN_TARGETS) | 83 var_dict.KNOWN_TARGETS.set(skia_lib_var_dict.KNOWN_TARGETS) |
82 | 84 |
83 gypd_parser.parse_gypd(var_dict, result_file, dest_dir, desired_targets) | 85 gypd_parser.parse_gypd(var_dict, result_file, dest_dir, desired_targets) |
84 | 86 |
85 android_framework_gyp.clean_gypd_files(gyp_dir) | 87 android_framework_gyp.clean_gypd_files(gyp_dir) |
(...skipping 14 matching lines...) Expand all Loading... |
100 full_dest = os.path.join(skia_trunk, dest_dir) | 102 full_dest = os.path.join(skia_trunk, dest_dir) |
101 else: | 103 else: |
102 full_dest = dest_dir | 104 full_dest = dest_dir |
103 | 105 |
104 # If the path does not exist, create it. This will happen during testing, | 106 # If the path does not exist, create it. This will happen during testing, |
105 # where there is no subdirectory for each tool (just a temporary folder). | 107 # where there is no subdirectory for each tool (just a temporary folder). |
106 if not os.path.exists(full_dest): | 108 if not os.path.exists(full_dest): |
107 os.mkdir(full_dest) | 109 os.mkdir(full_dest) |
108 | 110 |
109 write_tool_android_mk(target_dir=full_dest, var_dict=var_dict) | 111 write_tool_android_mk(target_dir=full_dest, var_dict=var_dict) |
OLD | NEW |