1package { 2 default_applicable_licenses: [ 3 "external_tensorflow_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_tensorflow_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 33filegroup { 34 name: "absl_srcs", 35 srcs: [ 36 "absl/**/*.cc", 37 ], 38 exclude_srcs: [ 39 "absl/random/**/*.cc", 40 "**/*_test.cc", 41 "**/*_test_common.cc", 42 "**/*test_util.cc", 43 "**/*test_utils.cc", 44 "**/*benchmark.cc", 45 "absl/hash/internal/print_hash_of.cc", 46 ], 47} 48 49// Only include necessary random files here. If include "absl/random/*.cc", we 50// will get "duplicate symbol: main" error because both 51// gaussian_distribution_gentables.cc and randen_benchmarks.cc have main 52// function. 53filegroup { 54 name: "absl_random", 55 srcs: [ 56 "absl/random/discrete_distribution.cc", 57 "absl/random/gaussian_distribution.cc", 58 "absl/random/seed_sequences.cc", 59 "absl/random/internal/pool_urbg.cc", 60 "absl/random/internal/seed_material.cc", 61 ], 62} 63 64cc_library_static { 65 name: "tensorflow_abseil", 66 export_include_dirs: ["."], 67 visibility: [ 68 "//external/tensorflow:__subpackages__", 69 "//external/federated-compute:__subpackages__", 70 "//packages/modules/OnDevicePersonalization:__subpackages__", 71 ], 72 apex_available: [ 73 "com.android.ondevicepersonalization", 74 ], 75 srcs: [ 76 ":absl_srcs", 77 ":absl_random", 78 ], 79 sdk_version: "current", 80 min_sdk_version: "30", 81 stl: "libc++_static", 82} 83