# 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', ], }, }], ], }, ], }