-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild_osm2pgsql.bat
37 lines (29 loc) · 952 Bytes
/
build_osm2pgsql.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
git clone --depth 10 https://github.com/openstreetmap/osm2pgsql.git
cd osm2pgsql
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
%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