Files
android/libwvdrmengine/oemcrypto/test/oemcrypto_security_tests.gypi
Vicky Min 7186433edf Cherry pick 18.4 changes to udc-widevine-dev
Get the udc-widevine-dev Android branch and oemcrypto-v18 cdm branch in
sync. The commit ID for 18.4 on oemcrypto-v18 is
a2f23a2281e5e06dc2867585bdc516fa132b6396.

Merged from go/wvgerrit/190151

Bug: 290252845
Test: WVTS tests are running and passing
Change-Id: I457332e7ca70a5b5169345e1279b3eb9f18413b6
2024-01-29 18:18:50 +00:00

70 lines
1.8 KiB
Python

# Copyright 2022 Google LLC. All Rights Reserved. This file and proprietary
# source code may only be used and distributed under the Widevine License
# Agreement.
#
# Include this in any custom security test targets.
# Does not include the test runner main.
{
'variables': {
'test_opk_serialization_version%' : 'false',
'static_libcpp%' : 'false',
},
'sources': [
'oec_device_features.cpp',
'oec_decrypt_fallback_chain.cpp',
'oec_key_deriver.cpp',
'oec_session_util.cpp',
'oemcrypto_corpus_generator_helper.cpp',
'oemcrypto_session_tests_helper.cpp',
'oemcrypto_security_test.cpp',
],
'conditions': [
['test_opk_serialization_version=="true"', {
'sources+' : [
'oemcrypto_serialization_version_test.cpp',
],
}],
['static_libcpp=="true"', {
'ldflags+':[
'-static-libstdc++',
],
}],
],
'include_dirs': [
'<(util_dir)/include',
'<(util_dir)/test',
'<(oemcrypto_dir)/include',
'<(oemcrypto_dir)/ref/src',
'<(oemcrypto_dir)/test',
'<(oemcrypto_dir)/test/fuzz_tests',
'<(oemcrypto_dir)/odk/include',
'<(oemcrypto_dir)/util/include',
],
'defines': [
'OEMCRYPTO_TESTS',
],
'conditions': [
['support_ota_keybox_functions=="true"', {
'sources': [
'<(oemcrypto_dir)/test/ota_keybox_test.cpp',
],
}],
['generate_code_coverage_report=="true"', {
# Include flags to generate source based code coverage reports.
'cflags': [
'-fprofile-instr-generate',
'-fcoverage-mapping',
],
'ldflags': [
'-fprofile-instr-generate',
'-fcoverage-mapping',
],
}],
],
'dependencies': [
'<(oemcrypto_dir)/odk/src/odk.gyp:odk',
'<(oemcrypto_dir)/util/oec_ref_util.gyp:oec_ref_util',
],
'includes': [ '../../util/libssl_dependency.gypi' ],
}