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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 'android/ant/common.xml', | 122 'android/ant/common.xml', |
123 'android/ant/chromium-jars.xml', | 123 'android/ant/chromium-jars.xml', |
124 '>!@(find >(java_in_dir) >(additional_src_dirs) -name "*.java")', | 124 '>!@(find >(java_in_dir) >(additional_src_dirs) -name "*.java")', |
125 '>@(input_jars_paths)', | 125 '>@(input_jars_paths)', |
126 '>@(additional_input_paths)', | 126 '>@(additional_input_paths)', |
127 ], | 127 ], |
128 'outputs': [ | 128 'outputs': [ |
129 '<(PRODUCT_DIR)/lib.java/chromium_<(package_name).jar', | 129 '<(PRODUCT_DIR)/lib.java/chromium_<(package_name).jar', |
130 ], | 130 ], |
131 'action': [ | 131 'action': [ |
132 'ant', | 132 'ant', '-quiet', |
133 '-DCONFIGURATION_NAME=<(CONFIGURATION_NAME)', | 133 '-DCONFIGURATION_NAME=<(CONFIGURATION_NAME)', |
134 '-DANDROID_SDK=<(android_sdk)', | 134 '-DANDROID_SDK=<(android_sdk)', |
135 '-DANDROID_SDK_ROOT=<(android_sdk_root)', | 135 '-DANDROID_SDK_ROOT=<(android_sdk_root)', |
136 '-DANDROID_SDK_TOOLS=<(android_sdk_tools)', | 136 '-DANDROID_SDK_TOOLS=<(android_sdk_tools)', |
137 '-DANDROID_SDK_VERSION=<(android_sdk_version)', | 137 '-DANDROID_SDK_VERSION=<(android_sdk_version)', |
138 '-DANDROID_GDBSERVER=<(android_gdbserver)', | 138 '-DANDROID_GDBSERVER=<(android_gdbserver)', |
139 '-DPRODUCT_DIR=<(ant_build_out)', | 139 '-DPRODUCT_DIR=<(ant_build_out)', |
140 | 140 |
141 '-DADDITIONAL_SRC_DIRS=>(additional_src_dirs)', | 141 '-DADDITIONAL_SRC_DIRS=>(additional_src_dirs)', |
142 '-DGENERATED_SRC_DIRS=>(generated_src_dirs)', | 142 '-DGENERATED_SRC_DIRS=>(generated_src_dirs)', |
143 '-DINPUT_JARS_PATHS=>(input_jars_paths)', | 143 '-DINPUT_JARS_PATHS=>(input_jars_paths)', |
144 '-DPACKAGE_NAME=<(package_name)', | 144 '-DPACKAGE_NAME=<(package_name)', |
145 '-DJAVAC_INCLUDES=>(javac_includes)', | 145 '-DJAVAC_INCLUDES=>(javac_includes)', |
146 | 146 |
147 '-Dbasedir=<(java_in_dir)', | 147 '-Dbasedir=<(java_in_dir)', |
148 '-buildfile', | 148 '-buildfile', |
149 '<(DEPTH)/build/android/ant/chromium-jars.xml' | 149 '<(DEPTH)/build/android/ant/chromium-jars.xml' |
150 ] | 150 ] |
151 }, | 151 }, |
152 ], | 152 ], |
153 } | 153 } |
OLD | NEW |