blob: b283bc82c62109dd304e79b1b23cda216a6ce8df [file] [log] [blame]
Ray Essick1831f7b2021-03-15 16:10:51 -07001/*
2 * Copyright (C) 2021 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
18// these headers include the structure of needed function pointers
19cc_library_headers {
20 name: "libmediaformatshaper_headers",
21 export_include_dirs: ["include"],
22 apex_available: [
23 "//apex_available:platform",
24 "com.android.media",
25 ],
26 min_sdk_version: "29",
27 host_supported: true,
28 target: {
29 darwin: {
30 enabled: false,
31 },
32 },
33}
34
35cc_defaults {
36 name: "libmediaformatshaper_defaults",
37 srcs: [
38 "CodecProperties.cpp",
Ray Essick970f1c82021-03-25 13:37:45 -070039 "CodecSeeding.cpp",
Ray Essick1831f7b2021-03-15 16:10:51 -070040 "FormatShaper.cpp",
41 "ManageShapingCodecs.cpp",
42 "VideoShaper.cpp",
43 "VQApply.cpp",
44 ],
45
46 local_include_dirs: [
47 "include",
48 ],
49
50 shared_libs: [
51 "liblog",
52 "libutils",
53 ],
54
55 cflags: [
56 "-Werror",
57 "-Wall",
58 "-fvisibility=hidden",
59 "-Wthread-safety", // enables GUARDED_BY()
60 ],
61
62 target: {
63 android: {
64 shared_libs: [
65 "libmediandk#29",
66 ],
67 },
68 },
69
70 sanitize: {
71 cfi: true,
72 misc_undefined: [
73 "unsigned-integer-overflow",
74 "signed-integer-overflow",
75 ],
76 },
77}
78
79cc_library {
80 name: "libmediaformatshaper",
81 defaults: ["libmediaformatshaper_defaults"],
82
83 min_sdk_version: "29",
84
85 apex_available: [
86 "//apex_available:platform",
87 "com.android.media",
88 ],
89
90 version_script: "exports.lds",
91
92}