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 | |
Hangyu Kuang | 06069a5 | 2019-11-26 15:28:36 -0800 | [diff] [blame] | 17 | // AIDL interfaces of MediaTranscoding. |
| 18 | aidl_interface { |
| 19 | name: "mediatranscoding_aidl_interface", |
| 20 | local_include_dir: "aidl", |
| 21 | srcs: [ |
| 22 | "aidl/android/media/IMediaTranscodingService.aidl", |
Chong Zhang | 8e06263 | 2020-03-31 10:56:37 -0700 | [diff] [blame] | 23 | "aidl/android/media/ITranscodingClient.aidl", |
Chong Zhang | 6d58e4b | 2020-03-31 09:41:10 -0700 | [diff] [blame] | 24 | "aidl/android/media/ITranscodingClientCallback.aidl", |
Hangyu Kuang | 06069a5 | 2019-11-26 15:28:36 -0800 | [diff] [blame] | 25 | "aidl/android/media/TranscodingErrorCode.aidl", |
hkuang | 48c365e | 2020-01-13 16:33:42 -0800 | [diff] [blame] | 26 | "aidl/android/media/TranscodingJobPriority.aidl", |
Hangyu Kuang | 06069a5 | 2019-11-26 15:28:36 -0800 | [diff] [blame] | 27 | "aidl/android/media/TranscodingType.aidl", |
| 28 | "aidl/android/media/TranscodingVideoCodecType.aidl", |
hkuang | 48c365e | 2020-01-13 16:33:42 -0800 | [diff] [blame] | 29 | "aidl/android/media/TranscodingJobParcel.aidl", |
| 30 | "aidl/android/media/TranscodingRequestParcel.aidl", |
| 31 | "aidl/android/media/TranscodingResultParcel.aidl", |
Hangyu Kuang | 06069a5 | 2019-11-26 15:28:36 -0800 | [diff] [blame] | 32 | ], |
| 33 | } |
hkuang | 26587cb | 2020-01-16 10:36:08 -0800 | [diff] [blame] | 34 | |
| 35 | cc_library_shared { |
| 36 | name: "libmediatranscoding", |
| 37 | |
| 38 | srcs: [ |
Chong Zhang | 6d58e4b | 2020-03-31 09:41:10 -0700 | [diff] [blame] | 39 | "TranscodingClientManager.cpp", |
| 40 | "TranscodingJobScheduler.cpp", |
hkuang | 26587cb | 2020-01-16 10:36:08 -0800 | [diff] [blame] | 41 | ], |
| 42 | |
| 43 | shared_libs: [ |
| 44 | "libbinder_ndk", |
| 45 | "libcutils", |
| 46 | "liblog", |
| 47 | "libutils", |
hkuang | 6709a93 | 2020-04-16 18:22:00 -0700 | [diff] [blame^] | 48 | "libmediatranscoder", |
hkuang | 26587cb | 2020-01-16 10:36:08 -0800 | [diff] [blame] | 49 | ], |
| 50 | |
| 51 | export_include_dirs: ["include"], |
| 52 | |
| 53 | static_libs: [ |
| 54 | "mediatranscoding_aidl_interface-ndk_platform", |
| 55 | ], |
| 56 | |
| 57 | cflags: [ |
| 58 | "-Werror", |
| 59 | "-Wno-error=deprecated-declarations", |
| 60 | "-Wall", |
| 61 | ], |
| 62 | |
| 63 | sanitize: { |
| 64 | misc_undefined: [ |
| 65 | "unsigned-integer-overflow", |
| 66 | "signed-integer-overflow", |
| 67 | ], |
| 68 | cfi: true, |
| 69 | }, |
| 70 | } |