summaryrefslogtreecommitdiff
path: root/deps/http_parser
diff options
context:
space:
mode:
authorPeter Bright <drpizza@quiscalusmexicanus.org>2011-08-13 19:17:47 +0100
committerRyan Dahl <ry@tinyclouds.org>2011-08-13 19:57:42 -0700
commit16788f461aedaca7eb7fc658b6b115ac8a3f5d62 (patch)
treeefae2cd898497c995bf774bd95fd7f8206eeae82 /deps/http_parser
parenta5d90c435cb7af5fafe5b370e412e1b965d24114 (diff)
downloadandroid-node-v8-16788f461aedaca7eb7fc658b6b115ac8a3f5d62.tar.gz
android-node-v8-16788f461aedaca7eb7fc658b6b115ac8a3f5d62.tar.bz2
android-node-v8-16788f461aedaca7eb7fc658b6b115ac8a3f5d62.zip
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.gyp61
1 files changed, 8 insertions, 53 deletions
diff --git a/deps/http_parser/http_parser.gyp b/deps/http_parser/http_parser.gyp
index c6eada707f..bd45122230 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',