Files
oemcrypto/oemcrypto/oemcrypto_security_tests.gyp
Fred Gylys-Colwell 562f64f292 Version 18.1
Updates to OEMCrypto API, OPK, ODK, and unit tests.

See the file CHANGELOG.md for details.
2023-03-09 18:06:07 -08:00

52 lines
2.0 KiB
Python

# This is a gyp file for building the OEMCrypto unit tests with the reference
# code from the stand-alone source code.
{
'variables': {
# Override the variables below for the location of various gyp files.
# Alternatively, set the environment variable PATH_TO_CDM_DIR to point to a
# recent version of the source CDM. This *must* be a relative path.
'privacy_crypto_impl%': 'boringssl',
'boringssl_libcrypto_path%': '<!(echo $PATH_TO_CDM_DIR)/third_party/boringssl/boringssl.gyp:crypto',
'boringssl_libssl_path%': '<!(echo $PATH_TO_CDM_DIR)/third_party/boringssl/boringssl.gyp:ssl',
'gtest_dependency': '<!(echo $PATH_TO_CDM_DIR)/third_party/googletest.gyp:gtest',
'gmock_dependency': '<!(echo $PATH_TO_CDM_DIR)/third_party/googletest.gyp:gmock',
'gmock_main_dependency': '<!(echo $PATH_TO_CDM_DIR)/third_party/googletest.gyp:gmock_main',
'oemcrypto_dir': '.',
'util_dir%': '../util',
'platform_specific_dir': '<!(echo $PATH_TO_CDM_DIR)/linux/src',
},
'targets': [
{
'target_name': 'oemcrypto_security_tests',
'type': 'executable',
'sources': [
'test/oemcrypto_test_main.cpp',
'odk/src/core_message_deserialize.cpp',
'odk/src/core_message_features.cpp',
'odk/src/core_message_serialize.cpp',
'<(platform_specific_dir)/file_store.cpp',
'<(platform_specific_dir)/log.cpp',
'<(util_dir)/src/cdm_random.cpp',
'<(util_dir)/src/platform.cpp',
'<(util_dir)/src/rw_lock.cpp',
'<(util_dir)/src/string_conversions.cpp',
'<(util_dir)/test/test_sleep.cpp',
'<(util_dir)/test/test_clock.cpp',
],
'includes': [
'../util/libssl_dependency.gypi',
'test/oemcrypto_security_tests.gypi',
'util/oec_ref_util.gypi',
'util/oec_ref_util_unittests.gypi',
],
'libraries': [
'-lpthread',
],
'dependencies': [
'<(gtest_dependency)',
'<(gmock_dependency)',
],
},
],
}