• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
15cc_library {
16    name: "libnetd_client",
17    srcs: [
18        "FwmarkClient.cpp",
19        "NetdClient.cpp",
20    ],
21    header_libs: [
22        "dnsproxyd_protocol_headers", // NETID_USE_LOCAL_NAMESERVERS
23        "libnetd_client_headers",
24        "libbase_headers", // for unique_fd.h
25        "libnetd_resolv_headers",
26    ],
27    export_header_lib_headers: ["libnetd_client_headers"],
28    include_dirs: [
29        "system/netd/libnetdutils/include",
30    ],
31    defaults: ["netd_defaults"],
32    sanitize: {
33        cfi: true,
34    },
35}
36
37cc_test {
38    name: "netdclient_test",
39    srcs: [
40        "NetdClientTest.cpp",
41    ],
42    defaults: ["netd_defaults"],
43    test_suites: ["device-tests"],
44    include_dirs: [
45        "system/netd/include",
46    ],
47    header_libs: [
48        "libnetd_resolv_headers",
49    ],
50    static_libs: [
51        "libgmock",
52        "libbase",
53        "libnetd_client",
54    ],
55    sanitize: {
56        address: true,
57        recover: [ "all" ],
58    },
59}
60