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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 # jar path to the classpath of dependent java targets. | 106 # jar path to the classpath of dependent java targets. |
107 'all_dependent_settings': { | 107 'all_dependent_settings': { |
108 'variables': { | 108 'variables': { |
109 'input_jars_paths': ['<(jar_final_path)'], | 109 'input_jars_paths': ['<(jar_final_path)'], |
110 'library_dexed_jars_paths': ['<(dex_path)'], | 110 'library_dexed_jars_paths': ['<(dex_path)'], |
111 }, | 111 }, |
112 }, | 112 }, |
113 }], | 113 }], |
114 ['has_java_resources == 1', { | 114 ['has_java_resources == 1', { |
115 'variables': { | 115 'variables': { |
116 'res_dir': '<(java_in_dir)/res', | 116 'resource_dir': '<(java_in_dir)/res', |
117 'res_input_dirs': ['<(res_dir)', '<@(res_extra_dirs)'], | 117 'res_input_dirs': ['<(resource_dir)', '<@(res_extra_dirs)'], |
118 'resource_input_paths': ['<!@(find <(res_dir) -type f)'], | 118 'resource_input_paths': ['<!@(find <(resource_dir) -type f)'], |
119 | 119 |
120 'R_dir': '<(intermediate_dir)/java_R', | 120 'R_dir': '<(intermediate_dir)/java_R', |
121 'R_text_file': '<(R_dir)/R.txt', | 121 'R_text_file': '<(R_dir)/R.txt', |
122 | 122 |
123 'generated_src_dirs': ['<(R_dir)'], | 123 'generated_src_dirs': ['<(R_dir)'], |
124 'additional_input_paths': ['<(resource_zip_path)', ], | 124 'additional_input_paths': ['<(resource_zip_path)', ], |
125 | 125 |
126 'dependencies_res_zip_paths': [], | 126 'dependencies_res_zip_paths': [], |
127 'resource_zip_path': '<(PRODUCT_DIR)/res.java/<(_target_name).zip', | 127 'resource_zip_path': '<(PRODUCT_DIR)/res.java/<(_target_name).zip', |
128 }, | 128 }, |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
311 'dex_no_locals': 1, | 311 'dex_no_locals': 1, |
312 }], | 312 }], |
313 ], | 313 ], |
314 'dex_input_paths': [ '<(jar_final_path)' ], | 314 'dex_input_paths': [ '<(jar_final_path)' ], |
315 'output_path': '<(dex_path)', | 315 'output_path': '<(dex_path)', |
316 }, | 316 }, |
317 'includes': [ 'android/dex_action.gypi' ], | 317 'includes': [ 'android/dex_action.gypi' ], |
318 }, | 318 }, |
319 ], | 319 ], |
320 } | 320 } |
OLD | NEW |