| OLD | NEW |
| 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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 ], | 115 ], |
| 116 }, | 116 }, |
| 117 ], | 117 ], |
| 118 'conditions': [ | 118 'conditions': [ |
| 119 ['main_class != ""', { | 119 ['main_class != ""', { |
| 120 'actions': [ | 120 'actions': [ |
| 121 { | 121 { |
| 122 'action_name': 'create_java_binary_script_<(_target_name)', | 122 'action_name': 'create_java_binary_script_<(_target_name)', |
| 123 'message': 'Creating java binary script <(_target_name)', | 123 'message': 'Creating java binary script <(_target_name)', |
| 124 'variables': { | 124 'variables': { |
| 125 'output': '<(PRODUCT_DIR)/bin/<(_target_name)', | 125 'output': '<(PRODUCT_DIR)/bin/helper/<(_target_name)', |
| 126 }, | 126 }, |
| 127 'inputs': [ | 127 'inputs': [ |
| 128 '<(DEPTH)/build/android/gyp/create_java_binary_script.py', | 128 '<(DEPTH)/build/android/gyp/create_java_binary_script.py', |
| 129 '<(jar_path)', | 129 '<(jar_path)', |
| 130 ], | 130 ], |
| 131 'outputs': [ | 131 'outputs': [ |
| 132 '<(output)', | 132 '<(output)', |
| 133 ], | 133 ], |
| 134 'action': [ | 134 'action': [ |
| 135 'python', '<(DEPTH)/build/android/gyp/create_java_binary_script.py', | 135 'python', '<(DEPTH)/build/android/gyp/create_java_binary_script.py', |
| 136 '--classpath=>(input_jars_paths)', | 136 '--classpath=>(input_jars_paths)', |
| 137 '--jar-path=<(jar_path)', | 137 '--jar-path=<(jar_path)', |
| 138 '--output=<(output)', | 138 '--output=<(output)', |
| 139 '--main-class=>(main_class)', | 139 '--main-class=>(main_class)', |
| 140 ] | 140 ] |
| 141 } | 141 } |
| 142 ] | 142 ] |
| 143 }], | 143 }], |
| 144 ['enable_errorprone == 1', { | 144 ['enable_errorprone == 1', { |
| 145 'dependencies': [ | 145 'dependencies': [ |
| 146 '<(DEPTH)/third_party/errorprone/errorprone.gyp:require_errorprone', | 146 '<(DEPTH)/third_party/errorprone/errorprone.gyp:require_errorprone', |
| 147 ], | 147 ], |
| 148 }], | 148 }], |
| 149 ] | 149 ] |
| 150 } | 150 } |
| 151 | 151 |
| OLD | NEW |