Skip to content

Commit

Permalink
Refactored libqgis into two roughly inequal parts.
Browse files Browse the repository at this point in the history
libqgis_core is intended to have non gui code
libqgis_gui is intended to have gui related code
Updated makefiles and code throughout in order for it to build with this new arrangemetn
Code in src/ will be moved into src/gui in a follow up commit



git-svn-id: http://svn.osgeo.org/qgis/trunk@4501 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Jan 8, 2006
1 parent bc934c6 commit ee30549
Show file tree
Hide file tree
Showing 26 changed files with 68 additions and 68 deletions.
4 changes: 2 additions & 2 deletions providers/delimitedtext/Makefile.am
@@ -1,14 +1,14 @@
## $Id$

INCLUDES = -I../../src
INCLUDES = -I../../src/core/ -I../../src/

plugindir = ${pkglibdir}
plugin_LTLIBRARIES = delimitedtextprovider.la

delimitedtextprovider_la_SOURCES = qgsdelimitedtextprovider.cpp


delimitedtextprovider_la_LIBADD = $(QT_LDADD) $(GDAL_LIB) $(GEOS_LDADD) ../../src/libqgis.la
delimitedtextprovider_la_LIBADD = $(QT_LDADD) $(GDAL_LIB) $(GEOS_LDADD) ../../src/libqgis_gui.la ../../src/core/libqgis_core.la
delimitedtextprovider_la_LDFLAGS = -avoid-version -module
delimitedtextprovider_la_CXXFLAGS = $(GDAL_CFLAGS) $(EXTRA_CXXFLAGS) $(QT_CXXFLAGS) $(DEBUG_QGIS) $(GEOS_CFLAGS)

Expand Down
10 changes: 5 additions & 5 deletions providers/delimitedtext/qgsdelimitedtextprovider.cpp
Expand Up @@ -33,11 +33,11 @@

#include <ogrsf_frmts.h>

#include "../../src/qgsdataprovider.h"
#include "../../src/qgsencodingfiledialog.h"
#include "../../src/qgsfeature.h"
#include "../../src/qgsfield.h"
#include "../../src/qgsrect.h"
#include "qgsdataprovider.h"
#include "qgsencodingfiledialog.h"
#include "qgsfeature.h"
#include "qgsfield.h"
#include "qgsrect.h"


#ifdef WIN32
Expand Down
2 changes: 1 addition & 1 deletion providers/delimitedtext/qgsdelimitedtextprovider.h
Expand Up @@ -17,7 +17,7 @@

/* $Id$ */

#include "../../src/qgsvectordataprovider.h"
#include "qgsvectordataprovider.h"


#include <map>
Expand Down
4 changes: 2 additions & 2 deletions providers/gpx/Makefile.am
Expand Up @@ -2,7 +2,7 @@

if HAVE_EXPAT

INCLUDES = -I../../src
INCLUDES = -I../../src/core

plugindir = ${pkglibdir}
plugin_LTLIBRARIES = gpxprovider.la
Expand All @@ -11,7 +11,7 @@ gpxprovider_la_SOURCES = qgsgpxprovider.cpp \
gpsdata.cpp


gpxprovider_la_LIBADD = $(QT_LDADD) $(GEOS_LDADD) ../../src/libqgis.la
gpxprovider_la_LIBADD = $(QT_LDADD) $(GEOS_LDADD) ../../src/core/libqgis_core.la
gpxprovider_la_LDFLAGS = -avoid-version -module
gpxprovider_la_CXXFLAGS = $(EXTRA_CXXFLAGS) $(QT_CXXFLAGS) $(DEBUG_QGIS) $(GEOS_CFLAGS) $(GDAL_CFLAGS)

Expand Down
2 changes: 1 addition & 1 deletion providers/gpx/gpsdata.h
Expand Up @@ -30,7 +30,7 @@
#include <qstring.h>
#include <qtextstream.h>

#include "../../src/qgsrect.h"
#include "qgsrect.h"


/** This is the parent class for all GPS data classes (except tracksegment).
Expand Down
10 changes: 5 additions & 5 deletions providers/gpx/qgsgpxprovider.cpp
Expand Up @@ -34,11 +34,11 @@
#include <qstringlist.h>
#include <qrect.h>

#include "../../src/qgis.h"
#include "../../src/qgsdataprovider.h"
#include "../../src/qgsfeature.h"
#include "../../src/qgsfield.h"
#include "../../src/qgsrect.h"
#include "qgis.h"
#include "qgsdataprovider.h"
#include "qgsfeature.h"
#include "qgsfield.h"
#include "qgsrect.h"
#include "qgsgpxprovider.h"
#include "gpsdata.h"

Expand Down
2 changes: 1 addition & 1 deletion providers/gpx/qgsgpxprovider.h
Expand Up @@ -19,7 +19,7 @@

#include <map>

#include "../../src/qgsvectordataprovider.h"
#include "qgsvectordataprovider.h"
#include "gpsdata.h"


Expand Down
4 changes: 2 additions & 2 deletions providers/grass/Makefile.am
Expand Up @@ -2,7 +2,7 @@
## $Id$
##

INCLUDES = -I../../src
INCLUDES = -I../../src/core

lib_LTLIBRARIES = libqgisgrass.la

Expand Down Expand Up @@ -30,7 +30,7 @@ libqgisgrass_la_SOURCES = qgsgrassprovider.cpp \
qgsgrass.cpp \
qgsgrass.h

libqgisgrass_la_LIBADD = $(QT_LDADD) $(GRASS_LIB) ../../src/libqgis.la
libqgisgrass_la_LIBADD = $(QT_LDADD) $(GRASS_LIB) ../../src/core/libqgis_core.la
libqgisgrass_la_LDFLAGS = -version-info $(INTERFACE_VERSION)
libqgisgrass_la_CXXFLAGS = $(CXXFLAGS) $(EXTRA_CXXFLAGS) $(QT_CXXFLAGS) -I$(GRASS_INC) $(DEBUG_QGIS) $(GEOS_CFLAGS) $(GDAL_CFLAGS)
if HAVE_POSTGRESQL
Expand Down
10 changes: 5 additions & 5 deletions providers/grass/provider.cpp
Expand Up @@ -25,11 +25,11 @@
#include <qdatetime.h>
#include <qmessagebox.h>

#include "../../src/qgis.h"
#include "../../src/qgsdataprovider.h"
#include "../../src/qgsfeature.h"
#include "../../src/qgsfield.h"
#include "../../src/qgsrect.h"
#include "qgis.h"
#include "qgsdataprovider.h"
#include "qgsfeature.h"
#include "qgsfield.h"
#include "qgsrect.h"

extern "C" {
#include <gis.h>
Expand Down
12 changes: 6 additions & 6 deletions providers/grass/qgsgrassprovider.cpp
Expand Up @@ -29,12 +29,12 @@
//Added by qt3to4:
#include <Q3CString>

#include "../../src/qgis.h"
#include "../../src/qgsdataprovider.h"
#include "../../src/qgsfeature.h"
#include "../../src/qgsfield.h"
#include "../../src/qgsrect.h"
#include "../../src/qgsfeatureattribute.h"
#include "qgis.h"
#include "qgsdataprovider.h"
#include "qgsfeature.h"
#include "qgsfield.h"
#include "qgsrect.h"
#include "qgsfeatureattribute.h"

extern "C" {
#include <gprojects.h>
Expand Down
2 changes: 1 addition & 1 deletion providers/grass/qgsgrassprovider.h
Expand Up @@ -19,7 +19,7 @@
class QgsFeature;
class QgsField;
#include <qdatetime.h>
#include "../../src/qgsvectordataprovider.h"
#include "qgsvectordataprovider.h"

/* Update.
* Vectors are updated (reloaded) if:
Expand Down
4 changes: 2 additions & 2 deletions providers/ogr/Makefile.am
@@ -1,12 +1,12 @@
INCLUDES = -I../../src
INCLUDES = -I../../src/core/

plugindir = ${pkglibdir}
plugin_LTLIBRARIES = ogrprovider.la

ogrprovider_la_SOURCES = qgsogrprovider.cpp \
qgsogrprovider.h

ogrprovider_la_LIBADD = $(QT_LDADD) $(GDAL_LDADD) $(GEOS_LDADD) ../../src/libqgis.la
ogrprovider_la_LIBADD = $(QT_LDADD) $(GDAL_LDADD) $(GEOS_LDADD) ../../src/core/libqgis_core.la
ogrprovider_la_LDFLAGS = -avoid-version -module
ogrprovider_la_CXXFLAGS := $(GDAL_CFLAGS) $(EXTRA_CXXFLAGS) $(QT_CXXFLAGS) $(DEBUG_QGIS) $(GEOS_CFLAGS)

10 changes: 5 additions & 5 deletions providers/ogr/qgsogrprovider.cpp
Expand Up @@ -51,11 +51,11 @@ email : sherman at mrcc.com
#endif


#include "../../src/qgssearchtreenode.h"
#include "../../src/qgsdataprovider.h"
#include "../../src/qgsfeature.h"
#include "../../src/qgsfield.h"
#include "../../src/qgis.h"
#include "qgssearchtreenode.h"
#include "qgsdataprovider.h"
#include "qgsfeature.h"
#include "qgsfield.h"
#include "qgis.h"


#ifdef WIN32
Expand Down
4 changes: 2 additions & 2 deletions providers/ogr/qgsogrprovider.h
Expand Up @@ -16,8 +16,8 @@ email : sherman at mrcc.com
***************************************************************************/
/* $Id$ */

#include "../../src/qgsrect.h"
#include "../../src/qgsvectordataprovider.h"
#include "qgsrect.h"
#include "qgsvectordataprovider.h"
#include <geos.h>

#include <ogr_spatialref.h>
Expand Down
4 changes: 2 additions & 2 deletions providers/postgres/Makefile.am
@@ -1,4 +1,4 @@
INCLUDES = -I../../src
INCLUDES = -I../../src/core/ -I../../src/

%.moc.cpp: %.h
$(MOC) -o $@ $<
Expand Down Expand Up @@ -27,7 +27,7 @@ postgresprovider_la_SOURCES = \

BUILT_SOURCES = $(postgresprovider_MOC)

postgresprovider_la_LIBADD = $(QT_LDADD) $(PG_LIB) $(GEOS_LDADD) ../../src/libqgis.la
postgresprovider_la_LIBADD = $(QT_LDADD) $(PG_LIB) $(GEOS_LDADD) ../../src/core/libqgis_core.la
postgresprovider_la_LDFLAGS = -avoid-version -module
postgresprovider_la_CXXFLAGS = $(EXTRA_CXXFLAGS) $(QT_CXXFLAGS) $(PG_INC) $(DEBUG_QGIS) $(GEOS_CFLAGS) $(GDAL_CFLAGS)

Expand Down
2 changes: 1 addition & 1 deletion providers/postgres/qgspostgisbox2d.cpp
Expand Up @@ -21,7 +21,7 @@

#include <qstring.h>

#include "../../src/qgsrect.h"
#include "qgsrect.h"

#include "qgspostgisbox2d.h"

Expand Down
2 changes: 1 addition & 1 deletion providers/postgres/qgspostgisbox2d.h
Expand Up @@ -24,7 +24,7 @@

#include <qstring.h>

#include "../../src/qgsrect.h"
#include "qgsrect.h"

/*!
* \brief PostgreSQL/PostGIS "box3d" representation and transformation
Expand Down
2 changes: 1 addition & 1 deletion providers/postgres/qgspostgisbox3d.cpp
Expand Up @@ -21,7 +21,7 @@

#include <qstring.h>

#include "../../src/qgsrect.h"
#include "qgsrect.h"

#include "qgspostgisbox3d.h"

Expand Down
2 changes: 1 addition & 1 deletion providers/postgres/qgspostgisbox3d.h
Expand Up @@ -24,7 +24,7 @@

#include <qstring.h>

#include "../../src/qgsrect.h"
#include "qgsrect.h"

/*!
* \brief PostgreSQL/PostGIS "box3d" representation and transformation
Expand Down
8 changes: 4 additions & 4 deletions providers/postgres/qgspostgrescountthread.cpp
Expand Up @@ -21,11 +21,11 @@
#include <qevent.h>
#include <qapplication.h>

#include "../../src/qgis.h"
#include "../../src/qgsrect.h"
#include "../../src/qgsmapcanvas.h"
#include "qgis.h"
#include "qgsrect.h"
#include "qgsmapcanvas.h"

#include "../../src/qgsprovidercountcalcevent.h"
#include "qgsprovidercountcalcevent.h"

#include "qgspostgrescountthread.h"

Expand Down
6 changes: 3 additions & 3 deletions providers/postgres/qgspostgresextentthread.cpp
Expand Up @@ -23,9 +23,9 @@
//Added by qt3to4:
#include <QCustomEvent>

#include "../../src/qgis.h"
#include "../../src/qgsrect.h"
#include "../../src/qgsmapcanvas.h"
#include "qgis.h"
#include "qgsrect.h"
#include "qgsmapcanvas.h"


#include "qgspostgresextentthread.h"
Expand Down
12 changes: 6 additions & 6 deletions providers/postgres/qgspostgresprovider.cpp
Expand Up @@ -38,13 +38,13 @@
#include <netinet/in.h>
#endif

#include "../../src/qgis.h"
#include "../../src/qgsfeature.h"
#include "../../src/qgsfield.h"
#include "../../src/qgsrect.h"
#include "qgis.h"
#include "qgsfeature.h"
#include "qgsfield.h"
#include "qgsrect.h"

#include "../../src/qgsprovidercountcalcevent.h"
#include "../../src/qgsproviderextentcalcevent.h"
#include "qgsprovidercountcalcevent.h"
#include "qgsproviderextentcalcevent.h"

#include "qgspostgresprovider.h"

Expand Down
4 changes: 2 additions & 2 deletions providers/postgres/qgspostgresprovider.h
Expand Up @@ -25,8 +25,8 @@ extern "C"
{
#include <libpq-fe.h>
}
#include "../../src/qgsvectordataprovider.h"
#include "../../src/qgsrect.h"
#include "qgsvectordataprovider.h"
#include "qgsrect.h"
#include <list>
#include <queue>
#include <fstream>
Expand Down
8 changes: 4 additions & 4 deletions providers/wms/Makefile.am
@@ -1,4 +1,4 @@
INCLUDES = -I../../src -I../../src/raster
INCLUDES = -I../../src -I../../src/raster -I../../src/core

%.moc.cpp: %.h
$(MOC) -o $@ $<
Expand All @@ -10,11 +10,11 @@ plugin_LTLIBRARIES = wmsprovider.la
## non-uic files generated from MOC

wmsprovider_MOC = qgswmsprovider.moc.cpp \
qgshttptransaction.moc.cpp
qgshttptransaction.moc.cpp \
../../src/core/qgsdataprovider.moc.cpp \
../../src/core/qgsrasterdataprovider.moc.cpp

wmsprovider_la_SOURCES = \
../../src/qgsdataprovider.moc.cpp \
../../src/qgsrasterdataprovider.moc.cpp \
qgswmsprovider.cpp \
qgswmsprovider.moc.cpp \
qgswmsprovider.h \
Expand Down
2 changes: 1 addition & 1 deletion providers/wms/qgswmsprovider.cpp
Expand Up @@ -21,7 +21,7 @@
#include <fstream>
#include <iostream>

#include "../../src/qgsrect.h"
#include "qgsrect.h"
#include "qgshttptransaction.h"

#include "qgswmsprovider.h"
Expand Down
4 changes: 2 additions & 2 deletions providers/wms/qgswmsprovider.h
Expand Up @@ -24,8 +24,8 @@
#include <map>
#include <vector>

#include "../../src/qgsrasterdataprovider.h"
#include "../../src/qgsrect.h"
#include "qgsrasterdataprovider.h"
#include "qgsrect.h"

#include "qgsdatasourceuri.h"

Expand Down

0 comments on commit ee30549

Please sign in to comment.