forked from codeforboston/anypia-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
installbuild-emscripten-anypiab-windows.bat
executable file
·34 lines (34 loc) · 1.31 KB
/
installbuild-emscripten-anypiab-windows.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
:: ** This file was automatically generated by generate_buildscripts.sh **
SET MSBUILD_PATH=C:\Program Files (x86)\MSBuild\14.0\Bin;C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin;C:\Program Files\CMake\bin
SET PATH=%PATH%;%MSBUILD_PATH%
choco install curl
choco install 7zip
choco install cmake
python --version
echo "available python version must be greater than 2.7.13 or pip install certifi"
git clone https://github.com/emscripten-core/emsdk.git
cd emsdk
call emsdk.bat install latest
call emsdk.bat activate latest
cd ..
choco install vcbuildtools -ia "/InstallSelectableItems Win81SDK_CppBuildSKUV1;VisualCppBuildTools_ATLMFC_SDK"
SET PATH=%PATH%;%MSBUILD_PATH%
cd oactobjs32
curl -L -O "https://dl.bintray.com/boostorg/release/1.64.0/source/boost_1_64_0.zip"
7z x -bd boost_1_64_0.zip
cd boost_1_64_0
call bootstrap.bat
./b2.exe toolset=msvc-14.0 link=static address-model=32 architecture=x86 runtime-link=static threading=multi --layout=versioned --with-date_time
SET BOOST_INCL="%cd%"
SET BOOST_LIB="%cd%\stage\lib"
cd ../..
cd anypiab
mkdir build
cd build
call emcmake cmake -DBOOST_ROOT=%BOOST_INCL% -DBOOST_LIBRARYDIR=%BOOST_LIB% -G "NMake Makefiles" ..
nmake
cd ../..
mkdir anypiajs/build
cd anypiajs/build
call emcmake cmake -DBOOST_ROOT=%BOOST_INCL% -DBOOST_LIBRARYDIR=%BOOST_LIB% -G "NMake Makefiles" ..
nmake