blob: 9375e4e41d8bea0c6d589be82ed42fce7e43c012 [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.
Bob Badour948e6aa2021-02-12 21:02:31 -080018package {
19 // See: http://go/android-license-faq
20 // A large-scale-change added 'default_applicable_licenses' to import
21 // all of the 'license_kinds' from "frameworks_av_license"
22 // to get the below license kinds:
23 // SPDX-license-identifier-Apache-2.0
24 default_applicable_licenses: ["frameworks_av_license"],
25}
26
Hangyu Kuang06069a52019-11-26 15:28:36 -080027aidl_interface {
28 name: "mediatranscoding_aidl_interface",
Jiyong Park1f2151f2020-04-13 12:52:14 +090029 unstable: true,
Hangyu Kuang06069a52019-11-26 15:28:36 -080030 local_include_dir: "aidl",
31 srcs: [
32 "aidl/android/media/IMediaTranscodingService.aidl",
33 "aidl/android/media/ITranscodingServiceClient.aidl",
34 "aidl/android/media/TranscodingErrorCode.aidl",
hkuang48c365e2020-01-13 16:33:42 -080035 "aidl/android/media/TranscodingJobPriority.aidl",
Hangyu Kuang06069a52019-11-26 15:28:36 -080036 "aidl/android/media/TranscodingType.aidl",
37 "aidl/android/media/TranscodingVideoCodecType.aidl",
hkuang48c365e2020-01-13 16:33:42 -080038 "aidl/android/media/TranscodingJobParcel.aidl",
39 "aidl/android/media/TranscodingRequestParcel.aidl",
40 "aidl/android/media/TranscodingResultParcel.aidl",
Hangyu Kuang06069a52019-11-26 15:28:36 -080041 ],
42}
hkuang26587cb2020-01-16 10:36:08 -080043
44cc_library_shared {
45 name: "libmediatranscoding",
46
47 srcs: [
48 "TranscodingClientManager.cpp"
49 ],
50
51 shared_libs: [
52 "libbinder_ndk",
53 "libcutils",
54 "liblog",
55 "libutils",
56 ],
57
58 export_include_dirs: ["include"],
59
60 static_libs: [
61 "mediatranscoding_aidl_interface-ndk_platform",
62 ],
63
64 cflags: [
65 "-Werror",
66 "-Wno-error=deprecated-declarations",
67 "-Wall",
68 ],
69
70 sanitize: {
71 misc_undefined: [
72 "unsigned-integer-overflow",
73 "signed-integer-overflow",
74 ],
75 cfi: true,
76 },
77}