mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
c643e3b572
Silence the following compiler warning on Windows: `'function': different 'const' qualifiers` PR-URL: https://github.com/nodejs/node/pull/31311 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
75 lines
1.9 KiB
Python
75 lines
1.9 KiB
Python
{
|
|
'include_dirs': [
|
|
'openssl/',
|
|
'openssl/include/',
|
|
'openssl/crypto/',
|
|
'openssl/crypto/include/',
|
|
'openssl/crypto/modes/',
|
|
'openssl/crypto/ec/curve448',
|
|
'openssl/crypto/ec/curve448/arch_32',
|
|
'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',
|
|
],
|
|
'msvs_disabled_warnings': [4090],
|
|
'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',],
|
|
'defines': [
|
|
'OPENSSLDIR="/etc/ssl"',
|
|
'ENGINESDIR="/dev/null"',
|
|
'TERMIOS',
|
|
],
|
|
'conditions': [
|
|
[ 'llvm_version=="0.0"', {
|
|
'cflags': ['-Wno-old-style-declaration',],
|
|
}],
|
|
],
|
|
}],
|
|
]
|
|
}
|