blob: 79cc15f571f9c980cc905c986eec4d21a23a8733 [file] [log] [blame]
Bob Badour3c538232021-02-12 21:26:48 -08001package {
2 // See: http://go/android-license-faq
3 // A large-scale-change added 'default_applicable_licenses' to import
4 // all of the 'license_kinds' from "frameworks_native_license"
5 // to get the below license kinds:
6 // SPDX-license-identifier-Apache-2.0
7 default_applicable_licenses: ["frameworks_native_license"],
8}
9
Connor O'Brien57337192018-11-20 12:49:16 -080010cc_library {
11 name: "libtimeinstate",
12 srcs: ["cputimeinstate.cpp"],
13 shared_libs: [
14 "libbase",
Connor O'Brien92822a22021-11-22 18:02:36 -080015 "libbpf_bcc",
Connor O'Brien6046f912022-01-14 21:53:52 -080016 "libbpf_minimal",
Connor O'Brien57337192018-11-20 12:49:16 -080017 "liblog",
Connor O'Brien57337192018-11-20 12:49:16 -080018 ],
Maciej Żenczykowskifb0f4302022-02-08 11:09:24 -080019 header_libs: [
20 "bpf_prog_headers",
21 "bpf_headers",
22 ],
Connor O'Brien57337192018-11-20 12:49:16 -080023 cflags: [
24 "-Werror",
25 "-Wall",
26 "-Wextra",
27 ],
Connor O'Brien79609632019-08-20 18:54:58 -070028 export_include_dirs: ["."],
Connor O'Brien57337192018-11-20 12:49:16 -080029}
30
31cc_test {
32 name: "libtimeinstate_test",
33 srcs: ["testtimeinstate.cpp"],
34 shared_libs: [
Connor O'Briena178a732019-06-05 18:27:47 -070035 "libbase",
Connor O'Brien92822a22021-11-22 18:02:36 -080036 "libbpf_bcc",
Connor O'Brien6046f912022-01-14 21:53:52 -080037 "libbpf_minimal",
Connor O'Brien57337192018-11-20 12:49:16 -080038 "libtimeinstate",
Connor O'Brien57337192018-11-20 12:49:16 -080039 ],
Maciej Żenczykowskifb0f4302022-02-08 11:09:24 -080040 header_libs: [
41 "bpf_prog_headers",
42 "bpf_headers",
43 ],
Connor O'Brien57337192018-11-20 12:49:16 -080044 cflags: [
45 "-Werror",
46 "-Wall",
47 "-Wextra",
48 ],
Dmitri Plotnikov2677dba2020-10-17 21:06:55 -070049 require_root: true,
Connor O'Brienaeb3a982020-02-19 20:13:14 -080050 test_suites: ["general-tests"],
Connor O'Brien57337192018-11-20 12:49:16 -080051}