# 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%': '', 'boringssl_dependency%': '../third_party/boringssl/boringssl.gyp:legacy_ssl', 'metrics_target%': 'cdm.gyp:metrics_proto', 'device_files_target%': 'cdm.gyp:device_files', }, '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', '../third_party/gmock.gyp:gmock', '../third_party/gmock.gyp:gtest', ], 'conditions': [ ['oemcrypto_stubs!=""', { 'dependencies': [ '../oemcrypto/stubs/stubs.gyp:oec_stubs_v14', ], }, { 'conditions': [ ['oemcrypto_lib=="mock"', { 'dependencies': [ '../oemcrypto/mock/oec_mock.gyp:oec_mock_shared', ], }], ['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_ce_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', ], }], ], }], ], }], ], }, ], }