Home | History | Annotate | Download | only in clearkey
      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 
     38     shared_libs: [
     39         "libcrypto",
     40         "liblog",
     41         "libstagefright_foundation",
     42         "libutils",
     43     ],
     44 
     45     static_libs: ["libjsmn"],
     46 
     47     include_dirs: [
     48         "frameworks/native/include",
     49         "frameworks/av/include",
     50     ],
     51 
     52     export_include_dirs: ["."],
     53     export_static_lib_headers: ["libjsmn"],
     54 }
     55 
     56 //########################################################################
     57 // Build unit tests
     58 
     59 subdirs = ["tests"]
     60