109 lines
3.2 KiB
Python
109 lines
3.2 KiB
Python
# Copyright 2013 Google Inc. All Rights Reserved.
|
|
#
|
|
# Refer to the distribution package's README for information about
|
|
# setting up your system, performing the build, and using/testing
|
|
# the build targets.
|
|
|
|
{
|
|
'targets': [
|
|
{
|
|
'target_name': 'license_protocol',
|
|
'type': 'static_library',
|
|
'sources': ['../core/src/license_protocol.proto',],
|
|
'variables': {
|
|
'proto_in_dir': '../core/src',
|
|
},
|
|
'includes': ['../third_party/protoc.gypi'],
|
|
},
|
|
{
|
|
'target_name': 'device_files',
|
|
'type': 'static_library',
|
|
'sources': ['../core/src/device_files.proto',],
|
|
'variables': {
|
|
'proto_in_dir': '../core/src',
|
|
},
|
|
'includes': ['../third_party/protoc.gypi'],
|
|
},
|
|
{
|
|
'target_name': 'wvcdm_sysdep',
|
|
'type': 'static_library',
|
|
'defines': ['CDM_IMPLEMENTATION'],
|
|
'include_dirs': [
|
|
'../cdm/include',
|
|
'../core/include',
|
|
'../linux/include',
|
|
'../third_party/stringencoders/src',
|
|
],
|
|
'sources': [
|
|
'../cdm/src/host_4_file_io_client.cpp',
|
|
'../cdm/src/file_store.cpp',
|
|
'../cdm/src/properties_common.cpp',
|
|
'../core/src/string_conversions.cpp',
|
|
'../linux/src/lock.cpp',
|
|
'../linux/src/log.cpp',
|
|
'../third_party/stringencoders/src/modp_b64w.cpp',
|
|
],
|
|
},
|
|
{
|
|
'target_name': 'wvcdm_static',
|
|
'type': 'static_library',
|
|
'defines': ['CDM_IMPLEMENTATION'],
|
|
'dependencies': [
|
|
'device_files',
|
|
'license_protocol',
|
|
'wvcdm_sysdep',
|
|
'<(oemcrypto_target)',
|
|
],
|
|
# Without this, library deps do not propagate from the protocol targets
|
|
# up to the shared lib or executable above.
|
|
'export_dependent_settings': [
|
|
'device_files',
|
|
'license_protocol',
|
|
],
|
|
'include_dirs': [
|
|
'../cdm/include',
|
|
'../core/include',
|
|
'../linux/include',
|
|
'../oemcrypto/include',
|
|
],
|
|
'sources': [
|
|
# uses common published api
|
|
'../cdm/src/cdm_library_init.cpp',
|
|
'../cdm/src/clock.cpp',
|
|
'../cdm/src/host_event_listener.cpp',
|
|
'../cdm/src/wv_content_decryption_module_1.cpp',
|
|
'../cdm/src/wv_content_decryption_module_4.cpp',
|
|
'../core/src/buffer_reader.cpp',
|
|
'../core/src/cdm_engine.cpp',
|
|
'../core/src/cdm_session.cpp',
|
|
'../core/src/certificate_provisioning.cpp',
|
|
'../core/src/crypto_session.cpp',
|
|
'../core/src/device_files.cpp',
|
|
'../core/src/initialization_data.cpp',
|
|
'../core/src/license.cpp',
|
|
'../core/src/oemcrypto_adapter_static.cpp',
|
|
'../core/src/policy_engine.cpp',
|
|
'../core/src/privacy_crypto_<(privacy_crypto_impl).cpp',
|
|
'../core/src/properties.cpp',
|
|
],
|
|
'conditions': [
|
|
['oemcrypto_v8=="true"', {
|
|
'sources!': [ # exclude
|
|
'../core/src/oemcrypto_adapter_static.cpp',
|
|
],
|
|
'sources': [ # include
|
|
'../core/src/oemcrypto_adapter_static_v8.cpp',
|
|
],
|
|
}],
|
|
],
|
|
},
|
|
{
|
|
'target_name': 'wvcdm_shared',
|
|
'type': 'shared_library',
|
|
'dependencies': [
|
|
'wvcdm_static',
|
|
],
|
|
},
|
|
],
|
|
}
|