blob: c8281c1bd612fdf3c4138e7f25d43f55fa0042d8 [file] [log] [blame]
Dan Willemsen2b284152018-11-17 00:16:26 -08001//
2// Copyright (C) 2011 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15//
16
17cc_binary {
18 name: "racoon",
19
20 srcs: [
21 "src/racoon/algorithm.c",
22 "src/racoon/crypto_openssl.c",
23 "src/racoon/genlist.c",
24 "src/racoon/handler.c",
25 "src/racoon/isakmp.c",
26 "src/racoon/isakmp_agg.c",
27 "src/racoon/isakmp_base.c",
28 "src/racoon/isakmp_cfg.c",
29 "src/racoon/isakmp_frag.c",
30 "src/racoon/isakmp_ident.c",
31 "src/racoon/isakmp_inf.c",
32 "src/racoon/isakmp_newg.c",
33 "src/racoon/isakmp_quick.c",
34 "src/racoon/isakmp_unity.c",
35 "src/racoon/isakmp_xauth.c",
36 "src/racoon/ipsec_doi.c",
37 "src/racoon/nattraversal.c",
38 "src/racoon/oakley.c",
39 "src/racoon/pfkey.c",
40 "src/racoon/policy.c",
41 "src/racoon/proposal.c",
42 "src/racoon/remoteconf.c",
43 "src/racoon/schedule.c",
44 "src/racoon/sockmisc.c",
45 "src/racoon/str2val.c",
46 "src/racoon/strnames.c",
47 "src/racoon/vendorid.c",
48 "src/racoon/vmbuf.c",
49 "main.c",
50 "setup.c",
51 ],
52
53 local_include_dirs: [
54 "src/include-glibc",
55 "src/racoon",
56 "src/racoon/missing",
57 ],
58
59 static_libs: ["libipsec"],
60
61 shared_libs: [
62 "libcutils",
63 "liblog",
64 "libcrypto",
65 "libkeystore-engine",
66 "libnetd_client",
67 ],
68
69 cflags: [
70 "-DANDROID_CHANGES",
71 "-DHAVE_CONFIG_H",
72 "-D_BSD_SOURCE=1",
73
74 "-Wno-sign-compare",
75 "-Wno-missing-field-initializers",
76 "-Wno-unused-parameter",
77 "-Wno-pointer-sign",
78 "-Werror",
79
80 // Turn off unused XXX warnings. Should be removed/fixed when syncing with upstream. b/18523687, b/18632512
81 "-Wno-unused-variable",
82 "-Wno-unused-but-set-variable",
83 "-Wno-unused-function",
84 "-Wno-unused-label",
85 "-Wno-unused-value",
86 ],
87
88 init_rc: ["racoon.rc"],
89}
90
91cc_library_static {
92 name: "libipsec",
93
94 srcs: [
95 "src/libipsec/pfkey.c",
96 "src/libipsec/ipsec_strerror.c",
97 ],
98
99 cflags: [
100 "-DANDROID_CHANGES",
101 "-DHAVE_CONFIG_H",
102
103 "-Wno-sign-compare",
104 "-Wno-missing-field-initializers",
105 "-Wno-unused-parameter",
106 "-Wno-pointer-sign",
107 "-Werror",
108 ],
109
110 local_include_dirs: ["src/include-glibc"],
111 export_include_dirs: ["src/libipsec"],
112}