• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright 2017 The Android Open Source Project
2
3//##########################################################################
4// Build e2fsdroid
5
6package {
7    // See: http://go/android-license-faq
8    // A large-scale-change added 'default_applicable_licenses' to import
9    // all of the 'license_kinds' from "external_e2fsprogs_license"
10    // to get the below license kinds:
11    //   SPDX-license-identifier-Apache-2.0
12    default_applicable_licenses: ["external_e2fsprogs_license"],
13}
14
15cc_binary {
16    name: "e2fsdroid",
17    host_supported: true,
18    recovery_available: true,
19    vendor_available: true,
20    defaults: ["e2fsprogs-defaults"],
21
22    srcs: [
23        "e2fsdroid.c",
24        "block_range.c",
25        "fsmap.c",
26        "block_list.c",
27        "base_fs.c",
28        "perms.c",
29        "basefs_allocator.c",
30    ],
31    target: {
32        host: {
33            static_libs: [
34                "libext2_com_err",
35                "libext2_misc",
36                "libext2fs",
37                "libsparse",
38                "libz",
39                "libcutils",
40                "libbase",
41                "libselinux",
42                "libcrypto",
43                "liblog",
44            ],
45            stl: "libc++_static",
46        },
47        android: {
48            static_libs: [
49                "libbase",
50            ],
51            shared_libs: [
52                "libext2fs",
53                "libext2_com_err",
54                "libext2_misc",
55                "libcutils",
56                "liblog",
57                "libselinux",
58                "libcrypto",
59            ],
60        },
61    },
62}
63
64//##########################################################################
65// Build ext2simg
66
67cc_binary {
68    name: "ext2simg",
69    host_supported: true,
70    defaults: ["e2fsprogs-defaults"],
71
72    srcs: ["ext2simg.c"],
73    shared_libs: [
74        "libext2fs",
75        "libext2_com_err",
76        "libsparse",
77        "libz",
78    ],
79}
80