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 15 cc_library { 16 name: "libmediautils", 17 18 srcs: [ 19 "AImageReaderUtils.cpp", 20 "BatteryNotifier.cpp", 21 "ISchedulingPolicyService.cpp", 22 "MemoryLeakTrackUtil.cpp", 23 "ProcessInfo.cpp", 24 "SchedulingPolicyService.cpp", 25 "ServiceUtilities.cpp", 26 "TimeCheck.cpp", 27 ], 28 shared_libs: [ 29 "libbinder", 30 "liblog", 31 "libutils", 32 "libmemunreachable", 33 "libhidlbase", 34 "android.hardware.graphics.bufferqueue (a] 1.0", 35 "android.hidl.token (a] 1.0-utils", 36 ], 37 38 logtags: ["EventLogTags.logtags"], 39 40 cflags: [ 41 "-Wall", 42 "-Wextra", 43 "-Werror", 44 ], 45 46 product_variables: { 47 product_is_iot: { 48 cflags: ["-DTARGET_ANDROID_THINGS"], 49 }, 50 }, 51 52 include_dirs: [ 53 // For android_mallopt definitions. 54 "bionic/libc/private" 55 ], 56 local_include_dirs: ["include"], 57 export_include_dirs: ["include"], 58 } 59