This repository has been archived by the owner on Nov 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 39
/
Copy pathAndroid.bp
83 lines (75 loc) · 1.64 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
package {
default_applicable_licenses: ["external_tcpdump_license"],
}
license {
name: "external_tcpdump_license",
visibility: [":__subpackages__"],
license_kinds: [
"SPDX-license-identifier-BSD",
"SPDX-license-identifier-BSD-4-Clause-UC",
"SPDX-license-identifier-ISC",
"SPDX-license-identifier-MIT",
],
license_text: [
"LICENSE",
],
}
cc_defaults {
name: "tcpdump_defaults",
host_supported: false,
cflags: [
"-D_BSD_SOURCE",
"-DHAVE_CONFIG_H",
"-Wall",
"-Werror",
"-Wno-sign-compare",
"-Wno-address-of-packed-member", // http://b/33566695
"-Wno-incompatible-pointer-types-discards-qualifiers",
],
// Based on the tcpdump Makefile...
srcs: [
// CSRC
"tcpdump.c",
// LIBNETDISSECT_SRC
"addrtoname.c",
"addrtostr.c",
"af.c",
"ascii_strcasecmp.c",
"checksum.c",
"cpack.c",
"fptype.c",
"gmpls.c",
"in_cksum.c",
"ipproto.c",
"l2vpn.c",
"machdep.c",
"netdissect-alloc.c",
"nlpid.c",
"ntp.c",
"oui.c",
"parsenfsfh.c",
"print.c",
"print-*.c",
"netdissect.c",
"signature.c",
"strtoaddr.c",
"util-print.c",
// LOCALSRC
"smbutil.c",
],
shared_libs: [
"libssl",
"libcrypto",
"libpcap",
],
}
cc_binary {
name: "tcpdump",
defaults: ["tcpdump_defaults"],
}
cc_binary {
name: "tcpdump_vendor",
stem: "tcpdump",
defaults: ["tcpdump_defaults"],
vendor: true,
}