28 lines
1.2 KiB
Batchfile
28 lines
1.2 KiB
Batchfile
call "%VS140COMNTOOLS%..\..\vc\vcvarsall.bat" amd64
|
|
|
|
if not exist targets (
|
|
mkdir targets
|
|
curl https://nodejs.org/dist/v8.1.2/node-v8.1.2-headers.tar.gz | tar xz -C targets
|
|
curl https://nodejs.org/dist/v8.1.2/win-x64/node.lib > targets/node-v8.1.2/node.lib
|
|
curl https://nodejs.org/dist/v9.2.0/node-v9.2.0-headers.tar.gz | tar xz -C targets
|
|
curl https://nodejs.org/dist/v9.2.0/win-x64/node.lib > targets/node-v9.2.0/node.lib
|
|
curl https://nodejs.org/dist/v10.0.0/node-v10.0.0-headers.tar.gz | tar xz -C targets
|
|
curl https://nodejs.org/dist/v10.0.0/win-x64/node.lib > targets/node-v10.0.0/node.lib
|
|
)
|
|
|
|
cp README.md dist/README.md
|
|
cp ../uWebSockets/LICENSE dist/LICENSE
|
|
cp -r ../uWebSockets/src dist/
|
|
cp src/addon.cpp dist/src/addon.cpp
|
|
cp src/addon.h dist/src/addon.h
|
|
cp src/http.h dist/src/http.h
|
|
cp src/uws.js dist/uws.js
|
|
|
|
cl /I targets/node-v8.1.2/include/node /EHsc /Ox /LD /Fedist/uws_win32_57.node dist/src/*.cpp targets/node-v8.1.2/node.lib
|
|
cl /I targets/node-v9.2.0/include/node /EHsc /Ox /LD /Fedist/uws_win32_59.node dist/src/*.cpp targets/node-v9.2.0/node.lib
|
|
cl /I targets/node-v10.0.0/include/node /EHsc /Ox /LD /Fedist/uws_win32_64.node dist/src/*.cpp targets/node-v10.0.0/node.lib
|
|
|
|
rm *.obj
|
|
rm dist/*.exp
|
|
rm dist/*.lib
|