diff options
author | Peter Bright <drpizza@quiscalusmexicanus.org> | 2011-08-13 19:17:47 +0100 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2011-08-13 19:57:42 -0700 |
commit | 16788f461aedaca7eb7fc658b6b115ac8a3f5d62 (patch) | |
tree | efae2cd898497c995bf774bd95fd7f8206eeae82 /deps/http_parser | |
parent | a5d90c435cb7af5fafe5b370e412e1b965d24114 (diff) | |
download | node-16788f461aedaca7eb7fc658b6b115ac8a3f5d62.tar.gz |
Rename gyp files to produce useful solution names.
Hoist common settings into common.gypi.
Restrict v8's common.gypi to v8 projects.
Ensure v8 doesn't use /MP in debug builds.
Add basic settings for other platforms.
Make uv import common.gypi properly.
Remove LTCG warning.
Diffstat (limited to 'deps/http_parser')
-rw-r--r-- | deps/http_parser/http_parser.gyp | 61 |
1 files changed, 8 insertions, 53 deletions
diff --git a/deps/http_parser/http_parser.gyp b/deps/http_parser/http_parser.gyp index c6eada707..bd4512223 100644 --- a/deps/http_parser/http_parser.gyp +++ b/deps/http_parser/http_parser.gyp @@ -5,69 +5,24 @@ # ./gyp/gyp -f make --depth=`pwd` http_parser.gyp # ./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' ], - 'msvs_settings': { - 'VCCLCompilerTool': { - 'RuntimeLibrary': 1, # static debug - }, - }, - }, - 'Release': { - 'defines': [ 'NDEBUG' ], - 'msvs_settings': { - 'VCCLCompilerTool': { - 'RuntimeLibrary': 0, # static release - }, - }, - } - }, - 'msvs_settings': { - 'VCCLCompilerTool': { - }, - 'VCLibrarianTool': { - }, - 'VCLinkerTool': { - 'GenerateDebugInformation': 'true', - }, - }, - 'conditions': [ - ['OS == "win"', { - 'defines': [ - 'WIN32' - ], - }] - ], - }, - 'targets': [ { 'target_name': 'http_parser', - 'type': 'static_library', + 'type': '<(library)', 'include_dirs': [ '.' ], 'direct_dependent_settings': { 'include_dirs': [ '.' ], }, 'defines': [ 'HTTP_PARSER_STRICT=0' ], 'sources': [ './http_parser.c', ], - 'conditions': [ - ['OS=="win"', { - 'msvs_settings': { - 'VCCLCompilerTool': { - # Compile as C++. http_parser.c is actually C99, but C++ is - # close enough in this case. - 'CompileAs': 2, - }, - }, - }] - ], + 'msvs_settings': { + 'VCCLCompilerTool': { + # Compile as C++. http_parser.c is actually C99, but C++ is + # close enough in this case. + 'CompileAs': 2, # compile as C++ + }, + }, }, - { 'target_name': 'test', 'type': 'executable', |