blob: 73c4e3bbf11582de57027e26c7edab2815024e66 [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",
Steven Moreland22ee4602017-04-07 10:44:52 -070037 ],
Colin Crossd8e3af02019-05-17 13:28:13 -070038 static_libs: [
39 "libc_malloc_debug_backtrace",
Steven Moreland36960002021-04-01 00:08:45 +000040 "libbatterystats_aidl",
Steven Moreland886d7322021-04-02 04:19:45 +000041 "libprocessinfoservice_aidl",
Colin Crossd8e3af02019-05-17 13:28:13 -070042 ],
Steven Moreland22ee4602017-04-07 10:44:52 -070043 shared_libs: [
Philip P. Moltmannbda45752020-07-17 16:41:18 -070044 "libaudioclient_aidl_conversion",
Andy Hunga85efab2019-12-23 11:41:29 -080045 "libaudioutils", // for clock.h
Steven Moreland22ee4602017-04-07 10:44:52 -070046 "libbinder",
Jeffrey Carlyle62cc92b2019-09-17 11:15:15 -070047 "libcutils",
Steven Moreland22ee4602017-04-07 10:44:52 -070048 "liblog",
49 "libutils",
Jayant Chowdhary32b4f492018-11-14 18:38:21 -080050 "libhidlbase",
Svet Ganov33761132021-05-13 22:51:08 +000051 "libpermission",
Jayant Chowdhary32b4f492018-11-14 18:38:21 -080052 "android.hardware.graphics.bufferqueue@1.0",
53 "android.hidl.token@1.0-utils",
Steven Moreland22ee4602017-04-07 10:44:52 -070054 ],
Steven Moreland36960002021-04-01 00:08:45 +000055 export_static_lib_headers: [
56 "libbatterystats_aidl",
57 ],
Steven Moreland22ee4602017-04-07 10:44:52 -070058
Eric Laurent39b09b52018-06-29 12:24:40 -070059 logtags: ["EventLogTags.logtags"],
60
Steven Moreland22ee4602017-04-07 10:44:52 -070061 cflags: [
62 "-Wall",
63 "-Wextra",
64 "-Werror",
65 ],
66
Christopher Ferris9d2e0082019-09-11 19:08:13 -070067 header_libs: [
68 "bionic_libc_platform_headers",
Marco Nelissen6b285942019-10-21 14:52:30 -070069 "libmedia_headers",
Christopher Ferrisa90adf02019-04-17 13:26:15 -070070 ],
Christopher Ferris9d2e0082019-09-11 19:08:13 -070071
Philip P. Moltmannbda45752020-07-17 16:41:18 -070072 export_shared_lib_headers: [
Svet Ganov33761132021-05-13 22:51:08 +000073 "libpermission",
Philip P. Moltmannbda45752020-07-17 16:41:18 -070074 ],
75
Eric Laurent42896a02019-09-27 15:40:33 -070076 include_dirs: [
77 // For DEBUGGER_SIGNAL
78 "system/core/debuggerd/include",
79 ],
Steven Moreland22ee4602017-04-07 10:44:52 -070080 local_include_dirs: ["include"],
81 export_include_dirs: ["include"],
82}
Andy Hung328d6772021-01-12 12:32:21 -080083
Andy Hung61589a42021-06-16 09:37:53 -070084cc_library {
85 name: "libmediautils_vendor",
86 vendor_available: true, // required for platform/hardware/interfaces
87 srcs: [
88 "MemoryLeakTrackUtil.cpp",
89 ],
90
91 cflags: [
92 "-Wall",
93 "-Wextra",
94 "-Werror",
95 ],
96 shared_libs: [
97 "liblog",
98 "libutils",
99 ],
100
101 static_libs: [
102 "libc_malloc_debug_backtrace",
103 ],
104
105 header_libs: [
106 "bionic_libc_platform_headers",
107 ],
108
109 local_include_dirs: ["include"],
110 export_include_dirs: ["include"],
111}
112
113
Andy Hung328d6772021-01-12 12:32:21 -0800114cc_library_headers {
115 name: "libmediautils_headers",
116 vendor_available: true, // required for platform/hardware/interfaces
117
118 export_include_dirs: ["include"],
119}