-
Notifications
You must be signed in to change notification settings - Fork 0
/
build_osm2pgsql1.bat
37 lines (30 loc) · 1.06 KB
/
build_osm2pgsql1.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
setlocal
call settings.bat
set "PSQL_ROOT=C:\Program Files\PostgreSQL\9.4"
set PGUSER=postgres
set PGPASSWORD=admin
rem git clone --depth 10 https://github.com/openstreetmap/osm2pgsql.git
git clone -b replace-pthread-with-stdthread --depth 10 https://github.com/lonvia/osm2pgsql.git osm2pgsql1
cd osm2pgsql1
mkdir build
cd build
set CMAKE_PREFIX_PATH=%PREFIX%;C:\Program Files\PostgreSQL\9.4
%CMAKEVS% .. -DBOOST_ROOT=%BOOST_ROOT% -DBoost_USE_STATIC_LIBS=ON -DBUILD_TESTS=ON -DTESTING_TIMEOUT=3600
%ER%
rem nmake test-expire-tiles
rem nmake test ARGS="--build-and-test"
rem nmake check
%MSBUILDINSTALL%
rem install
%ER%
cd ..\..
mkdir osm2pgsql-bin
copy /y osm2pgsql\build\%VARIANT%\*.exe osm2pgsql-bin
copy /y osm2pgsql\*.style osm2pgsql-bin
copy /y osm2pgsql\*.lua osm2pgsql-bin
copy /y %PREFIX%\bin\lua.dll osm2pgsql-bin
copy /y %PREFIX%\bin\geos.dll osm2pgsql-bin
copy /y "%PSQL_ROOT%\bin\libpq.dll" osm2pgsql-bin
copy /y "%PSQL_ROOT%\bin\libintl-8.dll" osm2pgsql-bin
copy /y "%PSQL_ROOT%\bin\libeay32.dll" osm2pgsql-bin
copy /y "%PSQL_ROOT%\bin\ssleay32.dll" osm2pgsql-bin