# Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import("//build/config/android/rules.gni") config("cpu_features_include") { include_dirs = [ "ndk/sources/android/cpufeatures" ] } # This is the GN version of # //build/android/ndk.gyp:cpu_features source_set("cpu_features") { sources = [ "ndk/sources/android/cpufeatures/cpu-features.c", ] public_configs = [ ":cpu_features_include" ] configs -= [ "//build/config/compiler:chromium_code" ] configs += [ "//build/config/compiler:no_chromium_code" ] } android_java_prebuilt("android_gcm_java") { jar_path = "$android_sdk_root/extras/google/gcm/gcm-client/dist/gcm.jar" } android_java_prebuilt("uiautomator_java") { jar_path = "$android_sdk/uiautomator.jar" } android_resources("android_support_design_resources") { v14_skip = true resource_dirs = [ "$android_sdk_root/extras/android/support/design/res" ] deps = [ ":android_support_v7_appcompat_resources", ":android_support_v7_recyclerview_resources", ] custom_package = "android.support.design" } android_java_prebuilt("android_support_design_java") { deps = [ ":android_support_v7_appcompat_java", ":android_support_design_resources", ] jar_path = "$android_sdk_root/extras/android/support/design/libs/android-support-design.jar" } android_java_prebuilt("android_support_annotations_javalib") { jar_path = "$android_sdk_root/extras/android/support/annotations/android-support-annotations.jar" } java_prebuilt("android_support_multidex_java") { supports_android = true jar_path = "$android_sdk_root/extras/android/support/multidex/library/libs/android-support-multidex.jar" } android_java_prebuilt("android_support_v13_java") { jar_path = "$android_sdk_root/extras/android/support/v13/android-support-v13.jar" } android_resources("android_support_v7_appcompat_resources") { v14_skip = true resource_dirs = [ "$android_sdk_root/extras/android/support/v7/appcompat/res" ] custom_package = "android.support.v7.appcompat" } android_java_prebuilt("android_support_v7_appcompat_java") { deps = [ ":android_support_v7_appcompat_resources", ] jar_path = "$android_sdk_root/extras/android/support/v7/appcompat/libs/android-support-v7-appcompat.jar" } android_resources("android_support_v7_mediarouter_resources") { v14_skip = true resource_dirs = [ "$android_sdk_root/extras/android/support/v7/mediarouter/res" ] deps = [ ":android_support_v7_appcompat_resources", ] custom_package = "android.support.v7.mediarouter" } android_java_prebuilt("android_support_v7_mediarouter_java") { deps = [ ":android_support_v7_mediarouter_resources", ":android_support_v7_appcompat_java", ] jar_path = "$android_sdk_root/extras/android/support/v7/mediarouter/libs/android-support-v7-mediarouter.jar" } android_resources("android_support_v7_recyclerview_resources") { v14_skip = true resource_dirs = [ "$android_sdk_root/extras/android/support/v7/recyclerview/res" ] custom_package = "android.support.v7.recyclerview" } android_java_prebuilt("android_support_v7_recyclerview_java") { deps = [ ":android_support_v7_appcompat_java", ":android_support_v7_recyclerview_resources", ] jar_path = "$android_sdk_root/extras/android/support/v7/recyclerview/libs/android-support-v7-recyclerview.jar" } android_resources("google_play_services_default_resources") { v14_skip = true resource_dirs = [ "$android_sdk_root/extras/google/google_play_services/libproject/google-play-services_lib/res" ] custom_package = "com.google.android.gms" deps = [ ":check_sdk_extras_version", ] } android_java_prebuilt("google_play_services_default_java") { deps = [ ":android_support_v13_java", ":android_support_v7_mediarouter_java", ":google_play_services_default_resources", ":legacy_http_javalib", ] proguard_preprocess = true proguard_config = "//third_party/android_tools/proguard.flags" # TODO(dgn) deps should not complain about having a custom action here # Currently, there is no guarantee that the data_deps actions will complete before the current one runs data_deps = [ ":check_sdk_extras_version", ] jar_path = "$android_sdk_root/extras/google/google_play_services/libproject/google-play-services_lib/libs/google-play-services.jar" } action("check_sdk_extras_version") { script = "//build/check_sdk_extras_version.py" args = [ "--package-id", "extra-google-google_play_services", "--package-location", rebase_path("$android_sdk_root/extras/google/google_play_services"), "--stamp", rebase_path("$target_gen_dir/checked_sdk_extras_version.stamp"), ] inputs = [ "//build/android_sdk_extras.json", "$android_sdk_root/extras/google/google_play_services/source.properties", ] outputs = [ "$target_gen_dir/checked_sdk_extras_version.stamp", ] } # 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" }