Steven Moreland | 22ee460 | 2017-04-07 10:44:52 -0700 | [diff] [blame] | 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 | |
Bob Badour | 56786ac | 2021-02-25 15:24:36 -0800 | [diff] [blame] | 15 | package { |
| 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 Jia | 4049f13 | 2018-01-22 10:37:31 -0800 | [diff] [blame] | 24 | cc_library { |
Steven Moreland | 22ee460 | 2017-04-07 10:44:52 -0700 | [diff] [blame] | 25 | name: "libmediautils", |
| 26 | |
| 27 | srcs: [ |
Jayant Chowdhary | 32b4f49 | 2018-11-14 18:38:21 -0800 | [diff] [blame] | 28 | "AImageReaderUtils.cpp", |
Steven Moreland | 22ee460 | 2017-04-07 10:44:52 -0700 | [diff] [blame] | 29 | "BatteryNotifier.cpp", |
| 30 | "ISchedulingPolicyService.cpp", |
Andy Hung | d7e0dd4 | 2020-03-27 16:42:34 -0700 | [diff] [blame] | 31 | "LimitProcessMemory.cpp", |
Steven Moreland | 22ee460 | 2017-04-07 10:44:52 -0700 | [diff] [blame] | 32 | "MemoryLeakTrackUtil.cpp", |
| 33 | "ProcessInfo.cpp", |
| 34 | "SchedulingPolicyService.cpp", |
Andy Hung | ab7ef30 | 2018-05-15 19:35:29 -0700 | [diff] [blame] | 35 | "ServiceUtilities.cpp", |
Eric Laurent | 39b09b5 | 2018-06-29 12:24:40 -0700 | [diff] [blame] | 36 | "TimeCheck.cpp", |
Steven Moreland | 22ee460 | 2017-04-07 10:44:52 -0700 | [diff] [blame] | 37 | ], |
Colin Cross | d8e3af0 | 2019-05-17 13:28:13 -0700 | [diff] [blame] | 38 | static_libs: [ |
| 39 | "libc_malloc_debug_backtrace", |
Steven Moreland | 3696000 | 2021-04-01 00:08:45 +0000 | [diff] [blame] | 40 | "libbatterystats_aidl", |
Steven Moreland | 886d732 | 2021-04-02 04:19:45 +0000 | [diff] [blame] | 41 | "libprocessinfoservice_aidl", |
Colin Cross | d8e3af0 | 2019-05-17 13:28:13 -0700 | [diff] [blame] | 42 | ], |
Steven Moreland | 22ee460 | 2017-04-07 10:44:52 -0700 | [diff] [blame] | 43 | shared_libs: [ |
Philip P. Moltmann | bda4575 | 2020-07-17 16:41:18 -0700 | [diff] [blame] | 44 | "libaudioclient_aidl_conversion", |
Andy Hung | a85efab | 2019-12-23 11:41:29 -0800 | [diff] [blame] | 45 | "libaudioutils", // for clock.h |
Steven Moreland | 22ee460 | 2017-04-07 10:44:52 -0700 | [diff] [blame] | 46 | "libbinder", |
Jeffrey Carlyle | 62cc92b | 2019-09-17 11:15:15 -0700 | [diff] [blame] | 47 | "libcutils", |
Steven Moreland | 22ee460 | 2017-04-07 10:44:52 -0700 | [diff] [blame] | 48 | "liblog", |
Steven Moreland | 5d6ea8f | 2021-04-13 01:02:53 +0000 | [diff] [blame] | 49 | "libpermission", |
Steven Moreland | 22ee460 | 2017-04-07 10:44:52 -0700 | [diff] [blame] | 50 | "libutils", |
Jayant Chowdhary | 32b4f49 | 2018-11-14 18:38:21 -0800 | [diff] [blame] | 51 | "libhidlbase", |
| 52 | "android.hardware.graphics.bufferqueue@1.0", |
| 53 | "android.hidl.token@1.0-utils", |
Philip P. Moltmann | bda4575 | 2020-07-17 16:41:18 -0700 | [diff] [blame] | 54 | "media_permission-aidl-cpp", |
Steven Moreland | 22ee460 | 2017-04-07 10:44:52 -0700 | [diff] [blame] | 55 | ], |
Steven Moreland | 3696000 | 2021-04-01 00:08:45 +0000 | [diff] [blame] | 56 | export_static_lib_headers: [ |
| 57 | "libbatterystats_aidl", |
| 58 | ], |
Steven Moreland | 22ee460 | 2017-04-07 10:44:52 -0700 | [diff] [blame] | 59 | |
Eric Laurent | 39b09b5 | 2018-06-29 12:24:40 -0700 | [diff] [blame] | 60 | logtags: ["EventLogTags.logtags"], |
| 61 | |
Steven Moreland | 22ee460 | 2017-04-07 10:44:52 -0700 | [diff] [blame] | 62 | cflags: [ |
| 63 | "-Wall", |
| 64 | "-Wextra", |
| 65 | "-Werror", |
| 66 | ], |
| 67 | |
Christopher Ferris | 9d2e008 | 2019-09-11 19:08:13 -0700 | [diff] [blame] | 68 | header_libs: [ |
| 69 | "bionic_libc_platform_headers", |
Marco Nelissen | 6b28594 | 2019-10-21 14:52:30 -0700 | [diff] [blame] | 70 | "libmedia_headers", |
Christopher Ferris | a90adf0 | 2019-04-17 13:26:15 -0700 | [diff] [blame] | 71 | ], |
Christopher Ferris | 9d2e008 | 2019-09-11 19:08:13 -0700 | [diff] [blame] | 72 | |
Philip P. Moltmann | bda4575 | 2020-07-17 16:41:18 -0700 | [diff] [blame] | 73 | export_shared_lib_headers: [ |
| 74 | "media_permission-aidl-cpp" |
| 75 | ], |
| 76 | |
Eric Laurent | 42896a0 | 2019-09-27 15:40:33 -0700 | [diff] [blame] | 77 | include_dirs: [ |
| 78 | // For DEBUGGER_SIGNAL |
| 79 | "system/core/debuggerd/include", |
| 80 | ], |
Steven Moreland | 22ee460 | 2017-04-07 10:44:52 -0700 | [diff] [blame] | 81 | local_include_dirs: ["include"], |
| 82 | export_include_dirs: ["include"], |
| 83 | } |
Andy Hung | 328d677 | 2021-01-12 12:32:21 -0800 | [diff] [blame] | 84 | |
| 85 | cc_library_headers { |
| 86 | name: "libmediautils_headers", |
| 87 | vendor_available: true, // required for platform/hardware/interfaces |
| 88 | |
| 89 | export_include_dirs: ["include"], |
| 90 | } |