Robin Lee | 4fd4d39 | 2017-03-14 14:03:05 +0000 | [diff] [blame] | 1 | // Copyright (C) 2017 The Android Open Source Project |
| 2 | // |
| 3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | // you may not use this file except in compliance with the License. |
| 5 | // You may obtain a copy of the License at |
| 6 | // |
| 7 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | // |
| 9 | // Unless required by applicable law or agreed to in writing, software |
| 10 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | // See the License for the specific language governing permissions and |
| 13 | // limitations under the License. |
| 14 | |
Bob Badour | 4114d1a | 2021-02-12 15:38:42 -0800 | [diff] [blame] | 15 | package { |
| 16 | // See: http://go/android-license-faq |
| 17 | // A large-scale-change added 'default_applicable_licenses' to import |
| 18 | // all of the 'license_kinds' from "system_netd_license" |
| 19 | // to get the below license kinds: |
| 20 | // SPDX-license-identifier-Apache-2.0 |
| 21 | default_applicable_licenses: ["system_netd_license"], |
| 22 | } |
| 23 | |
Robin Lee | 4fd4d39 | 2017-03-14 14:03:05 +0000 | [diff] [blame] | 24 | cc_library { |
| 25 | name: "libnetd_client", |
Robin Lee | 4fd4d39 | 2017-03-14 14:03:05 +0000 | [diff] [blame] | 26 | srcs: [ |
| 27 | "FwmarkClient.cpp", |
| 28 | "NetdClient.cpp", |
| 29 | ], |
Luke Huang | c68f1b9 | 2018-11-21 20:13:38 +0800 | [diff] [blame] | 30 | header_libs: [ |
Luke Huang | 743e031 | 2020-05-26 17:21:28 +0800 | [diff] [blame] | 31 | "dnsproxyd_protocol_headers", // NETID_USE_LOCAL_NAMESERVERS |
Luke Huang | c68f1b9 | 2018-11-21 20:13:38 +0800 | [diff] [blame] | 32 | "libnetd_client_headers", |
Luke Huang | e48fbcb | 2018-12-17 16:37:33 +0800 | [diff] [blame] | 33 | "libbase_headers", // for unique_fd.h |
Luke Huang | c68f1b9 | 2018-11-21 20:13:38 +0800 | [diff] [blame] | 34 | ], |
Robin Lee | 4fd4d39 | 2017-03-14 14:03:05 +0000 | [diff] [blame] | 35 | export_header_lib_headers: ["libnetd_client_headers"], |
Robin Lee | 4fd4d39 | 2017-03-14 14:03:05 +0000 | [diff] [blame] | 36 | include_dirs: [ |
Ken Chen | 3a42e77 | 2021-10-21 23:11:53 +0800 | [diff] [blame] | 37 | "frameworks/libs/net/common/netd/libnetdutils/include", |
Robin Lee | 4fd4d39 | 2017-03-14 14:03:05 +0000 | [diff] [blame] | 38 | ], |
Erik Kline | ab999f1 | 2018-07-04 11:29:31 +0900 | [diff] [blame] | 39 | defaults: ["netd_defaults"], |
Ken Chen | 2e413c3 | 2020-01-13 11:59:53 +0800 | [diff] [blame] | 40 | sanitize: { |
| 41 | cfi: true, |
Ken Chen | 2e413c3 | 2020-01-13 11:59:53 +0800 | [diff] [blame] | 42 | }, |
Remi NGUYEN VAN | 4bcb81c | 2020-11-27 19:04:14 +0900 | [diff] [blame] | 43 | apex_available: [ |
| 44 | "//apex_available:platform", |
Remi NGUYEN VAN | 4bcb81c | 2020-11-27 19:04:14 +0900 | [diff] [blame] | 45 | ], |
Robin Lee | 4fd4d39 | 2017-03-14 14:03:05 +0000 | [diff] [blame] | 46 | } |
Luke Huang | 63df948 | 2019-05-25 18:24:03 +0800 | [diff] [blame] | 47 | |
| 48 | cc_test { |
| 49 | name: "netdclient_test", |
| 50 | srcs: [ |
| 51 | "NetdClientTest.cpp", |
| 52 | ], |
| 53 | defaults: ["netd_defaults"], |
| 54 | test_suites: ["device-tests"], |
| 55 | include_dirs: [ |
Luke Huang | 63df948 | 2019-05-25 18:24:03 +0800 | [diff] [blame] | 56 | "system/netd/include", |
chenbruce | a7d6b81 | 2019-06-28 16:37:36 +0800 | [diff] [blame] | 57 | ], |
Luke Huang | 63df948 | 2019-05-25 18:24:03 +0800 | [diff] [blame] | 58 | static_libs: [ |
| 59 | "libgmock", |
| 60 | "libbase", |
| 61 | "libnetd_client", |
| 62 | ], |
| 63 | sanitize: { |
Maciej Żenczykowski | 85a0e3e | 2021-01-15 23:00:47 -0800 | [diff] [blame] | 64 | address: false, |
Luke Huang | 63df948 | 2019-05-25 18:24:03 +0800 | [diff] [blame] | 65 | recover: [ "all" ], |
| 66 | }, |
| 67 | } |