Android development of the widevine CDM has been done on the jb-mr2 branch of the cdm code base. This CL contains a merge of that jb-mr2 work to CDM master, and also reflects the evolution of the common Modular DRM code base since jb-mr2 branched. Change-Id: I1d7e1a12d092c00044a4298261146cb97808d4ef
92 lines
2.1 KiB
Python
92 lines
2.1 KiB
Python
# Copyright 2012 Google Inc. All Rights Reserved.
|
|
# Author: rkuroiwa@google.com (Rintaro Kuroiwa)
|
|
|
|
{
|
|
'variables': {
|
|
'chromium_code': 1,
|
|
'oec_target_type': "",
|
|
},
|
|
'targets': [
|
|
{
|
|
'target_name': 'oec_lib',
|
|
'type': 'none',
|
|
'conditions': [
|
|
['target_arch=="arm" and oec_target_type != "CAN_INSTALL_KEYBOX"', {
|
|
'dependencies': [
|
|
'oec_mrvl',
|
|
],
|
|
}, {
|
|
'dependencies': [
|
|
'oec_mock',
|
|
],
|
|
}],
|
|
],
|
|
},
|
|
{
|
|
'target_name': 'oec_mock',
|
|
'type': 'static_library',
|
|
'sources': [
|
|
'mock/src/oemcrypto_mock.cpp',
|
|
'mock/src/oemcrypto_engine_mock.cpp',
|
|
'mock/src/oemcrypto_key_mock.cpp',
|
|
'mock/src/oemcrypto_keybox_mock.cpp',
|
|
'mock/src/wvcrc.cpp',
|
|
],
|
|
'include_dirs': [
|
|
'include',
|
|
],
|
|
'dependencies': [
|
|
'../../../crypto/crypto.gyp:crypto',
|
|
# TODO(kqyang): make it platform independent.
|
|
'../chromium/util.gyp:lock',
|
|
'../chromium/util.gyp:string_conversions',
|
|
],
|
|
},
|
|
{
|
|
'target_name': 'oec_mrvl',
|
|
'type': 'static_library',
|
|
'sources': [
|
|
'eureka/src/oemcrypto_mrvl.cpp',
|
|
],
|
|
'include_dirs': [
|
|
'../include',
|
|
'../core/include',
|
|
],
|
|
'dependencies': [
|
|
'../../../base/base.gyp:base',
|
|
'../../../crypto/crypto.gyp:crypto',
|
|
],
|
|
'cflags': [
|
|
'-Wsign-conversion',
|
|
],
|
|
'link_settings': {
|
|
'libraries': [
|
|
'-lOSAL',
|
|
'-lPEAgent',
|
|
],
|
|
},
|
|
},
|
|
{
|
|
'target_name': 'oec_unittest',
|
|
'type': '<(gtest_target_type)',
|
|
'conditions': [
|
|
['target_arch!="arm" or oec_target_type == "CAN_INSTALL_KEYBOX"', {
|
|
'defines': [ 'CAN_INSTALL_KEYBOX', ],
|
|
},],
|
|
],
|
|
'sources': [
|
|
'test/oemcrypto_test.cpp',
|
|
],
|
|
'include_dirs': [
|
|
'include',
|
|
'mock/src',
|
|
],
|
|
'dependencies': [
|
|
'oec_lib',
|
|
'../../../testing/gtest.gyp:gtest',
|
|
'../../../testing/gtest.gyp:gtest_main',
|
|
],
|
|
},
|
|
],
|
|
}
|