2006-10-10 01:45:03 +00:00
|
|
|
#################################################################
|
|
|
|
#
|
|
|
|
# QMAKE Project File for openModeller Gui
|
|
|
|
#
|
|
|
|
# Tim Sutton 2005
|
|
|
|
#
|
|
|
|
#################################################################
|
|
|
|
message(******************** settings.pro ***********************)
|
|
|
|
|
|
|
|
#################################################################
|
|
|
|
#
|
|
|
|
# all platforms - change these settings as you need them
|
|
|
|
#
|
|
|
|
#################################################################
|
|
|
|
|
|
|
|
unix:WORKDIR=$$system(pwd)
|
2006-10-17 19:33:18 +00:00
|
|
|
#a hack to get the current working dir under windows
|
|
|
|
win32:WORKDIR=$$system(cd)
|
2006-10-10 01:45:03 +00:00
|
|
|
message(Building in $${WORKDIR})
|
2006-10-19 05:09:10 +00:00
|
|
|
QGIS_APP_NAME=qgis
|
2006-10-10 01:45:03 +00:00
|
|
|
QGIS_LOCALPLUGIN=true
|
|
|
|
QGIS_WEBSERVICESPLUGIN=false #disabled until renato gets it fully implemented
|
|
|
|
QGIS_DUMMYPLUGIN=false
|
|
|
|
#wether to try to build the witty web toolkit fast cgi module
|
|
|
|
QGIS_WITTY=false
|
|
|
|
#whether to build unit tests
|
|
|
|
QGIS_TESTS=false
|
|
|
|
#whether to build console only applications
|
|
|
|
QGIS_CONSOLE=false
|
|
|
|
#whether to build the qt designer plugin
|
|
|
|
QGIS_DESIGNER=false
|
|
|
|
#whether to show experimental features to the user (set to true to hide
|
|
|
|
#experimental features when making a release
|
|
|
|
QGIS_ALLOW_EXPERIMENTAL=true
|
|
|
|
#whether to use to qgis mapping component
|
|
|
|
#at the moment it only builds on linux :-(
|
|
|
|
QGIS_USE_QGIS=true
|
|
|
|
#linux-g++:QGIS_USE_QGIS=true
|
|
|
|
#below is needed for winows - cant seemt to get ver_maj just by setting VERSION
|
|
|
|
unix:VER_MAJ = 1
|
|
|
|
unix:VERSION = 1.0.0
|
|
|
|
|
|
|
|
#################################################################
|
|
|
|
# Should not need to change below this point!!!! #
|
|
|
|
#################################################################
|
|
|
|
|
|
|
|
|
|
|
|
#################################################################
|
|
|
|
##
|
|
|
|
## General compilation settings and defines
|
|
|
|
##
|
|
|
|
#################################################################
|
|
|
|
CONFIG += warn_off
|
2006-11-24 20:38:29 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Building both debug and release versions (turned off by default)
|
|
|
|
#
|
|
|
|
|
2006-10-10 01:45:03 +00:00
|
|
|
#create both debug and relase makefiles
|
2006-12-04 00:57:09 +00:00
|
|
|
CONFIG += debug_and_release
|
2006-10-10 01:45:03 +00:00
|
|
|
#build both release and debug targets when make is run
|
2006-12-04 00:57:09 +00:00
|
|
|
CONFIG += build_all
|
2006-11-24 20:38:29 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Building release only version
|
|
|
|
#
|
|
|
|
|
2006-12-04 00:57:09 +00:00
|
|
|
#CONFIG += release
|
2006-11-24 20:38:29 +00:00
|
|
|
|
2006-10-10 01:45:03 +00:00
|
|
|
LANGUAGE = C++
|
|
|
|
CONFIG += exceptions
|
|
|
|
# Require that there are no undefined symbols in any libs!
|
|
|
|
QMAKE_LFLAGS_SHLIB *= --no-undefined
|
2006-10-20 03:55:59 +00:00
|
|
|
#clear all qt modules - each pro should specify exactly which qt modules it wants
|
|
|
|
QT =
|
2006-10-10 01:45:03 +00:00
|
|
|
|
2006-10-17 19:33:18 +00:00
|
|
|
QGSSVNVERSION=version0.8pre2
|
2006-11-12 01:23:02 +00:00
|
|
|
DEFINES += HAVE_POSTGRESQL=1
|
2006-10-10 01:45:03 +00:00
|
|
|
#################################################################
|
|
|
|
##
|
|
|
|
## Destination dir
|
|
|
|
##
|
|
|
|
#################################################################
|
|
|
|
|
|
|
|
# Where binary exes and libs should be placed when built
|
|
|
|
CONFIG(debug, debug|release){
|
|
|
|
message(DEBUG? : yes)
|
|
|
|
# for ifdefs in code that should run only
|
|
|
|
# when debug support is enabled
|
|
|
|
QGIS_DEBUGMODE=true
|
2006-12-04 00:57:09 +00:00
|
|
|
DEFINES += QGISDEBUG=1
|
2006-10-10 01:45:03 +00:00
|
|
|
QGIS_APP_NAME=$${QGIS_APP_NAME}-debug
|
|
|
|
win32:CONFIG+=console
|
|
|
|
}else{
|
|
|
|
message(DEBUG? : no )
|
|
|
|
QGIS_APP_NAME=$${QGIS_APP_NAME}-release
|
|
|
|
}
|
|
|
|
DESTDIR=$${WORKDIR}/$${QGIS_APP_NAME}
|
|
|
|
|
|
|
|
#################################################################
|
|
|
|
#
|
|
|
|
# INSTALL PATHS
|
|
|
|
#
|
|
|
|
#################################################################
|
|
|
|
|
|
|
|
linux-g++:QGISBINDIR=$${DESTDIR}/bin
|
|
|
|
win32:QGISBINDIR=$${DESTDIR}
|
|
|
|
macx:QGISBINDIR=$${DESTDIR}/$${QGIS_APP_NAME}.app/Contents/MacOS/
|
|
|
|
|
|
|
|
linux-g++:QGISLIBDIR=$${DESTDIR}/lib
|
|
|
|
macx:QGISLIBDIR=$${QGISBINDIR}
|
|
|
|
win32:QGISLIBDIR=$${DESTDIR}
|
|
|
|
|
2006-10-22 07:19:15 +00:00
|
|
|
QGISPLUGINDIR=$${DESTDIR}/lib/qgis
|
|
|
|
macx:QGISPLUGINDIR=$${DESTDIR}/$${QGIS_APP_NAME}.app/Contents/lib/qgis
|
2006-10-10 01:45:03 +00:00
|
|
|
|
2006-10-22 05:34:02 +00:00
|
|
|
QGISPROVIDERDIR=$${QGISBINDIR}/lib/qgis
|
|
|
|
macx:QGISPROVIDERDIR=$${DESTDIR}/$${QGIS_APP_NAME}.app/Contents/lib/qgis
|
|
|
|
|
2006-10-10 01:45:03 +00:00
|
|
|
message(WORKDIR : $${WORKDIR})
|
|
|
|
message(DESTDIR : $${DESTDIR})
|
|
|
|
message(QGISBINDIR : $${QGISBINDIR})
|
|
|
|
message(QGISLIBDIR : $${QGISLIBDIR})
|
|
|
|
message(QGISPLUGINDIR : $${QGISPLUGINDIR})
|
|
|
|
|
|
|
|
#################################################################
|
|
|
|
##
|
2006-10-19 05:09:10 +00:00
|
|
|
## Libraries to link to (used on a case by case basis as needed)
|
2006-10-10 01:45:03 +00:00
|
|
|
##
|
|
|
|
#################################################################
|
|
|
|
|
2006-11-08 02:18:19 +00:00
|
|
|
QGISGRASSPROVIDERLIBADD=-lgrassprovider
|
|
|
|
CONFIG(debug, debug|release){
|
|
|
|
QGISGRASSPROVIDERLIBADD=$$member(QGISGRASSPROVIDERLIBADD, 0)-debug
|
|
|
|
}
|
|
|
|
GRASSLIBADD=-lgrass_vect -lgrass_dig2 -lgrass_dgl -lgrass_rtree \
|
|
|
|
-lgrass_linkm -lgrass_dbmiclient -lgrass_dbmibase \
|
|
|
|
-lgrass_I -lgrass_gproj -lgrass_gmath -lgrass_gis \
|
|
|
|
-lgrass_datetime
|
|
|
|
|
2006-11-12 01:23:02 +00:00
|
|
|
POSTGRESLIBADD=-lpq
|
2006-12-11 02:35:14 +00:00
|
|
|
GSLLIBADD= -lgsl -lgslcblas
|
2006-10-19 05:09:10 +00:00
|
|
|
QGISCORELIBADD=-lqgis_core
|
2006-10-10 01:45:03 +00:00
|
|
|
CONFIG(debug, debug|release){
|
2006-10-20 03:55:59 +00:00
|
|
|
QGISCORELIBADD=$$member(QGISCORELIBADD, 0)-debug
|
|
|
|
}
|
|
|
|
|
|
|
|
QGISPROJECTIONSELECTORLIBADD=-lqgis_projectionselector
|
|
|
|
CONFIG(debug, debug|release){
|
|
|
|
QGISPROJECTIONSELECTORLIBADD=$$member(QGISPROJECTIONSELECTORLIBADD, 0)-debug
|
|
|
|
}
|
|
|
|
|
2006-10-21 17:01:00 +00:00
|
|
|
#not currently used since I had to incorporate composer into gui lib due to
|
|
|
|
#cyclical dependency issues
|
2006-10-20 03:55:59 +00:00
|
|
|
QGISCOMPOSERLIBADD=-lqgis_composer
|
|
|
|
CONFIG(debug, debug|release){
|
|
|
|
QGISCOMPOSERLIBADD=$$member(QGISCOMPOSERLIBADD, 0)-debug
|
2006-10-10 01:45:03 +00:00
|
|
|
}
|
2006-10-19 05:09:10 +00:00
|
|
|
|
2006-10-21 17:01:00 +00:00
|
|
|
QGISGUILIBADD=-lqgis_gui
|
|
|
|
CONFIG(debug, debug|release){
|
|
|
|
QGISGUILIBADD=$$member(QGISGUILIBADD, 0)-debug
|
|
|
|
}
|
|
|
|
|
2006-10-10 01:45:03 +00:00
|
|
|
win32:GDALLIBADD=-lgdal
|
|
|
|
unix:GDALLIBADD=-lgdal
|
|
|
|
macx:GDALLIBADD=-framework gdal
|
|
|
|
|
2006-10-19 05:09:10 +00:00
|
|
|
SQLITELIBADD=-lsqlite3
|
|
|
|
PROJLIBADD=-lproj
|
|
|
|
GEOSLIBADD=-lgeos
|
2006-10-10 01:45:03 +00:00
|
|
|
|
2006-10-19 05:09:10 +00:00
|
|
|
win32:LIBS += -lWs2_32
|
2006-10-10 01:45:03 +00:00
|
|
|
|
|
|
|
#################################################################
|
|
|
|
#
|
2006-10-19 05:09:10 +00:00
|
|
|
# Lib search paths (globally set for all pro files)
|
2006-10-10 01:45:03 +00:00
|
|
|
#
|
|
|
|
#################################################################
|
|
|
|
|
|
|
|
#win32:LIBS+=-LC:\MinGW\lib
|
|
|
|
win32:LIBS+=-LC:\msys\local\lib
|
|
|
|
win32:LIBS+=-L$${DESTDIR}
|
2006-11-08 18:40:08 +00:00
|
|
|
win32:LIBS+=-L$${DESTDIR}/lib/qgis
|
2006-10-10 01:45:03 +00:00
|
|
|
linux-g++:LIBS+=-L$${DESTDIR}/lib
|
|
|
|
linux-g++:LIBS+=-L/usr/lib/ccache/lib
|
|
|
|
macx:LIBS+=-L$${QGISLIBDIR}
|
|
|
|
macx:LIBS+=-F/Library/Frameworks/
|
|
|
|
macx:LIBS+=-L/usr/local/lib
|
|
|
|
|
|
|
|
|
|
|
|
#################################################################
|
|
|
|
#
|
2006-10-19 05:09:10 +00:00
|
|
|
# Include paths (globally set for all pro files)
|
2006-10-10 01:45:03 +00:00
|
|
|
#
|
|
|
|
#################################################################
|
|
|
|
|
2006-10-17 19:33:18 +00:00
|
|
|
INCLUDEPATH +=$${WORKDIR}/src \
|
|
|
|
$${WORKDIR}/src/core \
|
|
|
|
$${WORKDIR}/src/gui \
|
|
|
|
$${WORKDIR}/src/legend \
|
2006-10-20 03:55:59 +00:00
|
|
|
$${WORKDIR}/src/composer \
|
|
|
|
$${WORKDIR}/src/widgets/projectionselector \
|
2006-10-17 19:33:18 +00:00
|
|
|
$${WORKDIR}/src/plugins \
|
|
|
|
$${WORKDIR}/src/providers \
|
|
|
|
$${WORKDIR}/src/raster \
|
2006-11-29 11:57:03 +00:00
|
|
|
$${WORKDIR}/src/providers/wfs \
|
2006-10-17 19:33:18 +00:00
|
|
|
$${WORKDIR}/src/ui
|
2006-11-24 20:38:29 +00:00
|
|
|
INCLUDEPATH += $${OBJDIR}/ui
|
2006-10-10 01:45:03 +00:00
|
|
|
|
|
|
|
#################################################################
|
|
|
|
#
|
|
|
|
# windows platform (MinGW)
|
|
|
|
#
|
|
|
|
#################################################################
|
|
|
|
|
|
|
|
win32{
|
|
|
|
message(Installing for windows!)
|
2006-10-21 05:39:57 +00:00
|
|
|
#add any win specific rules here
|
|
|
|
INCLUDEPATH += c:/msys/local/include
|
2006-12-11 02:35:14 +00:00
|
|
|
GEOSINCADD = c:/msys/local/include/geos
|
2006-10-10 01:45:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#################################################################
|
|
|
|
#
|
|
|
|
# MacOSX platform specific directives
|
|
|
|
#
|
|
|
|
#################################################################
|
|
|
|
|
|
|
|
macx{
|
|
|
|
#fixme should not need the next line
|
|
|
|
#INCLUDEPATH += /Users/timsutton/dev/cpp/om/src
|
|
|
|
FRAMEWORKSDIR=$${DESTDIR}/$${QGIS_APP_NAME}.app/Contents/Frameworks
|
|
|
|
message (Checking if $${FRAMEWORKSDIR}/gdal.framework/gdal exists)
|
|
|
|
exists( $${FRAMEWORKSDIR}/gdal.framework/gdal )
|
|
|
|
{
|
|
|
|
message(Gdal framework already in the bundle...skipping copy)
|
|
|
|
}else{
|
|
|
|
system(mkdir -p $${FRAMEWORKSDIR})
|
|
|
|
system(cp -RP /Library/Frameworks/gdal.framework $${FRAMEWORKSDIR}/)
|
|
|
|
message(Gdal framework copied into the bundle)
|
|
|
|
}
|
|
|
|
system(cp mac/Info.plist $${DESTDIR}/bin/$${QGIS_APP_NAME}.app/Contents)
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#################################################################
|
|
|
|
#
|
|
|
|
# Where intermediate build files should go
|
|
|
|
#
|
|
|
|
#################################################################
|
|
|
|
|
|
|
|
OBJDIR = $${WORKDIR}/obj
|
|
|
|
MOC_DIR = $${OBJDIR}/moc
|
|
|
|
UI_DIR = $${OBJDIR}/ui
|
|
|
|
macx:OBJECTS_DIR = $${OBJDIR}/o/mac
|
|
|
|
linux-g++:OBJECTS_DIR = $${OBJDIR}/o/linux
|
|
|
|
win32:OBJECTS_DIR = $${OBJDIR}/o/win32
|
|
|
|
#These next two are not currently needed for this simple project
|
|
|
|
#RCC_DIR = $${OBJDIR}/rcc
|