mirror of
https://github.com/nodejs/node.git
synced 2024-11-24 20:29:23 +01:00
25c788009f
- Set the clang variable in `config.gypi` so it depends on compiler checks made by the configure script. - Replace gyp conditions with `llvm_version` and "0.0" with conditions that use the `clang` variable. - Always use `clang==1` or `clang==0` in gyp conditions PR-URL: https://github.com/nodejs/node/pull/52873 Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io> Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
77 lines
2.0 KiB
Python
77 lines
2.0 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',
|
|
'openssl/providers/common/include',
|
|
'openssl/providers/implementations/include',
|
|
'config/',
|
|
],
|
|
# build options specific to OS
|
|
'conditions': [
|
|
[ 'OS in ("aix", "os400")', {
|
|
# 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': [
|
|
[ 'clang==0', {
|
|
'cflags': ['-Wno-old-style-declaration',],
|
|
}],
|
|
],
|
|
}],
|
|
]
|
|
}
|