41 lines
1.3 KiB
Python
41 lines
1.3 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 CDM_DIR to point to a recent
|
|
# version of the source CDM.
|
|
'boringssl_dependency%': '<!(echo $CDM_DIR)/third_party/boringssl/boringssl.gyp:legacy_ssl',
|
|
'gtest_dependency%': '<!(echo $CDM_DIR)/third_party/gmock.gyp:gtest',
|
|
'gmock_dependency%': '<!(echo $CDM_DIR)/third_party/gmock.gyp:gmock',
|
|
'oemcrypto_dir%': '..',
|
|
'util_dir%': '../../util',
|
|
'platform_specific_dir%': '<!(echo $CDM_DIR)/linux/src',
|
|
},
|
|
'targets': [
|
|
{
|
|
'target_name': 'oemcrypto_unittests',
|
|
'type': 'executable',
|
|
'sources': [
|
|
'oemcrypto_test_main.cpp',
|
|
'<(platform_specific_dir)/file_store.cpp',
|
|
'<(platform_specific_dir)/lock.cpp',
|
|
'<(platform_specific_dir)/log.cpp',
|
|
'<(util_dir)/src/string_conversions.cpp',
|
|
],
|
|
'includes': [
|
|
'oemcrypto_unittests.gypi',
|
|
'../ref/oec_ref.gypi',
|
|
],
|
|
'libraries': [
|
|
'-lpthread', # gtest
|
|
],
|
|
'dependencies': [
|
|
'<(boringssl_dependency)',
|
|
'<(gtest_dependency)',
|
|
'<(gmock_dependency)',
|
|
],
|
|
},
|
|
],
|
|
}
|