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") {
15 "ndk/sources/android/cpufeatures/cpu-features.c",
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") {
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
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") {
45 ":android_support_v7_appcompat_resources",
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
53 [ "$android_sdk_root/extras/android/support/v7/mediarouter/res" ]
55 ":android_support_v7_appcompat_resources",
57 custom_package = "android.support.v7.mediarouter"
60 android_java_prebuilt("android_support_v7_mediarouter_java") {
62 ":android_support_v7_mediarouter_resources",
63 ":android_support_v7_appcompat_java",
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") {
70 ":android_support_v7_appcompat_java",
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") {
82 ":android_support_v13_java",
83 ":google_play_services_default_resources",
85 jar_path = "$android_sdk_root/extras/google/google_play_services/libproject/google-play-services_lib/libs/google-play-services.jar"