| Colin Cross | 61d1c58 | 2017-04-28 15:13:07 -0700 | [diff] [blame] | 1 | // |
| 2 | // Copyright (C) 2014 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 | cc_library_shared { |
| 18 | name: "libdrmclearkeyplugin", |
| 19 | |
| 20 | srcs: [ |
| 21 | "AesCtrDecryptor.cpp", |
| 22 | "ClearKeyUUID.cpp", |
| 23 | "CreatePluginFactories.cpp", |
| 24 | "CryptoFactory.cpp", |
| 25 | "CryptoPlugin.cpp", |
| 26 | "DrmFactory.cpp", |
| 27 | "DrmPlugin.cpp", |
| 28 | "InitDataParser.cpp", |
| 29 | "JsonWebKey.cpp", |
| 30 | "Session.cpp", |
| 31 | "SessionLibrary.cpp", |
| 32 | "Utils.cpp", |
| 33 | ], |
| 34 | |
| 35 | vendor: true, |
| 36 | relative_install_path: "mediadrm", |
| 37 | |
| Chih-Hung Hsieh | 5cf0751 | 2017-10-02 13:59:12 -0700 | [diff] [blame] | 38 | cflags: ["-Wall", "-Werror"], |
| 39 | |
| Colin Cross | 61d1c58 | 2017-04-28 15:13:07 -0700 | [diff] [blame] | 40 | shared_libs: [ |
| 41 | "libcrypto", |
| 42 | "liblog", |
| Steven Moreland | 144865c | 2017-06-22 17:11:15 -0700 | [diff] [blame] | 43 | "libstagefright_foundation", |
| Colin Cross | 61d1c58 | 2017-04-28 15:13:07 -0700 | [diff] [blame] | 44 | "libutils", |
| 45 | ], |
| 46 | |
| 47 | static_libs: ["libjsmn"], |
| 48 | |
| Jiyong Park | 54fabe0 | 2017-05-26 11:45:08 +0900 | [diff] [blame] | 49 | include_dirs: [ |
| 50 | "frameworks/native/include", |
| 51 | "frameworks/av/include", |
| 52 | ], |
| 53 | |
| Colin Cross | 61d1c58 | 2017-04-28 15:13:07 -0700 | [diff] [blame] | 54 | export_include_dirs: ["."], |
| 55 | export_static_lib_headers: ["libjsmn"], |
| Ivan Lozano | 4996735 | 2017-10-16 14:21:27 -0700 | [diff] [blame] | 56 | |
| 57 | sanitize: { |
| 58 | integer_overflow: true, |
| 59 | }, |
| Colin Cross | 61d1c58 | 2017-04-28 15:13:07 -0700 | [diff] [blame] | 60 | } |
| 61 | |
| 62 | //######################################################################## |
| 63 | // Build unit tests |
| 64 | |
| 65 | subdirs = ["tests"] |