46 lines
1022 B
Python
46 lines
1022 B
Python
# Copyright 2013 Google Inc. All Rights Reserved.
|
|
|
|
{
|
|
'target_defaults': {
|
|
# It seems that if one target uses -fPIC, then all targets will need that
|
|
# flag or else there will be linking errors. For generating a shared
|
|
# library, we need position independent code.
|
|
'cflags': [
|
|
'-g',
|
|
'-fPIC',
|
|
],
|
|
'ldflags': [
|
|
'-fPIC',
|
|
],
|
|
},
|
|
'targets': [
|
|
{
|
|
'target_name': 'oec_mock',
|
|
'type': 'static_library',
|
|
'sources': [
|
|
'src/oemcrypto_keybox_testkey.cpp',
|
|
'src/oemcrypto_engine_device_properties.cpp',
|
|
],
|
|
'variables': {
|
|
'oec_mock_dir': '.',
|
|
},
|
|
'includes': [
|
|
'oec_mock_kernel.gypi',
|
|
],
|
|
'link_settings': {
|
|
'libraries': [
|
|
'-lcrypto',
|
|
],
|
|
},
|
|
},
|
|
{
|
|
'target_name': 'oec_mock_shared',
|
|
'type': 'shared_library',
|
|
'dependencies': [
|
|
'oec_mock'
|
|
# TODO(joeyparrish or fredgc): circular dependencies. 'wvcdm_sysdep'
|
|
],
|
|
},
|
|
],
|
|
}
|