blob: 11e276724a7bff531875daa4fd53bd65703b6776 [file] [log] [blame]
Dan Willemsen646af622018-10-31 10:23:28 -07001cc_binary {
2 name: "sgdisk",
3 host_supported: true,
4
5 srcs: [
6 "sgdisk.cc",
7 "gptcl.cc",
8 "crc32.cc",
9 "support.cc",
10 "guid.cc",
11 "gptpart.cc",
12 "mbrpart.cc",
13 "basicmbr.cc",
14 "mbr.cc",
15 "gpt.cc",
16 "bsd.cc",
17 "parttypes.cc",
18 "attributes.cc",
19 "diskio.cc",
20 "diskio-unix.cc",
21 "android_popt.cc",
22 ],
23 cflags: [
24 "-Wno-unused-parameter",
25 "-Wno-pragma-pack",
26 "-Werror",
27 ],
28
29 shared_libs: ["libext2_uuid"],
30
31 target: {
32 darwin: {
33 cflags: [
34 "-D_FILE_OFFSET_BITS=64",
35 "-Doff64_t=off_t",
36 ],
37 },
38 },
39}