~ubuntu-branches/ubuntu/quantal/qgis/quantal

« back to all changes in this revision

Viewing changes to src/gui/Makefile.am

  • Committer: Bazaar Package Importer
  • Author(s): William Grant
  • Date: 2007-05-06 13:42:32 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20070506134232-pyli6t388w5asd8x
Tags: 0.8.0-3ubuntu1
* Merge from Debian unstable. Remaining Ubuntu changes:
  - debian/rules, debian/qgis.install, debian/qgis.dirs debian/qgis.desktop:
    Add and install .desktop.
* debian/qgis.desktop: Remove Applications category; it's not real.
* Modify Maintainer value to match Debian-Maintainer-Field Spec

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Copyright (C) 2003 Gary Sherman <sherman at mrcc.com>
 
2
#  
 
3
# This file is free software; as a special exception the author gives
 
4
# unlimited permission to copy and/or distribute it, with or without 
 
5
# modifications, as long as this notice is preserved.
 
6
 
7
# This program is distributed in the hope that it will be useful, but
 
8
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
 
9
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
10
 
 
11
##
 
12
## ----------------------------------------------------------------------
 
13
##        Initial setup 
 
14
## ----------------------------------------------------------------------
 
15
##
 
16
 
 
17
if !HAVE_QTMAC
 
18
PREFIX=-DPREFIX=\"$(prefix)\"
 
19
PLUGINPATH=-DPLUGINPATH=\"$(pkglibdir)\"
 
20
PKGDATAPATH=-DPKGDATAPATH=\"$(pkgdatadir)\"
 
21
endif
 
22
 
 
23
%.moc.cpp: %.h
 
24
        $(MOC) -o $@ $<
 
25
 
 
26
##
 
27
## ----------------------------------------------------------------------
 
28
##      Define Targets
 
29
## ----------------------------------------------------------------------
 
30
##
 
31
if HAVE_QTMAC
 
32
## Qt/Mac binary must be in MacOS directory within bundle, not in bin subdirectory
 
33
## (configure ensures that prefix ends in qgis.app/Contents/MacOS)
 
34
macbindir = $(exec_prefix)
 
35
macbin_PROGRAMS = qgis
 
36
else
 
37
bin_PROGRAMS = qgis
 
38
endif
 
39
 
 
40
lib_LTLIBRARIES = libqgis_gui.la
 
41
 
 
42
 
 
43
##
 
44
## ----------------------------------------------------------------------
 
45
##         QGIS Desktop Application
 
46
## ----------------------------------------------------------------------
 
47
##
 
48
 
 
49
qgis_SOURCES =  main.cpp
 
50
 
 
51
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 
 
52
if HAVE_QTMAC
 
53
qgis_LDFLAGS = -framework ApplicationServices
 
54
else
 
55
qgis_LDFLAGS = -rdynamic
 
56
endif
 
57
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/
 
58
 
 
59
 
 
60
##
 
61
## ----------------------------------------------------------------------
 
62
##         libqgis_gui-gui stuff starts here
 
63
## ----------------------------------------------------------------------
 
64
##
 
65
 
 
66
libqgis_guiHEADERS =                                                    \
 
67
                qgisapp.h                                                       \
 
68
                qgisgui.h                                               \
 
69
                qgisiface.h                                     \
 
70
                qgisinterface.h \
 
71
                qgsabout.h                              \
 
72
                qgsaddattrdialog.h                              \
 
73
                qgsattributeaction.h            \
 
74
                qgsattributeactiondialog.h                      \
 
75
                qgsattributedialog.h                            \
 
76
                qgsattributetabledisplay.h                      \
 
77
                qgsattributetable.h                             \
 
78
                qgsbookmarks.h                  \
 
79
                qgsclipboard.h                          \
 
80
                qgscolorbutton.h                                \
 
81
                qgscontinuouscolordialog.h                              \
 
82
                qgscontinuouscolorrenderer.h                    \
 
83
                qgscoordinatetransform.h        \
 
84
                qgscsexception.h                                \
 
85
                qgscustomprojectiondialog.h                     \
 
86
                qgscursors.h                    \
 
87
                qgsdelattrdialog.h                              \
 
88
                qgsencodingfiledialog.h                         \
 
89
                qgsfillstylewidget.h                            \
 
90
                qgsgeomtypedialog.h                             \
 
91
                qgsgraduatedsymbolrenderer.h                    \
 
92
                qgsgraduatedsymboldialog.h                              \
 
93
                qgshelpviewer.h                                 \
 
94
                qgsidentifyresults.h                            \
 
95
                qgslabeldialog.h                                \
 
96
                qgslabel.h                                                      \
 
97
                qgslayerprojectionselector.h \
 
98
                qgslinestyledialog.h                            \
 
99
                qgslinestylewidget.h                    \
 
100
                qgsludialog.h                                   \
 
101
                qgsmapcanvas.h                                          \
 
102
                qgsmapcanvasitem.h                      \
 
103
                qgsmapcanvasmap.h                       \
 
104
                qgsmaplayer.h                                           \
 
105
                qgsmaplayerinterface.h                          \
 
106
                qgsmaplayerregistry.h                           \
 
107
                qgsmaplayerset.h                        \
 
108
                qgsmapoverviewcanvas.h                          \
 
109
                qgsmapserverexport.h                            \
 
110
                qgsmaptool.h                                            \
 
111
                qgsmaptoolcapture.h                             \
 
112
                qgsmaptoolidentify.h                    \
 
113
                qgsmaptoolpan.h                                 \
 
114
                qgsmaptoolselect.h                              \
 
115
                qgsmaptoolvertexedit.h                  \
 
116
                qgsmaptoolzoom.h                                        \
 
117
                qgsmaprender.h                          \
 
118
                qgsmarkerdialog.h                               \
 
119
                qgsmeasure.h                                    \
 
120
                qgsmessageviewer.h                                      \
 
121
                qgsnewhttpconnection.h                          \
 
122
                qgsoptions.h                                    \
 
123
                qgspastetransformations.h                       \
 
124
                qgspatterndialog.h                              \
 
125
                qgspluginmanager.h                              \
 
126
                qgspluginmetadata.h                             \
 
127
                qgspointstylewidget.h                           \
 
128
                qgsproject.h                                    \
 
129
                qgsprojectproperties.h                  \
 
130
                qgsrasterlayerproperties.h              \
 
131
                qgsrubberband.h                                         \
 
132
                qgsrunprocess.h                                         \
 
133
                qgssearchquerybuilder.h                 \
 
134
                qgsserversourceselect.h                         \
 
135
                qgssinglesymboldialog.h                         \
 
136
                qgssinglesymbolrenderer.h                       \
 
137
                qgsspatialrefsys.h                                      \
 
138
                qgsuniquevaluerenderer.h                                \
 
139
                qgsuniquevaluedialog.h                                  \
 
140
                qgsvectorfilewriter.h                           \
 
141
                qgsvectorlayer.h                                                \
 
142
                qgsvectorlayerproperties.h                      \
 
143
                qgsvertexmarker.h
 
144
 
 
145
## files generated from MOC
 
146
libqgis_gui_la_MOC =                                                    \
 
147
                qgisapp.moc.cpp                                         \
 
148
                qgisinterface.moc.cpp   \
 
149
                qgisiface.moc.cpp \
 
150
                qgsabout.moc.cpp                \
 
151
                qgsaddattrdialog.moc.cpp                \
 
152
                qgsattributeactiondialog.moc.cpp        \
 
153
                qgsattributedialog.moc.cpp              \
 
154
                qgsattributetabledisplay.moc.cpp                \
 
155
                qgsattributetable.moc.cpp               \
 
156
                qgsbookmarks.moc.cpp            \
 
157
                qgscontinuouscolordialog.moc.cpp                \
 
158
                qgscoordinatetransform.moc.cpp          \
 
159
                qgscustomprojectiondialog.moc.cpp       \
 
160
                qgsdelattrdialog.moc.cpp                \
 
161
                qgsencodingfiledialog.moc.cpp           \
 
162
                qgsfillstylewidget.moc.cpp                      \
 
163
                qgsgeomtypedialog.moc.cpp               \
 
164
                qgsgraduatedsymboldialog.moc.cpp                        \
 
165
                qgshelpviewer.moc.cpp                   \
 
166
                qgsidentifyresults.moc.cpp              \
 
167
                qgslabeldialog.moc.cpp                  \
 
168
                qgslayerprojectionselector.moc.cpp \
 
169
                qgslinestyledialog.moc.cpp              \
 
170
                qgslinestylewidget.moc.cpp                      \
 
171
                qgsludialog.moc.cpp                     \
 
172
                qgsmapcanvas.moc.cpp                            \
 
173
                qgsmapcanvasitem.moc.cpp                        \
 
174
                qgsmapcanvasmap.moc.cpp                 \
 
175
                qgsmaplayerinterface.moc.cpp            \
 
176
                qgsmaplayer.moc.cpp                                     \
 
177
                qgsmaplayerregistry.moc.cpp                     \
 
178
                qgsmapoverviewcanvas.moc.cpp            \
 
179
                qgsmaprender.moc.cpp                    \
 
180
                qgsmapserverexport.moc.cpp              \
 
181
                qgsmaptoolidentify.moc.cpp              \
 
182
                qgsmarkerdialog.moc.cpp                 \
 
183
                qgsmeasure.moc.cpp                      \
 
184
                qgsnewhttpconnection.moc.cpp            \
 
185
                qgsoptions.moc.cpp                      \
 
186
                qgspastetransformations.moc.cpp         \
 
187
                qgspatterndialog.moc.cpp                \
 
188
                qgspluginmanager.moc.cpp                \
 
189
                qgspointstylewidget.moc.cpp                     \
 
190
                qgsprojectproperties.moc.cpp            \
 
191
                qgsrasterlayerproperties.moc.cpp        \
 
192
                qgsrunprocess.moc.cpp                           \
 
193
                qgssearchquerybuilder.moc.cpp   \
 
194
                qgsserversourceselect.moc.cpp           \
 
195
                qgssinglesymboldialog.moc.cpp                   \
 
196
                qgsuniquevaluedialog.moc.cpp                    \
 
197
                qgsvectorlayer.moc.cpp \
 
198
                qgsvectorlayerproperties.moc.cpp        
 
199
 
 
200
libqgis_gui_la_SOURCES =                                                \
 
201
                qgisapp.cpp                                                     \
 
202
                qgisiface.cpp                   \
 
203
                qgisinterface.cpp       \
 
204
                qgsabout.cpp            \
 
205
                qgsaddattrdialog.cpp            \
 
206
                qgsattributeaction.cpp                          \
 
207
                qgsattributeactiondialog.cpp    \
 
208
                qgsattributedialog.cpp          \
 
209
                qgsattributetable.cpp           \
 
210
                qgsattributetabledisplay.cpp    \
 
211
                qgsbookmarks.cpp        \
 
212
                qgsclipboard.cpp                \
 
213
                qgscolorbutton.cpp              \
 
214
                qgscontinuouscolordialog.cpp            \
 
215
                qgscoordinatetransform.cpp                      \
 
216
                qgscontinuouscolorrenderer.cpp          \
 
217
                qgscursors.cpp          \
 
218
                qgscustomprojectiondialog.cpp                   \
 
219
                qgsdelattrdialog.cpp            \
 
220
                qgsencodingfiledialog.cpp       \
 
221
                qgsfillstylewidget.cpp                          \
 
222
                qgsgeomtypedialog.cpp           \
 
223
                qgsgraduatedsymbolrenderer.cpp                  \
 
224
                qgsgraduatedsymboldialog.cpp            \
 
225
                qgshelpviewer.cpp               \
 
226
                qgsidentifyresults.cpp          \
 
227
                qgslabel.cpp                                            \
 
228
                qgslabeldialog.cpp              \
 
229
                qgslayerprojectionselector.cpp \
 
230
                qgslinestyledialog.cpp          \
 
231
                qgslinestylewidget.cpp                          \
 
232
                qgsludialog.cpp                 \
 
233
                qgsmapcanvas.cpp                                        \
 
234
                qgsmapcanvasitem.cpp                            \
 
235
                qgsmapcanvasmap.cpp                             \
 
236
                qgsmaplayer.cpp                                         \
 
237
                qgsmaplayerregistry.cpp                         \
 
238
                qgsmaplayerset.cpp                      \
 
239
                qgsmapoverviewcanvas.cpp                        \
 
240
                qgsmapserverexport.cpp          \
 
241
                qgsmaptool.cpp                  \
 
242
                qgsmaptoolcapture.cpp                   \
 
243
                qgsmaptoolidentify.cpp          \
 
244
                qgsmaptoolpan.cpp                               \
 
245
                qgsmaptoolselect.cpp                    \
 
246
                qgsmaptoolvertexedit.cpp                \
 
247
                qgsmaptoolzoom.cpp                      \
 
248
                qgsmaprender.cpp                        \
 
249
                qgsmarkerdialog.cpp             \
 
250
                qgsmeasure.cpp                  \
 
251
                qgsmessageviewer.cpp                            \
 
252
                qgsnewhttpconnection.cpp        \
 
253
                qgsoptions.cpp                  \
 
254
                qgspastetransformations.cpp     \
 
255
                qgspatterndialog.cpp            \
 
256
                qgspluginmanager.cpp            \
 
257
                qgspluginmetadata.cpp           \
 
258
                qgspointstylewidget.cpp                         \
 
259
                qgsproject.cpp                  \
 
260
                qgsprojectproperties.cpp        \
 
261
                qgsrasterlayerproperties.cpp    \
 
262
                qgsrubberband.cpp                                       \
 
263
                qgsrunprocess.cpp                                       \
 
264
                qgssearchquerybuilder.cpp               \
 
265
                qgsserversourceselect.cpp       \
 
266
                qgssinglesymboldialog.cpp       \
 
267
                qgssinglesymbolrenderer.cpp                     \
 
268
                qgsspatialrefsys.cpp                            \
 
269
                qgsuniquevaluerenderer.cpp                      \
 
270
                qgsuniquevaluedialog.cpp                \
 
271
                qgsvectorfilewriter.cpp                         \
 
272
                qgsvectorlayer.cpp \
 
273
                qgsvectorlayerproperties.cpp            \
 
274
                qgsvertexmarker.cpp
 
275
 
 
276
if HAVE_POSTGRESQL
 
277
postgresHEADERS = qgsdbsourceselect.h           \
 
278
                  qgsnewconnection.h            \
 
279
                  qgspgquerybuilder.h
 
280
 
 
281
postgresSOURCES = qgsdbsourceselect.cpp         \
 
282
                  qgsnewconnection.cpp          \
 
283
                  qgspgquerybuilder.cpp
 
284
 
 
285
postgresMOC = qgsdbsourceselect.moc.cpp         \
 
286
                  qgsnewconnection.moc.cpp              \
 
287
                  qgspgquerybuilder.moc.cpp
 
288
                  
 
289
postgresLIBHEADERS = qgspgutil.h
 
290
postgresLIBSOURCES = qgspgutil.cpp
 
291
 
 
292
libqgis_gui_la_SOURCES += $(postgresSOURCES) $(postgresLIBSOURCES) $(postgresMOC)
 
293
endif
 
294
 
 
295
AM_YFLAGS       = -d
 
296
 
 
297
nodist_libqgis_gui_la_SOURCES = $(libqgis_gui_la_MOC)
 
298
 
 
299
BUILT_SOURCES = $(libqgis_gui_la_MOC) $(qgis_YACC)  $(postgresMOC)
 
300
 
 
301
 
 
302
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
 
303
libqgis_gui_la_LDFLAGS = -version-info $(INTERFACE_VERSION)
 
304
 
 
305
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/
 
306
 
 
307
##
 
308
## ----------------------------------------------------------------------
 
309
##         additional files that need to be installed go here
 
310
## ----------------------------------------------------------------------
 
311
##
 
312
pkginclude_HEADERS = $(libqgis_guiHEADERS) 
 
313
 
 
314
pkginclude_dir = $(includedir)/qgis
 
315
 
 
316
 
 
317
CLEANFILES = $(BUILT_SOURCES)
 
318
 
 
319
EXTRA_DIST = $(libqgis_gui_la_MOC)
 
320
 
 
321
if HAVE_POSTGRESQL
 
322
 
 
323
EXTRA_DIST += $(postgresSOURCES) \
 
324
                $(postgresLIBSOURCES) 
 
325
 
 
326
pkginclude_HEADERS += $(postgresHEADERS) \
 
327
                $(postgresLIBHEADERS) \
 
328
                $(libqgisHEADERS) 
 
329
endif
 
330