| 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("//build/config/android/config.gni") | 5 import("//build/config/android/config.gni") |
| 6 | 6 |
| 7 assert(is_android) | 7 assert(is_android) |
| 8 | 8 |
| 9 | 9 |
| 10 rebased_android_sdk = rebase_path(android_sdk, root_build_dir) | 10 rebased_android_sdk = rebase_path(android_sdk, root_build_dir) |
| (...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 _native_libs_dir = "//build/android/empty/res" | 246 _native_libs_dir = "//build/android/empty/res" |
| 247 if (defined(invoker.native_libs_dir)) { | 247 if (defined(invoker.native_libs_dir)) { |
| 248 _native_libs_dir = invoker.native_libs_dir | 248 _native_libs_dir = invoker.native_libs_dir |
| 249 } | 249 } |
| 250 | 250 |
| 251 _asset_location = "//build/android/empty/res" | 251 _asset_location = "//build/android/empty/res" |
| 252 if (defined(invoker.asset_location)) { | 252 if (defined(invoker.asset_location)) { |
| 253 _asset_location = invoker.asset_location | 253 _asset_location = invoker.asset_location |
| 254 } | 254 } |
| 255 | 255 |
| 256 _version_code = "1" | 256 _version_code = invoker.version_code |
| 257 _version_name = "Developer Build" | 257 _version_name = invoker.version_name |
| 258 | 258 |
| 259 _base_apk_path = _base_path + ".apk_intermediates" | 259 _base_apk_path = _base_path + ".apk_intermediates" |
| 260 | 260 |
| 261 _resource_packaged_apk_path = _base_apk_path + ".ap_" | 261 _resource_packaged_apk_path = _base_apk_path + ".ap_" |
| 262 _packaged_apk_path = _base_apk_path + ".unfinished.apk" | 262 _packaged_apk_path = _base_apk_path + ".unfinished.apk" |
| 263 | 263 |
| 264 | 264 |
| 265 _configuration_name = "Release" | 265 _configuration_name = "Release" |
| 266 if (is_debug) { | 266 if (is_debug) { |
| 267 _configuration_name = "Debug" | 267 _configuration_name = "Debug" |
| (...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 550 | 550 |
| 551 | 551 |
| 552 # This adds Android-specific parts to the java_library template. | 552 # This adds Android-specific parts to the java_library template. |
| 553 # | 553 # |
| 554 # Runs Android lint against the compiled java files. | 554 # Runs Android lint against the compiled java files. |
| 555 # Dexes the output jar for inclusion in an APK. | 555 # Dexes the output jar for inclusion in an APK. |
| 556 template("android_java_library") { | 556 template("android_java_library") { |
| 557 if (defined(invoker.testonly)) { testonly = invoker.testonly } | 557 if (defined(invoker.testonly)) { testonly = invoker.testonly } |
| 558 | 558 |
| 559 assert(defined(invoker.java_files) || defined(invoker.DEPRECATED_java_in_dir) | 559 assert(defined(invoker.java_files) || defined(invoker.DEPRECATED_java_in_dir) |
| 560 || defined(invoker.srcjars)) | 560 || defined(invoker.srcjars) || defined(invoker.srcjar_deps)) |
| 561 assert(defined(invoker.build_config)) | 561 assert(defined(invoker.build_config)) |
| 562 assert(defined(invoker.jar_path)) | 562 assert(defined(invoker.jar_path)) |
| 563 assert(defined(invoker.dex_path)) | 563 assert(defined(invoker.dex_path)) |
| 564 | 564 |
| 565 _srcjar_deps = [] | 565 _srcjar_deps = [] |
| 566 if (defined(invoker.srcjar_deps)) { | 566 if (defined(invoker.srcjar_deps)) { |
| 567 _srcjar_deps = invoker.srcjar_deps | 567 _srcjar_deps = invoker.srcjar_deps |
| 568 } | 568 } |
| 569 | 569 |
| 570 _srcjars = [] | 570 _srcjars = [] |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 764 | 764 |
| 765 if (defined(invoker.clear_dir) && invoker.clear_dir) { | 765 if (defined(invoker.clear_dir) && invoker.clear_dir) { |
| 766 args += ["--clear"] | 766 args += ["--clear"] |
| 767 } | 767 } |
| 768 | 768 |
| 769 if (defined(invoker.args)) { | 769 if (defined(invoker.args)) { |
| 770 args += invoker.args | 770 args += invoker.args |
| 771 } | 771 } |
| 772 } | 772 } |
| 773 } | 773 } |
| OLD | NEW |