1package { 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 10cc_library { 11 name: "libtimeinstate", 12 srcs: ["cputimeinstate.cpp"], 13 shared_libs: [ 14 "libbase", 15 "libbpf_bcc", 16 "libbpf_minimal", 17 "liblog", 18 ], 19 header_libs: [ 20 "bpf_prog_headers", 21 "bpf_headers", 22 ], 23 cflags: [ 24 "-Werror", 25 "-Wall", 26 "-Wextra", 27 ], 28 export_include_dirs: ["."], 29} 30 31cc_test { 32 name: "libtimeinstate_test", 33 srcs: ["testtimeinstate.cpp"], 34 shared_libs: [ 35 "libbase", 36 "libbpf_bcc", 37 "libbpf_minimal", 38 "libtimeinstate", 39 ], 40 header_libs: [ 41 "bpf_prog_headers", 42 "bpf_headers", 43 ], 44 cflags: [ 45 "-Werror", 46 "-Wall", 47 "-Wextra", 48 ], 49 require_root: true, 50 test_suites: ["general-tests"], 51} 52