summaryrefslogtreecommitdiff
path: root/deps/openssl/openssl.gyp
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2012-04-10 21:41:34 +0000
committerBen Noordhuis <info@bnoordhuis.nl>2012-04-12 01:34:05 +0200
commit2639566c6e625c7e5b0f2cb1ad2c58d0aeac2530 (patch)
tree6d3623ef611c402d7c133942e4973fc4d7708295 /deps/openssl/openssl.gyp
parent3694b6914a68e655c51a3d3ba8f538231bf07d1e (diff)
downloadandroid-node-v8-2639566c6e625c7e5b0f2cb1ad2c58d0aeac2530.tar.gz
android-node-v8-2639566c6e625c7e5b0f2cb1ad2c58d0aeac2530.tar.bz2
android-node-v8-2639566c6e625c7e5b0f2cb1ad2c58d0aeac2530.zip
build: configure openssl
* compile with -DOPENSSL_NO_SOCK and -DOPENSSL_NO_DGRAM, we don't need it * compile with -DOPENSSL_NO_GOST and -DOPENSSL_NO_HW_PADLOCK, works around the brain dead linker on solaris and maybe others * compile with -DTERMIOS, OS X doesn't have <termio.h> * compile with -D__EXTENSIONS__ on solaris, makes siginfo_t available * compile without -ansi on linux, it hides a number of POSIX declarations (sigaction, NI_MAXHOST, etc.)
Diffstat (limited to 'deps/openssl/openssl.gyp')
-rw-r--r--deps/openssl/openssl.gyp62
1 files changed, 23 insertions, 39 deletions
diff --git a/deps/openssl/openssl.gyp b/deps/openssl/openssl.gyp
index c9bf79fafb..00f7c152e7 100644
--- a/deps/openssl/openssl.gyp
+++ b/deps/openssl/openssl.gyp
@@ -11,10 +11,14 @@
'L_ENDIAN',
'OPENSSL_THREADS',
'PURIFY',
- 'TERMIO',
'_REENTRANT',
# We do not use TLS over UDP on Chromium so far.
'OPENSSL_NO_DTLS1',
+ 'OPENSSL_NO_SOCK',
+ 'OPENSSL_NO_DGRAM',
+ # Work around brain dead SunOS linker.
+ 'OPENSSL_NO_GOST',
+ 'OPENSSL_NO_HW_PADLOCK',
],
'sources': [
'openssl/ssl/bio_ssl.c',
@@ -618,55 +622,35 @@
'openssl/engines/e_sureware.c',
'openssl/engines/e_ubsec.c',
],
+ 'sources/': [
+ ['exclude', 'camellia/.*$'],
+ ['exclude', 'cms/.*$'],
+ ['exclude', 'mdc2/.*$'],
+ ],
'conditions': [
- ['os_posix==1 and OS!="android"', {
+ ['OS=="win"', {
+ 'defines': [
+ 'MK1MF_BUILD',
+ 'WIN32_LEAN_AND_MEAN',
+ ]
+ }, {
'defines': [
# ENGINESDIR must be defined if OPENSSLDIR is.
'ENGINESDIR="/dev/null"',
# Set to ubuntu default path for convenience. If necessary, override
# this at runtime with the SSL_CERT_DIR environment variable.
'OPENSSLDIR="/etc/ssl"',
+ 'TERMIOS',
],
- 'variables': {
- 'conditions': [
- ['target_arch=="ia32"', {
- 'openssl_config_path': 'config/piii',
- }, {
- 'openssl_config_path': 'config/k8',
- }],
- ],
- },
}],
- ['OS=="android"', {
- 'variables': {
- 'openssl_config_path': 'config/android',
- },
- 'sources/': [
- ['exclude', 'cast/.*$'],
- ['exclude', 'crypto/md2/.*$'],
- ['exclude', 'crypto/store/.*$'],
- ['exclude', 'crypto/whrlpool/.$'],
- ],
+ ['OS=="solaris"', {
+ 'defines': ['__EXTENSIONS__'],
+ }],
+ ['target_arch=="ia32"', {
+ 'variables': {'openssl_config_path': 'config/piii'},
}, {
- 'sources/': [
- ['exclude', 'camellia/.*$'],
- ['exclude', 'cms/.*$'],
- ['exclude', 'mdc2/.*$'],
- ],
+ 'variables': {'openssl_config_path': 'config/k8'},
}],
- ['clang==1', {
- 'cflags': [
- # OpenSSL has a few |if ((foo == NULL))| checks.
- '-Wno-parentheses-equality',
- # OpenSSL uses several function-style macros and then ignores the
- # returned value.
- '-Wno-unused-value',
- ],
- }, { # Not clang. Disable all warnings.
- 'cflags': [
- '-w',
- ],
- }]
],
'include_dirs': [
'.',