blob: 128d0d82a437a559fe46c4dc7b6380e2d7b32c62 [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
hkuang0627dbf2020-08-25 13:53:56 -070017filegroup {
18 name: "libmediatranscoding_aidl",
Hangyu Kuang06069a52019-11-26 15:28:36 -080019 srcs: [
20 "aidl/android/media/IMediaTranscodingService.aidl",
Chong Zhang8e062632020-03-31 10:56:37 -070021 "aidl/android/media/ITranscodingClient.aidl",
Chong Zhang6d58e4b2020-03-31 09:41:10 -070022 "aidl/android/media/ITranscodingClientCallback.aidl",
Hangyu Kuang06069a52019-11-26 15:28:36 -080023 "aidl/android/media/TranscodingErrorCode.aidl",
hkuang48c365e2020-01-13 16:33:42 -080024 "aidl/android/media/TranscodingJobPriority.aidl",
hkuang0bd73742020-06-24 12:57:09 -070025 "aidl/android/media/TranscodingJobStats.aidl",
Hangyu Kuang06069a52019-11-26 15:28:36 -080026 "aidl/android/media/TranscodingType.aidl",
27 "aidl/android/media/TranscodingVideoCodecType.aidl",
hkuangb6f39b32020-05-12 14:44:14 -070028 "aidl/android/media/TranscodingVideoTrackFormat.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",
hkuang22d6ae82020-05-27 11:05:55 -070032 "aidl/android/media/TranscodingTestConfig.aidl",
Hangyu Kuang06069a52019-11-26 15:28:36 -080033 ],
hkuang0627dbf2020-08-25 13:53:56 -070034 path: "aidl",
35}
36
37// AIDL interfaces of MediaTranscoding.
38aidl_interface {
39 name: "mediatranscoding_aidl_interface",
40 unstable: true,
41 local_include_dir: "aidl",
42 srcs: [":libmediatranscoding_aidl"],
hkuangf6f372a2020-05-01 16:21:39 -070043 backend:
44 {
45 java: {
46 enabled: true,
47 },
48 },
Hangyu Kuang06069a52019-11-26 15:28:36 -080049}
hkuang26587cb2020-01-16 10:36:08 -080050
51cc_library_shared {
52 name: "libmediatranscoding",
53
54 srcs: [
Chong Zhang6d58e4b2020-03-31 09:41:10 -070055 "TranscodingClientManager.cpp",
56 "TranscodingJobScheduler.cpp",
Chong Zhangf9077512020-09-21 21:02:06 -070057 "TranscodingResourcePolicy.cpp",
Chong Zhangacb33502020-04-20 11:04:48 -070058 "TranscodingUidPolicy.cpp",
Chong Zhang66469272020-06-04 16:51:55 -070059 "TranscoderWrapper.cpp",
hkuang26587cb2020-01-16 10:36:08 -080060 ],
61
62 shared_libs: [
63 "libbinder_ndk",
64 "libcutils",
65 "liblog",
66 "libutils",
hkuang6709a932020-04-16 18:22:00 -070067 "libmediatranscoder",
Chong Zhangacb33502020-04-20 11:04:48 -070068 "libbinder",
Chong Zhang66469272020-06-04 16:51:55 -070069 "libmediandk",
hkuang26587cb2020-01-16 10:36:08 -080070 ],
Chong Zhangf9077512020-09-21 21:02:06 -070071 export_shared_lib_headers: [
72 "libmediandk",
73 ],
hkuang26587cb2020-01-16 10:36:08 -080074
75 export_include_dirs: ["include"],
76
77 static_libs: [
78 "mediatranscoding_aidl_interface-ndk_platform",
Chong Zhang97d367b2020-09-16 12:53:14 -070079 "resourcemanager_aidl_interface-ndk_platform",
Chong Zhangf9077512020-09-21 21:02:06 -070080 "resourceobserver_aidl_interface-ndk_platform",
hkuang26587cb2020-01-16 10:36:08 -080081 ],
82
83 cflags: [
hkuang26587cb2020-01-16 10:36:08 -080084 "-Wall",
hkuang08b38d02020-04-17 14:29:33 -070085 "-Werror",
86 "-Wformat",
87 "-Wno-error=deprecated-declarations",
88 "-Wthread-safety",
89 "-Wunused",
90 "-Wunreachable-code",
hkuang26587cb2020-01-16 10:36:08 -080091 ],
92
93 sanitize: {
94 misc_undefined: [
95 "unsigned-integer-overflow",
96 "signed-integer-overflow",
97 ],
98 cfi: true,
99 },
100}