-
Notifications
You must be signed in to change notification settings - Fork 0
/
build_osmium.bat
44 lines (34 loc) · 1 KB
/
build_osmium.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
35
36
37
38
39
40
41
42
43
setlocal
call settings.bat
git clone https://github.com/osmcode/osm-testdata
git clone https://github.com/osmcode/libosmium.git libosmium
cd libosmium
mkdir build
cd build
set TESTS=ON
set DATATEST=ON
set BUILD_HEADERS=OFF
set BUILD_BENCHMARKS=ON
if "%COMPILER%" == "MINGW" (
%CMAKE% .. %CMAKE_BOOST_FLAGS% -DBUILD_TESTING=%TESTS% -DBUILD_TRY_HPPS=%ALLHPPS%
%ER%
mingw32-make
%ER%
) else (
cmake .. %GENERATOR% -DCMAKE_BUILD_TYPE=%VARIANT% -DCMAKE_INSTALL_PREFIX=%PREFIX% %CMAKE_BOOST_FLAGS% ^
-DBUILD_TESTING=%TESTS% -DBUILD_HEADERS=%BUILD_HEADERS% -DBUILD_BENCHMARKS=%BUILD_BENCHMARKS% -DBUILD_DATA_TESTS=%DATATEST% ^
-DINSTALL_GDALCPP=ON -DINSTALL_PROTOZERO=ON -DINSTALL_UTFCPP=ON
%ER%
%MSBUILD% libosmium.sln
%ER%
)
set PATH=%PATH%;%PREFIX%/bin
if "%TESTS%"=="ON" ctest -C %Variant% -VV >..\..\%~n0_tests.log
if "%COMPILER%" == "MINGW" (
mingw32-make install
%ER%
) else (
msbuild /p:Configuration=%Variant% /clp:Verbosity=minimal /nologo INSTALL.vcxproj
%ER%
)
cd ..\..