OSDN Git Service

release-request-d3de000d-8c5a-4c3c-b63e-e989421d7762-for-git_oc-mr1-release-4176727...
[android-x86/system-extras.git] / f2fs_utils / Android.bp
1 // Copyright 2017 The Android Open Source Project
2
3 cc_library_host_static {
4     name: "libf2fs_utils_host",
5
6     srcs: ["f2fs_utils.c"],
7
8     static_libs: [
9         "libsparse",
10         "libz",
11     ],
12
13     include_dirs: [
14         "external/f2fs-tools/include",
15         "external/f2fs-tools/mkfs",
16     ],
17
18     cflags: ["-Wno-unused-parameter"],
19
20     target: {
21         darwin: {
22             enabled: false,
23         },
24     },
25 }
26
27 cc_library_host_static {
28     name: "libf2fs_ioutils_host",
29
30     srcs: ["f2fs_ioutils.c"],
31
32     include_dirs: [
33         "external/f2fs-tools/include",
34         "external/f2fs-tools/mkfs",
35     ],
36
37     cflags: ["-Wno-unused-parameter"],
38
39     static_libs: [
40         "libselinux",
41         "libsparse",
42         "libext2_uuid",
43         "libz",
44     ],
45
46     target: {
47         darwin: {
48             enabled: false,
49         },
50     },
51 }
52
53 cc_library_host_static {
54     name: "libf2fs_dlutils_host",
55
56     srcs: ["f2fs_dlutils.c"],
57
58     include_dirs: [
59         "external/f2fs-tools/include",
60         "external/f2fs-tools/mkfs",
61     ],
62     // Will attempt to dlopen("libf2fs_fmt_host_dyn")
63     host_ldlibs: ["-ldl"],
64
65     target: {
66         darwin: {
67             enabled: false,
68         },
69     },
70 }
71
72 cc_library_shared {
73     name: "libf2fs_dlutils",
74
75     srcs: ["f2fs_dlutils.c"],
76
77     include_dirs: [
78         "external/f2fs-tools/include",
79         "external/f2fs-tools/mkfs",
80     ],
81
82     shared_libs: ["libdl"],
83
84     target: {
85         darwin: {
86             enabled: false,
87         },
88     },
89 }
90
91 cc_library_static {
92     name: "libf2fs_dlutils_static",
93
94     srcs: ["f2fs_dlutils.c"],
95
96     include_dirs: [
97         "external/f2fs-tools/include",
98         "external/f2fs-tools/mkfs",
99     ],
100
101     shared_libs: ["libdl"],
102
103     target: {
104         darwin: {
105             enabled: false,
106         },
107     },
108 }
109
110 cc_library_static {
111     name: "libf2fs_utils_static",
112
113     srcs: ["f2fs_utils.c"],
114
115     include_dirs: [
116         "external/f2fs-tools/include",
117         "external/f2fs-tools/mkfs",
118     ],
119
120     cflags: ["-Wno-unused-parameter"],
121
122     static_libs: ["libsparse"],
123
124     target: {
125         darwin: {
126             enabled: false,
127         },
128     },
129 }
130
131 cc_library_shared {
132     name: "libf2fs_sparseblock",
133
134     srcs: ["f2fs_sparseblock.c"],
135
136     shared_libs: [
137         "liblog",
138         "libcutils",
139     ],
140
141     include_dirs: [
142         "external/f2fs-tools/include",
143         "system/core/include/log",
144     ],
145
146     export_include_dirs: ["."]
147 }
148
149 cc_binary {
150     name: "f2fs_sparseblock",
151
152     srcs: ["f2fs_sparseblock.c"],
153
154     shared_libs: [
155         "liblog",
156         "libcutils",
157     ],
158
159     include_dirs: [
160         "external/f2fs-tools/include",
161         "system/core/include/log",
162     ],
163 }
164
165 cc_prebuilt_binary {
166     name: "mkf2fsuserimg.sh",
167
168     srcs: ["mkf2fsuserimg.sh"],
169
170     host_supported: true,
171 }