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 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 'variables': { | 210 'variables': { |
211 'all_src_dirs': [ | 211 'all_src_dirs': [ |
212 '>(java_in_dir)/src', | 212 '>(java_in_dir)/src', |
213 '>@(additional_src_dirs)', | 213 '>@(additional_src_dirs)', |
214 '>@(generated_src_dirs)', | 214 '>@(generated_src_dirs)', |
215 ], | 215 ], |
216 }, | 216 }, |
217 'inputs': [ | 217 'inputs': [ |
218 '<(DEPTH)/build/android/gyp/util/build_utils.py', | 218 '<(DEPTH)/build/android/gyp/util/build_utils.py', |
219 '<(DEPTH)/build/android/gyp/javac.py', | 219 '<(DEPTH)/build/android/gyp/javac.py', |
220 '>!@(find >(java_in_dir) >(additional_src_dirs) -name "*.java")', | 220 '>!@(find >(java_in_dir)/src >(additional_src_dirs) -name "*.java")', |
221 '>@(input_jars_paths)', | 221 '>@(input_jars_paths)', |
222 '>@(additional_input_paths)', | 222 '>@(additional_input_paths)', |
223 ], | 223 ], |
224 'outputs': [ | 224 'outputs': [ |
225 '<(compile_stamp)', | 225 '<(compile_stamp)', |
226 ], | 226 ], |
227 'action': [ | 227 'action': [ |
228 'python', '<(DEPTH)/build/android/gyp/javac.py', | 228 'python', '<(DEPTH)/build/android/gyp/javac.py', |
229 '--output-dir=<(classes_dir)', | 229 '--output-dir=<(classes_dir)', |
230 '--classpath=>(input_jars_paths)', | 230 '--classpath=>(input_jars_paths)', |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
283 { | 283 { |
284 'action_name': 'dex_<(_target_name)', | 284 'action_name': 'dex_<(_target_name)', |
285 'variables': { | 285 'variables': { |
286 'dex_input_paths': [ '<(jar_path)' ], | 286 'dex_input_paths': [ '<(jar_path)' ], |
287 'output_path': '<(dex_path)', | 287 'output_path': '<(dex_path)', |
288 }, | 288 }, |
289 'includes': [ 'android/dex_action.gypi' ], | 289 'includes': [ 'android/dex_action.gypi' ], |
290 }, | 290 }, |
291 ], | 291 ], |
292 } | 292 } |
OLD | NEW |