mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-12-01 01:36:09 +03:00
245 lines
9.3 KiB
Plaintext
245 lines
9.3 KiB
Plaintext
# 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 = [ "$android_ndk_root/sources/android/cpufeatures" ]
|
|
}
|
|
|
|
config("cpu_features_warnings") {
|
|
if (is_clang) {
|
|
# cpu-features.c has few unused functions on x86 b/26403333
|
|
cflags = [ "-Wno-unused-function" ]
|
|
}
|
|
}
|
|
|
|
source_set("cpu_features") {
|
|
sources = [
|
|
"$android_ndk_root/sources/android/cpufeatures/cpu-features.c",
|
|
]
|
|
public_configs = [ ":cpu_features_include" ]
|
|
|
|
configs -= [ "//build/config/compiler:chromium_code" ]
|
|
configs += [
|
|
"//build/config/compiler:no_chromium_code",
|
|
|
|
# Must be after no_chromium_code for warning flags to be ordered correctly.
|
|
":cpu_features_warnings",
|
|
]
|
|
}
|
|
|
|
if (enable_java_templates) {
|
|
template("support_lib_alias") {
|
|
java_group(target_name) {
|
|
forward_variables_from(invoker, [ "testonly" ])
|
|
deps = [
|
|
"$android_support_library_package:$target_name",
|
|
]
|
|
}
|
|
}
|
|
|
|
support_lib_alias("android_support_chromium_java") {
|
|
testonly = true
|
|
}
|
|
support_lib_alias("android_gcm_java") {
|
|
}
|
|
support_lib_alias("emma_device_java") {
|
|
}
|
|
prebuilt_wrapper("android_arch_lifecycle_common_java") {
|
|
fallback_target = "$android_support_library_package:$target_name"
|
|
}
|
|
prebuilt_wrapper("android_arch_lifecycle_runtime_java") {
|
|
fallback_target = "$android_support_library_package:$target_name"
|
|
}
|
|
prebuilt_wrapper("android_support_multidex_java") {
|
|
android_deps_target_name = "com_android_support_multidex_java"
|
|
fallback_target = "$android_support_library_package:$target_name"
|
|
}
|
|
prebuilt_wrapper("android_support_annotations_java") {
|
|
android_deps_target_name = "com_android_support_support_annotations_java"
|
|
fallback_target = "$android_support_library_package:$target_name"
|
|
}
|
|
prebuilt_wrapper("android_support_cardview_java") {
|
|
android_deps_target_name = "com_android_support_cardview_v7_java"
|
|
fallback_target = "$android_support_library_package:$target_name"
|
|
}
|
|
prebuilt_wrapper("android_support_compat_java") {
|
|
android_deps_target_name = "com_android_support_support_compat_java"
|
|
fallback_target = "$android_support_library_package:$target_name"
|
|
}
|
|
prebuilt_wrapper("android_support_core_ui_java") {
|
|
android_deps_target_name = "com_android_support_support_core_ui_java"
|
|
fallback_target = "$android_support_library_package:$target_name"
|
|
}
|
|
prebuilt_wrapper("android_support_core_utils_java") {
|
|
android_deps_target_name = "com_android_support_support_core_utils_java"
|
|
fallback_target = "$android_support_library_package:$target_name"
|
|
}
|
|
prebuilt_wrapper("android_support_design_java") {
|
|
android_deps_target_name = "com_android_support_design_java"
|
|
fallback_target = "$android_support_library_package:$target_name"
|
|
}
|
|
prebuilt_wrapper("android_support_v4_java") {
|
|
fallback_target = "$android_support_library_package:$target_name"
|
|
}
|
|
prebuilt_wrapper("android_support_v7_appcompat_java") {
|
|
fallback_target = "$android_support_library_package:$target_name"
|
|
}
|
|
prebuilt_wrapper("android_support_v7_gridlayout_java") {
|
|
android_deps_target_name = "com_android_support_gridlayout_v7_java"
|
|
fallback_target = "$android_support_library_package:$target_name"
|
|
}
|
|
prebuilt_wrapper("android_support_v7_mediarouter_java") {
|
|
android_deps_target_name = "com_android_support_mediarouter_v7_java"
|
|
fallback_target = "$android_support_library_package:$target_name"
|
|
}
|
|
prebuilt_wrapper("android_support_v7_recyclerview_java") {
|
|
android_deps_target_name = "com_android_support_recyclerview_v7_java"
|
|
fallback_target = "$android_support_library_package:$target_name"
|
|
}
|
|
prebuilt_wrapper("android_support_v13_java") {
|
|
android_deps_target_name = "com_android_support_support_v13_java"
|
|
fallback_target = "$android_support_library_package:$target_name"
|
|
}
|
|
|
|
# TODO(dgn): Use the POM files instead of hardcoding the dependencies.
|
|
gms_path = "$default_extras_android_sdk_root/extras/google/m2repository/com/google/android/gms"
|
|
gms_version = "11.2.0"
|
|
|
|
android_aar_prebuilt("google_play_services_basement_java") {
|
|
deps = [
|
|
":android_support_v4_java",
|
|
]
|
|
_lib_name = "play-services-basement"
|
|
aar_path = "$gms_path/$_lib_name/$gms_version/$_lib_name-$gms_version.aar"
|
|
info_path = "//build/secondary/third_party/android_tools/$target_name.info"
|
|
input_jars_paths = [ "$android_sdk/optional/org.apache.http.legacy.jar" ]
|
|
}
|
|
|
|
android_aar_prebuilt("google_play_services_tasks_java") {
|
|
deps = [
|
|
":google_play_services_basement_java",
|
|
]
|
|
_lib_name = "play-services-tasks"
|
|
aar_path = "$gms_path/$_lib_name/$gms_version/$_lib_name-$gms_version.aar"
|
|
info_path = "//build/secondary/third_party/android_tools/$target_name.info"
|
|
proguard_configs =
|
|
[ "${target_gen_dir}/google_play_services_basement_java/proguard.txt" ]
|
|
}
|
|
|
|
android_aar_prebuilt("google_play_services_base_java") {
|
|
deps = [
|
|
":android_support_v4_java",
|
|
":google_play_services_basement_java",
|
|
":google_play_services_tasks_java",
|
|
]
|
|
_lib_name = "play-services-base"
|
|
aar_path = "$gms_path/$_lib_name/$gms_version/$_lib_name-$gms_version.aar"
|
|
info_path = "//build/secondary/third_party/android_tools/$target_name.info"
|
|
proguard_configs =
|
|
[ "${target_gen_dir}/google_play_services_basement_java/proguard.txt" ]
|
|
}
|
|
|
|
android_aar_prebuilt("google_play_services_auth_base_java") {
|
|
deps = [
|
|
":google_play_services_base_java",
|
|
":google_play_services_basement_java",
|
|
]
|
|
_lib_name = "play-services-auth-base"
|
|
aar_path = "$gms_path/$_lib_name/$gms_version/$_lib_name-$gms_version.aar"
|
|
info_path = "//build/secondary/third_party/android_tools/$target_name.info"
|
|
proguard_configs =
|
|
[ "${target_gen_dir}/google_play_services_basement_java/proguard.txt" ]
|
|
}
|
|
|
|
android_aar_prebuilt("google_play_services_auth_java") {
|
|
deps = [
|
|
":google_play_services_auth_base_java",
|
|
":google_play_services_base_java",
|
|
":google_play_services_basement_java",
|
|
]
|
|
_lib_name = "play-services-auth"
|
|
aar_path = "$gms_path/$_lib_name/$gms_version/$_lib_name-$gms_version.aar"
|
|
info_path = "//build/secondary/third_party/android_tools/$target_name.info"
|
|
proguard_configs =
|
|
[ "${target_gen_dir}/google_play_services_basement_java/proguard.txt" ]
|
|
}
|
|
|
|
android_aar_prebuilt("google_play_services_cast_java") {
|
|
deps = [
|
|
":android_support_v7_mediarouter_java",
|
|
":google_play_services_base_java",
|
|
":google_play_services_basement_java",
|
|
]
|
|
_lib_name = "play-services-cast"
|
|
aar_path = "$gms_path/$_lib_name/$gms_version/$_lib_name-$gms_version.aar"
|
|
info_path = "//build/secondary/third_party/android_tools/$target_name.info"
|
|
proguard_configs =
|
|
[ "${target_gen_dir}/google_play_services_basement_java/proguard.txt" ]
|
|
}
|
|
|
|
android_aar_prebuilt("google_play_services_iid_java") {
|
|
deps = [
|
|
":google_play_services_base_java",
|
|
":google_play_services_basement_java",
|
|
]
|
|
_lib_name = "play-services-iid"
|
|
aar_path = "$gms_path/$_lib_name/$gms_version/$_lib_name-$gms_version.aar"
|
|
info_path = "//build/secondary/third_party/android_tools/$target_name.info"
|
|
proguard_configs =
|
|
[ "${target_gen_dir}/google_play_services_basement_java/proguard.txt" ]
|
|
}
|
|
|
|
android_aar_prebuilt("google_play_services_gcm_java") {
|
|
deps = [
|
|
":google_play_services_base_java",
|
|
":google_play_services_basement_java",
|
|
":google_play_services_iid_java",
|
|
]
|
|
_lib_name = "play-services-gcm"
|
|
aar_path = "$gms_path/$_lib_name/$gms_version/$_lib_name-$gms_version.aar"
|
|
info_path = "//build/secondary/third_party/android_tools/$target_name.info"
|
|
proguard_configs =
|
|
[ "${target_gen_dir}/google_play_services_basement_java/proguard.txt" ]
|
|
}
|
|
|
|
android_aar_prebuilt("google_play_services_location_java") {
|
|
deps = [
|
|
":google_play_services_base_java",
|
|
":google_play_services_basement_java",
|
|
]
|
|
_lib_name = "play-services-location"
|
|
aar_path = "$gms_path/$_lib_name/$gms_version/$_lib_name-$gms_version.aar"
|
|
info_path = "//build/secondary/third_party/android_tools/$target_name.info"
|
|
proguard_configs =
|
|
[ "${target_gen_dir}/google_play_services_basement_java/proguard.txt" ]
|
|
}
|
|
|
|
android_aar_prebuilt("google_play_services_vision_java") {
|
|
deps = [
|
|
":google_play_services_base_java",
|
|
":google_play_services_basement_java",
|
|
":google_play_services_vision_common_java",
|
|
]
|
|
_lib_name = "play-services-vision"
|
|
aar_path = "$gms_path/$_lib_name/$gms_version/$_lib_name-$gms_version.aar"
|
|
info_path = "//build/secondary/third_party/android_tools/$target_name.info"
|
|
proguard_configs =
|
|
[ "${target_gen_dir}/google_play_services_basement_java/proguard.txt" ]
|
|
}
|
|
|
|
android_aar_prebuilt("google_play_services_vision_common_java") {
|
|
deps = [
|
|
":google_play_services_base_java",
|
|
":google_play_services_basement_java",
|
|
]
|
|
_lib_name = "play-services-vision-common"
|
|
aar_path = "$gms_path/$_lib_name/$gms_version/$_lib_name-$gms_version.aar"
|
|
info_path = "//build/secondary/third_party/android_tools/$target_name.info"
|
|
proguard_configs =
|
|
[ "${target_gen_dir}/google_play_services_basement_java/proguard.txt" ]
|
|
}
|
|
}
|