• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright 2017 The Android Open Source Project
2
3package {
4    default_applicable_licenses: ["external_e2fsprogs_lib_uuid_license"],
5}
6
7// Added automatically by a large-scale-change
8// See: http://go/android-license-faq
9license {
10    name: "external_e2fsprogs_lib_uuid_license",
11    visibility: [":__subpackages__"],
12    license_kinds: [
13        "SPDX-license-identifier-BSD",
14    ],
15    license_text: [
16        "COPYING",
17    ],
18}
19
20cc_library {
21    name: "libext2_uuid",
22    host_supported: true,
23    ramdisk_available: true,
24    vendor_ramdisk_available: true,
25    recovery_available: true,
26    vendor_available: true,
27    product_available: true,
28    unique_host_soname: true,
29    defaults: ["e2fsprogs-defaults"],
30    srcs: [
31        "clear.c",
32        "compare.c",
33        "copy.c",
34        "gen_uuid.c",
35        "isnull.c",
36        "pack.c",
37        "parse.c",
38        "unpack.c",
39        "unparse.c",
40        "uuid_time.c",
41    ],
42    cflags: [
43        "-Wno-unused-function",
44        "-Wno-unused-parameter",
45    ],
46    target: {
47        windows: {
48            // Cannot suppress the _WIN32_WINNT redefined warning.
49            cflags: ["-Wno-error"],
50            include_dirs: [ "external/e2fsprogs/include/mingw" ],
51            enabled: true
52        },
53    },
54    header_libs: ["libext2-headers"],
55    export_include_dirs: ["."],
56    export_header_lib_headers: ["libext2-headers"],
57    apex_available: [
58        "//apex_available:platform",
59        "com.android.virt",
60    ],
61}
62