File tree 2 files changed +41
-0
lines changed
2 files changed +41
-0
lines changed Original file line number Diff line number Diff line change
1
+ md downloads
2
+ cscript /nologo wget.js https://s3.amazonaws.com/mozilla-games/emscripten/releases/emsdk-portable-64bit.zip downloads/emsdk.zip
3
+ cscript /nologo wget.js http://stahlworks.com/dev/unzip.exe downloads/unzip.exe
4
+ cscript /nologo wget.js https://cmake.org/files/v3.10/cmake-3.10.1-win64-x64.zip downloads/cmake.zip
5
+ cscript /nologo wget.js https://github.com/malaterre/GDCM/archive/v2.8.3.zip downloads/gdcm.zip
6
+ cd downloads
7
+ md emsdk
8
+ unzip.exe cmake.zip
9
+ ren cmake-3.10.1-win64-x64 cmake
10
+ unzip.exe gdcm.zip
11
+ ren GDCM-2.8.3 gdcm
12
+ unzip.exe emsdk.zip -d emsdk
13
+ cd emsdk
14
+ emsdk.bat install git-1.9.4
15
+ emsdk.bat activate git-1.9.4
16
+ emsdk.bat update
17
+ emsdk.bat install sdk-1.37.18-64bit
18
+ emsdk.bat activate sdk-1.37.18-64bit
19
+ emsdk.bat install mingw-7.1.0-64bit
20
+ emsdk.bat activate mingw-7.1.0-64bit
21
+ emsdk.bat install gnu-2.5.4
22
+ emsdk.bat activate gnu-2.5.4
23
+ cd ..
24
+ cd gdcm
25
+ md build
26
+ cd build
27
+ emconfigure %EMSDK% /../cmake/bin/cmake.exe -G " MinGW Makefiles" -DCMAKE_TOOLCHAIN_FILE=%EMSCRIPTEN% /cmake/Modules/Platform/Emscripten.cmake -DGDCM_BUILD_DOCBOOK_MANPAGES=0 -DGDCM_BUILD_APPLICATIONS=1 -DGDCM_BUILD_EXAMPLES=1 -DEMSCRIPTEN=1 -DEMSCRIPTEN_GENERATE_BITCODE_STATIC_LIBRARIES=1 ..
28
+ mingw32-make -j 9
29
+ cd ..
30
+ cd ..
31
+ cd ..
32
+ em++ gdcmconv.cpp -Idownloads/gdcm/build/bin -Idownloads/gdcm/build/Source/Common -Idownloads/gdcm/build/Source/Common -Idownloads/gdcm/build/Source/DataStructureAndEncodingDefinition -Idownloads/gdcm/build/Source/MediaStorageAndFileFormat -Idownloads/gdcm/build/Source/InformationObjectDefinition -Idownloads/gdcm/build/Source/MessageExchangeDefinition -Idownloads/gdcm/build/Source/DataDictionary -Idownloads/gdcm/build/Utilities -Idownloads/gdcm/build/Utilities/socketxx -Idownloads/gdcm/build/Utilities/socketxx/socket++ -Idownloads/gdcm/build/Utilities/socketxx/socket++ -Idownloads/gdcm/build/Utilities/gdcmopenjpeg -Idownloads/gdcm/Source/DataStructureAndEncodingDefinition -Idownloads/gdcm/Source/Common -Idownloads/gdcm/Source/MediaStorageAndFileFormat -Idownloads/gdcm/Source/DataDictionary -Oz -s FORCE_FILESYSTEM=1 -s NODEJS_CATCH_EXIT=0 -s DISABLE_EXCEPTION_CATCHING=0 --post-js pos.js --pre-js pre.js --closure 1 -o gdcmconv.js downloads/gdcm/build/bin/libgdcmCommon.bc downloads/gdcm/build/bin/libgdcmIOD.bc downloads/gdcm/build/bin/libgdcmcharls.bc downloads/gdcm/build/bin/libgdcmjpeg16.bc downloads/gdcm/build/bin/libgdcmuuid.bc downloads/gdcm/build/bin/libgdcmDICT.bc downloads/gdcm/build/bin/libgdcmMEXD.bc downloads/gdcm/build/bin/libgdcmexpat.bc downloads/gdcm/build/bin/libgdcmjpeg8.bc downloads/gdcm/build/bin/libgdcmzlib.bc downloads/gdcm/build/bin/libgdcmDSED.bc downloads/gdcm/build/bin/libgdcmMSFF.bc downloads/gdcm/build/bin/libgdcmjpeg12.bc downloads/gdcm/build/bin/libgdcmopenjp2.bc downloads/gdcm/build/bin/libsocketxx.bc
Original file line number Diff line number Diff line change
1
+ var WinHttpReq = new ActiveXObject ( "WinHttp.WinHttpRequest.5.1" ) ;
2
+ WinHttpReq . Open ( "GET" , WScript . Arguments ( 0 ) , /*async=*/ false ) ;
3
+ WinHttpReq . Send ( ) ;
4
+
5
+ BinStream = new ActiveXObject ( "ADODB.Stream" ) ;
6
+ BinStream . Type = 1 ;
7
+ BinStream . Open ( ) ;
8
+ BinStream . Write ( WinHttpReq . ResponseBody ) ;
9
+ BinStream . SaveToFile ( WScript . Arguments ( 1 ) ) ;
You can’t perform that action at this time.
0 commit comments