| 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 1981 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1992 (defined(invoker.java_files) || defined(invoker.DEPRECATED_java_in_dir)) | 1992 (defined(invoker.java_files) || defined(invoker.DEPRECATED_java_in_dir)) |
| 1993 } | 1993 } |
| 1994 | 1994 |
| 1995 group(target_name) { | 1995 group(target_name) { |
| 1996 public_deps = [ | 1996 public_deps = [ |
| 1997 ":$_apk_target_name", | 1997 ":$_apk_target_name", |
| 1998 ":$_test_runner_target_name", | 1998 ":$_test_runner_target_name", |
| 1999 | 1999 |
| 2000 # Required by test runner to enumerate test list. | 2000 # Required by test runner to enumerate test list. |
| 2001 ":${_apk_target_name}_dist_ijar", | 2001 ":${_apk_target_name}_dist_ijar", |
| 2002 invoker.apk_under_test, | |
| 2003 ] | 2002 ] |
| 2003 if (defined(invoker.apk_under_test)) { |
| 2004 public_deps += [ invoker.apk_under_test ] |
| 2005 } |
| 2004 } | 2006 } |
| 2005 group("${target_name}_incremental") { | 2007 group("${target_name}_incremental") { |
| 2006 public_deps = [ | 2008 public_deps = [ |
| 2007 ":${_apk_target_name}_dist_ijar", | 2009 ":${_apk_target_name}_dist_ijar", |
| 2008 ":${_apk_target_name}_incremental", | 2010 ":${_apk_target_name}_incremental", |
| 2009 ":${_test_runner_target_name}_incremental", | 2011 ":${_test_runner_target_name}_incremental", |
| 2010 "${invoker.apk_under_test}_incremental", | |
| 2011 ] | 2012 ] |
| 2013 if (defined(invoker.apk_under_test)) { |
| 2014 public_deps += [ "${invoker.apk_under_test}_incremental" ] |
| 2015 } |
| 2012 } | 2016 } |
| 2013 } | 2017 } |
| 2014 | 2018 |
| 2015 # Declare an Android gtest apk | 2019 # Declare an Android gtest apk |
| 2016 # | 2020 # |
| 2017 # This target creates an Android apk for running gtest-based unittests. | 2021 # This target creates an Android apk for running gtest-based unittests. |
| 2018 # | 2022 # |
| 2019 # Variables | 2023 # Variables |
| 2020 # deps: Specifies the dependencies of this target. These will be passed to | 2024 # deps: Specifies the dependencies of this target. These will be passed to |
| 2021 # the underlying android_apk invocation and should include the java and | 2025 # the underlying android_apk invocation and should include the java and |
| (...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2320 } | 2324 } |
| 2321 | 2325 |
| 2322 android_library(target_name) { | 2326 android_library(target_name) { |
| 2323 java_files = [] | 2327 java_files = [] |
| 2324 srcjar_deps = [ ":${_template_name}__protoc_java" ] | 2328 srcjar_deps = [ ":${_template_name}__protoc_java" ] |
| 2325 deps = [ | 2329 deps = [ |
| 2326 "//third_party/android_protobuf:protobuf_nano_javalib", | 2330 "//third_party/android_protobuf:protobuf_nano_javalib", |
| 2327 ] | 2331 ] |
| 2328 } | 2332 } |
| 2329 } | 2333 } |
| OLD | NEW |