OSDN Git Service

Revert "Use fuse_main() instead of lower level functions."
[android-x86/external-exfat.git] / Android.bp
1 /*
2  * Free exFAT implementation.
3  * Copyright (C) 2017  liminghao, LongPingWEI
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation, either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License along
16  * with this program; if not, write to the Free Software Foundation, Inc.,
17  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18  */
19
20 cc_defaults {
21     name: "exfat_defaults",
22
23     cflags: [
24         "-std=gnu99",
25         "-Wno-error",
26         "-D_FILE_OFFSET_BITS=64",
27         "-DPACKAGE=\"exfat\"",
28         "-DVERSION=\"1.3.0\"",
29     ],
30     shared_libs: ["liblog"],
31 }
32
33 cc_library_shared {
34     name: "libexfat",
35
36     srcs: ["libexfat/*.c"],
37     defaults: ["exfat_defaults"],
38     local_include_dirs: ["libexfat"],
39     export_include_dirs: ["libexfat"],
40 }
41
42
43 cc_binary {
44     name: "mkfs.exfat",
45
46     srcs: ["mkfs/*.c"],
47     defaults: ["exfat_defaults"],
48     local_include_dirs: ["mkfs"],
49     shared_libs: ["libexfat"],
50 }
51
52 cc_binary {
53     name: "fsck.exfat",
54
55     srcs: ["fsck/main.c"],
56     defaults: ["exfat_defaults"],
57     local_include_dirs: ["fsck"],
58     shared_libs: ["libexfat"],
59 }
60
61 cc_binary {
62     name: "dumpexfat",
63
64     srcs: ["dump/main.c"],
65     defaults: ["exfat_defaults"],
66     local_include_dirs: ["dump"],
67     shared_libs: ["libexfat"],
68 }
69
70 cc_binary {
71     name: "exfatlabel",
72
73     srcs: ["label/main.c"],
74     defaults: ["exfat_defaults"],
75     local_include_dirs: ["label"],
76     shared_libs: ["libexfat"],
77 }