Files
ce_cdm/cdm/cdm_unittests.gyp
2017-11-28 17:42:16 -08:00

75 lines
2.2 KiB
Python

# Copyright 2015 Google Inc. All Rights Reserved.
#
# Builds under the CDM ./build.py (target platform) build system
# Refer to the distribution package's README for details.
{
'variables': {
'oemcrypto_stubs%': '',
'openssl_config%': 'system',
'openssl_target%': '',
},
'targets': [
{
'target_name': 'widevine_ce_cdm_unittest',
'type': 'executable',
'sources': [
# The test runner and the testing device certificate.
'test/cdm_test_main.cpp',
'test/device_cert.cpp',
'test/device_cert.h',
# The test host, which is required for all test suites on CE.
'test/test_host.cpp',
'test/test_host.h',
],
'includes': [
'oemcrypto_unittests.gypi',
'core_unittests.gypi',
'cdm_unittests.gypi',
],
'libraries': [
'-lpthread', # gtest
],
'dependencies': [
'cdm.gyp:widevine_ce_cdm_shared',
'cdm.gyp:widevine_cdm_core',
'../third_party/gmock.gyp:gmock',
'../third_party/gmock.gyp:gtest',
],
'conditions': [
['oemcrypto_stubs!=""', {
'dependencies': [
'../oemcrypto/stubs/stubs.gyp:oec_stubs_v<(oemcrypto_version)',
],
}, {
'conditions': [
['oemcrypto_lib=="mock"', {
'dependencies': [
'../oemcrypto/mock/oec_mock.gyp:oec_mock',
],
}],
['oemcrypto_lib=="level3"', {
'sources': [
# The test impl of OEMCrypto_Level3FileSystem and its factory.
'test/level3_file_system_ce_test.h',
'test/level3_file_system_ce_test.cpp',
'test/level3_file_system_test_factory.cpp',
],
'conditions': [
['oemcrypto_adapter=="static"', {
'dependencies': [
'../oemcrypto/level3/oec_level3.gyp:oec_level3_static',
],
}, {
'dependencies': [
'../oemcrypto/level3/oec_level3.gyp:oec_level3_dynamic',
],
}],
],
}],
],
}],
],
},
],
}