-
Notifications
You must be signed in to change notification settings - Fork 0
/
build_proj.bat
27 lines (25 loc) · 885 Bytes
/
build_proj.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
setlocal
call settings.bat
call fetch.bat http://download.osgeo.org/proj/proj-4.9.3.tar.gz proj-4.9.3
cd proj-4.9.3
set INSTDIR=%PREFIX:\=\\%
if "%compiler%" == "MINGW" (
SET "PATH=%MSYSDIR%;%PATH%"
if NOT EXIST Makefile (bash -c "./configure %CONFARGS%")
%ER%
bash -c "make install"
%ER%
) else (
cmake %GENERATOR% -DCMAKE_BUILD_TYPE=%VARIANT% -DCMAKE_INSTALL_PREFIX=%PREFIX1% -DPROJ_INCLUDE_SUBDIR=include -DPROJ_LIB_SUBDIR=lib -DBUILD_LIBPROJ_SHARED=YES
%ER%
%MSBUILDINSTALL%
%ER%
copy /y %PREFIX%\lib\proj_4_9.lib %PREFIX%\lib\proj_i.lib
cmake %GENERATOR% -DCMAKE_BUILD_TYPE=%VARIANT% -DCMAKE_INSTALL_PREFIX=%PREFIX1% -DPROJ_INCLUDE_SUBDIR=include -DPROJ_LIB_SUBDIR=lib -DBUILD_LIBPROJ_SHARED=NO
%ER%
%MSBUILDINSTALL%
%ER%
copy /y %PREFIX%\lib\proj_4_9.lib %PREFIX%\lib\proj.lib
copy /y %PREFIX%\lib\proj_4_9_d.lib %PREFIX%\lib\proj.lib
)
cd ..