blob: 521b682729853bcb46c7da586afca2041a88e04a [file] [log] [blame]
Ken Chende0bb522021-10-25 20:49:37 +08001// Copyright (C) 2021 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_headers {
16 name: "bpf_map_utils",
17 vendor_available: true,
18 host_supported: true,
19 native_bridge_supported: true,
20 export_include_dirs: ["include"],
21 cflags: [
22 "-Wall",
23 "-Werror",
24 ],
25 min_sdk_version: "30",
26 apex_available: [
27 "//apex_available:platform",
28 "com.android.art.debug",
29 ],
30 visibility: [
31 "//bootable/libbootloader/vts",
32 "//frameworks/base/services/core/jni",
33 "//frameworks/native/libs/cputimeinstate",
34 "//frameworks/native/services/gpuservice",
35 "//frameworks/native/services/gpuservice/gpumem",
36 "//frameworks/native/services/gpuservice/tests/unittests",
37 "//frameworks/native/services/gpuservice/tracing",
38 "//packages/modules/Connectivity/tests/unit/jni",
39 "//packages/modules/DnsResolver/tests",
40 "//system/bpf/bpfloader",
41 "//system/bpf/libbpf_android",
42 "//system/memory/libmeminfo",
43 "//system/netd/libnetdbpf",
44 "//system/netd/server",
45 "//system/netd/tests",
46 "//system/netd/tests/benchmarks",
47 "//test/vts-testcase/kernel/api/bpf_native_test",
48 ],
49}
50
51
52cc_test {
53 // TODO: Rename to bpf_map_test and modify .gcls as well.
54 name: "libbpf_android_test",
55 srcs: [
56 "BpfMapTest.cpp",
57 ],
58 defaults: ["bpf_defaults"],
59 cflags: [
60 "-Wall",
61 "-Werror",
62 "-Wno-error=unused-variable",
63 ],
64 static_libs: ["libgmock"],
65 shared_libs: [
66 "libbpf_android",
67 "libbase",
68 "liblog",
69 "libutils",
70 ],
71 require_root: true,
72 test_suites: ["general-tests"],
73}