Bob Badour | 9abe06e | 2021-02-12 15:15:12 -0800 | [diff] [blame] | 1 | package { |
| 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 |
| 12 | license { |
| 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 Lu | fa7ec5b | 2018-09-11 18:28:18 -0700 | [diff] [blame] | 24 | cc_library { |
Greg Hartman | ff733e6 | 2017-10-18 12:25:41 -0700 | [diff] [blame] | 25 | name: "libgflags", |
Greg Hartman | b68ef53 | 2017-10-10 18:46:53 -0700 | [diff] [blame] | 26 | host_supported: true, |
Greg Hartman | 3ca002c | 2017-12-11 11:31:20 -0800 | [diff] [blame] | 27 | vendor_available: true, |
Justin Yun | 6fea601 | 2020-11-11 16:20:03 +0900 | [diff] [blame] | 28 | product_available: true, |
Alistair Strachan | c9d49ab | 2019-01-03 12:49:55 -0800 | [diff] [blame] | 29 | recovery_available: true, |
David Anderson | e19c3a6 | 2020-12-14 10:48:06 -0800 | [diff] [blame] | 30 | ramdisk_available: true, |
| 31 | vendor_ramdisk_available: true, |
Greg Hartman | b68ef53 | 2017-10-10 18:46:53 -0700 | [diff] [blame] | 32 | srcs: [ |
| 33 | "src/gflags.cc", |
Greg Hartman | 9950627 | 2017-10-18 15:45:27 -0700 | [diff] [blame] | 34 | "src/gflags_completions.cc", |
Greg Hartman | b68ef53 | 2017-10-10 18:46:53 -0700 | [diff] [blame] | 35 | "src/gflags_reporting.cc", |
| 36 | ], |
| 37 | cflags: [ |
| 38 | "-D__STDC_FORMAT_MACROS", |
Chih-Hung Hsieh | fe305e7 | 2017-10-25 15:10:20 -0700 | [diff] [blame] | 39 | "-DHAVE_INTTYPES_H", |
| 40 | "-DHAVE_SYS_STAT_H", |
Greg Hartman | ff733e6 | 2017-10-18 12:25:41 -0700 | [diff] [blame] | 41 | "-DHAVE_PTHREAD", |
Chih-Hung Hsieh | fe305e7 | 2017-10-25 15:10:20 -0700 | [diff] [blame] | 42 | "-Wall", |
| 43 | "-Werror", |
Chih-Hung Hsieh | 2041971 | 2018-09-05 15:35:54 -0700 | [diff] [blame] | 44 | "-Wno-implicit-fallthrough", |
| 45 | // gflags_completions.cc:326,327 have unannotated fall-through |
Greg Hartman | b68ef53 | 2017-10-10 18:46:53 -0700 | [diff] [blame] | 46 | ], |
| 47 | export_include_dirs: [ |
| 48 | "android", |
| 49 | ], |
Yifan Hong | 457196a | 2020-08-04 10:09:43 -0700 | [diff] [blame] | 50 | static: { |
| 51 | apex_available: [ |
| 52 | "com.android.gki.*", |
Jiyong Park | 9cfee34 | 2021-01-05 14:44:04 +0900 | [diff] [blame] | 53 | "com.android.virt", |
Yifan Hong | 457196a | 2020-08-04 10:09:43 -0700 | [diff] [blame] | 54 | ], |
| 55 | }, |
Greg Hartman | b68ef53 | 2017-10-10 18:46:53 -0700 | [diff] [blame] | 56 | } |