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 srcs: [ 36 "absl/**/*.cc", 37 ], 38 exclude_srcs: [ 39 "absl/**/*benchmark.cc", 40 "absl/**/*benchmarks.cc", 41 "absl/**/*_test.cc", 42 "absl/**/*_testing.cc", 43 "absl/base/spinlock_test_common.cc", 44 "absl/hash/internal/print_hash_of.cc", 45 "absl/log/internal/test_helpers.cc", 46 "absl/log/internal/test_matchers.cc", 47 "absl/log/scoped_mock_log.cc", 48 "absl/random/internal/gaussian_distribution_gentables.cc", 49 ], 50 export_include_dirs: ["."], 51 shared_libs: [ 52 "liblog", 53 ], 54 stl: "libc++", 55 apex_available: [ 56 "//apex_available:platform", 57 "com.android.extservices", 58 "com.android.adservices", 59 ], 60 visibility: [ 61 "//external/libtextclassifier:__subpackages__", 62 "//external/tflite-support:__subpackages__", 63 ], 64 sdk_version: "current", 65 min_sdk_version: "30", 66} 67