-
Notifications
You must be signed in to change notification settings - Fork 0
/
Android.bp
64 lines (58 loc) · 1.36 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
cc_defaults {
name: "awk-flags",
cflags: [
"-Wall",
"-Werror",
"-Wextra",
// Ignore a few harmless idioms widely used in this code.
"-Wno-missing-field-initializers",
"-Wno-self-assign",
"-Wno-unused-parameter",
// A loop to UCHAR_MAX in `b.c`.
"-Wno-sign-compare",
// And one less harmless used with strtod(3) in `lex.c`.
"-Wno-unused-result",
// Also ignore harmless macro redefinitions: glibc 2.17 #defines dprintf
// in stdio2.h, and this #defines it in awk.h
"-Wno-macro-redefined",
],
yaccflags: [
"-y",
],
}
// TODO: we should actually rebuild awkgram.y and pass the output through maketab.
// For now we just rebuild the checked-in generated files.
cc_binary {
name: "awk-maketab",
defaults: ["awk-flags"],
srcs: ["maketab.c"]
}
cc_defaults {
name: "awk-defaults",
defaults: ["awk-flags"],
srcs: [
"b.c",
"lex.c",
"lib.c",
"main.c",
"parse.c",
"proctab.c",
"run.c",
"tran.c",
"ytab.c",
],
}
cc_binary {
name: "awk",
defaults: ["awk-defaults"],
}
cc_binary {
name: "awk_vendor",
defaults: ["awk-defaults"],
stem: "awk",
vendor: true,
}
cc_binary_host {
name: "one-true-awk",
defaults: ["awk-defaults"],
}