• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.
4
5import("//build/config/android/rules.gni")
6
7config("cpu_features_include") {
8  include_dirs = [ "ndk/sources/android/cpufeatures" ]
9}
10
11# This is the GN version of
12# //build/android/cpufeatures.gypi:cpufeatures
13source_set("cpu_features") {
14  sources = [ "ndk/sources/android/cpufeatures/cpu-features.c" ]
15  public_configs = [ ":cpu_features_include" ]
16
17  configs -= [ "//build/config/compiler:chromium_code" ]
18  configs += [ "//build/config/compiler:no_chromium_code" ]
19}
20
21android_java_prebuilt("android_gcm_java") {
22  jar_path = "$android_sdk_root/extras/google/gcm/gcm-client/dist/gcm.jar"
23}
24
25android_java_prebuilt("uiautomator_java") {
26  jar_path = "$android_sdk/uiautomator.jar"
27}
28
29android_java_prebuilt("android_support_v13_java") {
30  jar_path = "$android_sdk_root/extras/android/support/v13/android-support-v13.jar"
31}
32
33android_resources("android_support_v7_appcompat_resources") {
34  v14_verify_only = true
35  resource_dirs = [
36    "$android_sdk_root/extras/android/support/v7/appcompat/res"
37  ]
38  custom_package = "android.support.v7.appcompat"
39}
40
41android_java_prebuilt("android_support_v7_appcompat_java") {
42  deps = [ ":android_support_v7_appcompat_resources" ]
43  jar_path = "$android_sdk_root/extras/android/support/v7/appcompat/libs/android-support-v7-appcompat.jar"
44}
45
46android_resources("android_support_v7_mediarouter_resources") {
47  v14_verify_only = true
48  resource_dirs = [
49    "$android_sdk_root/extras/android/support/v7/mediarouter/res"
50  ]
51  deps = [
52    ":android_support_v7_appcompat_resources",
53  ]
54  custom_package = "android.support.v7.mediarouter"
55}
56
57android_java_prebuilt("android_support_v7_mediarouter_java") {
58  deps = [
59    ":android_support_v7_mediarouter_resources",
60    ":android_support_v7_appcompat_java",
61  ]
62  jar_path = "$android_sdk_root/extras/android/support/v7/mediarouter/libs/android-support-v7-mediarouter.jar"
63}
64