blob: a5e17668c3c25bfe953183b5b5779f96b3c2b53b [file] [log] [blame]
Chris Weir7b1428f2021-11-22 09:59:07 -08001//
2// Copyright (C) 2021 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_defaults {
18 name: "nlinterceptor@defaults",
19 cpp_std: "experimental",
20 cflags: [
21 "-Wall",
22 "-Wextra",
23 "-Wsuggest-override",
24 "-Werror",
25 ],
26 shared_libs: [
27 "libbase",
28 "libutils",
29 ],
30 sanitize: {
31 address: true,
32 undefined: true,
33 all_undefined: true,
34 fuzzer: true,
35 cfi: true,
36 integer_overflow: true,
37 scs: true,
38 },
39 strip: {
40 keep_symbols_and_debug_frame: true,
41 },
42}
43
44cc_library_static {
45 name: "libnlinterceptor",
46 defaults: ["nlinterceptor@defaults"],
47 vendor_available: true,
48 shared_libs: [
49 "android.hardware.net.nlinterceptor-V1-ndk",
50 "libbinder_ndk",
51 ],
52 srcs: [
53 "libnlinterceptor.cpp",
54 ],
55 export_include_dirs: ["include"],
56}