• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1package {
2    default_applicable_licenses: [
3        "external_libtextclassifier_abseil-cpp_license",
4    ],
5}
6
7// Added automatically by a large-scale-change that took the approach of
8// 'apply every license found to every target'. While this makes sure we respect
9// every license restriction, it may not be entirely correct.
10//
11// e.g. GPL in an MIT project might only apply to the contrib/ directory.
12//
13// Please consider splitting the single license below into multiple licenses,
14// taking care not to lose any license_kind information, and overriding the
15// default license using the 'licenses: [...]' property on targets as needed.
16//
17// For unused files, consider creating a 'fileGroup' with "//visibility:private"
18// to attach the license to, and including a comment whether the files may be
19// used in the current project.
20// See: http://go/android-license-faq
21license {
22    name: "external_libtextclassifier_abseil-cpp_license",
23    visibility: [":__subpackages__"],
24    license_kinds: [
25        "SPDX-license-identifier-Apache-2.0",
26        "legacy_unencumbered",
27    ],
28    license_text: [
29        "LICENSE",
30    ],
31}
32
33cc_library_static {
34    name: "libtextclassifier_abseil",
35    export_include_dirs: ["."],
36    visibility: [
37        "//external/libtextclassifier:__subpackages__",
38        "//external/tflite-support:__subpackages__"
39    ],
40    srcs: [
41        "absl/**/*.cc",
42    ],
43    apex_available: [
44        "//apex_available:platform",
45        "com.android.extservices",
46    ],
47    sdk_version: "current",
48    min_sdk_version: "30",
49    stl: "libc++_static",
50    exclude_srcs: [
51        "**/*_test.cc",
52        "**/*_test_common.cc",
53        "**/*test_util.cc",
54        "**/*test_utils.cc",
55        "**/*benchmark.cc",
56        "absl/random/benchmarks.cc",
57        "absl/hash/internal/print_hash_of.cc",
58    ],
59}
60