Second OPK Partner Beta v16 Release
See https://developers.google.com/widevine/drm/client/opk for documentation and an integration guide. See CHANGELOG.md for details about recent changes.
This commit is contained in:
@@ -6,32 +6,10 @@
|
||||
'variables': {
|
||||
# Include directory that contains wtpi_config_macros.h.
|
||||
'config_macros_header_dir%': 'wtpi_reference',
|
||||
'wtpi_test_impl_dir': '../ports/linux/wtpi_test_impl',
|
||||
# TODO(b/207176111): add test scripts to cover both reference crypto impl
|
||||
'reference_crypto_impl%': 'software',
|
||||
},
|
||||
'target_defaults': {
|
||||
# OPK is written in pure C99. ...Aside from a few places where we use
|
||||
# the preprocessor to include compiler-specific features only on supporting
|
||||
# compilers. ...And aside from the reference crypto porting layer, which has
|
||||
# to be C11. But the core OPK code will compile on the most pure,
|
||||
# pedantic C99 compiler, and to check this, we turn on flags to keep
|
||||
# ourselves honest by using the maximum compiler pedantry.
|
||||
'cflags': [
|
||||
'-pedantic',
|
||||
'-pedantic-errors',
|
||||
'-Werror=pedantic',
|
||||
],
|
||||
'cflags_c': [
|
||||
'-std=c99',
|
||||
],
|
||||
# To make sure no other GYP file can override our C version, we filter out
|
||||
# all other langauge standards here.
|
||||
'cflags_c/': [
|
||||
['exclude', '-std=*'],
|
||||
['include', '-std=c99'],
|
||||
],
|
||||
},
|
||||
'includes': [
|
||||
'../strict_compiler_flags.gypi',
|
||||
],
|
||||
'targets': [
|
||||
{
|
||||
'target_name': 'oemcrypto_ta',
|
||||
@@ -71,90 +49,5 @@
|
||||
],
|
||||
},
|
||||
},
|
||||
{
|
||||
'target_name': 'oemcrypto_ta_reference_root_of_trust',
|
||||
'type': 'static_library',
|
||||
'standalone_static_library' : 1,
|
||||
'sources': [
|
||||
'wtpi_reference/crypto_wrap_asymmetric.c',
|
||||
'wtpi_reference/device_key.c',
|
||||
'wtpi_reference/root_of_trust_layer1.c',
|
||||
],
|
||||
'dependencies': [
|
||||
'../../odk/src/odk.gyp:odk',
|
||||
'oemcrypto_ta',
|
||||
],
|
||||
},
|
||||
{
|
||||
'target_name': 'oemcrypto_ta_reference_clock',
|
||||
'type': 'static_library',
|
||||
'standalone_static_library' : 1,
|
||||
'sources': [
|
||||
'wtpi_reference/clock_and_gn_layer1.c',
|
||||
],
|
||||
'dependencies': [
|
||||
'../../odk/src/odk.gyp:odk',
|
||||
'oemcrypto_ta',
|
||||
],
|
||||
},
|
||||
{
|
||||
'target_name': 'oemcrypto_ta_reference_crypto',
|
||||
'type': 'static_library',
|
||||
'standalone_static_library' : 1,
|
||||
'include_dirs': [
|
||||
'<(config_macros_header_dir)',
|
||||
'wtpi_reference',
|
||||
],
|
||||
# The reference implementation of the crypto interface uses
|
||||
# BoringSSL/OpenSSL, which requires C11. These flags effectively do the
|
||||
# opposite of the default flags, filtering out the C99 flag and
|
||||
# un-filtering-out the C11 flag.
|
||||
'cflags_c': [
|
||||
'-std=c11',
|
||||
],
|
||||
'cflags_c/': [
|
||||
['exclude', '-std=*'],
|
||||
['include', '-std=c11'],
|
||||
],
|
||||
'sources': [
|
||||
'wtpi_reference/crc32.c',
|
||||
'wtpi_reference/crypto_asymmetric.c',
|
||||
'wtpi_reference/crypto_util.c',
|
||||
'wtpi_reference/decrypt_sample.c',
|
||||
'wtpi_reference/ecc_util.c',
|
||||
'wtpi_reference/rsa_util.c',
|
||||
'<(wtpi_test_impl_dir)/device_key_access.c',
|
||||
'<(wtpi_test_impl_dir)/secure_buffer_access.c',
|
||||
],
|
||||
'conditions': [
|
||||
['reference_crypto_impl=="hardware"', {
|
||||
'sources': [
|
||||
'wtpi_reference/crypto_and_key_management_layer1_hw.c',
|
||||
'<(wtpi_test_impl_dir)/crypto_and_key_management_layer2_hw.c',
|
||||
'<(wtpi_test_impl_dir)/layer2_crypto_key_table.c',
|
||||
],
|
||||
}, { # else
|
||||
'sources': [
|
||||
'wtpi_reference/crypto_and_key_management_layer1_openssl.c',
|
||||
],
|
||||
}], # end else
|
||||
],
|
||||
'variables': {
|
||||
# Needed for BoringSSL dependency build files. These SHOULD already be
|
||||
# defined by a higher-level configuration, but sometimes the OPK TA
|
||||
# gets included in targets that don't define them, so we define them
|
||||
# again here defensively.
|
||||
|
||||
'privacy_crypto_impl%': 'boringssl',
|
||||
'boringssl_libcrypto_path%': '<(DEPTH)/third_party/boringssl/boringssl.gyp:crypto',
|
||||
},
|
||||
'includes': [
|
||||
'../../../util/libcrypto_dependency.gypi',
|
||||
],
|
||||
'dependencies': [
|
||||
'../../odk/src/odk.gyp:odk',
|
||||
'oemcrypto_ta',
|
||||
],
|
||||
},
|
||||
],
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user