blob: c1c7df5c6620ce23ddc8d072ede0fff5d934e738 [file] [log] [blame]
Steven Moreland22ee4602017-04-07 10:44:52 -07001// Copyright 2017 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
Bob Badour56786ac2021-02-25 15:24:36 -080015package {
16 // See: http://go/android-license-faq
17 // A large-scale-change added 'default_applicable_licenses' to import
18 // all of the 'license_kinds' from "frameworks_av_license"
19 // to get the below license kinds:
20 // SPDX-license-identifier-Apache-2.0
21 default_applicable_licenses: ["frameworks_av_license"],
22}
23
Wei Jia4049f132018-01-22 10:37:31 -080024cc_library {
Steven Moreland22ee4602017-04-07 10:44:52 -070025 name: "libmediautils",
26
27 srcs: [
Jayant Chowdhary32b4f492018-11-14 18:38:21 -080028 "AImageReaderUtils.cpp",
Steven Moreland22ee4602017-04-07 10:44:52 -070029 "BatteryNotifier.cpp",
30 "ISchedulingPolicyService.cpp",
Andy Hungd7e0dd42020-03-27 16:42:34 -070031 "LimitProcessMemory.cpp",
Steven Moreland22ee4602017-04-07 10:44:52 -070032 "MemoryLeakTrackUtil.cpp",
33 "ProcessInfo.cpp",
34 "SchedulingPolicyService.cpp",
Andy Hungab7ef302018-05-15 19:35:29 -070035 "ServiceUtilities.cpp",
Eric Laurent39b09b52018-06-29 12:24:40 -070036 "TimeCheck.cpp",
Ytai Ben-Tsvi1ea62c92021-11-10 14:38:27 -080037 "TimerThread.cpp",
Steven Moreland22ee4602017-04-07 10:44:52 -070038 ],
Colin Crossd8e3af02019-05-17 13:28:13 -070039 static_libs: [
40 "libc_malloc_debug_backtrace",
Steven Moreland36960002021-04-01 00:08:45 +000041 "libbatterystats_aidl",
Steven Moreland886d7322021-04-02 04:19:45 +000042 "libprocessinfoservice_aidl",
Colin Crossd8e3af02019-05-17 13:28:13 -070043 ],
Steven Moreland22ee4602017-04-07 10:44:52 -070044 shared_libs: [
Philip P. Moltmannbda45752020-07-17 16:41:18 -070045 "libaudioclient_aidl_conversion",
Andy Hunga85efab2019-12-23 11:41:29 -080046 "libaudioutils", // for clock.h
Steven Moreland22ee4602017-04-07 10:44:52 -070047 "libbinder",
Jeffrey Carlyle62cc92b2019-09-17 11:15:15 -070048 "libcutils",
Steven Moreland22ee4602017-04-07 10:44:52 -070049 "liblog",
50 "libutils",
Jayant Chowdhary32b4f492018-11-14 18:38:21 -080051 "libhidlbase",
Svet Ganov33761132021-05-13 22:51:08 +000052 "libpermission",
Jayant Chowdhary32b4f492018-11-14 18:38:21 -080053 "android.hardware.graphics.bufferqueue@1.0",
54 "android.hidl.token@1.0-utils",
Samiul Islamacb722d2021-08-26 11:41:21 +010055 "packagemanager_aidl-cpp",
Steven Moreland22ee4602017-04-07 10:44:52 -070056 ],
Steven Moreland36960002021-04-01 00:08:45 +000057 export_static_lib_headers: [
58 "libbatterystats_aidl",
59 ],
Steven Moreland22ee4602017-04-07 10:44:52 -070060
Eric Laurent39b09b52018-06-29 12:24:40 -070061 logtags: ["EventLogTags.logtags"],
62
Steven Moreland22ee4602017-04-07 10:44:52 -070063 cflags: [
64 "-Wall",
65 "-Wextra",
66 "-Werror",
67 ],
68
Christopher Ferris9d2e0082019-09-11 19:08:13 -070069 header_libs: [
70 "bionic_libc_platform_headers",
Marco Nelissen6b285942019-10-21 14:52:30 -070071 "libmedia_headers",
Christopher Ferrisa90adf02019-04-17 13:26:15 -070072 ],
Christopher Ferris9d2e0082019-09-11 19:08:13 -070073
Philip P. Moltmannbda45752020-07-17 16:41:18 -070074 export_shared_lib_headers: [
Svet Ganov33761132021-05-13 22:51:08 +000075 "libpermission",
Philip P. Moltmannbda45752020-07-17 16:41:18 -070076 ],
77
Eric Laurent42896a02019-09-27 15:40:33 -070078 include_dirs: [
79 // For DEBUGGER_SIGNAL
80 "system/core/debuggerd/include",
81 ],
Steven Moreland22ee4602017-04-07 10:44:52 -070082 local_include_dirs: ["include"],
83 export_include_dirs: ["include"],
84}
Andy Hung328d6772021-01-12 12:32:21 -080085
Andy Hung61589a42021-06-16 09:37:53 -070086cc_library {
87 name: "libmediautils_vendor",
88 vendor_available: true, // required for platform/hardware/interfaces
89 srcs: [
90 "MemoryLeakTrackUtil.cpp",
91 ],
92
93 cflags: [
94 "-Wall",
95 "-Wextra",
96 "-Werror",
97 ],
98 shared_libs: [
99 "liblog",
100 "libutils",
101 ],
102
103 static_libs: [
104 "libc_malloc_debug_backtrace",
105 ],
106
107 header_libs: [
108 "bionic_libc_platform_headers",
109 ],
110
111 local_include_dirs: ["include"],
112 export_include_dirs: ["include"],
113}
114
115
Andy Hung328d6772021-01-12 12:32:21 -0800116cc_library_headers {
117 name: "libmediautils_headers",
118 vendor_available: true, // required for platform/hardware/interfaces
119
120 export_include_dirs: ["include"],
121}
Ytai Ben-Tsvi1ea62c92021-11-10 14:38:27 -0800122
123cc_test {
124 name: "libmediautils_test",
125 srcs: ["TimerThread-test.cpp"],
126 shared_libs: [
127 "libmediautils",
128 "libutils",
129 ]
130}