Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: third_party/googletest.gyp

Issue 10234088: Use GYP to generate MSVS project files (Closed)
Patch Set: Moved project files to build/ Created April 24, 2013, 1:57 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« msvs_gyp_wrapper.py ('K') | « test/WebRequest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/googletest.gyp
===================================================================
--- a/third_party/googletest.gyp
+++ b/third_party/googletest.gyp
@@ -1,27 +1,79 @@
{
+ 'target_defaults': {
+ 'configurations': {
+ 'Debug': {
+ 'defines': [ 'DEBUG' ],
+ 'msvs_settings': {
+ 'VCCLCompilerTool': {
+ 'Optimization': '0',
+
+ 'conditions': [
+ ['OS=="win" and component=="shared_library"', {
+ 'RuntimeLibrary': '3', # /MDd
+ }, {
+ 'RuntimeLibrary': '1', # /MTd
+ }]
+ ],
+ },
+ },
+ },
+ 'Release': {
+ 'msvs_settings': {
+ 'VCCLCompilerTool': {
+ 'Optimization': '2',
+ 'InlineFunctionExpansion': '2',
+ 'EnableIntrinsicFunctions': 'true',
+ 'FavorSizeOrSpeed': '0',
+ 'StringPooling': 'true',
+
+ 'conditions': [
+ ['OS=="win" and component=="shared_library"', {
+ 'RuntimeLibrary': '2', # /MD
+ }, {
+ 'RuntimeLibrary': '0', # /MT
+ }]
+ ],
+ },
+ },
+ },
+ },
+ },
'targets': [{
'target_name': 'googletest',
'type': '<(library)',
'sources': [
'googletest/src/gtest-death-test.cc',
'googletest/src/gtest-filepath.cc',
'googletest/src/gtest-port.cc',
'googletest/src/gtest-printers.cc',
'googletest/src/gtest-test-part.cc',
'googletest/src/gtest-typed-test.cc',
'googletest/src/gtest.cc'
],
+ 'include_dirs': [
+ 'googletest',
+ 'googletest/include'
+ ],
'direct_dependent_settings': {
'include_dirs': [
'googletest',
'googletest/include'
]
- }
+ },
+ 'conditions': [[
+ 'OS=="win"',
+ {
+ 'defines': [ '_VARIADIC_MAX=10' ],
+ 'direct_dependent_settings': {
+ 'defines': [ '_VARIADIC_MAX=10' ],
+ },
+ }
+ ]],
},
{
'target_name': 'googletest_main',
'type': '<(library)',
'sources': ['googletest/src/gtest_main.cc'],
'dependencies': ['googletest'],
'export_dependent_settings': ['googletest']
}]
« msvs_gyp_wrapper.py ('K') | « test/WebRequest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld