Files
ce_cdm/third_party/gmock.gyp
2020-10-09 16:08:56 -07:00

92 lines
2.3 KiB
Python

# Copyright 2013 Google Inc. All Rights Reserved.
# This is for googletest release 1.8.0
{
'variables': {
'dependent_included_warning_flags': [
'-Wno-unknown-warning-option',
'-Wno-deprecated-copy',
],
'dependent_excluded_warning_flags': [
'-Wdeprecated-copy',
'-Werror=deprecated-copy',
],
},
'target_defaults': {
'includes': ['disable_warnings.gypi'],
# 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.
'cflags': [
'-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',
],
# gMock & gTest's exported headers fail these warnings
'cflags': ['<@(dependent_included_warning_flags)'],
'cflags!': ['<@(dependent_excluded_warning_flags)'],
'cflags_c!': ['<@(dependent_excluded_warning_flags)'],
'cflags_cc!': ['<@(dependent_excluded_warning_flags)'],
'xcode_settings': {
'OTHER_CFLAGS': [
'-Wno-inconsistent-missing-override',
],
},
'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': {
'libraries': [
'-lpthread',
],
},
}],
],
},
],
}