forked from ClusterWS/cWS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmake.bat
36 lines (28 loc) · 2.43 KB
/
make.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
REM Fix this path !!!
call "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat" amd64
set v108=v18.20.0
set v115=v20.18.0
set v127=v22.10.0
set v131=v23.0.0
if not exist targets (
mkdir targets
wget -c https://nodejs.org/dist/%v108%/node-%v108%-headers.tar.gz -P targets
tar -xzf targets/node-%v108%-headers.tar.gz -C targets
wget https://nodejs.org/dist/%v108%/win-x64/node.lib -O targets/node-%v108%/node.lib
wget -c https://nodejs.org/dist/%v115%/node-%v115%-headers.tar.gz -P targets
tar -xzf targets/node-%v115%-headers.tar.gz -C targets
wget https://nodejs.org/dist/%v115%/win-x64/node.lib -O targets/node-%v115%/node.lib
wget -c https://nodejs.org/dist/%v127%/node-%v127%-headers.tar.gz -P targets
tar -xzf targets/node-%v127%-headers.tar.gz -C targets
wget https://nodejs.org/dist/%v127%/win-x64/node.lib -O targets/node-%v127%/node.lib
wget -c https://nodejs.org/dist/%v131%/node-%v131%-headers.tar.gz -P targets
tar -xzf targets/node-%v131%-headers.tar.gz -C targets
wget https://nodejs.org/dist/%v131%/win-x64/node.lib -O targets/node-%v131%/node.lib
)
cl /std:c++20 /I src/headers/18 /I targets/node-%v108%/include/node /I targets/node-%v108%/deps/uv/include /I targets/node-%v108%/deps/v8/include /I targets/node-%v108%/deps/openssl/openssl/include /I targets/node-%v108%/deps/zlib /EHsc /Ox /LD /Fedist/bindings/cws_win32_108.node src/*.cpp targets/node-%v108%/node.lib
cl /std:c++20 /I src/headers/20 /I targets/node-%v115%/include/node /I targets/node-%v115%/deps/uv/include /I targets/node-%v115%/deps/v8/include /I targets/node-%v115%/deps/openssl/openssl/include /I targets/node-%v115%/deps/zlib /EHsc /Ox /LD /Fedist/bindings/cws_win32_115.node src/*.cpp targets/node-%v115%/node.lib
cl /std:c++20 /I src/headers/22 /I targets/node-%v127%/include/node /I targets/node-%v127%/deps/uv/include /I targets/node-%v127%/deps/v8/include /I targets/node-%v127%/deps/openssl/openssl/include /I targets/node-%v127%/deps/zlib /EHsc /Ox /LD /Fedist/bindings/cws_win32_127.node src/*.cpp targets/node-%v127%/node.lib
cl /std:c++20 /I src/headers/23 /I targets/node-%v131%/include/node /I targets/node-%v131%/deps/uv/include /I targets/node-%v131%/deps/v8/include /I targets/node-%v131%/deps/openssl/openssl/include /I targets/node-%v131%/deps/zlib /EHsc /Ox /LD /Fedist/bindings/cws_win32_131.node src/*.cpp targets/node-%v131%/node.lib
del ".\*.obj"
del ".\dist\bindings\*.exp"
del ".\dist\bindings\*.lib"