Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(213)

Side by Side Diff: build/java.gypi

Issue 12880007: Translate some ant to python (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ant_split
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 { 45 {
46 'dependencies': [ 46 'dependencies': [
47 '<(DEPTH)/build/build_output_dirs_android.gyp:build_output_dirs' 47 '<(DEPTH)/build/build_output_dirs_android.gyp:build_output_dirs'
48 ], 48 ],
49 'variables': { 49 'variables': {
50 'input_jars_paths': [ '<(android_sdk_jar)' ], 50 'input_jars_paths': [ '<(android_sdk_jar)' ],
51 'additional_src_dirs': [], 51 'additional_src_dirs': [],
52 'javac_includes': [], 52 'javac_includes': [],
53 'jar_name': '<(_target_name).jar', 53 'jar_name': '<(_target_name).jar',
54 'jar_path': '<(PRODUCT_DIR)/lib.java/<(jar_name)', 54 'jar_path': '<(PRODUCT_DIR)/lib.java/<(jar_name)',
55 'excluded_classes': [ '*/R.class', '*/R##*.class' ], 55 'jar_excluded_classes': [ '*/R.class', '*/R##*.class' ],
56 'additional_input_paths': ['>@(additional_R_files)'], 56 'additional_input_paths': ['>@(additional_R_files)'],
57 'generated_src_dirs': ['>@(generated_R_dirs)'], 57 'generated_src_dirs': ['>@(generated_R_dirs)'],
58 'generated_R_dirs': [], 58 'generated_R_dirs': [],
59 'additional_R_files': [], 59 'additional_R_files': [],
60 'has_java_resources%': 0, 60 'has_java_resources%': 0,
61 'java_strings_grd%': '', 61 'java_strings_grd%': '',
62 'intermediate_dir': '<(SHARED_INTERMEDIATE_DIR)/<(_target_name)', 62 'intermediate_dir': '<(SHARED_INTERMEDIATE_DIR)/<(_target_name)',
63 'classes_dir': '<(intermediate_dir)/classes', 63 'classes_dir': '<(intermediate_dir)/classes',
64 'compile_stamp': '<(intermediate_dir)/compile.stamp', 64 'compile_stamp': '<(intermediate_dir)/compile.stamp',
65 }, 65 },
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 }, 151 },
152 ], 152 ],
153 }], 153 }],
154 ], 154 ],
155 'actions': [ 155 'actions': [
156 { 156 {
157 'action_name': 'javac_<(_target_name)', 157 'action_name': 'javac_<(_target_name)',
158 'message': 'Compiling <(_target_name) java sources', 158 'message': 'Compiling <(_target_name) java sources',
159 'variables': { 159 'variables': {
160 'all_src_dirs': [ 160 'all_src_dirs': [
161 '>@(java_in_dir)/src', 161 '>(java_in_dir)/src',
162 '>@(additional_src_dirs)', 162 '>@(additional_src_dirs)',
163 '>@(generated_src_dirs)', 163 '>@(generated_src_dirs)',
164 ], 164 ],
165 }, 165 },
166 'inputs': [ 166 'inputs': [
167 '<(DEPTH)/build/android/pylib/build_utils.py', 167 '<(DEPTH)/build/android/pylib/build_utils.py',
168 '<(DEPTH)/build/android/javac.py', 168 '<(DEPTH)/build/android/javac.py',
169 '>!@(find >(java_in_dir) >(additional_src_dirs) -name "*.java")', 169 '>!@(find >(java_in_dir) >(additional_src_dirs) -name "*.java")',
170 '>@(input_jars_paths)', 170 '>@(input_jars_paths)',
171 '>@(additional_input_paths)', 171 '>@(additional_input_paths)',
(...skipping 21 matching lines...) Expand all
193 '<(DEPTH)/build/android/jar.py', 193 '<(DEPTH)/build/android/jar.py',
194 '<(compile_stamp)', 194 '<(compile_stamp)',
195 ], 195 ],
196 'outputs': [ 196 'outputs': [
197 '<(jar_path)', 197 '<(jar_path)',
198 ], 198 ],
199 'action': [ 199 'action': [
200 'python', '<(DEPTH)/build/android/jar.py', 200 'python', '<(DEPTH)/build/android/jar.py',
201 '--classes-dir=<(classes_dir)', 201 '--classes-dir=<(classes_dir)',
202 '--jar-path=<(jar_path)', 202 '--jar-path=<(jar_path)',
203 '--excluded-classes=<(excluded_classes)', 203 '--excluded-classes=<(jar_excluded_classes)',
204 204
205 # TODO(newt): remove this once http://crbug.com/177552 is fixed in ninja . 205 # TODO(newt): remove this once http://crbug.com/177552 is fixed in ninja .
206 '--ignore=>!(echo \'>(_inputs)\' | md5sum)', 206 '--ignore=>!(echo \'>(_inputs)\' | md5sum)',
207 ] 207 ]
208 }, 208 },
209 ], 209 ],
210 } 210 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698