1 // 2 // Copyright (C) 2018 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_binary { 18 name: "android.hardware.drm (a] 1.1-service.clearkey", 19 vendor: true, 20 21 srcs: [ 22 "AesCtrDecryptor.cpp", 23 "Base64.cpp", 24 "Buffer.cpp", 25 "CreatePluginFactories.cpp", 26 "CryptoFactory.cpp", 27 "CryptoPlugin.cpp", 28 "DrmFactory.cpp", 29 "DrmPlugin.cpp", 30 "InitDataParser.cpp", 31 "JsonWebKey.cpp", 32 "Session.cpp", 33 "SessionLibrary.cpp", 34 "service.cpp", 35 ], 36 37 relative_install_path: "hw", 38 39 cflags: ["-Wall", "-Werror"], 40 init_rc: ["android.hardware.drm (a] 1.1-service.clearkey.rc"], 41 42 shared_libs: [ 43 "android.hardware.drm (a] 1.0", 44 "android.hardware.drm (a] 1.1", 45 "libbase", 46 "libbinder", 47 "libcrypto", 48 "libhidlbase", 49 "libhidlmemory", 50 "libhidltransport", 51 "liblog", 52 "libutils", 53 ], 54 55 static_libs: [ 56 "libclearkeycommon", 57 "libjsmn", 58 ], 59 60 local_include_dirs: ["include"], 61 62 export_static_lib_headers: ["libjsmn"], 63 64 sanitize: { 65 integer_overflow: true, 66 }, 67 } 68 69