blob: bd6621abcb2c4530c35ba056bb7165b73f7cab3b [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",
Jiyong Park1f2151f2020-04-13 12:52:14 +090020 unstable: true,
Hangyu Kuang06069a52019-11-26 15:28:36 -080021 local_include_dir: "aidl",
22 srcs: [
23 "aidl/android/media/IMediaTranscodingService.aidl",
Chong Zhang8e062632020-03-31 10:56:37 -070024 "aidl/android/media/ITranscodingClient.aidl",
Chong Zhang6d58e4b2020-03-31 09:41:10 -070025 "aidl/android/media/ITranscodingClientCallback.aidl",
Hangyu Kuang06069a52019-11-26 15:28:36 -080026 "aidl/android/media/TranscodingErrorCode.aidl",
hkuang48c365e2020-01-13 16:33:42 -080027 "aidl/android/media/TranscodingJobPriority.aidl",
Hangyu Kuang06069a52019-11-26 15:28:36 -080028 "aidl/android/media/TranscodingType.aidl",
29 "aidl/android/media/TranscodingVideoCodecType.aidl",
hkuangb6f39b32020-05-12 14:44:14 -070030 "aidl/android/media/TranscodingVideoTrackFormat.aidl",
hkuang48c365e2020-01-13 16:33:42 -080031 "aidl/android/media/TranscodingJobParcel.aidl",
32 "aidl/android/media/TranscodingRequestParcel.aidl",
33 "aidl/android/media/TranscodingResultParcel.aidl",
hkuang22d6ae82020-05-27 11:05:55 -070034 "aidl/android/media/TranscodingTestConfig.aidl",
Hangyu Kuang06069a52019-11-26 15:28:36 -080035 ],
hkuangf6f372a2020-05-01 16:21:39 -070036 backend:
37 {
38 java: {
39 enabled: true,
40 },
41 },
Hangyu Kuang06069a52019-11-26 15:28:36 -080042}
hkuang26587cb2020-01-16 10:36:08 -080043
44cc_library_shared {
45 name: "libmediatranscoding",
46
47 srcs: [
Chong Zhang6d58e4b2020-03-31 09:41:10 -070048 "TranscodingClientManager.cpp",
49 "TranscodingJobScheduler.cpp",
Chong Zhangacb33502020-04-20 11:04:48 -070050 "TranscodingUidPolicy.cpp",
Chong Zhang66469272020-06-04 16:51:55 -070051 "TranscoderWrapper.cpp",
52 "NdkCommon.cpp",
hkuang26587cb2020-01-16 10:36:08 -080053 ],
54
55 shared_libs: [
56 "libbinder_ndk",
57 "libcutils",
58 "liblog",
59 "libutils",
hkuang6709a932020-04-16 18:22:00 -070060 "libmediatranscoder",
Chong Zhangacb33502020-04-20 11:04:48 -070061 "libbinder",
Chong Zhang66469272020-06-04 16:51:55 -070062 "libmediandk",
hkuang26587cb2020-01-16 10:36:08 -080063 ],
64
65 export_include_dirs: ["include"],
66
67 static_libs: [
68 "mediatranscoding_aidl_interface-ndk_platform",
69 ],
70
71 cflags: [
hkuang26587cb2020-01-16 10:36:08 -080072 "-Wall",
hkuang08b38d02020-04-17 14:29:33 -070073 "-Werror",
74 "-Wformat",
75 "-Wno-error=deprecated-declarations",
76 "-Wthread-safety",
77 "-Wunused",
78 "-Wunreachable-code",
hkuang26587cb2020-01-16 10:36:08 -080079 ],
80
81 sanitize: {
82 misc_undefined: [
83 "unsigned-integer-overflow",
84 "signed-integer-overflow",
85 ],
86 cfi: true,
87 },
88}