Skip to content

Commit

Permalink
add gyp for spdylay
Browse files Browse the repository at this point in the history
  • Loading branch information
pquerna committed Mar 16, 2012
1 parent 5ce7f1b commit 876daf9
Show file tree
Hide file tree
Showing 2 changed files with 96 additions and 2 deletions.
92 changes: 92 additions & 0 deletions deps/spdylay.gyp
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
{
'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': 'spdylay',
'type': 'static_library',
'include_dirs': [ 'spdylay/lib', 'spdylay/lib/includes' ],
'direct_dependent_settings': {
'include_dirs': [ 'spdylay/lib/includes' ],
},
'sources': [
'spdylay/lib/spdylay_pq.c',
'spdylay/lib/spdylay_map.c',
'spdylay/lib/spdylay_queue.c',
'spdylay/lib/spdylay_buffer.c',
'spdylay/lib/spdylay_frame.c',
'spdylay/lib/spdylay_zlib.c',
'spdylay/lib/spdylay_session.c',
'spdylay/lib/spdylay_helper.c',
'spdylay/lib/spdylay_stream.c',
'spdylay/lib/spdylay_npn.c',
'spdylay/lib/spdylay_submit.c',
'spdylay/lib/spdylay_outbound_item.c',
'spdylay/lib/spdylay_pq.h',
'spdylay/lib/spdylay_int.h',
'spdylay/lib/spdylay_map.h',
'spdylay/lib/spdylay_queue.h',
'spdylay/lib/spdylay_buffer.h',
'spdylay/lib/spdylay_frame.h',
'spdylay/lib/spdylay_zlib.h',
'spdylay/lib/spdylay_session.h',
'spdylay/lib/spdylay_helper.h',
'spdylay/lib/spdylay_stream.h',
'spdylay/lib/spdylay_int.h',
'spdylay/lib/spdylay_npn.h',
'spdylay/lib/spdylay_submit.h',
'spdylay/lib/spdylay_outbound_item.h',
],
'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,
},
},
}]
],
},
]
}

6 changes: 4 additions & 2 deletions spedye.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@
'dependencies': [
'deps/http-parser/http_parser.gyp:http_parser',
'deps/uv/uv.gyp:uv',
'deps/openssl/openssl.gyp:openssl'
'deps/openssl/openssl.gyp:openssl',
'deps/spdylay.gyp:spdylay',
],
'export_dependent_settings': [
'deps/http-parser/http_parser.gyp:http_parser',
'deps/uv/uv.gyp:uv',
'deps/openssl/openssl.gyp:openssl'
'deps/openssl/openssl.gyp:openssl',
'deps/spdylay.gyp:spdylay',
],
'conditions': [
['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', {
Expand Down

0 comments on commit 876daf9

Please sign in to comment.