Files
ce_cdm/third_party/gmock.gyp
2019-06-28 16:02:52 -07:00

72 lines
1.7 KiB
Python

# Copyright 2013 Google Inc. All Rights Reserved.
# This is for googletest release 1.8.0
{
'target_defaults': {
# It seems that if one target uses -fPIC, then all targets will need that
# flag or else there will be linking errors. PIC means Position Independent
# Code and is needed to build the shared library version of liboemrypto.so.
# Similarly, -g is all or nothing. It turns on debugging symbols.
'cflags': [
'-g',
'-fPIC',
],
'cflags_cc': [
'-std=c++11',
],
'ldflags': [
'-fPIC',
],
'include_dirs': [
'googletest/googlemock',
'googletest/googlemock/include',
'googletest/googletest',
'googletest/googletest/include',
],
'direct_dependent_settings': {
'include_dirs': [
'googletest/googlemock/include',
'googletest/googletest/include',
],
'msvs_settings': {
'VCCLCompilerTool': {
'DisableSpecificWarnings': [
'4805', # unsafe mix of type 'const T1' and type 'const T2'
],
},
},
},
},
'targets': [
{
'target_name': 'gmock',
'type': 'static_library',
'sources': [
'googletest/googlemock/src/gmock-all.cc',
],
},
{
'target_name': 'gmock_main',
'type': 'static_library',
'sources': [
'googletest/googlemock/src/gmock_main.cc',
],
},
{
'target_name': 'gtest',
'type': 'static_library',
'sources': [
'googletest/googletest/src/gtest-all.cc',
],
'conditions': [
['OS!="win"', {
'link_settings': {
'ldflags': [
'-lpthread',
],
},
}],
],
},
],
}