OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 # This file is meant to be included into a target to provide a rule | 5 # This file is meant to be included into a target to provide a rule |
6 # to build Java in a consistent manner. | 6 # to build Java in a consistent manner. |
7 # | 7 # |
8 # To use this, create a gyp target with the following form: | 8 # To use this, create a gyp target with the following form: |
9 # { | 9 # { |
10 # 'target_name': 'my-package_java', | 10 # 'target_name': 'my-package_java', |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 ], | 195 ], |
196 }, | 196 }, |
197 ], | 197 ], |
198 }], | 198 }], |
199 ['proguard_preprocess == 1', { | 199 ['proguard_preprocess == 1', { |
200 'actions': [ | 200 'actions': [ |
201 { | 201 { |
202 'action_name': 'proguard_<(_target_name)', | 202 'action_name': 'proguard_<(_target_name)', |
203 'message': 'Proguard preprocessing <(_target_name) jar', | 203 'message': 'Proguard preprocessing <(_target_name) jar', |
204 'inputs': [ | 204 'inputs': [ |
205 '<(android_sdk_root)/tools/proguard/lib/proguard.jar', | 205 '<(DEPTH)/third_party/proguard/lib/proguard.jar', |
206 '<(DEPTH)/build/android/gyp/util/build_utils.py', | 206 '<(DEPTH)/build/android/gyp/util/build_utils.py', |
207 '<(DEPTH)/build/android/gyp/proguard.py', | 207 '<(DEPTH)/build/android/gyp/proguard.py', |
208 '<(javac_jar_path)', | 208 '<(javac_jar_path)', |
209 '<(proguard_config)', | 209 '<(proguard_config)', |
210 ], | 210 ], |
211 'outputs': [ | 211 'outputs': [ |
212 '<(jar_path)', | 212 '<(jar_path)', |
213 ], | 213 ], |
214 'action': [ | 214 'action': [ |
215 'python', '<(DEPTH)/build/android/gyp/proguard.py', | 215 'python', '<(DEPTH)/build/android/gyp/proguard.py', |
216 '--proguard-path=<(android_sdk_root)/tools/proguard/lib/proguard.jar
', | 216 '--proguard-path=<(DEPTH)/third_party/proguard/lib/proguard.jar', |
217 '--input-path=<(javac_jar_path)', | 217 '--input-path=<(javac_jar_path)', |
218 '--output-path=<(jar_path)', | 218 '--output-path=<(jar_path)', |
219 '--proguard-config=<(proguard_config)', | 219 '--proguard-config=<(proguard_config)', |
220 '--classpath=<(android_sdk_jar) >(input_jars_paths)', | 220 '--classpath=<(android_sdk_jar) >(input_jars_paths)', |
221 ] | 221 ] |
222 }, | 222 }, |
223 ], | 223 ], |
224 }], | 224 }], |
225 ['run_findbugs == 1', { | 225 ['run_findbugs == 1', { |
226 'actions': [ | 226 'actions': [ |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
359 'dex_no_locals': 1, | 359 'dex_no_locals': 1, |
360 }], | 360 }], |
361 ], | 361 ], |
362 'dex_input_paths': [ '<(jar_final_path)' ], | 362 'dex_input_paths': [ '<(jar_final_path)' ], |
363 'output_path': '<(dex_path)', | 363 'output_path': '<(dex_path)', |
364 }, | 364 }, |
365 'includes': [ 'android/dex_action.gypi' ], | 365 'includes': [ 'android/dex_action.gypi' ], |
366 }, | 366 }, |
367 ], | 367 ], |
368 } | 368 } |
OLD | NEW |