blob: 0d48de1c75b06152a15c9bc269270aa9f51b9e87 [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",
40 "NdkMediaExtractor.cpp",
41 "NdkMediaFormat.cpp",
42 "NdkMediaMuxer.cpp",
43 "NdkMediaDrm.cpp",
44 "NdkImage.cpp",
45 "NdkImageReader.cpp",
46 ],
47
48 include_dirs: [
49 "bionic/libc/private",
50 "frameworks/base/core/jni",
51 "frameworks/native/include/media/openmax",
52 "system/media/camera/include",
53 ],
54
55 cflags: [
56 "-fvisibility=hidden",
57 "-DEXPORT=__attribute__((visibility(\"default\")))",
58
59 "-Werror",
60 "-Wall",
61 ],
62
63 static_libs: [
64 "libgrallocusage",
65 ],
66
67 shared_libs: [
68 "libbinder",
69 "libmedia",
70 "libmedia_jni",
71 "libmediadrm",
72 "libskia",
73 "libstagefright",
74 "libstagefright_foundation",
75 "liblog",
76 "libutils",
77 "libcutils",
78 "libandroid",
79 "libandroid_runtime",
80 "libbinder",
81 "libgui",
82 "libui",
83 ],
84
85 export_include_dirs: ["include"],
86
87 product_variables: {
88 pdk: {
89 enabled: false,
90 },
91 },
92}
Jiyong Parka88ef502017-08-10 20:12:24 +090093
94llndk_library {
95 name: "libmediandk",
96 symbol_file: "libmediandk.map.txt",
97 export_include_dirs: ["include"],
98}