-
Notifications
You must be signed in to change notification settings - Fork 4
/
create-paths-pri.sh
executable file
·131 lines (131 loc) · 4.13 KB
/
create-paths-pri.sh
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
#!/bin/bash
topdir=$(pwd)
. ./versions.sh
VTK_MAJOR=$(echo ${VTK_VER} | cut -d '.' -f 1)
VTK_MINOR=$(echo ${VTK_VER} | cut -d '.' -f 2)
echo "CONFIG(debug, debug|release) {"
echo " # gdal"
echo " LIBS += -L\"${topdir}/lib/install/gdal-${GDAL_VER}/lib\""
echo ""
echo " # vtk"
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 (currently only release is built)"
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 "else {"
echo " # gdal"
echo " LIBS += -L\"${topdir}/lib/install/gdal-${GDAL_VER}/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 ""
echo "INCLUDEPATH += ."
echo ""
echo "# gdal"
echo "INCLUDEPATH +=\"${topdir}/lib/install/gdal-${GDAL_VER}/include\""
echo ""
echo "# vtk"
echo "INCLUDEPATH +=\"${topdir}/lib/install/vtk-${VTK_VER}/debug/include/vtk-${VTK_MAJOR}.${VTK_MINOR}\""
echo ""
echo "# hdf5"
echo "INCLUDEPATH +=\"${topdir}/lib/install/hdf5-${HDF5_VER}/release/include\""
echo ""
echo "# cgnslib"
echo "INCLUDEPATH +=\"${topdir}/lib/install/cgnslib-${CGNSLIB_VER}/debug/include\""
echo ""
echo "# iriclib"
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/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 += -L\"${topdir}/lib/install/udunits-${UDUNITS_VER}/release/include\""
echo ""
echo "# boost"
echo "INCLUDEPATH +=\"${topdir}/lib/src/boost-${BOOST_VER}\""
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_MAJ_MIN=${VTK_MAJOR}.${VTK_MINOR}"
echo ""