blob: 7468426f2c4edf085f3f21a96885fbfd9caf7efd [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",
23 "aidl/android/media/ITranscodingServiceClient.aidl",
24 "aidl/android/media/TranscodingErrorCode.aidl",
hkuang48c365e2020-01-13 16:33:42 -080025 "aidl/android/media/TranscodingJobPriority.aidl",
Hangyu Kuang06069a52019-11-26 15:28:36 -080026 "aidl/android/media/TranscodingType.aidl",
27 "aidl/android/media/TranscodingVideoCodecType.aidl",
hkuang48c365e2020-01-13 16:33:42 -080028 "aidl/android/media/TranscodingJobParcel.aidl",
29 "aidl/android/media/TranscodingRequestParcel.aidl",
30 "aidl/android/media/TranscodingResultParcel.aidl",
Hangyu Kuang06069a52019-11-26 15:28:36 -080031 ],
32}
hkuang26587cb2020-01-16 10:36:08 -080033
34cc_library_shared {
35 name: "libmediatranscoding",
36
37 srcs: [
38 "TranscodingClientManager.cpp"
39 ],
40
41 shared_libs: [
42 "libbinder_ndk",
43 "libcutils",
44 "liblog",
45 "libutils",
46 ],
47
48 export_include_dirs: ["include"],
49
50 static_libs: [
51 "mediatranscoding_aidl_interface-ndk_platform",
52 ],
53
54 cflags: [
55 "-Werror",
56 "-Wno-error=deprecated-declarations",
57 "-Wall",
58 ],
59
60 sanitize: {
61 misc_undefined: [
62 "unsigned-integer-overflow",
63 "signed-integer-overflow",
64 ],
65 cfi: true,
66 },
67}