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 import("//base/android/linker/config.gni") | 5 import("//base/android/linker/config.gni") |
6 import("//build/config/android/config.gni") | 6 import("//build/config/android/config.gni") |
7 import("//build/config/android/internal_rules.gni") | 7 import("//build/config/android/internal_rules.gni") |
8 import("//build/config/sanitizers/sanitizers.gni") | 8 import("//build/config/sanitizers/sanitizers.gni") |
9 import("//build/toolchain/toolchain.gni") | 9 import("//build/toolchain/toolchain.gni") |
10 import("//third_party/android_platform/config.gni") | 10 import("//third_party/android_platform/config.gni") |
(...skipping 1465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1476 if (_load_library_from_apk) { | 1476 if (_load_library_from_apk) { |
1477 defines += [ "ENABLE_CHROMIUM_LINKER_LIBRARY_IN_ZIP_FILE" ] | 1477 defines += [ "ENABLE_CHROMIUM_LINKER_LIBRARY_IN_ZIP_FILE" ] |
1478 } | 1478 } |
1479 if (_enable_chromium_linker_tests) { | 1479 if (_enable_chromium_linker_tests) { |
1480 defines += [ "ENABLE_CHROMIUM_LINKER_TESTS" ] | 1480 defines += [ "ENABLE_CHROMIUM_LINKER_TESTS" ] |
1481 } | 1481 } |
1482 } | 1482 } |
1483 _srcjar_deps += [ ":${_template_name}__native_libraries_java" ] | 1483 _srcjar_deps += [ ":${_template_name}__native_libraries_java" ] |
1484 } | 1484 } |
1485 | 1485 |
1486 java_cpp_template("${_template_name}__multidex_config_java") { | |
1487 package_name = "org/chromium/base/multidex" | |
1488 sources = [ | |
1489 "//base/android/java/templates/ChromiumMultiDex.template", | |
1490 ] | |
1491 | |
1492 defines = [] | |
1493 if (enable_multidex) { | |
1494 defines += [ "ENABLE_MULTIDEX" ] | |
1495 } | |
1496 } | |
1497 _srcjar_deps += [ ":${_template_name}__multidex_config_java" ] | |
agrieve
2016/01/12 03:48:28
I think this adds ChromiumMultidex.java to *every*
jbudorick
2016/01/12 04:48:11
Didn't do anything here yet pending further discus
agrieve
2016/01/12 20:25:46
Ironically, the best docs I could find are from bu
| |
1498 | |
1486 java_target = "${_template_name}__java" | 1499 java_target = "${_template_name}__java" |
1487 java_library_impl(java_target) { | 1500 java_library_impl(java_target) { |
1488 forward_variables_from(invoker, [ "run_findbugs" ]) | 1501 forward_variables_from(invoker, [ "run_findbugs" ]) |
1489 supports_android = true | 1502 supports_android = true |
1490 requires_android = true | 1503 requires_android = true |
1491 override_build_config = _build_config | 1504 override_build_config = _build_config |
1492 deps = _android_manifest_deps + [ ":$build_config_target" ] | 1505 deps = _android_manifest_deps + [ ":$build_config_target" ] |
1493 | 1506 |
1494 android_manifest = _android_manifest | 1507 android_manifest = _android_manifest |
1495 chromium_code = true | 1508 chromium_code = true |
(...skipping 758 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2254 } | 2267 } |
2255 | 2268 |
2256 android_library(target_name) { | 2269 android_library(target_name) { |
2257 java_files = [] | 2270 java_files = [] |
2258 srcjar_deps = [ ":${_template_name}__protoc_java" ] | 2271 srcjar_deps = [ ":${_template_name}__protoc_java" ] |
2259 deps = [ | 2272 deps = [ |
2260 "//third_party/android_protobuf:protobuf_nano_javalib", | 2273 "//third_party/android_protobuf:protobuf_nano_javalib", |
2261 ] | 2274 ] |
2262 } | 2275 } |
2263 } | 2276 } |
OLD | NEW |