76 lines
2.1 KiB
Python
76 lines
2.1 KiB
Python
# Copyright 2024 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': {
|
|
},
|
|
'targets': [{
|
|
'toolsets' : [ 'target' ],
|
|
'target_name': 'extract_bcc_tool',
|
|
'sources': [
|
|
'../factory_upload_tool/ce/log.cpp',
|
|
'../factory_upload_tool/ce/properties_ce.cpp',
|
|
'../factory_upload_tool/ce/wv_factory_extractor.cpp',
|
|
'../factory_upload_tool/common/src/WidevineOemcryptoInterface.cpp',
|
|
'../oemcrypto/test/extract_bcc_tool.cpp',
|
|
'../util/src/string_conversions.cpp',
|
|
],
|
|
'include_dirs': [
|
|
'../factory_upload_tool/ce',
|
|
'../factory_upload_tool/common/include',
|
|
'../oemcrypto/include',
|
|
'../util/include',
|
|
],
|
|
# The liboemcrypto.so is dynamically loaded, causing control flow
|
|
# integrity check failed during indirect function call.
|
|
'cflags/': [
|
|
['exclude', '^-fsanitize'],
|
|
['exclude', '^-fno-sanitize'],
|
|
],
|
|
'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)',
|
|
],
|
|
}],
|
|
],
|
|
}],
|
|
}
|