summaryrefslogtreecommitdiff
path: root/deps/openssl/openssl_common.gypi
diff options
context:
space:
mode:
Diffstat (limited to 'deps/openssl/openssl_common.gypi')
-rw-r--r--deps/openssl/openssl_common.gypi68
1 files changed, 68 insertions, 0 deletions
diff --git a/deps/openssl/openssl_common.gypi b/deps/openssl/openssl_common.gypi
new file mode 100644
index 0000000000..252570006a
--- /dev/null
+++ b/deps/openssl/openssl_common.gypi
@@ -0,0 +1,68 @@
+{
+ 'include_dirs': [
+ 'openssl/',
+ 'openssl/include/',
+ 'openssl/crypto/',
+ 'openssl/crypto/include/',
+ 'openssl/crypto/modes/',
+ 'config/',
+ ],
+ # build options specific to OS
+ 'conditions': [
+ [ 'OS=="aix"', {
+ # AIX is missing /usr/include/endian.h
+ 'defines': [
+ '__LITTLE_ENDIAN=1234',
+ '__BIG_ENDIAN=4321',
+ '__BYTE_ORDER=__BIG_ENDIAN',
+ '__FLOAT_WORD_ORDER=__BIG_ENDIAN',
+ 'OPENSSLDIR="/etc/ssl"',
+ 'ENGINESDIR="/dev/null"',
+ ],
+ }, 'OS=="win"', {
+ 'defines': [
+ ## default of Win. See INSTALL in openssl repo.
+ 'OPENSSLDIR="C:\Program Files\Common Files\SSL"',
+ 'ENGINESDIR="NUL"',
+ 'OPENSSL_SYS_WIN32', 'WIN32_LEAN_AND_MEAN', 'L_ENDIAN',
+ '_CRT_SECURE_NO_DEPRECATE', 'UNICODE', '_UNICODE',
+ ],
+ 'cflags': [
+ '-W3', '-wd4090', '-Gs0', '-GF', '-Gy', '-nologo','/O2',
+ ],
+ 'link_settings': {
+ 'libraries': [
+ '-lws2_32.lib',
+ '-lgdi32.lib',
+ '-ladvapi32.lib',
+ '-lcrypt32.lib',
+ '-luser32.lib',
+ ],
+ },
+ }, 'OS=="mac"', {
+ 'xcode_settings': {
+ 'WARNING_CFLAGS': ['-Wno-missing-field-initializers']
+ },
+ 'defines': [
+ 'OPENSSLDIR="/System/Library/OpenSSL/"',
+ 'ENGINESDIR="/dev/null"',
+ ],
+ }, 'OS=="solaris"', {
+ 'defines': [
+ 'OPENSSLDIR="/etc/ssl"',
+ 'ENGINESDIR="/dev/null"',
+ '__EXTENSIONS__'
+ ],
+ }, {
+ # linux and others
+ 'cflags': ['-Wno-missing-field-initializers',
+ ## TODO: check gcc_version>=4.3
+ '-Wno-old-style-declaration'],
+ 'defines': [
+ 'OPENSSLDIR="/etc/ssl"',
+ 'ENGINESDIR="/dev/null"',
+ 'TERMIOS',
+ ],
+ }],
+ ]
+}