Merge from Widevine repo of two CLs. Merge from Widevine repo of http://go/wvgerrit/94743 A license release should not have a core message. This CL adjusts the existing unit tests to verify this. There is also a new unit test called SecureStop that explicitly tests sending a secure stop in a new session without first loading the license. Merge from Widevine repo of http://go/wvgerrit/94865 This CL has the following changes copied from google3: http://cr/298871728 Remove odk_static_assert for Message size temporarily http://cr/298755935 Fix a compiling error during macro expansion http://cr/298481745 Add missing header for android http://cr/298448142 Fix odk_test gyp file http://cr/298419641 Remove header from Android.bp http://cr/298402053 Separate sizeOf(args) bytes in fuzz tests http://cr/297730316 No core messages for license release http://cr/297714346 Add copybara_test and piper_sot_to_gerrit http://cr/297636713 Adding some comments around boolean conversion code http://cr/297420679 Autofuzzer when ran with address sanitizer ... http://cr/296513584 Minor fix with fuzzing odk clock values http://cr/296322024 Fixing errors in code with how request ... http://cr/296313159 Fuzzing ODK clock values by setting aside ... http://cr/295763207 Add more odk tests and move helper functions to test helper http://cr/294524098 Adding a Build Rule for ODK_KDO_Fuzzer and updating http://cr/294492213 Address a few review comments of ODK http://cr/293674368 odk_fuzz: add TODOs & comments http://cr/293492806 Fix spelling Bug: 150243585 Bug: 150020278 Bug: 150095506 Bug: 147297226 Bug: 148290294 Bug: 148907684 Bug: 150608451 Test: unit tests Change-Id: I25fd406f29f4eba40f5cb27e9a1317dce4ffc2f5
89 lines
2.5 KiB
Plaintext
89 lines
2.5 KiB
Plaintext
// Copyright 2019 Google LLC. All rights reserved. This file and proprietary
|
|
// source code may only be used and distributed under the Widevine Master
|
|
// License Agreement.
|
|
|
|
// ----------------------------------------------------------------
|
|
// Builds libwv_odk.a, The ODK Library (libwv_odk) is used by
|
|
// the CDM and by oemcrypto implementations.
|
|
cc_library_static {
|
|
name: "libwv_odk",
|
|
include_dirs: [
|
|
"vendor/widevine/libwvdrmengine/oemcrypto/include",
|
|
"vendor/widevine/libwvdrmengine/oemcrypto/odk/include",
|
|
"vendor/widevine/libwvdrmengine/oemcrypto/odk/src",
|
|
],
|
|
|
|
srcs: [
|
|
"src/odk.c",
|
|
"src/odk_overflow.c",
|
|
"src/odk_serialize.c",
|
|
"src/odk_timer.c",
|
|
"src/odk_util.c",
|
|
"src/serialization_base.c",
|
|
],
|
|
proprietary: true,
|
|
|
|
owner: "widevine",
|
|
}
|
|
|
|
// ----------------------------------------------------------------
|
|
// Builds libwv_kdo.a, The ODK Library companion (libwv_kdo) is used by
|
|
// the CDM and by oemcrypto tests, but not by oemcrypto implementations.
|
|
cc_library_static {
|
|
name: "libwv_kdo",
|
|
include_dirs: [
|
|
"vendor/widevine/libwvdrmengine/oemcrypto/include",
|
|
"vendor/widevine/libwvdrmengine/oemcrypto/odk/include",
|
|
"vendor/widevine/libwvdrmengine/oemcrypto/odk/src",
|
|
],
|
|
|
|
srcs: [
|
|
"src/core_message_deserialize.cpp",
|
|
"src/core_message_serialize.cpp",
|
|
"src/core_message_serialize_proto.cpp",
|
|
],
|
|
|
|
static_libs: [
|
|
"libcdm_protos",
|
|
"libwv_odk",
|
|
],
|
|
|
|
proprietary: true,
|
|
|
|
owner: "widevine",
|
|
}
|
|
|
|
// ----------------------------------------------------------------
|
|
// Builds odk_test executable, which tests the ODK library.
|
|
cc_test {
|
|
name: "odk_test",
|
|
include_dirs: [
|
|
"vendor/widevine/libwvdrmengine/oemcrypto/include",
|
|
"vendor/widevine/libwvdrmengine/oemcrypto/odk/include",
|
|
"vendor/widevine/libwvdrmengine/oemcrypto/odk/src",
|
|
],
|
|
|
|
// WARNING: Module tags are not supported in Soong.
|
|
// For native test binaries, use the "cc_test" module type. Some differences:
|
|
// - If you don't use gtest, set "gtest: false"
|
|
// - Binaries will be installed into /data/nativetest[64]/<name>/<name>
|
|
// - Both 32 & 64 bit versions will be built (as appropriate)
|
|
|
|
owner: "widevine",
|
|
proprietary: true,
|
|
|
|
static_libs: [
|
|
"libcdm_protos",
|
|
"libcdm",
|
|
"libwv_odk",
|
|
"libwv_kdo",
|
|
],
|
|
|
|
srcs: [
|
|
"test/odk_test.cpp",
|
|
"test/odk_test_helper.cpp",
|
|
"test/odk_timer_test.cpp",
|
|
],
|
|
|
|
}
|