1// 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 15cc_library { 16 name: "libmediautils", 17 18 srcs: [ 19 "AImageReaderUtils.cpp", 20 "BatteryNotifier.cpp", 21 "ISchedulingPolicyService.cpp", 22 "LimitProcessMemory.cpp", 23 "MemoryLeakTrackUtil.cpp", 24 "ProcessInfo.cpp", 25 "SchedulingPolicyService.cpp", 26 "ServiceUtilities.cpp", 27 "TimeCheck.cpp", 28 ], 29 static_libs: [ 30 "libc_malloc_debug_backtrace", 31 ], 32 shared_libs: [ 33 "libaudioutils", // for clock.h 34 "libbinder", 35 "libcutils", 36 "liblog", 37 "libutils", 38 "libhidlbase", 39 "android.hardware.graphics.bufferqueue@1.0", 40 "android.hidl.token@1.0-utils", 41 ], 42 43 logtags: ["EventLogTags.logtags"], 44 45 cflags: [ 46 "-Wall", 47 "-Wextra", 48 "-Werror", 49 ], 50 51 header_libs: [ 52 "bionic_libc_platform_headers", 53 "libmedia_headers", 54 ], 55 56 include_dirs: [ 57 // For DEBUGGER_SIGNAL 58 "system/core/debuggerd/include", 59 ], 60 local_include_dirs: ["include"], 61 export_include_dirs: ["include"], 62} 63