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

Side by Side Diff: build/host_jar.gypi

Issue 1708383002: Put generated non-test Java runner scripts into bin/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
« no previous file with comments | « build/config/android/rules.gni ('k') | chrome/chrome_tests.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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 to build 5 # This file is meant to be included into a target to provide a rule to build
6 # a JAR file for use on a host in a consistent manner. If a main class is 6 # a JAR file for use on a host in a consistent manner. If a main class is
7 # specified, this file will also generate an executable to run the jar in the 7 # specified, this file will also generate an executable to run the jar in the
8 # output folder's /bin/ directory. 8 # output folder's /bin/ directory.
9 # 9 #
10 # To use this, create a gyp target with the following form: 10 # To use this, create a gyp target with the following form:
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 'jar_path': '<(jar_dir)/<(jar_name)', 53 'jar_path': '<(jar_dir)/<(jar_name)',
54 'main_class%': '', 54 'main_class%': '',
55 'stamp': '<(intermediate_dir)/jar.stamp', 55 'stamp': '<(intermediate_dir)/jar.stamp',
56 'conditions': [ 56 'conditions': [
57 ['chromium_code == 0', { 57 ['chromium_code == 0', {
58 'enable_errorprone': 0, 58 'enable_errorprone': 0,
59 }], 59 }],
60 ], 60 ],
61 'enable_errorprone%': 0, 61 'enable_errorprone%': 0,
62 'errorprone_exe_path': '<(PRODUCT_DIR)/bin.java/chromium_errorprone', 62 'errorprone_exe_path': '<(PRODUCT_DIR)/bin.java/chromium_errorprone',
63 'wrapper_script_name%': '<(_target_name)',
63 }, 64 },
64 'all_dependent_settings': { 65 'all_dependent_settings': {
65 'variables': { 66 'variables': {
66 'input_jars_paths': ['<(jar_path)'] 67 'input_jars_paths': ['<(jar_path)']
67 }, 68 },
68 }, 69 },
69 'actions': [ 70 'actions': [
70 { 71 {
71 'action_name': 'javac_<(_target_name)', 72 'action_name': 'javac_<(_target_name)',
72 'message': 'Compiling <(_target_name) java sources', 73 'message': 'Compiling <(_target_name) java sources',
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 ], 116 ],
116 }, 117 },
117 ], 118 ],
118 'conditions': [ 119 'conditions': [
119 ['main_class != ""', { 120 ['main_class != ""', {
120 'actions': [ 121 'actions': [
121 { 122 {
122 'action_name': 'create_java_binary_script_<(_target_name)', 123 'action_name': 'create_java_binary_script_<(_target_name)',
123 'message': 'Creating java binary script <(_target_name)', 124 'message': 'Creating java binary script <(_target_name)',
124 'variables': { 125 'variables': {
125 'output': '<(PRODUCT_DIR)/bin/helper/<(_target_name)', 126 'output': '<(PRODUCT_DIR)/bin/<(wrapper_script_name)',
126 }, 127 },
127 'inputs': [ 128 'inputs': [
128 '<(DEPTH)/build/android/gyp/create_java_binary_script.py', 129 '<(DEPTH)/build/android/gyp/create_java_binary_script.py',
129 '<(jar_path)', 130 '<(jar_path)',
130 ], 131 ],
131 'outputs': [ 132 'outputs': [
132 '<(output)', 133 '<(output)',
133 ], 134 ],
134 'action': [ 135 'action': [
135 'python', '<(DEPTH)/build/android/gyp/create_java_binary_script.py', 136 'python', '<(DEPTH)/build/android/gyp/create_java_binary_script.py',
136 '--classpath=>(input_jars_paths)', 137 '--classpath=>(input_jars_paths)',
137 '--jar-path=<(jar_path)', 138 '--jar-path=<(jar_path)',
138 '--output=<(output)', 139 '--output=<(output)',
139 '--main-class=>(main_class)', 140 '--main-class=>(main_class)',
140 ] 141 ]
141 } 142 }
142 ] 143 ]
143 }], 144 }],
144 ['enable_errorprone == 1', { 145 ['enable_errorprone == 1', {
145 'dependencies': [ 146 'dependencies': [
146 '<(DEPTH)/third_party/errorprone/errorprone.gyp:require_errorprone', 147 '<(DEPTH)/third_party/errorprone/errorprone.gyp:require_errorprone',
147 ], 148 ],
148 }], 149 }],
149 ] 150 ]
150 } 151 }
151 152
OLDNEW
« no previous file with comments | « build/config/android/rules.gni ('k') | chrome/chrome_tests.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698