blob: f23da9a99e7ec0564fac4644dda9c7d49926b051 [file] [log] [blame]
Dan Albert2975a242016-09-23 16:17:45 -07001// Copyright (C) 2016 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15// Headers module is in frameworks/av/Android.bp because modules are not allowed
16// to refer to headers in parent directories and the headers live in
17// frameworks/av/include.
18
19ndk_library {
Dan Willemsen2c885592017-04-07 15:48:32 -070020 name: "libmediandk",
Dan Albert2975a242016-09-23 16:17:45 -070021 symbol_file: "libmediandk.map.txt",
22 first_version: "21",
Dan Albert1714f2e2017-01-05 16:00:15 -080023 unversioned_until: "current",
Dan Albert2975a242016-09-23 16:17:45 -070024}
Colin Cross7e8d4ba2017-05-04 16:17:42 -070025
26ndk_headers {
27 name: "libmediandk_headers",
28 from: "include/media",
29 to: "media",
30 srcs: ["include/media/**/*.h"],
31 license: "NOTICE",
32}
Colin Cross3f4c0df2017-05-04 16:19:06 -070033
34cc_library_shared {
35 name: "libmediandk",
36
37 srcs: [
38 "NdkMediaCodec.cpp",
39 "NdkMediaCrypto.cpp",
Robert Shih0df451b2017-12-08 14:16:50 -080040 "NdkMediaDataSource.cpp",
Colin Cross3f4c0df2017-05-04 16:19:06 -070041 "NdkMediaExtractor.cpp",
42 "NdkMediaFormat.cpp",
43 "NdkMediaMuxer.cpp",
44 "NdkMediaDrm.cpp",
45 "NdkImage.cpp",
46 "NdkImageReader.cpp",
47 ],
48
49 include_dirs: [
50 "bionic/libc/private",
51 "frameworks/base/core/jni",
52 "frameworks/native/include/media/openmax",
53 "system/media/camera/include",
54 ],
55
56 cflags: [
Colin Cross3f4c0df2017-05-04 16:19:06 -070057 "-DEXPORT=__attribute__((visibility(\"default\")))",
58
59 "-Werror",
60 "-Wall",
61 ],
62
63 static_libs: [
64 "libgrallocusage",
65 ],
66
67 shared_libs: [
Jooyung Han9cb5a632019-03-07 17:43:25 +090068 "libandroid_runtime_lazy",
Colin Cross3f4c0df2017-05-04 16:19:06 -070069 "libbinder",
70 "libmedia",
Jae Shin8568cb92017-10-30 11:13:36 +090071 "libmedia_omx",
Jooyung Hane6fe88c2019-02-22 16:19:46 +090072 "libmedia_jni_utils",
Colin Cross3f4c0df2017-05-04 16:19:06 -070073 "libmediadrm",
Dongwon Kang7dc218e2018-01-29 08:59:33 -080074 "libmediaextractor",
Colin Cross3f4c0df2017-05-04 16:19:06 -070075 "libstagefright",
76 "libstagefright_foundation",
77 "liblog",
78 "libutils",
79 "libcutils",
Jooyung Hanadb4e002019-02-21 11:34:07 +090080 "libnativewindow",
Colin Cross3f4c0df2017-05-04 16:19:06 -070081 "libbinder",
82 "libgui",
83 "libui",
84 ],
85
Jooyung Hanef280832019-02-21 15:27:38 +090086 required: [
87 // libmediandk may be used by Java and non-Java things. When lower-level things use it,
88 // they shouldn't have to take on the cost of loading libandroid_runtime.
89 "libandroid_runtime",
90 ],
91
Colin Cross3f4c0df2017-05-04 16:19:06 -070092 export_include_dirs: ["include"],
93
94 product_variables: {
95 pdk: {
96 enabled: false,
97 },
98 },
dimitry33019d52018-12-04 15:58:40 +010099 version_script: "libmediandk.map.txt",
Dongwon Kang33d25352018-12-12 13:36:43 +0000100 stubs: {
101 symbol_file: "libmediandk.map.txt",
102 versions: ["29"],
103 },
Pirama Arumuga Nainar2d68de52019-02-15 13:45:49 -0800104
105 // Bug: http://b/124522995 libmediandk has linker errors when built with
106 // coverage
107 native_coverage: false,
Colin Cross3f4c0df2017-05-04 16:19:06 -0700108}
Jiyong Parka88ef502017-08-10 20:12:24 +0900109
110llndk_library {
111 name: "libmediandk",
112 symbol_file: "libmediandk.map.txt",
113 export_include_dirs: ["include"],
114}