Skip to content

Commit 67eb9fe

Browse files
author
timlinux
committed
Build improvements - org provider now builds
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5989 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 6a60e68 commit 67eb9fe

File tree

3 files changed

+43
-45
lines changed

3 files changed

+43
-45
lines changed

src/providers/ogr/ogr.pro

+31-34
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,36 @@
1-
####################################################################
2-
# Qmake project file for QGIS data provider
3-
# This file is used by qmake to generate the Makefile for building
4-
# the QGIS OGR data provider on Windows
1+
#################################################################
52
#
6-
# ogr.pro,v 1.2 2004/08/14 01:10:09 timlinux Exp
7-
####################################################################
3+
# QMAKE Project File for Quantum GIS
4+
#
5+
# Tim Sutton 2006
6+
#
7+
# NOTE: Do not place any hard coded external paths in this file
8+
# all libs and includes should be specified in settings.pro
9+
# in the top level qgis directory.
10+
#
11+
#################################################################
812

9-
#################
10-
# GEOS Notes #
11-
##########################################################################
12-
# Geos support is currenlty provided by a custom compiled library.
13-
# The library is compiled with vc++ and statically linked with the
14-
# ogr provider. A dll may be supplied at a later date. GEOS source
15-
# used in creating the library is available at geos.refractions.net.
16-
# To compile the windows version, set the GEOS environment variable
17-
# to point to the directory containing the include and lib subdirectories.
18-
# The headers/lib can be downloaded from http://qgis.org/win32_geos.zip
19-
###########################################################################
13+
#
14+
# This file builds the gui library - the app is built in a separate pro file
15+
#
2016

17+
include(../../../settings.pro)
18+
TARGET=ogrprovider
2119
TEMPLATE = lib
22-
INCLUDEPATH += . $(GDAL)\include \
23-
$(GEOS)\include \
24-
$(QTDIR)\include
25-
LIBS += $(GDAL)\lib\gdal_i.lib \
26-
..\..\src\libqgis.lib \
27-
$(GEOS)\lib\geos.lib
20+
#suffix debug to target if applicable
21+
CONFIG(debug, debug|release){
22+
TARGET = $$member(TARGET, 0)-debug
23+
}
24+
LIBS += $${GDALLIBADD}
25+
LIBS += $${GEOSLIBADD}
26+
#LIBS += $${PROJLIBADD}
27+
LIBS += $${QGISCORELIBADD}
28+
LIBS += $${QGISGUILIBADD}
29+
LIBS += $${QGISPROJECTIONSELECTORLIBADD}
30+
DESTDIR=$${QGISPROVIDERDIR}
31+
QT += qt3support svg core gui xml network
32+
message("Building libs into $${DESTDIR}")
33+
2834
CONFIG += qt dll thread debug rtti
29-
#CONFIG += qt dll thread rtti
30-
DLLDESTDIR= ..\..\win_build\lib\qgis
31-
#DEFINES += NOWIN32GEOS
32-
# Input
33-
HEADERS += qgsshapefileprovider.h
34-
SOURCES += qgsshapefileprovider.cpp \
35-
..\..\src\qgsfeature.cpp \
36-
..\..\src\qgsfield.cpp \
37-
..\..\src\qgsrect.cpp \
38-
..\..\src\qgsfeatureattribute.cpp \
39-
..\..\src\qgspoint.cpp
35+
HEADERS += qgsogrprovider.h
36+
SOURCES += qgsogrprovider.cpp

src/providers/providers.pro

+11-10
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1-
######################################################################
2-
# Qmake project file for QGIS providers directory
3-
# This file is used by qmake to generate the Makefile for building
4-
# QGIS on Windows
1+
#################################################################
52
#
6-
# $Id $
7-
######################################################################
3+
# QMAKE Project File for Quantum GIS
4+
#
5+
# Tim Sutton 2006
6+
#
7+
# NOTE: Do not place any hard coded external paths in this file
8+
# all libs and includes should be specified in settings.pro
9+
# in the top level qgis directory.
10+
#
11+
#################################################################
812
TEMPLATE = subdirs
9-
SUBDIRS = delimitedtext \
10-
ogr \
11-
postgres \
12-
gpx
13+
SUBDIRS = ogr

src/src.pro

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@
1212

1313
TEMPLATE=subdirs
1414

15-
SUBDIRS=core widgets gui
15+
SUBDIRS=core widgets gui providers
1616

0 commit comments

Comments
 (0)