[email protected] | 65208a0 | 2012-04-17 04:39:52 | [diff] [blame] | 1 | # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 | # Use of this source code is governed by a BSD-style license that can be |
| 3 | # found in the LICENSE file. |
| 4 | |
| 5 | # This file is meant to be included into a target to provide a rule |
| 6 | # to build Java in a consistent manner. |
| 7 | # |
| 8 | # To use this, create a gyp target with the following form: |
| 9 | # { |
| 10 | # 'target_name': 'my-package_java', |
| 11 | # 'type': 'none', |
| 12 | # 'variables': { |
[email protected] | 65208a0 | 2012-04-17 04:39:52 | [diff] [blame] | 13 | # 'java_in_dir': 'path/to/package/root', |
| 14 | # }, |
| 15 | # 'includes': ['path/to/this/gypi/file'], |
| 16 | # } |
| 17 | # |
[email protected] | d54f19b | 2012-09-28 18:22:29 | [diff] [blame] | 18 | # Required variables: |
[email protected] | d54f19b | 2012-09-28 18:22:29 | [diff] [blame] | 19 | # java_in_dir - The top-level java directory. The src should be in |
| 20 | # <java_in_dir>/src. |
| 21 | # Optional/automatic variables: |
| 22 | # additional_input_paths - These paths will be included in the 'inputs' list to |
| 23 | # ensure that this target is rebuilt when one of these paths changes. |
| 24 | # additional_src_dirs - Additional directories with .java files to be compiled |
| 25 | # and included in the output of this target. |
| 26 | # generated_src_dirs - Same as additional_src_dirs except used for .java files |
| 27 | # that are generated at build time. This should be set automatically by a |
| 28 | # target's dependencies. The .java files in these directories are not |
| 29 | # included in the 'inputs' list (unlike additional_src_dirs). |
| 30 | # input_jars_paths - The path to jars to be included in the classpath. This |
| 31 | # should be filled automatically by depending on the appropriate targets. |
[email protected] | d339e3c | 2012-11-14 21:20:47 | [diff] [blame] | 32 | # javac_includes - A list of specific files to include. This is by default |
[email protected] | 8b39347 | 2012-11-14 01:23:40 | [diff] [blame] | 33 | # empty, which leads to inclusion of all files specified. May include |
| 34 | # wildcard, and supports '**/' for recursive path wildcards, ie.: |
| 35 | # '**/MyFileRegardlessOfDirectory.java', '**/IncludedPrefix*.java'. |
[email protected] | 3ac50367 | 2012-11-16 20:39:20 | [diff] [blame] | 36 | # has_java_resources - Set to 1 if the java target contains an |
| 37 | # Android-compatible resources folder named res. If 1, R_package and |
| 38 | # R_package_relpath must also be set. |
| 39 | # R_package - The java package in which the R class (which maps resources to |
| 40 | # integer IDs) should be generated, e.g. org.chromium.content. |
| 41 | # R_package_relpath - Same as R_package, but replace each '.' with '/'. |
[email protected] | 8f097c2 | 2013-01-16 17:54:42 | [diff] [blame] | 42 | # java_strings_grd - The name of the grd file from which to generate localized |
| 43 | # strings.xml files, if any. |
[email protected] | 7dc7681 | 2013-03-26 07:31:57 | [diff] [blame] | 44 | # res_extra_dirs - A list of extra directories containing Android resources. |
| 45 | # These directories may be generated at build time. |
| 46 | # res_extra_files - A list of the files in res_extra_dirs. |
[email protected] | 65208a0 | 2012-04-17 04:39:52 | [diff] [blame] | 47 | |
| 48 | { |
[email protected] | 218b2f4 | 2012-09-19 18:19:18 | [diff] [blame] | 49 | 'dependencies': [ |
[email protected] | 225ec63 | 2013-04-03 18:20:22 | [diff] [blame] | 50 | '<(DEPTH)/build/android/setup.gyp:build_output_dirs' |
[email protected] | 218b2f4 | 2012-09-19 18:19:18 | [diff] [blame] | 51 | ], |
[email protected] | efdbdb0 | 2012-08-09 18:08:19 | [diff] [blame] | 52 | 'variables': { |
[email protected] | 2d401ff8 | 2013-03-23 18:38:32 | [diff] [blame] | 53 | 'android_jar': '<(android_sdk)/android.jar', |
| 54 | 'input_jars_paths': [ '<(android_jar)' ], |
[email protected] | 8bf6c17 | 2012-08-13 18:35:49 | [diff] [blame] | 55 | 'additional_src_dirs': [], |
[email protected] | 8b39347 | 2012-11-14 01:23:40 | [diff] [blame] | 56 | 'javac_includes': [], |
[email protected] | 37434b4 | 2013-02-20 22:39:17 | [diff] [blame] | 57 | 'jar_name': '<(_target_name).jar', |
| 58 | 'jar_path': '<(PRODUCT_DIR)/lib.java/<(jar_name)', |
[email protected] | a934b41 | 2013-03-26 20:44:29 | [diff] [blame] | 59 | 'jar_excluded_classes': [ '*/R.class', '*/R##*.class' ], |
[email protected] | 2d401ff8 | 2013-03-23 18:38:32 | [diff] [blame] | 60 | 'additional_input_paths': [], |
[email protected] | b13f73e | 2013-03-27 23:31:27 | [diff] [blame] | 61 | 'dex_path': '<(PRODUCT_DIR)/lib.java/<(_target_name).dex.jar', |
[email protected] | 3ac50367 | 2012-11-16 20:39:20 | [diff] [blame] | 62 | 'generated_src_dirs': ['>@(generated_R_dirs)'], |
| 63 | 'generated_R_dirs': [], |
[email protected] | 3ac50367 | 2012-11-16 20:39:20 | [diff] [blame] | 64 | 'has_java_resources%': 0, |
[email protected] | 8f097c2 | 2013-01-16 17:54:42 | [diff] [blame] | 65 | 'java_strings_grd%': '', |
[email protected] | 7dc7681 | 2013-03-26 07:31:57 | [diff] [blame] | 66 | 'res_extra_dirs': [], |
| 67 | 'res_extra_files': [], |
| 68 | 'resource_input_paths': ['>@(res_extra_files)'], |
[email protected] | 18701736 | 2013-03-16 16:25:22 | [diff] [blame] | 69 | 'intermediate_dir': '<(SHARED_INTERMEDIATE_DIR)/<(_target_name)', |
| 70 | 'classes_dir': '<(intermediate_dir)/classes', |
| 71 | 'compile_stamp': '<(intermediate_dir)/compile.stamp', |
[email protected] | efdbdb0 | 2012-08-09 18:08:19 | [diff] [blame] | 72 | }, |
[email protected] | 37434b4 | 2013-02-20 22:39:17 | [diff] [blame] | 73 | # This all_dependent_settings is used for java targets only. This will add the |
| 74 | # jar path to the classpath of dependent java targets. |
| 75 | 'all_dependent_settings': { |
| 76 | 'variables': { |
| 77 | 'input_jars_paths': ['<(jar_path)'], |
[email protected] | b13f73e | 2013-03-27 23:31:27 | [diff] [blame] | 78 | 'library_dexed_jars_paths': ['<(dex_path)'], |
[email protected] | 37434b4 | 2013-02-20 22:39:17 | [diff] [blame] | 79 | }, |
| 80 | }, |
[email protected] | 3ac50367 | 2012-11-16 20:39:20 | [diff] [blame] | 81 | 'conditions': [ |
| 82 | ['has_java_resources == 1', { |
| 83 | 'variables': { |
[email protected] | bfd82e2 | 2012-12-12 21:01:08 | [diff] [blame] | 84 | 'res_dir': '<(java_in_dir)/res', |
[email protected] | 7dc7681 | 2013-03-26 07:31:57 | [diff] [blame] | 85 | 'res_crunched_dir': '<(intermediate_dir)/res_crunched', |
| 86 | 'res_input_dirs': ['<(res_dir)', '<@(res_extra_dirs)'], |
| 87 | 'resource_input_paths': ['<!@(find <(res_dir) -type f)'], |
[email protected] | 18701736 | 2013-03-16 16:25:22 | [diff] [blame] | 88 | 'R_dir': '<(intermediate_dir)/java_R', |
[email protected] | 94542cd | 2013-01-10 23:33:38 | [diff] [blame] | 89 | 'R_text_file': '<(R_dir)/R.txt', |
[email protected] | 2d401ff8 | 2013-03-23 18:38:32 | [diff] [blame] | 90 | 'R_stamp': '<(intermediate_dir)/resources.stamp', |
[email protected] | 3ac50367 | 2012-11-16 20:39:20 | [diff] [blame] | 91 | 'generated_src_dirs': ['<(R_dir)'], |
[email protected] | 2d401ff8 | 2013-03-23 18:38:32 | [diff] [blame] | 92 | 'additional_input_paths': ['<(R_stamp)'], |
[email protected] | 4f73ab5d | 2013-03-27 09:48:03 | [diff] [blame] | 93 | 'additional_res_dirs': [], |
| 94 | 'dependencies_res_files': [], |
[email protected] | 3ac50367 | 2012-11-16 20:39:20 | [diff] [blame] | 95 | }, |
| 96 | 'all_dependent_settings': { |
| 97 | 'variables': { |
| 98 | # Dependent jars include this target's R.java file via |
[email protected] | 4f73ab5d | 2013-03-27 09:48:03 | [diff] [blame] | 99 | # generated_R_dirs and include its resources via |
| 100 | # dependencies_res_files. |
[email protected] | 3ac50367 | 2012-11-16 20:39:20 | [diff] [blame] | 101 | 'generated_R_dirs': ['<(R_dir)'], |
[email protected] | 2d401ff8 | 2013-03-23 18:38:32 | [diff] [blame] | 102 | 'additional_input_paths': ['<(R_stamp)'], |
[email protected] | 4f73ab5d | 2013-03-27 09:48:03 | [diff] [blame] | 103 | 'dependencies_res_files': ['<@(resource_input_paths)'], |
[email protected] | 3ac50367 | 2012-11-16 20:39:20 | [diff] [blame] | 104 | |
| 105 | # Dependent APKs include this target's resources via |
[email protected] | 7dc7681 | 2013-03-26 07:31:57 | [diff] [blame] | 106 | # additional_res_dirs, additional_res_packages, and |
| 107 | # additional_R_text_files. |
| 108 | 'additional_res_dirs': ['<(res_crunched_dir)', '<@(res_input_dirs)'], |
[email protected] | 3ac50367 | 2012-11-16 20:39:20 | [diff] [blame] | 109 | 'additional_res_packages': ['<(R_package)'], |
[email protected] | 7dc7681 | 2013-03-26 07:31:57 | [diff] [blame] | 110 | 'additional_R_text_files': ['<(R_text_file)'], |
[email protected] | 3ac50367 | 2012-11-16 20:39:20 | [diff] [blame] | 111 | }, |
| 112 | }, |
[email protected] | 8f097c2 | 2013-01-16 17:54:42 | [diff] [blame] | 113 | 'conditions': [ |
| 114 | ['java_strings_grd != ""', { |
[email protected] | 2d401ff8 | 2013-03-23 18:38:32 | [diff] [blame] | 115 | 'variables': { |
[email protected] | 7dc7681 | 2013-03-26 07:31:57 | [diff] [blame] | 116 | 'res_grit_dir': '<(intermediate_dir)/res_grit', |
| 117 | 'res_input_dirs': ['<(res_grit_dir)'], |
| 118 | 'grit_grd_file': '<(java_in_dir)/strings/<(java_strings_grd)', |
| 119 | 'resource_input_paths': ['<!@pymod_do_main(grit_info <@(grit_defines) --outputs "<(res_grit_dir)" <(grit_grd_file))'], |
[email protected] | 2d401ff8 | 2013-03-23 18:38:32 | [diff] [blame] | 120 | }, |
[email protected] | 8f097c2 | 2013-01-16 17:54:42 | [diff] [blame] | 121 | 'actions': [ |
| 122 | { |
| 123 | 'action_name': 'generate_localized_strings_xml', |
| 124 | 'variables': { |
[email protected] | 7dc7681 | 2013-03-26 07:31:57 | [diff] [blame] | 125 | 'grit_additional_defines': ['-E', 'ANDROID_JAVA_TAGGED_ONLY=false'], |
| 126 | 'grit_out_dir': '<(res_grit_dir)', |
[email protected] | 8f097c2 | 2013-01-16 17:54:42 | [diff] [blame] | 127 | # resource_ids is unneeded since we don't generate .h headers. |
| 128 | 'grit_resource_ids': '', |
| 129 | }, |
| 130 | 'includes': ['../build/grit_action.gypi'], |
| 131 | }, |
| 132 | ], |
| 133 | }], |
| 134 | ], |
[email protected] | 3ac50367 | 2012-11-16 20:39:20 | [diff] [blame] | 135 | 'actions': [ |
[email protected] | bfd82e2 | 2012-12-12 21:01:08 | [diff] [blame] | 136 | # Generate R.java and crunch image resources. |
[email protected] | 3ac50367 | 2012-11-16 20:39:20 | [diff] [blame] | 137 | { |
[email protected] | bfd82e2 | 2012-12-12 21:01:08 | [diff] [blame] | 138 | 'action_name': 'process_resources', |
[email protected] | 37434b4 | 2013-02-20 22:39:17 | [diff] [blame] | 139 | 'message': 'processing resources for <(_target_name)', |
[email protected] | 2d401ff8 | 2013-03-23 18:38:32 | [diff] [blame] | 140 | 'variables': { |
| 141 | 'android_manifest': '<(DEPTH)/build/android/AndroidManifest.xml', |
[email protected] | 4f73ab5d | 2013-03-27 09:48:03 | [diff] [blame] | 142 | # Include the dependencies' res dirs so that references to |
| 143 | # resources in dependencies can be resolved. |
| 144 | 'all_res_dirs': ['<@(res_input_dirs)', '>@(additional_res_dirs)'], |
[email protected] | 2d401ff8 | 2013-03-23 18:38:32 | [diff] [blame] | 145 | }, |
[email protected] | 3ac50367 | 2012-11-16 20:39:20 | [diff] [blame] | 146 | 'inputs': [ |
[email protected] | 2f60163 | 2013-04-04 23:04:40 | [diff] [blame] | 147 | '<(DEPTH)/build/android/gyp/util/build_utils.py', |
| 148 | '<(DEPTH)/build/android/gyp/process_resources.py', |
[email protected] | 7dc7681 | 2013-03-26 07:31:57 | [diff] [blame] | 149 | '>@(resource_input_paths)', |
[email protected] | 4f73ab5d | 2013-03-27 09:48:03 | [diff] [blame] | 150 | '>@(dependencies_res_files)', |
[email protected] | 3ac50367 | 2012-11-16 20:39:20 | [diff] [blame] | 151 | ], |
| 152 | 'outputs': [ |
[email protected] | 2d401ff8 | 2013-03-23 18:38:32 | [diff] [blame] | 153 | '<(R_stamp)', |
[email protected] | 3ac50367 | 2012-11-16 20:39:20 | [diff] [blame] | 154 | ], |
| 155 | 'action': [ |
[email protected] | 2f60163 | 2013-04-04 23:04:40 | [diff] [blame] | 156 | 'python', '<(DEPTH)/build/android/gyp/process_resources.py', |
[email protected] | bfd82e2 | 2012-12-12 21:01:08 | [diff] [blame] | 157 | '--android-sdk', '<(android_sdk)', |
| 158 | '--android-sdk-tools', '<(android_sdk_tools)', |
[email protected] | bfd82e2 | 2012-12-12 21:01:08 | [diff] [blame] | 159 | '--R-dir', '<(R_dir)', |
[email protected] | 4f73ab5d | 2013-03-27 09:48:03 | [diff] [blame] | 160 | '--res-dirs', '>(all_res_dirs)', |
[email protected] | 7dc7681 | 2013-03-26 07:31:57 | [diff] [blame] | 161 | '--crunch-input-dir', '>(res_dir)', |
| 162 | '--crunch-output-dir', '<(res_crunched_dir)', |
[email protected] | 2d401ff8 | 2013-03-23 18:38:32 | [diff] [blame] | 163 | '--android-manifest', '<(android_manifest)', |
| 164 | '--non-constant-id', |
| 165 | '--custom-package', '<(R_package)', |
| 166 | '--stamp', '<(R_stamp)', |
[email protected] | a63d0d57 | 2013-03-06 00:36:41 | [diff] [blame] | 167 | |
[email protected] | 7dc7681 | 2013-03-26 07:31:57 | [diff] [blame] | 168 | # Add hash of inputs to the command line, so if inputs change |
[email protected] | a63d0d57 | 2013-03-06 00:36:41 | [diff] [blame] | 169 | # (e.g. if a resource if removed), the command will be re-run. |
| 170 | # TODO(newt): remove this once crbug.com/177552 is fixed in ninja. |
[email protected] | 2d401ff8 | 2013-03-23 18:38:32 | [diff] [blame] | 171 | '--ignore=>!(echo \'>(_inputs)\' | md5sum)', |
[email protected] | 3ac50367 | 2012-11-16 20:39:20 | [diff] [blame] | 172 | ], |
| 173 | }, |
| 174 | ], |
| 175 | }], |
| 176 | ], |
[email protected] | 65208a0 | 2012-04-17 04:39:52 | [diff] [blame] | 177 | 'actions': [ |
| 178 | { |
[email protected] | 18701736 | 2013-03-16 16:25:22 | [diff] [blame] | 179 | 'action_name': 'javac_<(_target_name)', |
| 180 | 'message': 'Compiling <(_target_name) java sources', |
| 181 | 'variables': { |
| 182 | 'all_src_dirs': [ |
[email protected] | a934b41 | 2013-03-26 20:44:29 | [diff] [blame] | 183 | '>(java_in_dir)/src', |
[email protected] | 18701736 | 2013-03-16 16:25:22 | [diff] [blame] | 184 | '>@(additional_src_dirs)', |
| 185 | '>@(generated_src_dirs)', |
| 186 | ], |
| 187 | }, |
[email protected] | 65208a0 | 2012-04-17 04:39:52 | [diff] [blame] | 188 | 'inputs': [ |
[email protected] | 2f60163 | 2013-04-04 23:04:40 | [diff] [blame] | 189 | '<(DEPTH)/build/android/gyp/util/build_utils.py', |
[email protected] | c3aae52a | 2013-04-04 09:35:50 | [diff] [blame] | 190 | '<(DEPTH)/build/android/gyp/javac.py', |
[email protected] | d54f19b | 2012-09-28 18:22:29 | [diff] [blame] | 191 | '>!@(find >(java_in_dir) >(additional_src_dirs) -name "*.java")', |
[email protected] | efdbdb0 | 2012-08-09 18:08:19 | [diff] [blame] | 192 | '>@(input_jars_paths)', |
[email protected] | 7ebed72c | 2012-09-22 01:21:32 | [diff] [blame] | 193 | '>@(additional_input_paths)', |
[email protected] | 65208a0 | 2012-04-17 04:39:52 | [diff] [blame] | 194 | ], |
| 195 | 'outputs': [ |
[email protected] | 18701736 | 2013-03-16 16:25:22 | [diff] [blame] | 196 | '<(compile_stamp)', |
| 197 | ], |
| 198 | 'action': [ |
[email protected] | c3aae52a | 2013-04-04 09:35:50 | [diff] [blame] | 199 | 'python', '<(DEPTH)/build/android/gyp/javac.py', |
[email protected] | 18701736 | 2013-03-16 16:25:22 | [diff] [blame] | 200 | '--output-dir=<(classes_dir)', |
| 201 | '--classpath=>(input_jars_paths)', |
| 202 | '--src-dirs=>(all_src_dirs)', |
| 203 | '--javac-includes=<(javac_includes)', |
[email protected] | 9ac32ff | 2013-04-01 23:52:40 | [diff] [blame] | 204 | '--chromium-code=<(chromium_code)', |
[email protected] | 18701736 | 2013-03-16 16:25:22 | [diff] [blame] | 205 | '--stamp=<(compile_stamp)', |
| 206 | |
| 207 | # TODO(newt): remove this once http://crbug.com/177552 is fixed in ninja. |
[email protected] | ae55047 | 2013-03-18 17:23:18 | [diff] [blame] | 208 | '--ignore=>!(echo \'>(_inputs)\' | md5sum)', |
[email protected] | 18701736 | 2013-03-16 16:25:22 | [diff] [blame] | 209 | ] |
| 210 | }, |
| 211 | { |
| 212 | 'action_name': 'jar_<(_target_name)', |
| 213 | 'message': 'Creating <(_target_name) jar', |
| 214 | 'inputs': [ |
[email protected] | 2f60163 | 2013-04-04 23:04:40 | [diff] [blame] | 215 | '<(DEPTH)/build/android/gyp/util/build_utils.py', |
[email protected] | c3aae52a | 2013-04-04 09:35:50 | [diff] [blame] | 216 | '<(DEPTH)/build/android/gyp/util/md5_check.py', |
| 217 | '<(DEPTH)/build/android/gyp/jar.py', |
[email protected] | 18701736 | 2013-03-16 16:25:22 | [diff] [blame] | 218 | '<(compile_stamp)', |
| 219 | ], |
| 220 | 'outputs': [ |
[email protected] | 37434b4 | 2013-02-20 22:39:17 | [diff] [blame] | 221 | '<(jar_path)', |
[email protected] | 65208a0 | 2012-04-17 04:39:52 | [diff] [blame] | 222 | ], |
| 223 | 'action': [ |
[email protected] | c3aae52a | 2013-04-04 09:35:50 | [diff] [blame] | 224 | 'python', '<(DEPTH)/build/android/gyp/jar.py', |
[email protected] | 18701736 | 2013-03-16 16:25:22 | [diff] [blame] | 225 | '--classes-dir=<(classes_dir)', |
| 226 | '--jar-path=<(jar_path)', |
[email protected] | a934b41 | 2013-03-26 20:44:29 | [diff] [blame] | 227 | '--excluded-classes=<(jar_excluded_classes)', |
[email protected] | d54f19b | 2012-09-28 18:22:29 | [diff] [blame] | 228 | |
[email protected] | 18701736 | 2013-03-16 16:25:22 | [diff] [blame] | 229 | # TODO(newt): remove this once http://crbug.com/177552 is fixed in ninja. |
[email protected] | ae55047 | 2013-03-18 17:23:18 | [diff] [blame] | 230 | '--ignore=>!(echo \'>(_inputs)\' | md5sum)', |
[email protected] | 65208a0 | 2012-04-17 04:39:52 | [diff] [blame] | 231 | ] |
| 232 | }, |
[email protected] | b13f73e | 2013-03-27 23:31:27 | [diff] [blame] | 233 | { |
[email protected] | 6117aaf | 2013-04-13 02:49:36 | [diff] [blame] | 234 | 'action_name': 'jar_toc_<(_target_name)', |
| 235 | 'message': 'Creating <(_target_name) jar.TOC', |
| 236 | 'inputs': [ |
| 237 | '<(DEPTH)/build/android/gyp/util/build_utils.py', |
| 238 | '<(DEPTH)/build/android/gyp/util/md5_check.py', |
| 239 | '<(DEPTH)/build/android/gyp/jar_toc.py', |
| 240 | '<(jar_path)', |
| 241 | ], |
| 242 | 'outputs': [ |
| 243 | '<(jar_path).TOC', |
| 244 | ], |
| 245 | 'action': [ |
| 246 | 'python', '<(DEPTH)/build/android/gyp/jar_toc.py', |
| 247 | '--jar-path=<(jar_path)', |
| 248 | '--toc-path=<(jar_path).TOC', |
| 249 | |
| 250 | # TODO(newt): remove this once http://crbug.com/177552 is fixed in ninja. |
| 251 | '--ignore=>!(echo \'>(_inputs)\' | md5sum)', |
| 252 | ] |
| 253 | }, |
| 254 | { |
[email protected] | b13f73e | 2013-03-27 23:31:27 | [diff] [blame] | 255 | 'action_name': 'dex_<(_target_name)', |
| 256 | 'message': 'Dexing <(_target_name) jar', |
| 257 | 'inputs': [ |
[email protected] | 2f60163 | 2013-04-04 23:04:40 | [diff] [blame] | 258 | '<(DEPTH)/build/android/gyp/util/build_utils.py', |
[email protected] | c3aae52a | 2013-04-04 09:35:50 | [diff] [blame] | 259 | '<(DEPTH)/build/android/gyp/util/md5_check.py', |
| 260 | '<(DEPTH)/build/android/gyp/dex.py', |
[email protected] | b13f73e | 2013-03-27 23:31:27 | [diff] [blame] | 261 | '<(jar_path)', |
| 262 | ], |
| 263 | 'outputs': [ |
| 264 | '<(dex_path)', |
| 265 | ], |
| 266 | 'action': [ |
[email protected] | c3aae52a | 2013-04-04 09:35:50 | [diff] [blame] | 267 | 'python', '<(DEPTH)/build/android/gyp/dex.py', |
[email protected] | b13f73e | 2013-03-27 23:31:27 | [diff] [blame] | 268 | '--dex-path=<(dex_path)', |
| 269 | '--android-sdk-root=<(android_sdk_root)', |
| 270 | |
| 271 | # TODO(newt): remove this once http://crbug.com/177552 is fixed in ninja. |
[email protected] | c5f783b | 2013-03-29 15:51:39 | [diff] [blame] | 272 | '--ignore=>!(echo \'>(_inputs)\' | md5sum)', |
[email protected] | b13f73e | 2013-03-27 23:31:27 | [diff] [blame] | 273 | |
| 274 | '<(jar_path)', |
| 275 | ] |
| 276 | }, |
| 277 | |
[email protected] | 65208a0 | 2012-04-17 04:39:52 | [diff] [blame] | 278 | ], |
| 279 | } |