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 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 ], | 197 ], |
198 }, | 198 }, |
199 ], | 199 ], |
200 }], | 200 }], |
201 ['proguard_preprocess == 1', { | 201 ['proguard_preprocess == 1', { |
202 'actions': [ | 202 'actions': [ |
203 { | 203 { |
204 'action_name': 'proguard_<(_target_name)', | 204 'action_name': 'proguard_<(_target_name)', |
205 'message': 'Proguard preprocessing <(_target_name) jar', | 205 'message': 'Proguard preprocessing <(_target_name) jar', |
206 'inputs': [ | 206 'inputs': [ |
207 '<(android_sdk_root)/tools/proguard/lib/proguard.jar', | 207 '<(DEPTH)/third_party/proguard/lib/proguard.jar', |
208 '<(DEPTH)/build/android/gyp/util/build_utils.py', | 208 '<(DEPTH)/build/android/gyp/util/build_utils.py', |
209 '<(DEPTH)/build/android/gyp/proguard.py', | 209 '<(DEPTH)/build/android/gyp/proguard.py', |
210 '<(javac_jar_path)', | 210 '<(javac_jar_path)', |
211 '<(proguard_config)', | 211 '<(proguard_config)', |
212 ], | 212 ], |
213 'outputs': [ | 213 'outputs': [ |
214 '<(jar_path)', | 214 '<(jar_path)', |
215 ], | 215 ], |
216 'action': [ | 216 'action': [ |
217 'python', '<(DEPTH)/build/android/gyp/proguard.py', | 217 'python', '<(DEPTH)/build/android/gyp/proguard.py', |
218 '--proguard-path=<(android_sdk_root)/tools/proguard/lib/proguard.jar
', | 218 '--proguard-path=<(DEPTH)/third_party/proguard/lib/proguard.jar', |
219 '--input-path=<(javac_jar_path)', | 219 '--input-path=<(javac_jar_path)', |
220 '--output-path=<(jar_path)', | 220 '--output-path=<(jar_path)', |
221 '--proguard-config=<(proguard_config)', | 221 '--proguard-config=<(proguard_config)', |
222 '--classpath=<(android_sdk_jar) >(input_jars_paths)', | 222 '--classpath=<(android_sdk_jar) >(input_jars_paths)', |
223 ] | 223 ] |
224 }, | 224 }, |
225 ], | 225 ], |
226 }], | 226 }], |
227 ['run_findbugs == 1', { | 227 ['run_findbugs == 1', { |
228 'actions': [ | 228 'actions': [ |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
381 'dex_no_locals': 1, | 381 'dex_no_locals': 1, |
382 }], | 382 }], |
383 ], | 383 ], |
384 'dex_input_paths': [ '<(jar_final_path)' ], | 384 'dex_input_paths': [ '<(jar_final_path)' ], |
385 'output_path': '<(dex_path)', | 385 'output_path': '<(dex_path)', |
386 }, | 386 }, |
387 'includes': [ 'android/dex_action.gypi' ], | 387 'includes': [ 'android/dex_action.gypi' ], |
388 }, | 388 }, |
389 ], | 389 ], |
390 } | 390 } |
OLD | NEW |