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 Android APKs in a consistent manner. | 6 # to build Android APKs 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_apk', | 10 # 'target_name': 'my_package_apk', |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
213 '<(DEPTH)/build/android/setup.gyp:copy_system_libraries', | 213 '<(DEPTH)/build/android/setup.gyp:copy_system_libraries', |
214 ], | 214 ], |
215 }], | 215 }], |
216 ['use_chromium_linker == 1', { | 216 ['use_chromium_linker == 1', { |
217 'dependencies': [ | 217 'dependencies': [ |
218 '<(DEPTH)/base/base.gyp:chromium_android_linker', | 218 '<(DEPTH)/base/base.gyp:chromium_android_linker', |
219 ], | 219 ], |
220 }], | 220 }], |
221 ['native_lib_target != ""', { | 221 ['native_lib_target != ""', { |
222 'variables': { | 222 'variables': { |
223 'conditions': [ | |
224 ['use_chromium_linker == 1', { | |
225 'variables': { | |
226 'chromium_linker_path': [ | |
Andrew Hayden (chromium.org)
2014/10/07 11:28:19
I am hopeful that this can just be a string argume
| |
227 '<(SHARED_LIB_DIR)/<(libchromium_android_linker)', | |
228 ], | |
229 } | |
230 }, { | |
231 'variables': { | |
232 'chromium_linker_path': [], | |
233 }, | |
234 }], | |
235 ], | |
223 'generated_src_dirs': [ '<(native_libraries_java_dir)' ], | 236 'generated_src_dirs': [ '<(native_libraries_java_dir)' ], |
224 'native_libs_paths': [ | 237 'native_libs_paths': [ |
225 '<(SHARED_LIB_DIR)/<(native_lib_target).>(android_product_extension)' | 238 '<(SHARED_LIB_DIR)/<(native_lib_target).>(android_product_extension)', |
239 '<@(chromium_linker_path)' | |
226 ], | 240 ], |
227 'package_input_paths': [ | 241 'package_input_paths': [ |
228 '<(apk_package_native_libs_dir)/<(android_app_abi)/gdbserver', | 242 '<(apk_package_native_libs_dir)/<(android_app_abi)/gdbserver', |
229 ], | 243 ], |
230 }, | 244 }, |
231 'copies': [ | 245 'copies': [ |
232 { | 246 { |
233 # gdbserver is always copied into the APK's native libs dir. The ant | 247 # gdbserver is always copied into the APK's native libs dir. The ant |
234 # build scripts (apkbuilder task) will only include it in a debug | 248 # build scripts (apkbuilder task) will only include it in a debug |
235 # build. | 249 # build. |
236 'destination': '<(apk_package_native_libs_dir)/<(android_app_abi)', | 250 'destination': '<(apk_package_native_libs_dir)/<(android_app_abi)', |
237 'files': [ | 251 'files': [ |
238 '<(android_gdbserver)', | 252 '<(android_gdbserver)', |
239 ], | 253 ], |
240 }, | 254 }, |
241 ], | 255 ], |
242 'actions': [ | 256 'actions': [ |
243 { | 257 { |
244 'variables': { | 258 'variables': { |
245 'conditions': [ | |
246 ['use_chromium_linker == 1', { | |
247 'variables': { | |
248 'linker_input_libraries': [ | |
249 '<(SHARED_LIB_DIR)/<(libchromium_android_linker)', | |
250 ], | |
251 } | |
252 }, { | |
253 'variables': { | |
254 'linker_input_libraries': [], | |
255 }, | |
256 }], | |
257 ], | |
258 'input_libraries': [ | 259 'input_libraries': [ |
259 '<@(native_libs_paths)', | 260 '<@(native_libs_paths)', |
260 '<@(extra_native_libs)', | 261 '<@(extra_native_libs)', |
261 '<@(linker_input_libraries)', | |
262 ], | 262 ], |
263 }, | 263 }, |
264 'includes': ['../build/android/write_ordered_libraries.gypi'], | 264 'includes': ['../build/android/write_ordered_libraries.gypi'], |
265 }, | 265 }, |
266 { | 266 { |
267 'action_name': 'native_libraries_<(_target_name)', | 267 'action_name': 'native_libraries_<(_target_name)', |
268 'variables': { | 268 'variables': { |
269 'conditions': [ | 269 'conditions': [ |
270 ['use_chromium_linker == 1', { | 270 ['use_chromium_linker == 1', { |
271 'variables': { | 271 'variables': { |
(...skipping 639 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
911 '-DEMMA_INSTRUMENT=<(emma_instrument)', | 911 '-DEMMA_INSTRUMENT=<(emma_instrument)', |
912 '-DEMMA_DEVICE_JAR=<(emma_device_jar)', | 912 '-DEMMA_DEVICE_JAR=<(emma_device_jar)', |
913 | 913 |
914 '-Dbasedir=.', | 914 '-Dbasedir=.', |
915 '-buildfile', | 915 '-buildfile', |
916 '<(DEPTH)/build/android/ant/apk-package.xml', | 916 '<(DEPTH)/build/android/ant/apk-package.xml', |
917 ] | 917 ] |
918 }, | 918 }, |
919 ], | 919 ], |
920 } | 920 } |
OLD | NEW |