• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright 2010 The Android Open Source Project
2
3cc_library {
4    name: "libext4_utils",
5    defaults: ["system-extras-cflags-defaults"],
6    host_supported: true,
7    srcs: [
8        "ext4_utils.c",
9        "wipe.c",
10        "ext4_sb.c",
11    ],
12    // Various instances of dereferencing a type-punned pointer in extent.c
13    cflags: ["-fno-strict-aliasing"],
14    export_include_dirs: ["include"],
15    shared_libs: [
16        "libsparse",
17        "libz",
18    ],
19
20    target: {
21        host: {
22            static_libs: ["libsparse"],
23        },
24        not_windows: {
25            static_libs: ["libselinux"],
26        },
27        windows: {
28            host_ldlibs: ["-lws2_32"],
29            enabled: true,
30        },
31
32        android: {
33            srcs: [
34                "ext4_crypt.cpp",
35            ],
36            shared_libs: [
37                "libbase",
38                "libkeyutils",
39                "liblogwrap",
40                "libselinux",
41            ],
42
43            static: {
44                srcs: [
45                    "ext4_crypt_init_extensions.cpp",
46                ],
47                static_libs: [
48                    "liblogwrap",
49                ]
50            },
51            shared: {
52                cflags: ["-DREAL_UUID"],
53                shared_libs: [
54                    "libcutils",
55                    "libext2_uuid",
56                ]
57            },
58        },
59    },
60}
61