Files
ce_cdm/cdm/cdm.gyp
Joey Parrish fa64436e4f Source release v2.1.5-0-811 + third_party libs
Change-Id: Ic8eafba071e486e671257bc22a8208e86d68b08a
2014-07-07 16:22:33 -07:00

114 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/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/clock.cpp',
'../cdm/src/host_event_listener.cpp',
'../cdm/src/wv_content_decryption_module.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.cpp',
'../core/src/properties.cpp',
],
'conditions': [
['disable_privacy_crypto=="true"', {
'sources!': [ # exclude
'../core/src/privacy_crypto.cpp',
],
'sources': [ # include
'../core/src/privacy_crypto_dummy.cpp',
],
}],
['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',
],
},
],
}