/
Makefile.am
295 lines (261 loc) · 8.78 KB
/
Makefile.am
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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
# Copyright (C) 2003 Gary Sherman <sherman at mrcc.com>
#
# This file is free software; as a special exception the author gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
##
## ----------------------------------------------------------------------
## Initial setup
## ----------------------------------------------------------------------
##
if !HAVE_QTMAC
PREFIX=-DPREFIX=\"$(prefix)\"
PLUGINPATH=-DPLUGINPATH=\"$(pkglibdir)\"
PKGDATAPATH=-DPKGDATAPATH=\"$(pkgdatadir)\"
endif
%.moc.cpp: %.h
$(MOC) -o $@ $<
##
## ----------------------------------------------------------------------
## Define Targets
## ----------------------------------------------------------------------
##
if HAVE_QTMAC
## Qt/Mac binary must be in MacOS directory within bundle, not in bin subdirectory
## (configure ensures that prefix ends in qgis.app/Contents/MacOS)
macbindir = $(exec_prefix)
macbin_PROGRAMS = qgis
else
bin_PROGRAMS = qgis
endif
lib_LTLIBRARIES = libqgis_gui.la
##
## ----------------------------------------------------------------------
## QGIS Desktop Application
## ----------------------------------------------------------------------
##
qgis_SOURCES = main.cpp
qgis_LDADD = ../raster/libqgis_raster.la ../legend/libqgis_legend.la ../composer/libqgis_composer.la $(LDADD) $(QT_LDADD) $(GDAL_LDADD) $(PG_LIB) $(GEOS_LDADD) $(PYTHON_LIB) -lproj -lsqlite3 libqgis_gui.la ../core/libqgis_core.la
if HAVE_QTMAC
qgis_LDFLAGS = -framework ApplicationServices
else
qgis_LDFLAGS = -rdynamic
endif
qgis_CXXFLAGS = $(PREFIX) $(PLUGINPATH) $(PKGDATAPATH) $(GDAL_CFLAGS) $(CXXFLAGS) $(EXTRA_CXXFLAGS) $(QT_CXXFLAGS) $(PG_INC) $(DEBUG_QGIS) $(HAVE_PYTHON) $(GEOS_CFLAGS) $(PYTHON_INCLUDE_DIR) -I../ui/ -I../widgets/projectionselector/ -I../legend/ -I../raster/ -I../composer/ -I../core/ -I../plugins/
##
## ----------------------------------------------------------------------
## libqgis_gui-gui stuff starts here
## ----------------------------------------------------------------------
##
libqgis_guiHEADERS = \
qgisapp.h \
qgisiface.h \
qgisinterface.h \
qgsabout.h \
qgsaddattrdialog.h \
qgsadvancedattrsearch.h \
qgsattributeaction.h \
qgsattributeactiondialog.h \
qgsattributedialog.h \
qgsattributetabledisplay.h \
qgsattributetable.h \
qgsbookmarks.h \
qgsclipboard.h \
qgscontcoldialog.h \
qgscontinuouscolrenderer.h \
qgscsexception.h \
qgscoordinatetransform.h \
qgscustomprojectiondialog.h \
qgsdelattrdialog.h \
qgsencodingfiledialog.h \
qgsfillstylewidget.h \
qgsgeomtypedialog.h \
qgsgraduatedsymrenderer.h \
qgsgrasydialog.h \
qgshelpviewer.h \
qgsidentifyresults.h \
qgslabeldialog.h \
qgslabel.h \
qgslayerprojectionselector.h \
qgslinestyledialog.h \
qgsludialog.h \
qgsmapcanvas.h \
qgsmaplayer.h \
qgsmaplayerinterface.h \
qgsmaplayerregistry.h \
qgsmapoverviewcanvas.h \
qgsmapserverexport.h \
qgsmarkerdialog.h \
qgsmeasure.h \
qgsmessageviewer.h \
qgsnewhttpconnection.h \
qgsoptions.h \
qgspastetransformations.h \
qgspatterndialog.h \
qgspluginmanager.h \
qgspluginmetadata.h \
qgspointstylewidget.h \
qgsproject.h \
qgsprojectproperties.h \
qgsrangerenderitem.h \
qgsrasterlayerproperties.h \
qgsrubberband.h \
qgsrunprocess.h \
qgsserversourceselect.h \
qgssinglesymboldialog.h \
qgssinglesymbolrenderer.h \
qgsspatialrefsys.h \
qgsuniquevalrenderer.h \
qgsuvaldialog.h \
qgsvectorfilewriter.h \
qgsvectorlayerproperties.h
## files generated from MOC
libqgis_gui_la_MOC = \
qgisapp.moc.cpp \
qgisinterface.moc.cpp \
qgsabout.moc.cpp \
qgsaddattrdialog.moc.cpp \
qgsadvancedattrsearch.moc.cpp \
qgsattributeactiondialog.moc.cpp \
qgsattributedialog.moc.cpp \
qgsattributetabledisplay.moc.cpp \
qgsattributetable.moc.cpp \
qgsbookmarks.moc.cpp \
qgscontcoldialog.moc.cpp \
qgscoordinatetransform.moc.cpp \
qgscustomprojectiondialog.moc.cpp \
qgsdelattrdialog.moc.cpp \
qgsencodingfiledialog.moc.cpp \
qgsfillstylewidget.moc.cpp \
qgsgeomtypedialog.moc.cpp \
qgsgrasydialog.moc.cpp \
qgshelpviewer.moc.cpp \
qgsidentifyresults.moc.cpp \
qgslabeldialog.moc.cpp \
qgslayerprojectionselector.moc.cpp \
qgslinestyledialog.moc.cpp \
qgslinestylewidget.moc.cpp \
qgsludialog.moc.cpp \
qgsmapcanvas.moc.cpp \
qgsmaplayerinterface.moc.cpp \
qgsmaplayer.moc.cpp \
qgsmaplayerregistry.moc.cpp \
qgsmapoverviewcanvas.moc.cpp \
qgsmapserverexport.moc.cpp \
qgsmarkerdialog.moc.cpp \
qgsmeasure.moc.cpp \
qgsnewhttpconnection.moc.cpp \
qgsoptions.moc.cpp \
qgspastetransformations.moc.cpp \
qgspatterndialog.moc.cpp \
qgspluginmanager.moc.cpp \
qgspointstylewidget.moc.cpp \
qgsprojectproperties.moc.cpp \
qgsrasterlayerproperties.moc.cpp \
qgsrunprocess.moc.cpp \
qgsserversourceselect.moc.cpp \
qgssinglesymboldialog.moc.cpp \
qgsuvaldialog.moc.cpp \
qgsvectorlayer.moc.cpp \
qgsvectorlayerproperties.moc.cpp
libqgis_gui_la_SOURCES = \
qgisapp.cpp \
qgisiface.cpp \
qgisinterface.cpp \
qgsabout.cpp \
qgsaddattrdialog.cpp \
qgsadvancedattrsearch.cpp \
qgsattributeaction.cpp \
qgsattributeactiondialog.cpp \
qgsattributedialog.cpp \
qgsattributetable.cpp \
qgsattributetabledisplay.cpp \
qgsbookmarks.cpp \
qgsclipboard.cpp \
qgscontcoldialog.cpp \
qgscoordinatetransform.cpp \
qgscontinuouscolrenderer.cpp \
qgscustomprojectiondialog.cpp \
qgsdelattrdialog.cpp \
qgsencodingfiledialog.cpp \
qgsfillstylewidget.cpp \
qgsgeomtypedialog.cpp \
qgsgraduatedsymrenderer.cpp \
qgsgrasydialog.cpp \
qgshelpviewer.cpp \
qgsidentifyresults.cpp \
qgslabel.cpp \
qgslabeldialog.cpp \
qgslayerprojectionselector.cpp \
qgslinestyledialog.cpp \
qgslinestylewidget.cpp \
qgsludialog.cpp \
qgsmapcanvas.cpp \
qgsmaplayer.cpp \
qgsmaplayerregistry.cpp \
qgsmapoverviewcanvas.cpp \
qgsmapserverexport.cpp \
qgsmarkerdialog.cpp \
qgsmeasure.cpp \
qgsmessageviewer.cpp \
qgsnewhttpconnection.cpp \
qgsoptions.cpp \
qgspastetransformations.cpp \
qgspatterndialog.cpp \
qgspluginmanager.cpp \
qgspluginmetadata.cpp \
qgspointstylewidget.cpp \
qgsproject.cpp \
qgsprojectproperties.cpp \
qgsrasterlayerproperties.cpp \
qgsrubberband.cpp \
qgsrunprocess.cpp \
qgsserversourceselect.cpp \
qgssinglesymboldialog.cpp \
qgssinglesymbolrenderer.cpp \
qgsspatialrefsys.cpp \
qgsuniquevalrenderer.cpp \
qgsuvaldialog.cpp \
qgsvectorfilewriter.cpp \
qgsvectorlayer.cpp \
qgsvectorlayerproperties.cpp
if HAVE_POSTGRESQL
postgresHEADERS = qgsdbsourceselect.h \
qgsnewconnection.h \
qgspgquerybuilder.h
postgresSOURCES = qgsdbsourceselect.cpp \
qgsnewconnection.cpp \
qgspgquerybuilder.cpp
postgresMOC = qgsdbsourceselect.moc.cpp \
qgsnewconnection.moc.cpp \
qgspgquerybuilder.moc.cpp
postgresLIBHEADERS = qgspgutil.h
postgresLIBSOURCES = qgspgutil.cpp
libqgis_gui_la_SOURCES += $(postgresSOURCES) $(postgresLIBSOURCES) $(postgresMOC)
endif
AM_YFLAGS = -d
nodist_libqgis_gui_la_SOURCES = $(libqgis_gui_la_MOC)
BUILT_SOURCES = $(libqgis_gui_la_MOC) $(qgis_YACC) $(postgresMOC)
libqgis_gui_la_LIBADD = ../core/libqgis_core.la ../raster/libqgis_raster.la ../legend/libqgis_legend.la ../composer/libqgis_composer.la ../widgets/projectionselector/libqgsprojectionselector.la $(QT_LDADD) $(GEOS_LDADD) $(GDAL_LDADD) $(PYTHON_LIB) -lsqlite3
libqgis_gui_la_LDFLAGS = -version-info $(INTERFACE_VERSION)
libqgis_gui_la_CXXFLAGS = $(PREFIX) $(PLUGINPATH) $(PKGDATAPATH) $(GDAL_CFLAGS) $(CXXFLAGS) $(EXTRA_CXXFLAGS) $(QT_CXXFLAGS) $(PG_INC) $(DEBUG_QGIS) $(GEOS_CFLAGS) $(PYTHON_INCLUDE_DIR) $(HAVE_PYTHON) -I../ui/ -I../widgets/projectionselector/ -I../legend/ -I../raster/ -I../composer/ -I../core/ -I../plugins/
##
## ----------------------------------------------------------------------
## additional files that need to be installed go here
## ----------------------------------------------------------------------
##
pkginclude_HEADERS = $(qgisHEADERS)
pkginclude_dir = $(includedir)/qgis
CLEANFILES = $(BUILT_SOURCES)
EXTRA_DIST=
if HAVE_POSTGRESQL
EXTRA_DIST += $(postgresSOURCES) \
$(postgresLIBSOURCES)
pkginclude_HEADERS += $(postgresHEADERS) \
$(postgresLIBHEADERS) \
$(libqgisHEADERS)
endif