blob: 4b7a63c9a2b4102bc999599f2632eb1836cca54d [file] [log] [blame]
Colin Cross61d1c582017-04-28 15:13:07 -07001//
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
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 Hsieh5cf07512017-10-02 13:59:12 -070038 cflags: ["-Wall", "-Werror"],
39
Colin Cross61d1c582017-04-28 15:13:07 -070040 shared_libs: [
41 "libcrypto",
42 "liblog",
Steven Moreland144865c2017-06-22 17:11:15 -070043 "libstagefright_foundation",
Colin Cross61d1c582017-04-28 15:13:07 -070044 "libutils",
45 ],
46
47 static_libs: ["libjsmn"],
48
Jiyong Park54fabe02017-05-26 11:45:08 +090049 include_dirs: [
50 "frameworks/native/include",
51 "frameworks/av/include",
52 ],
53
Colin Cross61d1c582017-04-28 15:13:07 -070054 export_include_dirs: ["."],
55 export_static_lib_headers: ["libjsmn"],
Ivan Lozano49967352017-10-16 14:21:27 -070056
57 sanitize: {
58 integer_overflow: true,
59 },
Colin Cross61d1c582017-04-28 15:13:07 -070060}
61
62//########################################################################
63// Build unit tests
64
65subdirs = ["tests"]