• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright 2010 The Android Open Source Project
2
3cc_library {
4    name: "libext4_utils",
5    host_supported: true,
6    recovery_available: true,
7    srcs: [
8        "ext4_utils.cpp",
9        "wipe.cpp",
10        "ext4_sb.cpp",
11    ],
12    // Various instances of dereferencing a type-punned pointer in extent.c
13    cflags: [
14        "-Werror",
15        "-fno-strict-aliasing",
16    ],
17    export_include_dirs: ["include"],
18    shared_libs: [
19        "libbase",
20        "libsparse",
21        "libz",
22    ],
23
24    target: {
25        host: {
26            static_libs: ["libsparse"],
27        },
28        not_windows: {
29            static_libs: ["libselinux"],
30        },
31        windows: {
32            host_ldlibs: ["-lws2_32"],
33            enabled: true,
34        },
35
36        android: {
37            shared_libs: [
38                "libbase",
39                "libselinux",
40            ],
41
42            shared: {
43                cflags: ["-DREAL_UUID"],
44                shared_libs: [
45                    "libcutils",
46                    "libext2_uuid",
47                ],
48            },
49        },
50    },
51}
52
53python_binary_host {
54    name: "mkuserimg_mke2fs",
55    srcs: [
56        "mkuserimg_mke2fs.py",
57    ],
58
59    version: {
60        py2: {
61            enabled: true,
62            embedded_launcher: true,
63        },
64        py3: {
65            enabled: false,
66            embedded_launcher: false,
67        },
68    },
69
70    required: [
71        "mke2fs",
72        "e2fsdroid",
73    ],
74}
75
76prebuilt_etc {
77    name: "mke2fs.conf",
78    recovery_available: true,
79    src: "mke2fs.conf",
80}
81
82cc_binary_host {
83    name: "blk_alloc_to_base_fs",
84    srcs: ["blk_alloc_to_base_fs.cpp"],
85    shared_libs: ["libcutils"],
86    target: {
87        host: {
88            cflags: ["-DHOST"],
89        },
90    },
91    cflags: [
92        "-Wall",
93        "-Werror",
94    ],
95}
96