Re-land: C++ readability review
[chromium-blink-merge.git] / build / secondary / third_party / android_tools / BUILD.gn
blobf9ad36f932cc91f8c6e3344c2a3ffc82d50cf7ca
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
3 # found in the LICENSE file.
5 import("//build/config/android/rules.gni")
7 config("cpu_features_include") {
8   include_dirs = [ "ndk/sources/android/cpufeatures" ]
11 # This is the GN version of
12 # //build/android/cpufeatures.gypi:cpufeatures
13 source_set("cpu_features") {
14   sources = [
15     "ndk/sources/android/cpufeatures/cpu-features.c",
16   ]
17   public_configs = [ ":cpu_features_include" ]
19   configs -= [ "//build/config/compiler:chromium_code" ]
20   configs += [ "//build/config/compiler:no_chromium_code" ]
23 android_java_prebuilt("android_gcm_java") {
24   jar_path = "$android_sdk_root/extras/google/gcm/gcm-client/dist/gcm.jar"
27 android_java_prebuilt("uiautomator_java") {
28   jar_path = "$android_sdk/uiautomator.jar"
31 android_java_prebuilt("android_support_v13_java") {
32   jar_path =
33       "$android_sdk_root/extras/android/support/v13/android-support-v13.jar"
36 android_resources("android_support_v7_appcompat_resources") {
37   v14_verify_only = true
38   resource_dirs =
39       [ "$android_sdk_root/extras/android/support/v7/appcompat/res" ]
40   custom_package = "android.support.v7.appcompat"
43 android_java_prebuilt("android_support_v7_appcompat_java") {
44   deps = [
45     ":android_support_v7_appcompat_resources",
46   ]
47   jar_path = "$android_sdk_root/extras/android/support/v7/appcompat/libs/android-support-v7-appcompat.jar"
50 android_resources("android_support_v7_mediarouter_resources") {
51   v14_verify_only = true
52   resource_dirs =
53       [ "$android_sdk_root/extras/android/support/v7/mediarouter/res" ]
54   deps = [
55     ":android_support_v7_appcompat_resources",
56   ]
57   custom_package = "android.support.v7.mediarouter"
60 android_java_prebuilt("android_support_v7_mediarouter_java") {
61   deps = [
62     ":android_support_v7_mediarouter_resources",
63     ":android_support_v7_appcompat_java",
64   ]
65   jar_path = "$android_sdk_root/extras/android/support/v7/mediarouter/libs/android-support-v7-mediarouter.jar"
68 android_java_prebuilt("android_support_v7_recyclerview_java") {
69   deps = [
70     ":android_support_v7_appcompat_java",
71   ]
72   jar_path = "$android_sdk_root/extras/android/support/v7/recyclerview/libs/android-support-v7-recyclerview.jar"
75 android_resources("google_play_services_default_resources") {
76   v14_verify_only = true
77   resource_dirs = [ "$android_sdk_root/extras/google/google_play_services/libproject/google-play-services_lib/res" ]
78   custom_package = "com.google.android.gms"
80 android_java_prebuilt("google_play_services_default_java") {
81   deps = [
82     ":android_support_v13_java",
83     ":google_play_services_default_resources",
84   ]
85   jar_path = "$android_sdk_root/extras/google/google_play_services/libproject/google-play-services_lib/libs/google-play-services.jar"