Widevine MediaCas client code that works with Android R
This commit is contained in:
88
oemcrypto/odk/Android.bp
Normal file
88
oemcrypto/odk/Android.bp
Normal file
@@ -0,0 +1,88 @@
|
||||
// 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 libwvcas_odk.a, The ODK Library (libwvcas_odk) is used by
|
||||
// the CDM and by oemcrypto implementations.
|
||||
cc_library_static {
|
||||
name: "libwvcas_odk",
|
||||
include_dirs: [
|
||||
"vendor/widevine/libwvmediacas/oemcrypto/include",
|
||||
"vendor/widevine/libwvmediacas/oemcrypto/odk/include",
|
||||
"vendor/widevine/libwvmediacas/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 libwvcas_kdo.a, The ODK Library companion (libwvcas_kdo) is used by
|
||||
// the CDM and by oemcrypto tests, but not by oemcrypto implementations.
|
||||
cc_library_static {
|
||||
name: "libwvcas_kdo",
|
||||
include_dirs: [
|
||||
"vendor/widevine/libwvmediacas/oemcrypto/include",
|
||||
"vendor/widevine/libwvmediacas/oemcrypto/odk/include",
|
||||
"vendor/widevine/libwvmediacas/oemcrypto/odk/src",
|
||||
],
|
||||
|
||||
srcs: [
|
||||
"src/core_message_deserialize.cpp",
|
||||
"src/core_message_serialize.cpp",
|
||||
"src/core_message_serialize_proto.cpp",
|
||||
],
|
||||
|
||||
static_libs: [
|
||||
"libcas_protos",
|
||||
"libwvcas_odk",
|
||||
],
|
||||
|
||||
proprietary: true,
|
||||
|
||||
owner: "widevine",
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------
|
||||
// Builds odk_cas_test executable, which tests the ODK library.
|
||||
cc_test {
|
||||
name: "odk_cas_test",
|
||||
include_dirs: [
|
||||
"vendor/widevine/libwvmediacas/oemcrypto/include",
|
||||
"vendor/widevine/libwvmediacas/oemcrypto/odk/include",
|
||||
"vendor/widevine/libwvmediacas/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: [
|
||||
"libcas_protos",
|
||||
"libwvcasplugins",
|
||||
"libwvcas_odk",
|
||||
"libwvcas_kdo",
|
||||
],
|
||||
|
||||
srcs: [
|
||||
"test/odk_test.cpp",
|
||||
"test/odk_test_helper.cpp",
|
||||
"test/odk_timer_test.cpp",
|
||||
],
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user