• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_library {
25    name: "libgflags",
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    static: {
51        apex_available: [
52            "com.android.gki.*",
53            "com.android.virt",
54        ],
55    },
56}
57