• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
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
17// AIDL interfaces of MediaTranscoding.
18aidl_interface {
19    name: "mediatranscoding_aidl_interface",
20    unstable: true,
21    local_include_dir: "aidl",
22    srcs: [
23        "aidl/android/media/IMediaTranscodingService.aidl",
24        "aidl/android/media/ITranscodingServiceClient.aidl",
25        "aidl/android/media/TranscodingErrorCode.aidl",
26        "aidl/android/media/TranscodingJobPriority.aidl",
27        "aidl/android/media/TranscodingType.aidl",
28        "aidl/android/media/TranscodingVideoCodecType.aidl",
29        "aidl/android/media/TranscodingJobParcel.aidl",
30        "aidl/android/media/TranscodingRequestParcel.aidl",
31        "aidl/android/media/TranscodingResultParcel.aidl",
32    ],
33}
34
35cc_library_shared {
36    name: "libmediatranscoding",
37
38    srcs: [
39        "TranscodingClientManager.cpp"
40    ],
41
42    shared_libs: [
43        "libbinder_ndk",
44        "libcutils",
45        "liblog",
46        "libutils",
47    ],
48
49    export_include_dirs: ["include"],
50
51    static_libs: [
52        "mediatranscoding_aidl_interface-ndk_platform",
53    ],
54
55    cflags: [
56        "-Werror",
57        "-Wno-error=deprecated-declarations",
58        "-Wall",
59    ],
60
61    sanitize: {
62        misc_undefined: [
63            "unsigned-integer-overflow",
64            "signed-integer-overflow",
65        ],
66        cfi: true,
67    },
68}
69