blob: e3f1e44eaf153f04ab2ec0537cdc5ad60e223a1e [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
Wei Jia4049f132018-01-22 10:37:31 -080015cc_library {
Steven Moreland22ee4602017-04-07 10:44:52 -070016 name: "libmediautils",
17
18 srcs: [
Jayant Chowdhary32b4f492018-11-14 18:38:21 -080019 "AImageReaderUtils.cpp",
Steven Moreland22ee4602017-04-07 10:44:52 -070020 "BatteryNotifier.cpp",
21 "ISchedulingPolicyService.cpp",
Andy Hungd7e0dd42020-03-27 16:42:34 -070022 "LimitProcessMemory.cpp",
Steven Moreland22ee4602017-04-07 10:44:52 -070023 "MemoryLeakTrackUtil.cpp",
24 "ProcessInfo.cpp",
25 "SchedulingPolicyService.cpp",
Andy Hungab7ef302018-05-15 19:35:29 -070026 "ServiceUtilities.cpp",
Eric Laurent39b09b52018-06-29 12:24:40 -070027 "TimeCheck.cpp",
Steven Moreland22ee4602017-04-07 10:44:52 -070028 ],
Colin Crossd8e3af02019-05-17 13:28:13 -070029 static_libs: [
30 "libc_malloc_debug_backtrace",
31 ],
Steven Moreland22ee4602017-04-07 10:44:52 -070032 shared_libs: [
Andy Hunga85efab2019-12-23 11:41:29 -080033 "libaudioutils", // for clock.h
Steven Moreland22ee4602017-04-07 10:44:52 -070034 "libbinder",
Jeffrey Carlyle62cc92b2019-09-17 11:15:15 -070035 "libcutils",
Steven Moreland22ee4602017-04-07 10:44:52 -070036 "liblog",
37 "libutils",
Jayant Chowdhary32b4f492018-11-14 18:38:21 -080038 "libhidlbase",
39 "android.hardware.graphics.bufferqueue@1.0",
40 "android.hidl.token@1.0-utils",
Steven Moreland22ee4602017-04-07 10:44:52 -070041 ],
42
Eric Laurent39b09b52018-06-29 12:24:40 -070043 logtags: ["EventLogTags.logtags"],
44
Steven Moreland22ee4602017-04-07 10:44:52 -070045 cflags: [
46 "-Wall",
47 "-Wextra",
48 "-Werror",
49 ],
50
Christopher Ferris9d2e0082019-09-11 19:08:13 -070051 header_libs: [
52 "bionic_libc_platform_headers",
Marco Nelissen6b285942019-10-21 14:52:30 -070053 "libmedia_headers",
Christopher Ferrisa90adf02019-04-17 13:26:15 -070054 ],
Christopher Ferris9d2e0082019-09-11 19:08:13 -070055
Eric Laurent42896a02019-09-27 15:40:33 -070056 include_dirs: [
57 // For DEBUGGER_SIGNAL
58 "system/core/debuggerd/include",
59 ],
Steven Moreland22ee4602017-04-07 10:44:52 -070060 local_include_dirs: ["include"],
61 export_include_dirs: ["include"],
62}