1package { 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 24cc_defaults { 25 name: "gflags_defaults", 26 host_supported: true, 27 vendor_available: true, 28 product_available: true, 29 recovery_available: true, 30 ramdisk_available: true, 31 vendor_ramdisk_available: true, 32 srcs: [ 33 "src/gflags.cc", 34 "src/gflags_completions.cc", 35 "src/gflags_reporting.cc", 36 ], 37 cflags: [ 38 "-D__STDC_FORMAT_MACROS", 39 "-DHAVE_INTTYPES_H", 40 "-DHAVE_SYS_STAT_H", 41 "-DHAVE_PTHREAD", 42 "-Wall", 43 "-Werror", 44 "-Wno-implicit-fallthrough", 45 // gflags_completions.cc:326,327 have unannotated fall-through 46 ], 47 export_include_dirs: [ 48 "android", 49 ], 50} 51 52cc_library { 53 name: "libgflags", 54 static: { 55 apex_available: [ 56 "com.android.gki.*", 57 "com.android.virt", 58 ], 59 }, 60 defaults: ["gflags_defaults"], 61} 62 63cc_library_host_static { 64 name: "libgflags_cuttlefish", 65 target: { 66 windows: { 67 enabled: true, 68 }, 69 }, 70 defaults: ["gflags_defaults"], 71 visibility: ["//device/google/cuttlefish:__subpackages__"], 72} 73