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", |
Jiyong Park | 1f2151f | 2020-04-13 12:52:14 +0900 | [diff] [blame] | 20 | unstable: true, |
Hangyu Kuang | 06069a5 | 2019-11-26 15:28:36 -0800 | [diff] [blame] | 21 | local_include_dir: "aidl", |
| 22 | srcs: [ |
| 23 | "aidl/android/media/IMediaTranscodingService.aidl", |
Chong Zhang | 8e06263 | 2020-03-31 10:56:37 -0700 | [diff] [blame] | 24 | "aidl/android/media/ITranscodingClient.aidl", |
Chong Zhang | 6d58e4b | 2020-03-31 09:41:10 -0700 | [diff] [blame] | 25 | "aidl/android/media/ITranscodingClientCallback.aidl", |
Hangyu Kuang | 06069a5 | 2019-11-26 15:28:36 -0800 | [diff] [blame] | 26 | "aidl/android/media/TranscodingErrorCode.aidl", |
hkuang | 48c365e | 2020-01-13 16:33:42 -0800 | [diff] [blame] | 27 | "aidl/android/media/TranscodingJobPriority.aidl", |
Hangyu Kuang | 06069a5 | 2019-11-26 15:28:36 -0800 | [diff] [blame] | 28 | "aidl/android/media/TranscodingType.aidl", |
| 29 | "aidl/android/media/TranscodingVideoCodecType.aidl", |
hkuang | b6f39b3 | 2020-05-12 14:44:14 -0700 | [diff] [blame^] | 30 | "aidl/android/media/TranscodingVideoTrackFormat.aidl", |
hkuang | 48c365e | 2020-01-13 16:33:42 -0800 | [diff] [blame] | 31 | "aidl/android/media/TranscodingJobParcel.aidl", |
| 32 | "aidl/android/media/TranscodingRequestParcel.aidl", |
| 33 | "aidl/android/media/TranscodingResultParcel.aidl", |
Hangyu Kuang | 06069a5 | 2019-11-26 15:28:36 -0800 | [diff] [blame] | 34 | ], |
hkuang | f6f372a | 2020-05-01 16:21:39 -0700 | [diff] [blame] | 35 | backend: |
| 36 | { |
| 37 | java: { |
| 38 | enabled: true, |
| 39 | }, |
| 40 | }, |
Hangyu Kuang | 06069a5 | 2019-11-26 15:28:36 -0800 | [diff] [blame] | 41 | } |
hkuang | 26587cb | 2020-01-16 10:36:08 -0800 | [diff] [blame] | 42 | |
| 43 | cc_library_shared { |
| 44 | name: "libmediatranscoding", |
| 45 | |
| 46 | srcs: [ |
Chong Zhang | 6d58e4b | 2020-03-31 09:41:10 -0700 | [diff] [blame] | 47 | "TranscodingClientManager.cpp", |
| 48 | "TranscodingJobScheduler.cpp", |
Chong Zhang | acb3350 | 2020-04-20 11:04:48 -0700 | [diff] [blame] | 49 | "TranscodingUidPolicy.cpp", |
hkuang | 26587cb | 2020-01-16 10:36:08 -0800 | [diff] [blame] | 50 | ], |
| 51 | |
| 52 | shared_libs: [ |
| 53 | "libbinder_ndk", |
| 54 | "libcutils", |
| 55 | "liblog", |
| 56 | "libutils", |
hkuang | 6709a93 | 2020-04-16 18:22:00 -0700 | [diff] [blame] | 57 | "libmediatranscoder", |
Chong Zhang | acb3350 | 2020-04-20 11:04:48 -0700 | [diff] [blame] | 58 | "libbinder", |
hkuang | 26587cb | 2020-01-16 10:36:08 -0800 | [diff] [blame] | 59 | ], |
| 60 | |
| 61 | export_include_dirs: ["include"], |
| 62 | |
| 63 | static_libs: [ |
| 64 | "mediatranscoding_aidl_interface-ndk_platform", |
| 65 | ], |
| 66 | |
| 67 | cflags: [ |
hkuang | 26587cb | 2020-01-16 10:36:08 -0800 | [diff] [blame] | 68 | "-Wall", |
hkuang | 08b38d0 | 2020-04-17 14:29:33 -0700 | [diff] [blame] | 69 | "-Werror", |
| 70 | "-Wformat", |
| 71 | "-Wno-error=deprecated-declarations", |
| 72 | "-Wthread-safety", |
| 73 | "-Wunused", |
| 74 | "-Wunreachable-code", |
hkuang | 26587cb | 2020-01-16 10:36:08 -0800 | [diff] [blame] | 75 | ], |
| 76 | |
| 77 | sanitize: { |
| 78 | misc_undefined: [ |
| 79 | "unsigned-integer-overflow", |
| 80 | "signed-integer-overflow", |
| 81 | ], |
| 82 | cfi: true, |
| 83 | }, |
| 84 | } |