From 985b6202789d27cb8882f5f3369829348b1acfc8 Mon Sep 17 00:00:00 2001 From: tsunghung Date: Thu, 10 Mar 2016 15:09:03 -0800 Subject: [PATCH] GN: add the Android support v17 leanback library target BUG=592801 Review URL: https://codereview.chromium.org/1772133002 Cr-Original-Commit-Position: refs/heads/master@{#380485} Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src Cr-Mirrored-Commit: 9ef2d22bd27a89ccbad09a068182164a14d75fb3 --- secondary/third_party/android_tools/BUILD.gn | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/secondary/third_party/android_tools/BUILD.gn b/secondary/third_party/android_tools/BUILD.gn index ba4f4985f..ce73c6408 100644 --- a/secondary/third_party/android_tools/BUILD.gn +++ b/secondary/third_party/android_tools/BUILD.gn @@ -122,6 +122,21 @@ android_java_prebuilt("google_play_services_default_java") { jar_path = "$android_sdk_root/extras/google/google_play_services/libproject/google-play-services_lib/libs/google-play-services.jar" } +android_resources("android_support_v17_leanback_resources") { + v14_skip = true + resource_dirs = + [ "$android_sdk_root/extras/android/support/v17/leanback/res" ] + custom_package = "android.support.v17.leanback" +} + +android_java_prebuilt("android_support_v17_leanback_java") { + deps = [ + ":android_support_v17_leanback_resources", + ":android_support_v7_recyclerview_java", + ] + jar_path = "$android_sdk_root/extras/android/support/v17/leanback/libs/android-support-v17-leanback.jar" +} + # TODO(jbudorick): Remove this once net_java_test_support no longer needs it. android_java_prebuilt("legacy_http_javalib") { jar_path = "$android_sdk/optional/org.apache.http.legacy.jar"