1// 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 17package { 18 default_applicable_licenses: ["external_ipsec-tools_license"], 19} 20 21// Added automatically by a large-scale-change that took the approach of 22// 'apply every license found to every target'. While this makes sure we respect 23// every license restriction, it may not be entirely correct. 24// 25// e.g. GPL in an MIT project might only apply to the contrib/ directory. 26// 27// Please consider splitting the single license below into multiple licenses, 28// taking care not to lose any license_kind information, and overriding the 29// default license using the 'licenses: [...]' property on targets as needed. 30// 31// For unused files, consider creating a 'fileGroup' with "//visibility:private" 32// to attach the license to, and including a comment whether the files may be 33// used in the current project. 34// 35// large-scale-change filtered out the below license kinds as false-positives: 36// SPDX-license-identifier-GPL 37// SPDX-license-identifier-GPL-2.0 38// See: http://go/android-license-faq 39license { 40 name: "external_ipsec-tools_license", 41 visibility: [":__subpackages__"], 42 license_kinds: [ 43 "SPDX-license-identifier-Apache-2.0", 44 "SPDX-license-identifier-BSD", 45 "legacy_notice", 46 "legacy_unencumbered", 47 ], 48 license_text: [ 49 "NOTICE", 50 ], 51} 52 53cc_binary { 54 name: "racoon", 55 56 srcs: [ 57 "src/racoon/algorithm.c", 58 "src/racoon/crypto_openssl.c", 59 "src/racoon/genlist.c", 60 "src/racoon/handler.c", 61 "src/racoon/isakmp.c", 62 "src/racoon/isakmp_agg.c", 63 "src/racoon/isakmp_base.c", 64 "src/racoon/isakmp_cfg.c", 65 "src/racoon/isakmp_frag.c", 66 "src/racoon/isakmp_ident.c", 67 "src/racoon/isakmp_inf.c", 68 "src/racoon/isakmp_newg.c", 69 "src/racoon/isakmp_quick.c", 70 "src/racoon/isakmp_unity.c", 71 "src/racoon/isakmp_xauth.c", 72 "src/racoon/ipsec_doi.c", 73 "src/racoon/nattraversal.c", 74 "src/racoon/oakley.c", 75 "src/racoon/pfkey.c", 76 "src/racoon/policy.c", 77 "src/racoon/proposal.c", 78 "src/racoon/remoteconf.c", 79 "src/racoon/schedule.c", 80 "src/racoon/sockmisc.c", 81 "src/racoon/str2val.c", 82 "src/racoon/strnames.c", 83 "src/racoon/vendorid.c", 84 "src/racoon/vmbuf.c", 85 "main.c", 86 "setup.c", 87 ], 88 89 local_include_dirs: [ 90 "src/include-glibc", 91 "src/racoon", 92 "src/racoon/missing", 93 ], 94 95 static_libs: ["libipsec"], 96 97 shared_libs: [ 98 "libcutils", 99 "liblog", 100 "libcrypto", 101 "libkeystore-engine", 102 "libnetd_client", 103 ], 104 105 cflags: [ 106 "-DANDROID_CHANGES", 107 "-DHAVE_CONFIG_H", 108 "-D_BSD_SOURCE=1", 109 110 "-Wno-sign-compare", 111 "-Wno-missing-field-initializers", 112 "-Wno-unused-parameter", 113 "-Wno-pointer-sign", 114 "-Werror", 115 116 // Turn off unused XXX warnings. Should be removed/fixed when syncing with upstream. b/18523687, b/18632512 117 "-Wno-unused-variable", 118 "-Wno-unused-but-set-variable", 119 "-Wno-unused-function", 120 "-Wno-unused-label", 121 "-Wno-unused-value", 122 ], 123 124 init_rc: ["racoon.rc"], 125} 126 127cc_library_static { 128 name: "libipsec", 129 130 srcs: [ 131 "src/libipsec/pfkey.c", 132 "src/libipsec/ipsec_strerror.c", 133 ], 134 135 cflags: [ 136 "-DANDROID_CHANGES", 137 "-DHAVE_CONFIG_H", 138 139 "-Wno-sign-compare", 140 "-Wno-missing-field-initializers", 141 "-Wno-unused-parameter", 142 "-Wno-pointer-sign", 143 "-Werror", 144 ], 145 146 local_include_dirs: ["src/include-glibc"], 147 export_include_dirs: ["src/libipsec"], 148} 149