blob: 9ac1f35de45e0fd5e6a39d2e24392af0e48d72e0 [file] [log] [blame]
Bob Badour9abe06e2021-02-12 15:15:12 -08001package {
2 default_applicable_licenses: ["external_gflags_license"],
3}
4
5// Added automatically by a large-scale-change
6//
7// large-scale-change included anything that looked like it might be a license
8// text as a license_text. e.g. LICENSE, NOTICE, COPYING etc.
9//
10// Please consider removing redundant or irrelevant files from 'license_text:'.
11// See: http://go/android-license-faq
12license {
13 name: "external_gflags_license",
14 visibility: [":__subpackages__"],
15 license_kinds: [
16 "SPDX-license-identifier-BSD",
17 ],
18 license_text: [
19 "COPYING.txt",
20 "LICENSE",
21 ],
22}
23
Che-Yen Lufa7ec5b2018-09-11 18:28:18 -070024cc_library {
Greg Hartmanff733e62017-10-18 12:25:41 -070025 name: "libgflags",
Greg Hartmanb68ef532017-10-10 18:46:53 -070026 host_supported: true,
Greg Hartman3ca002c2017-12-11 11:31:20 -080027 vendor_available: true,
Justin Yun6fea6012020-11-11 16:20:03 +090028 product_available: true,
Alistair Strachanc9d49ab2019-01-03 12:49:55 -080029 recovery_available: true,
David Andersone19c3a62020-12-14 10:48:06 -080030 ramdisk_available: true,
31 vendor_ramdisk_available: true,
Greg Hartmanb68ef532017-10-10 18:46:53 -070032 srcs: [
33 "src/gflags.cc",
Greg Hartman99506272017-10-18 15:45:27 -070034 "src/gflags_completions.cc",
Greg Hartmanb68ef532017-10-10 18:46:53 -070035 "src/gflags_reporting.cc",
36 ],
37 cflags: [
38 "-D__STDC_FORMAT_MACROS",
Chih-Hung Hsiehfe305e72017-10-25 15:10:20 -070039 "-DHAVE_INTTYPES_H",
40 "-DHAVE_SYS_STAT_H",
Greg Hartmanff733e62017-10-18 12:25:41 -070041 "-DHAVE_PTHREAD",
Chih-Hung Hsiehfe305e72017-10-25 15:10:20 -070042 "-Wall",
43 "-Werror",
Chih-Hung Hsieh20419712018-09-05 15:35:54 -070044 "-Wno-implicit-fallthrough",
45 // gflags_completions.cc:326,327 have unannotated fall-through
Greg Hartmanb68ef532017-10-10 18:46:53 -070046 ],
47 export_include_dirs: [
48 "android",
49 ],
Yifan Hong457196a2020-08-04 10:09:43 -070050 static: {
51 apex_available: [
52 "com.android.gki.*",
Jiyong Park9cfee342021-01-05 14:44:04 +090053 "com.android.virt",
Yifan Hong457196a2020-08-04 10:09:43 -070054 ],
55 },
Greg Hartmanb68ef532017-10-10 18:46:53 -070056}