91 lines
2.4 KiB
Python
91 lines
2.4 KiB
Python
# Copyright 2018 Google LLC. All Rights Reserved. This file and proprietary
|
|
# source code may only be used and distributed under the Widevine License
|
|
# Agreement.
|
|
#
|
|
# Any top-level targets in this file (and their dependencies) will be built by
|
|
# the CE CDM's ./build.py build system. Refer to the distribution package's
|
|
# README for details.
|
|
{
|
|
'includes': [
|
|
'platform_properties.gypi',
|
|
],
|
|
'variables': {
|
|
# Directory where OEMCrypto header, test, and reference files lives.
|
|
'oemcrypto_dir': '../oemcrypto',
|
|
# Directory where widevine utilities live.
|
|
'util_dir': '../util',
|
|
'metrics_target': 'cdm.gyp:metrics_proto',
|
|
'device_files_target': 'cdm.gyp:device_files',
|
|
},
|
|
'targets': [{
|
|
'toolsets' : [ 'target' ],
|
|
'target_name': 'install_keybox_tool',
|
|
'sources': [
|
|
'../oemcrypto/test/install_keybox_tool.cpp',
|
|
],
|
|
'includes': [
|
|
'../oemcrypto/odk/src/kdo.gypi',
|
|
'../util/libssl_dependency.gypi',
|
|
],
|
|
'include_dirs': [
|
|
'../cdm/include',
|
|
'../core/include',
|
|
'../core/test',
|
|
'../metrics/include',
|
|
'../oemcrypto/test',
|
|
'../oemcrypto/include',
|
|
'../util/include',
|
|
'../util/test',
|
|
],
|
|
'dependencies': [
|
|
'cdm.gyp:widevine_ce_cdm_static',
|
|
'../oemcrypto/odk/src/odk.gyp:odk',
|
|
'../third_party/googletest.gyp:gmock',
|
|
'../third_party/googletest.gyp:gtest',
|
|
'<(metrics_target)',
|
|
'<(device_files_target)',
|
|
],
|
|
'defines': [
|
|
'UNIT_TEST',
|
|
'CDM_TESTS',
|
|
],
|
|
'msvs_settings': {
|
|
'VCLinkerTool': {
|
|
# Additionally, since they are loaded locally, suppress these
|
|
# warnings.
|
|
'AdditionalOptions': [
|
|
'/IGNORE:4049',
|
|
'/IGNORE:4217',
|
|
],
|
|
},
|
|
},
|
|
'conditions': [
|
|
['OS=="ios"', {
|
|
'type': 'loadable_module',
|
|
'mac_xctest_bundle': '1',
|
|
'defines': [
|
|
'GTEST_FILTER="<(gtest_filter)"',
|
|
],
|
|
'dependencies': [
|
|
'cdm_unittests.gyp:dummy_app',
|
|
],
|
|
'sources': [
|
|
'test/gtest_xctest_wrapper.mm',
|
|
],
|
|
'xcode_settings': {
|
|
'BUNDLE_LOADER': '$(TEST_HOST)',
|
|
'TEST_HOST': '<(PRODUCT_DIR)/dummy_app.app/dummy_app',
|
|
'WRAPPER_EXTENSION': 'xctest',
|
|
},
|
|
}, {
|
|
'type': 'executable',
|
|
}],
|
|
['oemcrypto_lib=="target"', {
|
|
'dependencies': [
|
|
'<(oemcrypto_gyp_path)',
|
|
],
|
|
}],
|
|
],
|
|
}],
|
|
}
|