-
Notifications
You must be signed in to change notification settings - Fork 4
/
create-paths-pri.cmd
173 lines (173 loc) · 5.18 KB
/
create-paths-pri.cmd
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
@echo off
setlocal
set topdir=%~dp0
set topdir=%topdir:\=/%
call versions.cmd
if "%CGNSLIB_VER%"=="3.2.1" (
set CGNSLIB_VER=%CGNSLIB_VER%-patch1
)
for /f "tokens=1 delims=." %%a in ("%VTK_VER%") do set VTK_MAJOR_VERSION=%%a
for /f "tokens=2 delims=." %%a in ("%VTK_VER%") do set VTK_MINOR_VERSION=%%a
for /f "tokens=1,2 delims=." %%a in ("%VTK_VER%") do set VTK_MAJ_MIN=%%a.%%b
@echo.CONFIG^(debug, debug^|release^) {
@echo. # gdal
@echo. LIBS += -L"%topdir%lib/install/gdal-%GDAL_VER%/debug/lib"
@echo.
@echo. # vtk
if "%DEBUG_LEAKS%"=="YES" (
@echo. LIBS += -L"%topdir%lib/install/vtk-%VTK_VER%/debug-vtk-leaks/lib"
) else (
@echo. LIBS += -L"%topdir%lib/install/vtk-%VTK_VER%/debug/lib"
)
@echo.
@echo. # cgnslib
@echo. LIBS += -L"%topdir%lib/install/cgnslib-%CGNSLIB_VER%/debug/lib"
@echo.
@echo. # iriclib
@echo. LIBS += -L"%topdir%lib/install/iriclib-%IRICLIB_VER:~0,7%/debug/lib"
@echo.
@echo. # Qwt
@echo. LIBS += -L"%topdir%lib/install/qwt-%QWT_VER%/lib"
@echo.
@echo. # proj.4
@echo. LIBS += -L"%topdir%lib/install/proj-%PROJ_VER%/release/lib"
@echo.
@echo. # shapefile
@echo. LIBS += -L"%topdir%lib/install/shapelib-%SHAPELIB_VER%/debug"
@echo.
@echo. # hdf5
@echo. LIBS += -L"%topdir%lib/install/hdf5-%HDF5_VER%/debug/lib"
@echo.
@echo. # netcdf
@echo. LIBS += -L"%topdir%lib/install/netcdf-%NETCDF_VER%/debug/lib"
@echo.
@echo. # geos
@echo. LIBS += -L"%topdir%lib/install/geos-%GEOS_VER%/debug/lib"
@echo.
@echo. # yaml-cpp
@echo. LIBS += -L"%topdir%lib/install/yaml-cpp-%YAML_CPP_VER%/debug/lib"
@echo.
@echo. # udunits
@echo. LIBS += -L"%topdir%lib/install/udunits-%UDUNITS_VER%/debug/lib"
@echo.
@echo. # libpng
@echo. LIBS += -L"%topdir%lib/install/libpng-%LIBPNG_VER%/debug/lib"
@echo.}
@echo.else {
@echo. # gdal
@echo. LIBS += -L"%topdir%lib/install/gdal-%GDAL_VER%/release/lib"
@echo.
@echo. # vtk
@echo. LIBS += -L"%topdir%lib/install/vtk-%VTK_VER%/release/lib"
@echo.
@echo. # cgnslib
@echo. LIBS += -L"%topdir%lib/install/cgnslib-%CGNSLIB_VER%/release/lib"
@echo.
@echo. # iriclib
@echo. LIBS += -L"%topdir%lib/install/iriclib-%IRICLIB_VER:~0,7%/release/lib"
@echo.
@echo. # Qwt
@echo. LIBS += -L"%topdir%lib/install/qwt-%QWT_VER%/lib"
@echo.
@echo. # proj.4
@echo. LIBS += -L"%topdir%lib/install/proj-%PROJ_VER%/release/lib"
@echo.
@echo. # shapefile
@echo. LIBS += -L"%topdir%lib/install/shapelib-%SHAPELIB_VER%/release"
@echo.
@echo. # hdf5
@echo. LIBS += -L"%topdir%lib/install/hdf5-%HDF5_VER%/release/lib"
@echo.
@echo. # netcdf
@echo. LIBS += -L"%topdir%lib/install/netcdf-%NETCDF_VER%/release/lib"
@echo.
@echo. # geos
@echo. LIBS += -L"%topdir%lib/install/geos-%GEOS_VER%/release/lib"
@echo.
@echo. # yaml-cpp
@echo. LIBS += -L"%topdir%lib/install/yaml-cpp-%YAML_CPP_VER%/release/lib"
@echo.
@echo. # udunits
@echo. LIBS += -L"%topdir%lib/install/udunits-%UDUNITS_VER%/release/lib"
@echo.
@echo. # libpng
@echo. LIBS += -L"%topdir%lib/install/libpng-%LIBPNG_VER%/release/lib"
@echo.}
@echo.
@echo.INCLUDEPATH += .
@echo.
@echo.# gdal
@echo.INCLUDEPATH += "%topdir%lib/install/gdal-%GDAL_VER%/debug/include"
@echo.
@echo.# vtk
if "%DEBUG_LEAKS%"=="YES" (
@echo.INCLUDEPATH += "%topdir%lib/install/vtk-%VTK_VER%/debug-vtk-leaks/include/vtk-%VTK_MAJ_MIN%"
) else (
@echo.INCLUDEPATH += "%topdir%lib/install/vtk-%VTK_VER%/debug/include/vtk-%VTK_MAJ_MIN%"
)
@echo.
@echo.# hdf5
@echo.INCLUDEPATH += "%topdir%lib/install/hdf5-%HDF5_VER%/release/include"
@echo.
@echo.# cgnslib
if "%CGNS_ADF%"=="YES" (
@echo.INCLUDEPATH += "%topdir%lib/install/cgnslib-adf-%CGNSLIB_VER%/debug/include"
) else (
@echo.INCLUDEPATH += "%topdir%lib/install/cgnslib-%CGNSLIB_VER%/debug/include"
)
@echo.
@echo.# iriclib
if "%CGNS_ADF%"=="YES" (
@echo.INCLUDEPATH += "%topdir%lib/install/iriclib-adf-%IRICLIB_VER%/debug/include"
) else (
@echo.INCLUDEPATH += "%topdir%lib/install/iriclib-%IRICLIB_VER:~0,7%/debug/include"
)
@echo.
@echo.# Qwt
@echo.INCLUDEPATH += "%topdir%lib/install/qwt-%QWT_VER%/include"
@echo.
@echo.# shapelib
@echo.INCLUDEPATH += "%topdir%lib/install/shapelib-%SHAPELIB_VER%/release"
@echo.
@echo.# poco
@echo.LIBS += -L"%topdir%lib/install/poco-%POCO_VER%/lib"
@echo.INCLUDEPATH += "%topdir%lib/install/poco-%POCO_VER%/include"
@echo.
@echo.# proj.4
@echo.INCLUDEPATH += "%topdir%lib/install/proj-%PROJ_VER%/release/include"
@echo.
@echo.# netcdf
@echo.INCLUDEPATH += "%topdir%lib/install/netcdf-%NETCDF_VER%/release/include"
@echo.
@echo.# geos
@echo.INCLUDEPATH += "%topdir%lib/install/geos-%GEOS_VER%/release/include"
@echo.
@echo.# yaml-cpp
@echo.INCLUDEPATH += "%topdir%lib/install/yaml-cpp-%YAML_CPP_VER%/release/include"
@echo.
@echo.# udunits
@echo.INCLUDEPATH += "%topdir%lib/install/udunits-%UDUNITS_VER%/release/include"
@echo.
@echo.# libpng
@echo.INCLUDEPATH += "%topdir%lib/install/libpng-%LIBPNG_VER%/release/include"
@echo.
@echo.# boost
if "%APPVEYOR_BUILD_FOLDER%"=="" (
@echo.INCLUDEPATH += "%topdir%lib/src/boost-%BOOST_VER%"
) else (
@echo.INCLUDEPATH += "C:/Libraries/boost_%BOOST_UVER%"
)
@echo.
@echo.#internal libs
@echo.INCLUDEPATH += "$$PWD/libs"
@echo.
@echo.CONFIG += c++11
@echo.
@echo.target.path = /usr/local/iRIC
@echo.INSTALLS += target
@echo.
@echo.VTK_MAJOR_VERSION = %VTK_MAJOR_VERSION%
@echo.VTK_MINOR_VERSION = %VTK_MINOR_VERSION%
@echo.
@echo.VTK_MAJ_MIN = $${VTK_MAJOR_VERSION}.$${VTK_MINOR_VERSION}
endlocal