Corrected the automake stuff in the wfs provider. Note that wfs does not get built without hacking plugins/Makefile.am and providers/Makefile.am to not disturb the build process of the 'stable' qgis version

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5757 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
mhugent 2006-09-03 16:35:41 +00:00
parent 07a3d8ab93
commit 37cff7e7c6
3 changed files with 15 additions and 9 deletions

View File

@ -114,11 +114,15 @@ QgsProviderRegistry::QgsProviderRegistry(QString pluginPath)
// get the description and the key for the provider plugin
isprovider_t *isProvider = (isprovider_t *) myLib->resolve("isProvider");
if (isProvider)
//MH: Added a further test to detect non-provider plugins linked to provider plugins.
//Only pure provider plugins have 'type' not defined
isprovider_t *hasType = (isprovider_t *) myLib->resolve("type");
if (!hasType && isProvider)
{
// check to see if this is a provider plugin
if (isProvider())
{
{
// looks like a provider. get the key and description
description_t *pDesc = (description_t *) myLib->resolve("description");
providerkey_t *pKey = (providerkey_t *) myLib->resolve("providerKey");

View File

@ -59,7 +59,9 @@ BUILT_SOURCES = $(plugin_MOC) $(plugin_UI)
wfsplugin_la_LIBADD = $(QT_LDADD) \
$(GDAL_LDADD) \
../../core/libqgis_core.la \
../../gui/libqgis_gui.la
../../gui/libqgis_gui.la \
../../providers/wfs/libwfsprovider.la
wfsplugin_la_CFLAGS = $(CFLAGS) $(EXTRA_CFLAGS) $(DEBUG_QGIS)
wfsplugin_la_CXXFLAGS = $(CXXFLAGS) \
$(EXTRA_CXXFLAGS) \

View File

@ -3,17 +3,17 @@ INCLUDES = -I../../core/ -I../../gui/ -I../../ui
%.moc.cpp: %.h
$(MOC) -o $@ $<
wfsprovider_MOC = qgshttptransaction.moc.cpp
libwfsprovider_MOC = qgshttptransaction.moc.cpp
plugindir = ${pkglibdir}
plugin_LTLIBRARIES = wfsprovider.la
plugin_LTLIBRARIES = libwfsprovider.la
wfsprovider_la_SOURCES = qgswfsprovider.cpp
libwfsprovider_la_SOURCES = qgswfsprovider.cpp qgshttptransaction.cpp $(libwfsprovider_MOC)
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)
libwfsprovider_la_LIBADD = $(QT_LDADD) $(GDAL_LIB) $(GEOS_LDADD) ../../gui/libqgis_gui.la ../../core/libqgis_core.la
libwfsprovider_la_LDFLAGS = -avoid-version -module
libwfsprovider_la_CXXFLAGS = $(GDAL_CFLAGS) $(EXTRA_CXXFLAGS) $(QT_CXXFLAGS) $(DEBUG_QGIS) $(GEOS_CFLAGS)
CLEANFILES = $(BUILT_SOURCES)