blob: 2a6601a05a51f2773e438fa3f3f21a28da35111a [file] [log] [blame]
hkuang26587cb2020-01-16 10:36:08 -08001/*
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 Kuang06069a52019-11-26 15:28:36 -080017// AIDL interfaces of MediaTranscoding.
18aidl_interface {
19 name: "mediatranscoding_aidl_interface",
20 local_include_dir: "aidl",
21 srcs: [
22 "aidl/android/media/IMediaTranscodingService.aidl",
Chong Zhang8e062632020-03-31 10:56:37 -070023 "aidl/android/media/ITranscodingClient.aidl",
Chong Zhang6d58e4b2020-03-31 09:41:10 -070024 "aidl/android/media/ITranscodingClientCallback.aidl",
Hangyu Kuang06069a52019-11-26 15:28:36 -080025 "aidl/android/media/TranscodingErrorCode.aidl",
hkuang48c365e2020-01-13 16:33:42 -080026 "aidl/android/media/TranscodingJobPriority.aidl",
Hangyu Kuang06069a52019-11-26 15:28:36 -080027 "aidl/android/media/TranscodingType.aidl",
28 "aidl/android/media/TranscodingVideoCodecType.aidl",
hkuang48c365e2020-01-13 16:33:42 -080029 "aidl/android/media/TranscodingJobParcel.aidl",
30 "aidl/android/media/TranscodingRequestParcel.aidl",
31 "aidl/android/media/TranscodingResultParcel.aidl",
Hangyu Kuang06069a52019-11-26 15:28:36 -080032 ],
33}
hkuang26587cb2020-01-16 10:36:08 -080034
35cc_library_shared {
36 name: "libmediatranscoding",
37
38 srcs: [
Chong Zhang6d58e4b2020-03-31 09:41:10 -070039 "TranscodingClientManager.cpp",
40 "TranscodingJobScheduler.cpp",
hkuang26587cb2020-01-16 10:36:08 -080041 ],
42
43 shared_libs: [
44 "libbinder_ndk",
45 "libcutils",
46 "liblog",
47 "libutils",
hkuang6709a932020-04-16 18:22:00 -070048 "libmediatranscoder",
hkuang26587cb2020-01-16 10:36:08 -080049 ],
50
51 export_include_dirs: ["include"],
52
53 static_libs: [
54 "mediatranscoding_aidl_interface-ndk_platform",
55 ],
56
57 cflags: [
hkuang26587cb2020-01-16 10:36:08 -080058 "-Wall",
hkuang08b38d02020-04-17 14:29:33 -070059 "-Werror",
60 "-Wformat",
61 "-Wno-error=deprecated-declarations",
62 "-Wthread-safety",
63 "-Wunused",
64 "-Wunreachable-code",
hkuang26587cb2020-01-16 10:36:08 -080065 ],
66
67 sanitize: {
68 misc_undefined: [
69 "unsigned-integer-overflow",
70 "signed-integer-overflow",
71 ],
72 cfi: true,
73 },
74}