Source release 17.1.0
This commit is contained in:
74
third_party/googletest.gyp
vendored
Normal file
74
third_party/googletest.gyp
vendored
Normal file
@@ -0,0 +1,74 @@
|
||||
# Copyright 2013 Google Inc. All Rights Reserved.
|
||||
# This is for googletest release 1.8.0
|
||||
{
|
||||
'target_defaults': {
|
||||
'includes': ['disable_warnings.gypi'],
|
||||
'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
|
||||
'xcode_settings': {
|
||||
'OTHER_CFLAGS': [
|
||||
'-Wno-inconsistent-missing-override',
|
||||
],
|
||||
},
|
||||
'msvs_settings': {
|
||||
'VCCLCompilerTool': {
|
||||
'DisableSpecificWarnings': [
|
||||
'4805', # unsafe mix of type 'const T1' and type 'const T2'
|
||||
],
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
'targets': [
|
||||
{
|
||||
'toolsets' : [ 'target' ],
|
||||
'target_name': 'gmock',
|
||||
'type': 'static_library',
|
||||
'sources': [
|
||||
'googletest/googlemock/src/gmock-all.cc',
|
||||
],
|
||||
},
|
||||
{
|
||||
'toolsets' : [ 'target' ],
|
||||
'target_name': 'gmock_main',
|
||||
'type': 'static_library',
|
||||
'sources': [
|
||||
'googletest/googlemock/src/gmock_main.cc',
|
||||
],
|
||||
},
|
||||
{
|
||||
'toolsets' : [ 'target' ],
|
||||
'target_name': 'gtest',
|
||||
'type': 'static_library',
|
||||
'sources': [
|
||||
'googletest/googletest/src/gtest-all.cc',
|
||||
],
|
||||
'conditions': [
|
||||
['OS=="mac" or OS=="ios"', {
|
||||
'link_settings': {
|
||||
'ldflags': [
|
||||
'-lpthread',
|
||||
],
|
||||
},
|
||||
}],
|
||||
['OS not in {"win","mac","ios"}', {
|
||||
'link_settings': {
|
||||
'libraries': [
|
||||
'-lpthread',
|
||||
],
|
||||
},
|
||||
}],
|
||||
],
|
||||
},
|
||||
],
|
||||
}
|
||||
Reference in New Issue
Block a user