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", 16 "libbpf_android", 17 "liblog", 18 "libnetdutils" 19 ], 20 header_libs: ["bpf_prog_headers"], 21 cflags: [ 22 "-Werror", 23 "-Wall", 24 "-Wextra", 25 ], 26 export_include_dirs: ["."], 27} 28 29cc_test { 30 name: "libtimeinstate_test", 31 srcs: ["testtimeinstate.cpp"], 32 shared_libs: [ 33 "libbase", 34 "libbpf", 35 "libbpf_android", 36 "libtimeinstate", 37 "libnetdutils", 38 ], 39 header_libs: ["bpf_prog_headers"], 40 cflags: [ 41 "-Werror", 42 "-Wall", 43 "-Wextra", 44 ], 45 require_root: true, 46} 47