This repository has been archived by the owner on Nov 2, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 25
/
make.bat
28 lines (24 loc) · 2.07 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
REM Fix this path !!!
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" amd64
set v64=v10.20.1
set v72=v12.18.2
set v79=v13.14.0
set v83=v14.5.0
if not exist targets (
mkdir targets
curl https://nodejs.org/dist/%v64%/node-%v64%-headers.tar.gz | tar xz -C targets
curl https://nodejs.org/dist/%v64%/win-x64/node.lib > targets/node-%v64%/node.lib
curl https://nodejs.org/dist/%v72%/node-%v72%-headers.tar.gz | tar xz -C targets
curl https://nodejs.org/dist/%v72%/win-x64/node.lib > targets/node-%v72%/node.lib
curl https://nodejs.org/dist/%v79%/node-%v79%-headers.tar.gz | tar xz -C targets
curl https://nodejs.org/dist/%v79%/win-x64/node.lib > targets/node-%v79%/node.lib
curl https://nodejs.org/dist/%v83%/node-%v83%-headers.tar.gz | tar xz -C targets
curl https://nodejs.org/dist/%v83%/win-x64/node.lib > targets/node-%v83%/node.lib
)
cl /I targets/node-%v64%/include/node /I targets/node-%v64%/deps/uv/include /I targets/node-%v64%/deps/v8/include /I targets/node-%v64%/deps/openssl/openssl/include /I targets/node-%v64%/deps/zlib /EHsc /Ox /LD /Fedist/bindings/cws_win32_64.node src/*.cpp targets/node-%v64%/node.lib
cl /I targets/node-%v72%/include/node /I targets/node-%v72%/deps/uv/include /I targets/node-%v72%/deps/v8/include /I targets/node-%v72%/deps/openssl/openssl/include /I targets/node-%v72%/deps/zlib /EHsc /Ox /LD /Fedist/bindings/cws_win32_72.node src/*.cpp targets/node-%v72%/node.lib
cl /I targets/node-%v79%/include/node /I targets/node-%v79%/deps/uv/include /I targets/node-%v79%/deps/v8/include /I targets/node-%v79%/deps/openssl/openssl/include /I targets/node-%v79%/deps/zlib /EHsc /Ox /LD /Fedist/bindings/cws_win32_79.node src/*.cpp targets/node-%v79%/node.lib
cl /I targets/node-%v83%/include/node /I targets/node-%v83%/deps/uv/include /I targets/node-%v83%/deps/v8/include /I targets/node-%v83%/deps/openssl/openssl/include /I targets/node-%v83%/deps/zlib /EHsc /Ox /LD /Fedist/bindings/cws_win32_83.node src/*.cpp targets/node-%v83%/node.lib
del ".\*.obj"
del ".\dist\bindings\*.exp"
del ".\dist\bindings\*.lib"