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
17cc_library_shared {
18    name: "libdrmclearkeyplugin",
19    vendor: true,
20
21    srcs: [
22        "AesCtrDecryptor.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    ],
33
34    relative_install_path: "mediadrm",
35
36    cflags: ["-Wall", "-Werror"],
37
38    shared_libs: [
39        "libcrypto",
40        "liblog",
41        "libstagefright_foundation",
42        "libutils",
43    ],
44
45    static_libs: [
46        "libclearkeycommon",
47        "libjsmn"
48    ],
49
50    local_include_dirs: ["include"],
51    export_include_dirs: ["include"],
52    export_static_lib_headers: ["libjsmn"],
53
54    include_dirs: [
55        "frameworks/native/include",
56        "frameworks/av/include",
57    ],
58
59    sanitize: {
60        integer_overflow: true,
61    },
62}
63
64