2013-02-02 10:50:56 +00:00
|
|
|
# Copyright 2013 Ben Vanik. All Rights Reserved.
|
|
|
|
{
|
|
|
|
'targets': [
|
|
|
|
{
|
|
|
|
'target_name': 'wslay',
|
|
|
|
'type': '<(library)',
|
|
|
|
|
|
|
|
'direct_dependent_settings': {
|
|
|
|
'include_dirs': [
|
|
|
|
'wslay/lib/includes/',
|
|
|
|
],
|
|
|
|
|
|
|
|
'defines': [
|
|
|
|
'WSLAY_VERSION=1',
|
|
|
|
],
|
|
|
|
|
|
|
|
# libraries: ws2_32 on windows
|
|
|
|
},
|
|
|
|
|
|
|
|
'defines': [
|
|
|
|
'WSLAY_VERSION="1"',
|
|
|
|
],
|
|
|
|
|
|
|
|
'conditions': [
|
|
|
|
['OS != "win"', {
|
|
|
|
'defines': [
|
|
|
|
'HAVE_ARPA_INET_H=1',
|
|
|
|
'HAVE_NETINET_IN_H=1',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
['OS == "win"', {
|
|
|
|
'defines': [
|
|
|
|
'HAVE_WINSOCK2_H=1',
|
2013-02-09 06:07:38 +00:00
|
|
|
'ssize_t=long long',
|
2013-02-02 10:50:56 +00:00
|
|
|
],
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
|
|
|
|
'include_dirs': [
|
|
|
|
'wslay/lib/',
|
|
|
|
'wslay/lib/includes/',
|
|
|
|
],
|
|
|
|
|
|
|
|
'sources': [
|
2013-02-07 03:57:45 +00:00
|
|
|
'wslay/lib/includes/wslay/wslay.h',
|
2013-02-02 10:50:56 +00:00
|
|
|
'wslay/lib/wslay_event.c',
|
2013-02-07 03:57:45 +00:00
|
|
|
'wslay/lib/wslay_event.h',
|
2013-02-02 10:50:56 +00:00
|
|
|
'wslay/lib/wslay_frame.c',
|
2013-02-07 03:57:45 +00:00
|
|
|
'wslay/lib/wslay_frame.h',
|
2013-02-02 10:50:56 +00:00
|
|
|
'wslay/lib/wslay_net.c',
|
2013-02-07 03:57:45 +00:00
|
|
|
'wslay/lib/wslay_net.h',
|
2013-02-02 10:50:56 +00:00
|
|
|
'wslay/lib/wslay_queue.c',
|
2013-02-07 03:57:45 +00:00
|
|
|
'wslay/lib/wslay_queue.h',
|
2013-02-02 10:50:56 +00:00
|
|
|
'wslay/lib/wslay_stack.c',
|
2013-02-07 03:57:45 +00:00
|
|
|
'wslay/lib/wslay_stack.h',
|
2013-02-02 10:50:56 +00:00
|
|
|
],
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|