-
Notifications
You must be signed in to change notification settings - Fork 0
/
Android.bp
49 lines (44 loc) · 1.17 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
cc_defaults {
name: "awk-defaults",
srcs: [
// We remove the upstream ytab.c/ytab.h and let the build system build
// awkgram.y for us. Because all the source refers to ytab.h, we have a
// one-line ytab.h that includes the generated awkgram.h.
"awkgram.y",
"b.c",
"lex.c",
"lib.c",
"main.c",
"parse.c",
// We don't build or run `maketab` because it can't cope with modern
// yacc output which generates an enum rather than #defines. Luckily
// the upstream prebuilt proctab.c is good enough.
"proctab.c",
"run.c",
"tran.c",
],
cflags: [
"-Wall",
"-Werror",
"-Wextra",
// Ignore a few harmless idioms widely used in this code.
"-Wno-missing-field-initializers",
"-Wno-self-assign",
"-Wno-unused-parameter",
],
}
cc_binary {
name: "awk",
defaults: ["awk-defaults"],
}
cc_binary {
name: "awk_vendor",
defaults: ["awk-defaults"],
stem: "awk",
vendor: true,
}
cc_library_static {
name: "libawk_main",
defaults: ["awk-defaults"],
cflags: ["-Dmain=awk_main"],
}