xref: /aosp_15_r20/external/webrtc/third_party/abseil-cpp/Android.bp (revision d9f758449e529ab9291ac668be2861e7a55c2422)
1*d9f75844SAndroid Build Coastguard Workerpackage {
2*d9f75844SAndroid Build Coastguard Worker    default_applicable_licenses: [
3*d9f75844SAndroid Build Coastguard Worker        "external_webrtc_third_party_abseil-cpp_license",
4*d9f75844SAndroid Build Coastguard Worker    ],
5*d9f75844SAndroid Build Coastguard Worker}
6*d9f75844SAndroid Build Coastguard Worker
7*d9f75844SAndroid Build Coastguard Worker// Added automatically by a large-scale-change that took the approach of
8*d9f75844SAndroid Build Coastguard Worker// 'apply every license found to every target'. While this makes sure we respect
9*d9f75844SAndroid Build Coastguard Worker// every license restriction, it may not be entirely correct.
10*d9f75844SAndroid Build Coastguard Worker//
11*d9f75844SAndroid Build Coastguard Worker// e.g. GPL in an MIT project might only apply to the contrib/ directory.
12*d9f75844SAndroid Build Coastguard Worker//
13*d9f75844SAndroid Build Coastguard Worker// Please consider splitting the single license below into multiple licenses,
14*d9f75844SAndroid Build Coastguard Worker// taking care not to lose any license_kind information, and overriding the
15*d9f75844SAndroid Build Coastguard Worker// default license using the 'licenses: [...]' property on targets as needed.
16*d9f75844SAndroid Build Coastguard Worker//
17*d9f75844SAndroid Build Coastguard Worker// For unused files, consider creating a 'fileGroup' with "//visibility:private"
18*d9f75844SAndroid Build Coastguard Worker// to attach the license to, and including a comment whether the files may be
19*d9f75844SAndroid Build Coastguard Worker// used in the current project.
20*d9f75844SAndroid Build Coastguard Worker// See: http://go/android-license-faq
21*d9f75844SAndroid Build Coastguard Workerlicense {
22*d9f75844SAndroid Build Coastguard Worker    name: "external_webrtc_third_party_abseil-cpp_license",
23*d9f75844SAndroid Build Coastguard Worker    visibility: [":__subpackages__"],
24*d9f75844SAndroid Build Coastguard Worker    license_kinds: [
25*d9f75844SAndroid Build Coastguard Worker        "SPDX-license-identifier-Apache-2.0",
26*d9f75844SAndroid Build Coastguard Worker        "legacy_unencumbered",
27*d9f75844SAndroid Build Coastguard Worker    ],
28*d9f75844SAndroid Build Coastguard Worker    license_text: [
29*d9f75844SAndroid Build Coastguard Worker        "LICENSE",
30*d9f75844SAndroid Build Coastguard Worker    ],
31*d9f75844SAndroid Build Coastguard Worker}
32*d9f75844SAndroid Build Coastguard Worker
33*d9f75844SAndroid Build Coastguard Workercc_defaults {
34*d9f75844SAndroid Build Coastguard Worker    name: "libwebrtc_absl_defaults",
35*d9f75844SAndroid Build Coastguard Worker    cflags: ["-Wno-deprecated-builtins"],
36*d9f75844SAndroid Build Coastguard Worker    visibility: [
37*d9f75844SAndroid Build Coastguard Worker        "//external/webrtc:__subpackages__",
38*d9f75844SAndroid Build Coastguard Worker        "//device/google/cuttlefish/host/frontend/webrtc:__subpackages__",
39*d9f75844SAndroid Build Coastguard Worker    ],
40*d9f75844SAndroid Build Coastguard Worker}
41*d9f75844SAndroid Build Coastguard Worker
42*d9f75844SAndroid Build Coastguard Workercc_library_headers {
43*d9f75844SAndroid Build Coastguard Worker    name: "libwebrtc_absl_headers",
44*d9f75844SAndroid Build Coastguard Worker    defaults: ["libwebrtc_absl_defaults"],
45*d9f75844SAndroid Build Coastguard Worker    // vendor needed for libpreprocessing effects.
46*d9f75844SAndroid Build Coastguard Worker    vendor: true,
47*d9f75844SAndroid Build Coastguard Worker    host_supported: true,
48*d9f75844SAndroid Build Coastguard Worker    export_include_dirs: ["."],
49*d9f75844SAndroid Build Coastguard Worker    visibility: [
50*d9f75844SAndroid Build Coastguard Worker        "//frameworks/av/media/libeffects/preprocessing:__subpackages__",
51*d9f75844SAndroid Build Coastguard Worker    ],
52*d9f75844SAndroid Build Coastguard Worker}
53*d9f75844SAndroid Build Coastguard Worker
54