Skip to content

Commit

Permalink
Added Makefile.am and entries in configure.in for wfs provider/plugin
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5745 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Sep 1, 2006
1 parent d42588f commit 67df56e
Show file tree
Hide file tree
Showing 5 changed files with 102 additions and 2 deletions.
2 changes: 2 additions & 0 deletions configure.in
Expand Up @@ -499,13 +499,15 @@ AC_CONFIG_FILES([
src/plugins/north_arrow/Makefile
src/plugins/scale_bar/Makefile
src/plugins/spit/Makefile
src/plugins/wfs/Makefile
src/providers/Makefile
src/providers/delimitedtext/Makefile
src/providers/gpx/Makefile
src/providers/grass/Makefile
src/providers/ogr/Makefile
src/providers/postgres/Makefile
src/providers/wms/Makefile
src/providers/wfs/Makefile
src/raster/Makefile
src/ui/Makefile
src/widgets/Makefile
Expand Down
3 changes: 2 additions & 1 deletion src/plugins/Makefile.am
Expand Up @@ -23,7 +23,8 @@ SUBDIRS = $(GEOPROCESSING) \
grid_maker \
north_arrow \
copyright_label \
scale_bar
scale_bar \
wfs

EXTRA_DIST = \
plugin_builder.pl \
Expand Down
78 changes: 78 additions & 0 deletions src/plugins/wfs/Makefile.am
@@ -0,0 +1,78 @@
# Copyright (C) 2003 Gary Sherman <sherman at mrcc.com>
# and 2006 Tim Sutton <tim@linfiniti.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.
#
# $Id: Makefile.am 5198 2006-04-06 14:35:09Z timlinux $

#qgswfsplugin below to be replaced with the name of the plugin

##
## Legacy support for pkgdatapath - you are encouraged to use
## Qt4.x resource files where possible rather!
##
if !HAVE_QTMAC
PKGDATAPATH=-DPKGDATAPATH=\"$(pkgdatadir)\"
endif

plugindir = ${pkglibdir}

#for plugin so
plugin_LTLIBRARIES = wfsplugin.la

## For Qt4 intermerdiary meta object compiler files
%.moc.cpp: %.h
$(MOC) -o $@ $<

## For Qt4 User Interface Files
ui_%.h: %.ui
$(UIC) -o $@ $<

## For Qt4 Resource Files
%.qrc.cpp: %.qrc
$(RCC) -o $@ $<

##
## For plugin lib
##

wfsplugin_la_SOURCES = qgswfsplugin.cpp \
qgswfssourceselect.cpp \
$(plugin_UI)\
$(plugin_MOC)

plugin_MOC = qgswfsplugin.moc.cpp \
qgswfssourceselect.moc.cpp

plugin_UI = ui_qgswfssourceselectbase.h

plugin_UIC = qgswfssourceselectbase.u

BUILT_SOURCES = $(plugin_MOC) $(plugin_UI)

wfsplugin_la_LIBADD = $(QT_LDADD) \
$(GDAL_LDADD) \
../../core/libqgis_core.la \
../../gui/libqgis_gui.la
wfsplugin_la_CFLAGS = $(CFLAGS) $(EXTRA_CFLAGS) $(DEBUG_QGIS)
wfsplugin_la_CXXFLAGS = $(CXXFLAGS) \
$(EXTRA_CXXFLAGS) \
$(QT_CXXFLAGS) \
$(DEBUG_QGIS) \
$(GDAL_CFLAGS) \
$(GEOS_CFLAGS) \
-I../../core \
-I../../ui \
-I../../gui \
-I../../raster \
-I../../../include/qgis \
-I../../providers/wfs \
-I../../widgets/projectionselector

wfsplugin_la_LDFLAGS = -avoid-version -module
2 changes: 1 addition & 1 deletion src/providers/Makefile.am
Expand Up @@ -6,4 +6,4 @@ if HAVE_GRASS
GRASS = grass
endif

SUBDIRS = ogr $(POSTGRESQL) $(GRASS) delimitedtext gpx wms
SUBDIRS = ogr $(POSTGRESQL) $(GRASS) delimitedtext gpx wms wfs
19 changes: 19 additions & 0 deletions src/providers/wfs/Makefile.am
@@ -0,0 +1,19 @@
INCLUDES = -I../../core/ -I../../gui/ -I../../ui

%.moc.cpp: %.h
$(MOC) -o $@ $<

wfsprovider_MOC = qgshttptransaction.moc.cpp

plugindir = ${pkglibdir}
plugin_LTLIBRARIES = wfsprovider.la

wfsprovider_la_SOURCES = qgswfsprovider.cpp

BUILT_SOURCES = $(wfsprovider_MOC)

wfsprovider_la_LIBADD = $(QT_LDADD) $(GDAL_LIB) $(GEOS_LDADD) ../../gui/libqgis_gui.la ../../core/libqgis_core.la
wfsprovider_la_LDFLAGS = -avoid-version -module
wfsprovider_la_CXXFLAGS = $(GDAL_CFLAGS) $(EXTRA_CXXFLAGS) $(QT_CXXFLAGS) $(DEBUG_QGIS) $(GEOS_CFLAGS)

CLEANFILES = $(BUILT_SOURCES)

0 comments on commit 67df56e

Please sign in to comment.