| OLD | NEW | 
|---|
| (Empty) |  | 
|  | 1 # | 
|  | 2 # Mostly a copy of googletest.gyp from the project 'libadblockplus'. | 
|  | 3 # Copied here because it needed modifications to compile without error. | 
|  | 4 # Because the original is in another project, changing it there would require te
    sting that projects and all others included by it. | 
|  | 5 # | 
|  | 6 { | 
|  | 7   'variables': | 
|  | 8   { | 
|  | 9     'googletest': '../libadblockplus/third_party/googletest' | 
|  | 10   }, | 
|  | 11   'target_defaults': | 
|  | 12   { | 
|  | 13     'configurations': | 
|  | 14         { | 
|  | 15       'Debug': | 
|  | 16           { | 
|  | 17         'defines': [ 'DEBUG' ], | 
|  | 18         'msvs_settings': | 
|  | 19                 { | 
|  | 20           'VCCLCompilerTool': | 
|  | 21                   { | 
|  | 22             'Optimization': '0', | 
|  | 23                         'RuntimeLibrary': '1',  # /MTd | 
|  | 24           }, | 
|  | 25         }, | 
|  | 26       }, | 
|  | 27       'Release': | 
|  | 28           { | 
|  | 29         'msvs_settings': | 
|  | 30                 { | 
|  | 31           'VCCLCompilerTool': | 
|  | 32                   { | 
|  | 33             'Optimization': '2', | 
|  | 34             'InlineFunctionExpansion': '2', | 
|  | 35             'EnableIntrinsicFunctions': 'true', | 
|  | 36             'FavorSizeOrSpeed': '0', | 
|  | 37             'StringPooling': 'true', | 
|  | 38                         'RuntimeLibrary': '0',  # /MT | 
|  | 39           }, | 
|  | 40         }, | 
|  | 41       }, | 
|  | 42     }, | 
|  | 43     'msvs_configuration_attributes': | 
|  | 44         { | 
|  | 45       'OutputDirectory': '<(DEPTH)\\$(ConfigurationName)', | 
|  | 46       'IntermediateDirectory': '$(OutDir)\\obj\\$(ProjectName)', | 
|  | 47     }, | 
|  | 48     'conditions': | 
|  | 49         [[ | 
|  | 50       'target_arch=="x64"', | 
|  | 51           { | 
|  | 52         'msvs_configuration_platform': 'x64', | 
|  | 53       }, | 
|  | 54     ]] | 
|  | 55   }, | 
|  | 56   'targets': | 
|  | 57   [{ | 
|  | 58     'target_name': 'googletest', | 
|  | 59     'type': 'static_library', | 
|  | 60     'sources': [ | 
|  | 61       '<(googletest)/src/gtest-death-test.cc', | 
|  | 62       '<(googletest)/src/gtest-filepath.cc', | 
|  | 63       '<(googletest)/src/gtest-port.cc', | 
|  | 64       '<(googletest)/src/gtest-printers.cc', | 
|  | 65       '<(googletest)/src/gtest-test-part.cc', | 
|  | 66       '<(googletest)/src/gtest-typed-test.cc', | 
|  | 67       '<(googletest)/src/gtest.cc' | 
|  | 68     ], | 
|  | 69     'include_dirs': [ '<(googletest)', '<(googletest)/include' ], | 
|  | 70     'direct_dependent_settings': | 
|  | 71         { | 
|  | 72       'include_dirs': [ '<(googletest)', '<(googletest)/include' ] | 
|  | 73     }, | 
|  | 74     'defines': [ '_VARIADIC_MAX=10' ], | 
|  | 75     'direct_dependent_settings': | 
|  | 76         { | 
|  | 77       'defines': [ '_VARIADIC_MAX=10' ], | 
|  | 78     }, | 
|  | 79   },{ | 
|  | 80     'target_name': 'googletest_main', | 
|  | 81     'type': 'static_library', | 
|  | 82     'sources': ['<(googletest)/src/gtest_main.cc'], | 
|  | 83     'include_dirs': [ '<(googletest)/include' ], | 
|  | 84         'dependencies': [ 'googletest' ], | 
|  | 85         'direct_dependent_settings': | 
|  | 86         { | 
|  | 87       'defines': [ '_VARIADIC_MAX=10' ], | 
|  | 88           'include_dirs': [ '<(googletest)/include' ], | 
|  | 89         } | 
|  | 90   }] | 
|  | 91 } | 
| OLD | NEW | 
|---|