Bob Badour | 3306e49 | 2021-02-25 15:35:37 -0800 | [diff] [blame] | 1 | package { |
| 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 | |
Devin Moore | a188980 | 2023-05-22 21:29:09 +0000 | [diff] [blame] | 10 | cc_defaults { |
| 11 | name: "libtimestats_deps", |
| 12 | |
Yiwei Zhang | d792705 | 2020-01-13 16:05:01 -0800 | [diff] [blame] | 13 | shared_libs: [ |
Peiyong Lin | 65248e0 | 2020-04-18 21:15:07 -0700 | [diff] [blame] | 14 | "android.hardware.graphics.composer@2.4", |
Yiwei Zhang | d792705 | 2020-01-13 16:05:01 -0800 | [diff] [blame] | 15 | "libbase", |
| 16 | "libcutils", |
| 17 | "liblog", |
| 18 | "libprotobuf-cpp-lite", |
Tej Singh | e275177 | 2021-04-06 22:05:29 -0700 | [diff] [blame] | 19 | "libtimestats_atoms_proto", |
Yiwei Zhang | d792705 | 2020-01-13 16:05:01 -0800 | [diff] [blame] | 20 | "libui", |
| 21 | "libutils", |
Mikael Pessa | 2e1608f | 2019-07-19 11:25:35 -0700 | [diff] [blame] | 22 | ], |
Devin Moore | a188980 | 2023-05-22 21:29:09 +0000 | [diff] [blame] | 23 | |
| 24 | static_libs: [ |
| 25 | "libtimestats_proto", |
| 26 | ], |
| 27 | |
| 28 | export_static_lib_headers: [ |
| 29 | "libtimestats_proto", |
| 30 | ], |
| 31 | } |
| 32 | |
| 33 | cc_library { |
| 34 | name: "libtimestats", |
| 35 | defaults: [ |
| 36 | "libtimestats_deps", |
| 37 | ], |
| 38 | srcs: [ |
| 39 | "TimeStats.cpp", |
| 40 | ], |
| 41 | header_libs: [ |
| 42 | "libscheduler_headers", |
| 43 | ], |
Mikael Pessa | 2e1608f | 2019-07-19 11:25:35 -0700 | [diff] [blame] | 44 | export_include_dirs: ["."], |
Dominik Laskowski | f6b4ba6 | 2021-11-09 12:46:10 -0800 | [diff] [blame] | 45 | export_header_lib_headers: [ |
| 46 | "libscheduler_headers", |
| 47 | ], |
Yiwei Zhang | d792705 | 2020-01-13 16:05:01 -0800 | [diff] [blame] | 48 | cppflags: [ |
| 49 | "-Wall", |
| 50 | "-Werror", |
| 51 | "-Wformat", |
| 52 | "-Wthread-safety", |
| 53 | "-Wunused", |
| 54 | "-Wunreachable-code", |
Mikael Pessa | 2e1608f | 2019-07-19 11:25:35 -0700 | [diff] [blame] | 55 | ], |
| 56 | } |