# 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_lib%': '', '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', ], 'variables': { 'cdm_dir': '..', }, '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_v<(oemcrypto_version)', ], }, { 'conditions': [ ['oemcrypto_lib==""', { 'dependencies': [ '../oemcrypto/mock/oec_mock.gyp:oec_mock', ], }, { 'libraries': [ '<(oemcrypto_lib)', ], }], ], }], ], }, ], }