-
Notifications
You must be signed in to change notification settings - Fork 0
/
Android.bp
123 lines (111 loc) · 2.99 KB
/
Android.bp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
/*
* Copyright (C) 2018 The LineageOS Project
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
cc_defaults {
name: "ntfs-3g_defaults",
cflags: [
"-Wno-error",
"-Wno-address-of-packed-member",
"-D_LARGEFILE_SOURCE",
"-D_FILE_OFFSET_BITS=64",
"-DHAVE_CONFIG_H",
],
}
cc_library_shared {
name: "libfuse-lite",
defaults: ["ntfs-3g_defaults"],
srcs: ["libfuse-lite/*.c"],
export_include_dirs: ["include/fuse-lite"],
}
cc_library_shared {
name: "libntfs-3g",
defaults: ["ntfs-3g_defaults"],
srcs: [
"libntfs-3g/acls.c",
"libntfs-3g/attrib.c",
"libntfs-3g/attrlist.c",
"libntfs-3g/bitmap.c",
"libntfs-3g/bootsect.c",
"libntfs-3g/cache.c",
"libntfs-3g/collate.c",
"libntfs-3g/compat.c",
"libntfs-3g/compress.c",
"libntfs-3g/debug.c",
"libntfs-3g/device.c",
"libntfs-3g/dir.c",
"libntfs-3g/ea.c",
"libntfs-3g/efs.c",
"libntfs-3g/index.c",
"libntfs-3g/inode.c",
"libntfs-3g/ioctl.c",
"libntfs-3g/lcnalloc.c",
"libntfs-3g/logfile.c",
"libntfs-3g/logging.c",
"libntfs-3g/mft.c",
"libntfs-3g/misc.c",
"libntfs-3g/mst.c",
"libntfs-3g/object_id.c",
"libntfs-3g/realpath.c",
"libntfs-3g/reparse.c",
"libntfs-3g/runlist.c",
"libntfs-3g/security.c",
"libntfs-3g/unistr.c",
"libntfs-3g/unix_io.c",
"libntfs-3g/volume.c",
"libntfs-3g/xattrs.c",
],
export_include_dirs: ["include/ntfs-3g"],
}
cc_binary {
name: "fsck.ntfs",
defaults: ["ntfs-3g_defaults"],
srcs: [
"ntfsprogs/ntfsfix.c",
"ntfsprogs/utils.c",
],
shared_libs: [
"libfuse-lite",
"libntfs-3g",
],
}
cc_binary {
name: "mkfs.ntfs",
defaults: ["ntfs-3g_defaults"],
srcs: [
"ntfsprogs/attrdef.c",
"ntfsprogs/boot.c",
"ntfsprogs/mkntfs.c",
"ntfsprogs/sd.c",
"ntfsprogs/utils.c",
],
shared_libs: [
"libfuse-lite",
"libntfs-3g",
],
}
cc_binary {
name: "mount.ntfs",
defaults: ["ntfs-3g_defaults"],
srcs: [
"src/ntfs-3g.c",
"src/ntfs-3g_common.c",
],
shared_libs: [
"libfuse-lite",
"libntfs-3g",
],
}