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: "libtimestats_proto", 12 export_include_dirs: ["include"], 13 14 srcs: [ 15 "TimeStatsHelper.cpp", 16 "timestats.proto", 17 ], 18 19 shared_libs: [ 20 "libbase", 21 "libprotobuf-cpp-lite", 22 ], 23 24 proto: { 25 export_proto_headers: true, 26 }, 27 28 cppflags: [ 29 "-Werror", 30 "-Wno-c++98-compat-pedantic", 31 "-Wno-disabled-macro-expansion", 32 "-Wno-float-conversion", 33 "-Wno-float-equal", 34 "-Wno-format", 35 "-Wno-old-style-cast", 36 "-Wno-padded", 37 "-Wno-sign-conversion", 38 "-Wno-undef", 39 "-Wno-unused-parameter", 40 ], 41} 42 43// ==== java host library for timestats proto =========================== 44// Note timestats is deprecated and is only used for legacy tests 45java_library_host { 46 name: "host-timestats-proto", 47 srcs: [ 48 "timestats.proto", 49 ], 50 proto: { 51 type: "full", 52 }, 53} 54 55// ==== java device library for timestats proto =========================== 56// Note timestats is deprecated and is only used for legacy tests 57java_library { 58 name: "timestats-proto", 59 srcs: [ 60 "timestats.proto", 61 ], 62 proto: { 63 type: "lite", 64 }, 65 sdk_version: "current", 66} 67