Dan Albert | 2975a24 | 2016-09-23 16:17:45 -0700 | [diff] [blame] | 1 | // 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 | |
| 19 | ndk_library { |
Dan Willemsen | 2c88559 | 2017-04-07 15:48:32 -0700 | [diff] [blame] | 20 | name: "libmediandk", |
Dan Albert | 2975a24 | 2016-09-23 16:17:45 -0700 | [diff] [blame] | 21 | symbol_file: "libmediandk.map.txt", |
| 22 | first_version: "21", |
Dan Albert | 1714f2e | 2017-01-05 16:00:15 -0800 | [diff] [blame] | 23 | unversioned_until: "current", |
Dan Albert | 2975a24 | 2016-09-23 16:17:45 -0700 | [diff] [blame] | 24 | } |
Colin Cross | 7e8d4ba | 2017-05-04 16:17:42 -0700 | [diff] [blame] | 25 | |
| 26 | ndk_headers { |
| 27 | name: "libmediandk_headers", |
| 28 | from: "include/media", |
| 29 | to: "media", |
| 30 | srcs: ["include/media/**/*.h"], |
| 31 | license: "NOTICE", |
| 32 | } |
Colin Cross | 3f4c0df | 2017-05-04 16:19:06 -0700 | [diff] [blame] | 33 | |
| 34 | cc_library_shared { |
| 35 | name: "libmediandk", |
| 36 | |
| 37 | srcs: [ |
| 38 | "NdkMediaCodec.cpp", |
| 39 | "NdkMediaCrypto.cpp", |
Robert Shih | 0df451b | 2017-12-08 14:16:50 -0800 | [diff] [blame^] | 40 | "NdkMediaDataSource.cpp", |
Colin Cross | 3f4c0df | 2017-05-04 16:19:06 -0700 | [diff] [blame] | 41 | "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: [ |
| 57 | "-fvisibility=hidden", |
| 58 | "-DEXPORT=__attribute__((visibility(\"default\")))", |
| 59 | |
| 60 | "-Werror", |
| 61 | "-Wall", |
| 62 | ], |
| 63 | |
| 64 | static_libs: [ |
| 65 | "libgrallocusage", |
| 66 | ], |
| 67 | |
| 68 | shared_libs: [ |
| 69 | "libbinder", |
| 70 | "libmedia", |
Jae Shin | 8568cb9 | 2017-10-30 11:13:36 +0900 | [diff] [blame] | 71 | "libmedia_omx", |
Colin Cross | 3f4c0df | 2017-05-04 16:19:06 -0700 | [diff] [blame] | 72 | "libmedia_jni", |
| 73 | "libmediadrm", |
Colin Cross | 3f4c0df | 2017-05-04 16:19:06 -0700 | [diff] [blame] | 74 | "libstagefright", |
| 75 | "libstagefright_foundation", |
| 76 | "liblog", |
| 77 | "libutils", |
| 78 | "libcutils", |
| 79 | "libandroid", |
| 80 | "libandroid_runtime", |
| 81 | "libbinder", |
| 82 | "libgui", |
| 83 | "libui", |
| 84 | ], |
| 85 | |
| 86 | export_include_dirs: ["include"], |
| 87 | |
| 88 | product_variables: { |
| 89 | pdk: { |
| 90 | enabled: false, |
| 91 | }, |
| 92 | }, |
| 93 | } |
Jiyong Park | a88ef50 | 2017-08-10 20:12:24 +0900 | [diff] [blame] | 94 | |
| 95 | llndk_library { |
| 96 | name: "libmediandk", |
| 97 | symbol_file: "libmediandk.map.txt", |
| 98 | export_include_dirs: ["include"], |
| 99 | } |