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("//build/config/android/rules.gni") |
| 6 |
5 config("cpu_features_include") { | 7 config("cpu_features_include") { |
6 include_dirs = [ "ndk/sources/android/cpufeatures" ] | 8 include_dirs = [ "ndk/sources/android/cpufeatures" ] |
7 } | 9 } |
8 | 10 |
9 # This is the GN version of | 11 # This is the GN version of |
10 # //build/android/cpufeatures.gypi:cpufeatures | 12 # //build/android/cpufeatures.gypi:cpufeatures |
11 source_set("cpu_features") { | 13 source_set("cpu_features") { |
12 sources = [ "ndk/sources/android/cpufeatures/cpu-features.c" ] | 14 sources = [ "ndk/sources/android/cpufeatures/cpu-features.c" ] |
13 direct_dependent_configs = [ ":cpu_features_include" ] | 15 direct_dependent_configs = [ ":cpu_features_include" ] |
14 | 16 |
15 configs -= [ "//build/config/compiler:chromium_code" ] | 17 configs -= [ "//build/config/compiler:chromium_code" ] |
16 configs += [ "//build/config/compiler:no_chromium_code" ] | 18 configs += [ "//build/config/compiler:no_chromium_code" ] |
17 } | 19 } |
| 20 |
| 21 android_java_prebuilt("android_gcm_java") { |
| 22 jar_path = "$android_sdk_root/extras/google/gcm/gcm-client/dist/gcm.jar" |
| 23 } |
| 24 |
| 25 android_java_prebuilt("uiautomator_java") { |
| 26 jar_path = "$android_sdk/uiautomator.jar" |
| 27 } |
| 28 |
| 29 android_java_prebuilt("android_support_v13_java") { |
| 30 jar_path = "$android_sdk_root/extras/android/support/v13/android-support-v13.j
ar" |
| 31 } |
| 32 |
| 33 android_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 |
| 41 android_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 |
| 46 android_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 |
| 57 android_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/andro
id-support-v7-mediarouter.jar" |
| 63 } |
OLD | NEW |