hkuang | 26587cb | 2020-01-16 10:36:08 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2020 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
hkuang | 0627dbf | 2020-08-25 13:53:56 -0700 | [diff] [blame] | 17 | filegroup { |
| 18 | name: "libmediatranscoding_aidl", |
Hangyu Kuang | 06069a5 | 2019-11-26 15:28:36 -0800 | [diff] [blame] | 19 | srcs: [ |
| 20 | "aidl/android/media/IMediaTranscodingService.aidl", |
Chong Zhang | 8e06263 | 2020-03-31 10:56:37 -0700 | [diff] [blame] | 21 | "aidl/android/media/ITranscodingClient.aidl", |
Chong Zhang | 6d58e4b | 2020-03-31 09:41:10 -0700 | [diff] [blame] | 22 | "aidl/android/media/ITranscodingClientCallback.aidl", |
Hangyu Kuang | 06069a5 | 2019-11-26 15:28:36 -0800 | [diff] [blame] | 23 | "aidl/android/media/TranscodingErrorCode.aidl", |
Chong Zhang | bc06248 | 2020-10-14 16:43:53 -0700 | [diff] [blame^] | 24 | "aidl/android/media/TranscodingSessionPriority.aidl", |
| 25 | "aidl/android/media/TranscodingSessionStats.aidl", |
Hangyu Kuang | 06069a5 | 2019-11-26 15:28:36 -0800 | [diff] [blame] | 26 | "aidl/android/media/TranscodingType.aidl", |
| 27 | "aidl/android/media/TranscodingVideoCodecType.aidl", |
hkuang | b6f39b3 | 2020-05-12 14:44:14 -0700 | [diff] [blame] | 28 | "aidl/android/media/TranscodingVideoTrackFormat.aidl", |
Chong Zhang | bc06248 | 2020-10-14 16:43:53 -0700 | [diff] [blame^] | 29 | "aidl/android/media/TranscodingSessionParcel.aidl", |
hkuang | 48c365e | 2020-01-13 16:33:42 -0800 | [diff] [blame] | 30 | "aidl/android/media/TranscodingRequestParcel.aidl", |
| 31 | "aidl/android/media/TranscodingResultParcel.aidl", |
hkuang | 22d6ae8 | 2020-05-27 11:05:55 -0700 | [diff] [blame] | 32 | "aidl/android/media/TranscodingTestConfig.aidl", |
Hangyu Kuang | 06069a5 | 2019-11-26 15:28:36 -0800 | [diff] [blame] | 33 | ], |
hkuang | 0627dbf | 2020-08-25 13:53:56 -0700 | [diff] [blame] | 34 | path: "aidl", |
| 35 | } |
| 36 | |
| 37 | // AIDL interfaces of MediaTranscoding. |
| 38 | aidl_interface { |
| 39 | name: "mediatranscoding_aidl_interface", |
| 40 | unstable: true, |
| 41 | local_include_dir: "aidl", |
| 42 | srcs: [":libmediatranscoding_aidl"], |
hkuang | f6f372a | 2020-05-01 16:21:39 -0700 | [diff] [blame] | 43 | backend: |
| 44 | { |
| 45 | java: { |
| 46 | enabled: true, |
| 47 | }, |
| 48 | }, |
Hangyu Kuang | 06069a5 | 2019-11-26 15:28:36 -0800 | [diff] [blame] | 49 | } |
hkuang | 26587cb | 2020-01-16 10:36:08 -0800 | [diff] [blame] | 50 | |
| 51 | cc_library_shared { |
| 52 | name: "libmediatranscoding", |
| 53 | |
| 54 | srcs: [ |
Chong Zhang | 6d58e4b | 2020-03-31 09:41:10 -0700 | [diff] [blame] | 55 | "TranscodingClientManager.cpp", |
Chong Zhang | bc06248 | 2020-10-14 16:43:53 -0700 | [diff] [blame^] | 56 | "TranscodingSessionController.cpp", |
Chong Zhang | f907751 | 2020-09-21 21:02:06 -0700 | [diff] [blame] | 57 | "TranscodingResourcePolicy.cpp", |
Chong Zhang | acb3350 | 2020-04-20 11:04:48 -0700 | [diff] [blame] | 58 | "TranscodingUidPolicy.cpp", |
Chong Zhang | 6646927 | 2020-06-04 16:51:55 -0700 | [diff] [blame] | 59 | "TranscoderWrapper.cpp", |
hkuang | 26587cb | 2020-01-16 10:36:08 -0800 | [diff] [blame] | 60 | ], |
| 61 | |
| 62 | shared_libs: [ |
| 63 | "libbinder_ndk", |
| 64 | "libcutils", |
| 65 | "liblog", |
| 66 | "libutils", |
hkuang | 6709a93 | 2020-04-16 18:22:00 -0700 | [diff] [blame] | 67 | "libmediatranscoder", |
Chong Zhang | acb3350 | 2020-04-20 11:04:48 -0700 | [diff] [blame] | 68 | "libbinder", |
Chong Zhang | 6646927 | 2020-06-04 16:51:55 -0700 | [diff] [blame] | 69 | "libmediandk", |
hkuang | 26587cb | 2020-01-16 10:36:08 -0800 | [diff] [blame] | 70 | ], |
Chong Zhang | f907751 | 2020-09-21 21:02:06 -0700 | [diff] [blame] | 71 | export_shared_lib_headers: [ |
| 72 | "libmediandk", |
| 73 | ], |
hkuang | 26587cb | 2020-01-16 10:36:08 -0800 | [diff] [blame] | 74 | |
| 75 | export_include_dirs: ["include"], |
| 76 | |
| 77 | static_libs: [ |
| 78 | "mediatranscoding_aidl_interface-ndk_platform", |
Chong Zhang | 97d367b | 2020-09-16 12:53:14 -0700 | [diff] [blame] | 79 | "resourcemanager_aidl_interface-ndk_platform", |
Chong Zhang | f907751 | 2020-09-21 21:02:06 -0700 | [diff] [blame] | 80 | "resourceobserver_aidl_interface-ndk_platform", |
hkuang | 26587cb | 2020-01-16 10:36:08 -0800 | [diff] [blame] | 81 | ], |
| 82 | |
| 83 | cflags: [ |
hkuang | 26587cb | 2020-01-16 10:36:08 -0800 | [diff] [blame] | 84 | "-Wall", |
hkuang | 08b38d0 | 2020-04-17 14:29:33 -0700 | [diff] [blame] | 85 | "-Werror", |
| 86 | "-Wformat", |
| 87 | "-Wno-error=deprecated-declarations", |
| 88 | "-Wthread-safety", |
| 89 | "-Wunused", |
| 90 | "-Wunreachable-code", |
hkuang | 26587cb | 2020-01-16 10:36:08 -0800 | [diff] [blame] | 91 | ], |
| 92 | |
| 93 | sanitize: { |
| 94 | misc_undefined: [ |
| 95 | "unsigned-integer-overflow", |
| 96 | "signed-integer-overflow", |
| 97 | ], |
| 98 | cfi: true, |
| 99 | }, |
| 100 | } |