Files
ce_cdm/oemcrypto/test/oemcrypto_security_tests.gypi
John "Juce" Bruce b2c35151ad Source release 18.1.0
2023-06-23 15:45:08 -07: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' ],
}