OSDN Git Service

Merge branch 'master' of git://github.com/relan/exfat into pie-x86
[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: "mount.exfat",
63
64     cflags: [
65         "-Wno-unused-parameter",
66     ],
67     srcs: ["fuse/main.c"],
68     defaults: ["exfat_defaults"],
69     shared_libs: ["libexfat", "libfuse-lite"],
70 }
71
72 cc_binary {
73     name: "dumpexfat",
74
75     srcs: ["dump/main.c"],
76     defaults: ["exfat_defaults"],
77     local_include_dirs: ["dump"],
78     shared_libs: ["libexfat"],
79 }
80
81 cc_binary {
82     name: "exfatlabel",
83
84     srcs: ["label/main.c"],
85     defaults: ["exfat_defaults"],
86     local_include_dirs: ["label"],
87     shared_libs: ["libexfat"],
88 }