1// 2// Copyright (C) 2024 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 16package { 17 // See: http://go/android-license-faq 18 default_applicable_licenses: [ 19 "external_wpa_supplicant_8_license", 20 ], 21} 22 23cc_binary { 24 name: "hs20-osu-client", 25 vendor: true, 26 srcs: [ 27 ":hs20_client_srcs", 28 ], 29 shared_libs: [ 30 "libc", 31 "libcrypto", 32 "libcurl", 33 "libcutils", 34 "liblog", 35 "libssl", 36 "libxml2", 37 ], 38 cflags: [ 39 "-DCONFIG_CTRL_IFACE", 40 "-DCONFIG_CTRL_IFACE_UNIX", 41 "-DCONFIG_CTRL_IFACE_CLIENT_DIR=\"/data/misc/wifi/sockets\"", 42 "-DCONFIG_DEBUG_FILE", 43 "-DEAP_TLS_OPENSSL", 44 "-Wno-unused-parameter", 45 "-DCONFIG_ANDROID_LOG", 46 "-DANDROID_LOG_NAME=\"hs20-osu-client\"", 47 ], 48 local_include_dirs: [ 49 ".", 50 ], 51 include_dirs: [ 52 "external/curl/include", 53 "external/libxml2/include", 54 "external/wpa_supplicant_8/src", 55 "external/wpa_supplicant_8/src/common", 56 "external/wpa_supplicant_8/src/utils", 57 ], 58 defaults: [ 59 "wpa_supplicant_cflags_default", 60 ], 61} 62