Properly support OpenSSL 3.0
This commit is contained in:
parent
ba8a923faa
commit
8e3b9d2498
6
build.c
6
build.c
@ -55,8 +55,8 @@ void prepare() {
|
||||
|
||||
/* Build for Unix systems */
|
||||
void build(char *compiler, char *cpp_compiler, char *cpp_linker, char *os, char *arch) {
|
||||
char *c_shared = "-DOPENSSL_CONFIGURED_API=0x10100000L -DOPENSSL_API_COMPAT=0x10100000L -DLIBUS_USE_LIBUV -DLIBUS_USE_OPENSSL -flto -O3 -c -fPIC -I uWebSockets/uSockets/src uWebSockets/uSockets/src/*.c uWebSockets/uSockets/src/eventing/*.c uWebSockets/uSockets/src/crypto/*.c";
|
||||
char *cpp_shared = "-DOPENSSL_CONFIGURED_API=0x10100000L -DOPENSSL_API_COMPAT=0x10100000L -DUWS_WITH_PROXY -DLIBUS_USE_LIBUV -DLIBUS_USE_OPENSSL -flto -O3 -c -fPIC -std=c++17 -I uWebSockets/uSockets/src -I uWebSockets/src src/addon.cpp uWebSockets/uSockets/src/crypto/sni_tree.cpp";
|
||||
char *c_shared = "-DLIBUS_USE_LIBUV -DLIBUS_USE_OPENSSL -flto -O3 -c -fPIC -I uWebSockets/uSockets/src uWebSockets/uSockets/src/*.c uWebSockets/uSockets/src/eventing/*.c uWebSockets/uSockets/src/crypto/*.c";
|
||||
char *cpp_shared = "-DUWS_WITH_PROXY -DLIBUS_USE_LIBUV -DLIBUS_USE_OPENSSL -flto -O3 -c -fPIC -std=c++17 -I uWebSockets/uSockets/src -I uWebSockets/src src/addon.cpp uWebSockets/uSockets/src/crypto/sni_tree.cpp";
|
||||
|
||||
for (unsigned int i = 0; i < sizeof(versions) / sizeof(struct node_version); i++) {
|
||||
run("%s %s -I targets/node-%s/include/node", compiler, c_shared, versions[i].name);
|
||||
@ -77,7 +77,7 @@ void copy_files() {
|
||||
void build_windows(char *arch) {
|
||||
/* For all versions */
|
||||
for (unsigned int i = 0; i < sizeof(versions) / sizeof(struct node_version); i++) {
|
||||
run("cl /W3 /DOPENSSL_CONFIGURED_API=0x10100000L /DOPENSSL_API_COMPAT=0x10100000L /D \"UWS_WITH_PROXY\" /D \"LIBUS_USE_LIBUV\" /D \"LIBUS_USE_OPENSSL\" /std:c++17 /I uWebSockets/uSockets/src uWebSockets/uSockets/src/*.c uWebSockets/uSockets/src/crypto/sni_tree.cpp "
|
||||
run("cl /W3 /D \"UWS_WITH_PROXY\" /D \"LIBUS_USE_LIBUV\" /D \"LIBUS_USE_OPENSSL\" /std:c++17 /I uWebSockets/uSockets/src uWebSockets/uSockets/src/*.c uWebSockets/uSockets/src/crypto/sni_tree.cpp "
|
||||
"uWebSockets/uSockets/src/eventing/*.c uWebSockets/uSockets/src/crypto/*.c /I targets/node-%s/include/node /I uWebSockets/src /EHsc "
|
||||
"/Ox /LD /Fedist/uws_win32_%s_%s.node src/addon.cpp targets/node-%s/node.lib",
|
||||
versions[i].name, arch, versions[i].abi, versions[i].name);
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit 5d8983902690a0b93193d922d6239965bdca2f76
|
||||
Subproject commit 92a9b3f9923768b0367d3ee53779ec16cbf0d45d
|
Loading…
Reference in New Issue
Block a user