From 918a071542ed1913ac5450979d08799ab1339e35 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Sat, 6 Aug 2011 22:38:22 -0700 Subject: [PATCH] Peter Bright's VC fixes --- http_parser.gyp | 35 ++++++++++++++++++++++++++++++++--- 1 file changed, 32 insertions(+), 3 deletions(-) diff --git a/http_parser.gyp b/http_parser.gyp index e9183b8..c6eada7 100644 --- a/http_parser.gyp +++ b/http_parser.gyp @@ -6,14 +6,43 @@ # ./out/Debug/test { 'target_defaults': { + 'default_configuration': 'Debug', 'configurations': { + # TODO: hoist these out and put them somewhere common, because + # RuntimeLibrary MUST MATCH across the entire project 'Debug': { - 'defines': [ 'DEBUG', '_DEBUG' ] + 'defines': [ 'DEBUG', '_DEBUG' ], + 'msvs_settings': { + 'VCCLCompilerTool': { + 'RuntimeLibrary': 1, # static debug + }, + }, }, 'Release': { - 'defines': [ 'NDEBUG' ] + 'defines': [ 'NDEBUG' ], + 'msvs_settings': { + 'VCCLCompilerTool': { + 'RuntimeLibrary': 0, # static release + }, + }, } - } + }, + 'msvs_settings': { + 'VCCLCompilerTool': { + }, + 'VCLibrarianTool': { + }, + 'VCLinkerTool': { + 'GenerateDebugInformation': 'true', + }, + }, + 'conditions': [ + ['OS == "win"', { + 'defines': [ + 'WIN32' + ], + }] + ], }, 'targets': [