Updates for VC++ projects.

This commit is contained in:
Ben Vanik 2013-02-06 19:57:45 -08:00
parent 7435a327f7
commit 7009cd8047
3 changed files with 22 additions and 2 deletions

View File

@ -88,6 +88,15 @@
'OPENSSL_NO_INLINE_ASM', 'OPENSSL_NO_INLINE_ASM',
'OPENSSL_NO_NEXTPROTONEG', 'OPENSSL_NO_NEXTPROTONEG',
], ],
'conditions': [
['OS == "win"', {
'defines': [
'_WIN64=1',
],
}],
],
'cflags': [ 'cflags': [
'-std=c99', '-std=c99',
], ],
@ -115,7 +124,10 @@
#'WarnAsError': 'true', #'WarnAsError': 'true',
'DebugInformationFormat': '3', 'DebugInformationFormat': '3',
'ExceptionHandling': '1', # /EHsc 'ExceptionHandling': '1', # /EHsc
'AdditionalOptions': ['/MP'], 'AdditionalOptions': [
'/MP',
'/TP', # Compile as C++
],
}, },
#'VCLibrarianTool': { #'VCLibrarianTool': {
# 'AdditionalLibraryDirectories!': # 'AdditionalLibraryDirectories!':

View File

@ -31,6 +31,7 @@
['OS == "win"', { ['OS == "win"', {
'defines': [ 'defines': [
'HAVE_WINSOCK2_H=1', 'HAVE_WINSOCK2_H=1',
'ssize_t=unsigned long long',
], ],
}], }],
], ],
@ -41,11 +42,17 @@
], ],
'sources': [ 'sources': [
'wslay/lib/includes/wslay/wslay.h',
'wslay/lib/wslay_event.c', 'wslay/lib/wslay_event.c',
'wslay/lib/wslay_event.h',
'wslay/lib/wslay_frame.c', 'wslay/lib/wslay_frame.c',
'wslay/lib/wslay_frame.h',
'wslay/lib/wslay_net.c', 'wslay/lib/wslay_net.c',
'wslay/lib/wslay_net.h',
'wslay/lib/wslay_queue.c', 'wslay/lib/wslay_queue.c',
'wslay/lib/wslay_queue.h',
'wslay/lib/wslay_stack.c', 'wslay/lib/wslay_stack.c',
'wslay/lib/wslay_stack.h',
], ],
} }
] ]

View File

@ -37,9 +37,10 @@
}], }],
['_type=="executable"', { ['_type=="executable"', {
'conditions': [ 'conditions': [
['OS != "mac"', { ['OS == "win"', {
'libraries': [ 'libraries': [
'<@(llvm_libs)', '<@(llvm_libs)',
'wsock32',
], ],
}], }],
['OS == "mac"', { ['OS == "mac"', {