aboutsummaryrefslogtreecommitdiff
path: root/client/libacron/setup.bat
blob: 52f33d1d624e5223dc1d0a69de979e2de398c9d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
@ECHO OFF
ECHO Setting up Windows builds ...

git clone --depth 1 --branch json-c-0.16 https://github.com/json-c/json-c.git json-c
if %errorlevel% neq 0 exit /b %errorlevel%

MKDIR json-c\build\
if %errorlevel% neq 0 exit /b %errorlevel%
MKDIR json-c\build\install\
if %errorlevel% neq 0 exit /b %errorlevel%

CD json-c\build\

cmake -DCMAKE_INSTALL_PREFIX=install -DCMAKE_BUILD_TYPE=release -DBUILD_SHARED_LIBS=OFF ..
if %errorlevel% neq 0 exit /b %errorlevel%

cmake --build . --target install
if %errorlevel% neq 0 exit /b %errorlevel%

CD ..\..\