summaryrefslogtreecommitdiffstats
path: root/third_party/usrsctp/usrsctp.gyp
diff options
context:
space:
mode:
authortoyoshim@chromium.org <toyoshim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-02 07:11:24 +0000
committertoyoshim@chromium.org <toyoshim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-02 07:11:24 +0000
commit3fbb3988c279e972aa1fbb148602ac41711c7c49 (patch)
treec623f4618baa7ff1352cfcfad0e7909d1c6db5af /third_party/usrsctp/usrsctp.gyp
parentd0da8afeb5e88ee9a47ec5659e4c2d8ba9c1f380 (diff)
downloadchromium_src-3fbb3988c279e972aa1fbb148602ac41711c7c49.zip
chromium_src-3fbb3988c279e972aa1fbb148602ac41711c7c49.tar.gz
chromium_src-3fbb3988c279e972aa1fbb148602ac41711c7c49.tar.bz2
Revert 215206 "This fixes bugs in windows that Lally got upstrea..."
As ckocagil@chromium.org suggested in IRC, I try reverting this to fix the XP bots failures. > This fixes bugs in windows that Lally got upstream in usrsctp. This now enables the HAVE_SCTP flag for windows. > > BUG= > > Review URL: https://chromiumcodereview.appspot.com/19522005 TBR=ldixon@google.com, ckocagil@chromium.org Review URL: https://codereview.chromium.org/21743002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@215239 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party/usrsctp/usrsctp.gyp')
-rw-r--r--third_party/usrsctp/usrsctp.gyp43
1 files changed, 29 insertions, 14 deletions
diff --git a/third_party/usrsctp/usrsctp.gyp b/third_party/usrsctp/usrsctp.gyp
index d273385..9285e21 100644
--- a/third_party/usrsctp/usrsctp.gyp
+++ b/third_party/usrsctp/usrsctp.gyp
@@ -7,6 +7,7 @@
},
'target_defaults': {
'defines': [
+ 'INET',
'SCTP_PROCESS_LEVEL_LOCKS',
'SCTP_SIMPLE_ALLOCATOR',
'__Userspace__',
@@ -31,27 +32,19 @@
'conditions': [
['use_openssl==1', {
'defines': [
- 'SSL_USE_OPENSSL',
+ 'SCTP_USE_OPENSSL_SHA1',
],
'dependencies': [
- '<(DEPTH)/third_party/openssl/openssl.gyp:openssl',
- ],
- 'sources': [
- 'overrides/usrsctplib/netinet/sctp_openssl_sha1.h',
+ '../../third_party/openssl/openssl.gyp:openssl',
],
},
{ # else use_openssl==0, use NSS.
'defines' : [
- 'SSL_USE_NSS',
'SCTP_USE_NSS_SHA1',
],
- 'sources': [
- 'overrides/usrsctplib/netinet/sctp_nss_sha1.c',
- 'overrides/usrsctplib/netinet/sctp_nss_sha1.h',
- ],
'conditions': [
['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android"', {
- 'dependencies': [ # The system.gyp:ssl dependency includes nss
+ 'dependencies': [
'<(DEPTH)/build/linux/system.gyp:ssl',
],
}],
@@ -73,7 +66,9 @@
'overrides/usrsctplib/netinet/sctp_auth.h',
'overrides/usrsctplib/netinet/sctp_os.h',
'overrides/usrsctplib/netinet/sctp_os_userspace.h',
- 'overrides/usrsctplib/netinet/sctp_sha1.h',
+ 'overrides/usrsctplib/netinet/sctp_nss_sha1.c',
+ 'overrides/usrsctplib/netinet/sctp_nss_sha1.h',
+
'usrsctplib/usrsctp.h',
'usrsctplib/user_atomic.h',
'usrsctplib/user_environment.c',
@@ -102,6 +97,8 @@
'usrsctplib/netinet/sctp_constants.h',
'usrsctplib/netinet/sctp_crc32.c',
'usrsctplib/netinet/sctp_crc32.h',
+ 'usrsctplib/netinet/sctp_hashdriver.h',
+ 'usrsctplib/netinet/sctp_hashdriver.c',
'usrsctplib/netinet/sctp_header.h',
'usrsctplib/netinet/sctp_indata.c',
'usrsctplib/netinet/sctp_indata.h',
@@ -126,10 +123,23 @@
'usrsctplib/netinet/sctputil.c',
'usrsctplib/netinet/sctputil.h',
'usrsctplib/netinet/sctp_var.h',
+ 'usrsctplib/netinet6/sctp6_usrreq.c',
+ 'usrsctplib/netinet6/sctp6_var.h',
], # sources
'conditions': [
+ ['use_openssl==1', {
+ 'sources!': [
+ 'overrides/usrsctplib/netinet/sctp_nss_sha1.c',
+ 'overrides/usrsctplib/netinet/sctp_nss_sha1.h',
+ ],
+ 'sources': [
+ 'overrides/usrsctplib/netinet/sctp_openssl_sha1.h',
+ ],
+ }],
['OS=="linux"', {
'defines': [
+ 'HAVE_INET_ADDR',
+ 'HAVE_SOCKET',
'__Userspace_os_Linux',
],
'cflags!': [ '-Werror', '-Wall' ],
@@ -137,8 +147,13 @@
}],
['OS=="mac"', {
'defines': [
+ 'HAVE_INET_ADDR',
'HAVE_SA_LEN',
'HAVE_SCONN_LEN',
+ 'HAVE_SIN6_LEN',
+ 'HAVE_SIN_LEN',
+ 'HAVE_SOCKET',
+ 'INET6',
'__APPLE_USE_RFC_2292',
'__Userspace_os_Darwin',
],
@@ -150,12 +165,12 @@
}],
['OS=="win"', {
'defines': [
+ 'INET6',
'__Userspace_os_Windows',
],
'cflags!': [ '/W3', '/WX' ],
'cflags': [ '/w' ],
- # TODO(ldixon) : Remove this disabling of warnings by pushing a
- # fix upstream to usrsctp
+ # TODO(ldixon) : Remove this disable.
'msvs_disabled_warnings': [ 4700, 4013, 4018, 4133, 4267 ],
}, { # OS != "win",
'defines': [