blob: e291bbc4781abf524f507a7b1f82d0a0a290712c [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",
Ken Cheneb911f12021-10-29 11:15:28 +080028 "com.android.tethering",
Ken Chende0bb522021-10-25 20:49:37 +080029 "com.android.art.debug",
30 ],
31 visibility: [
32 "//bootable/libbootloader/vts",
33 "//frameworks/base/services/core/jni",
34 "//frameworks/native/libs/cputimeinstate",
35 "//frameworks/native/services/gpuservice",
36 "//frameworks/native/services/gpuservice/gpumem",
37 "//frameworks/native/services/gpuservice/tests/unittests",
38 "//frameworks/native/services/gpuservice/tracing",
Ken Cheneb911f12021-10-29 11:15:28 +080039 "//packages/modules/Connectivity/netd",
Ken Chende0bb522021-10-25 20:49:37 +080040 "//packages/modules/Connectivity/tests/unit/jni",
41 "//packages/modules/DnsResolver/tests",
42 "//system/bpf/bpfloader",
43 "//system/bpf/libbpf_android",
44 "//system/memory/libmeminfo",
45 "//system/netd/libnetdbpf",
46 "//system/netd/server",
47 "//system/netd/tests",
48 "//system/netd/tests/benchmarks",
49 "//test/vts-testcase/kernel/api/bpf_native_test",
50 ],
51}
52
53
54cc_test {
55 // TODO: Rename to bpf_map_test and modify .gcls as well.
56 name: "libbpf_android_test",
57 srcs: [
58 "BpfMapTest.cpp",
59 ],
60 defaults: ["bpf_defaults"],
61 cflags: [
62 "-Wall",
63 "-Werror",
64 "-Wno-error=unused-variable",
65 ],
66 static_libs: ["libgmock"],
67 shared_libs: [
68 "libbpf_android",
69 "libbase",
70 "liblog",
71 "libutils",
72 ],
73 require_root: true,
74 test_suites: ["general-tests"],
75}