Files
@ 87fa95207a06
Branch filter:
Location: EI/VirtualLeaf/src/VirtualLeaf_d.pro
87fa95207a06
5.1 KiB
text/x-prolog
Added tag v1.0 for changeset 79f94eaa3b9e
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 | #
# $Id$
#
# This file is part of the Virtual Leaf.
#
# The Virtual Leaf is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# The Virtual Leaf is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with the Virtual Leaf. If not, see <http://www.gnu.org/licenses/>.
#
# Copyright 2010 Roeland Merks.
#
#REACTIONS = reactions_auxin_growth.h
#REACTIONS = reactions_meinhardt.h
#REACTIONS = reactions_pce_growth.h
DEFINES += QTGRAPHICS
DEFINES += REACTIONS_HEADER=$${REACTIONS}
DEFINES += REACTIONS_HEADER_STRING=\"$${REACTIONS}\"
DEFINES += FLEMING
CONFIG += qt debug
PERLDIR = ./perl
BINDIR = ../bin
DESTDIR = $$BINDIR
TARGET = VirtualLeaf
PARTMPL = $${TARGET}par.tmpl
MAINSRC = $${TARGET}.cpp
QT -= network sql xml
QT += qt3support
QWTDIR = /usr/local/qwt
QMAKE_LIBDIR += $$QWTDIR/lib
win32:QWTDIR = "C:\Qwt-5.0.2"
unix:LIBS += -lxml2 -lz -lm
win32:LIBS += -L\"c:\Lib\" -L\"c:\Bin\" -lxml2 -lz -lm -lwsock32
!win32 {
GRAPHICS = qt #qwt
}
win32 {
GRAPHICS = qt
RC_FILE = VirtualLeaf.rc
QMAKE_CXXFLAGS_RELEASE += -fexceptions -IC:\Include
QMAKE_CXXFLAGS_DEBUG += -fexceptions -IC:\Include
QMAKE_POST_LINK = "\
C:\Bin\cp release\VirtualLeaf.exe \
C:\Qt\4.5.3\bin\Qt3Support4.dll \
C:\Qt\4.5.3\bin\QtGui4.dll \
C:\Qt\4.5.3\bin\QtSql4.dll \
C:\Qt\4.5.3\bin\QtXml4.dll \
C:\Qt\4.5.3\bin\QtCore4.dll \
C:\Qt\4.5.3\bin\QtNetwork4.dll \
C:\Qt\4.5.3\bin\QtSvg4.dll \
C:\bin\iconv.dll \
C:\bin\libxml2.dll \
C:\bin\zlib1.dll \
C:\MinGW\bin\mingwm10.dll \
$${DESTDIR}"
}
# Application icons
macx {
ICON = leaficon.icns
# make sure that the executable can find the libqwt share library
QMAKE_POST_LINK = "mkdir $${DESTDIR}/$${TARGET}.app/Contents/Frameworks; \
cp /usr/local/qwt/lib/libqwt.dylib $${DESTDIR}/$${TARGET}.app/Contents/Frameworks/.; \
#install_name_tool -change libqwt.5.dylib $$QWTDIR/lib/libqwt.dylib $${DESTDIR}/$${TARGET}.app/Contents/MacOS/$${TARGET}; \
install_name_tool -id @executable_path/../Frameworks/libqwt.dylib $${DESTDIR}/$${TARGET}.app/Contents/Frameworks/libqwt.dylib; \
install_name_tool -change libqwt.5.dylib @executable_path/../Frameworks/libqwt.dylib $${DESTDIR}/$${TARGET}.app/Contents/MacOS/$${TARGET};\
cp leaficon.icns $${DESTDIR}/$${TARGET}.app; "
}
macx:release {
LIBS+= -dead_strip
}
unix {
system(rm -f parameter.cpp parameter.h)
system(perl $$PERLDIR/make_parameter_source.pl $$PARTMPL)
system(perl $$PERLDIR/make_pardialog_source.pl $$PARTMPL)
#system(perl $$PERLDIR/make_xmlwritecode.pl -h $$REACTIONS)
CC = /usr/bin/gcc
QMAKE_CXXFLAGS_RELEASE += -fexceptions -I/usr/include/libxml2
QMAKE_CXXFLAGS_DEBUG += -fexceptions -I/usr/include/libxml2 -DQDEBUG -ggdb3 -O0
QMAKE_LFLAGS += -fPIC
}
# Input
HEADERS += \
apoplastitem.h \
canvas.h \
cellbase.h \
cell.h \
cellitem.h \
forwardeuler.h \
infobar.h \
mainbase.h \
mainbase.h \
matrix.h \
mesh.h \
miscq.h \
modelcatalogue.h \
Neighbor.h \
node.h \
nodeitem.h \
nodeset.h \
OptionFileDialog.h \
output.h \
parameter.h \
pardialog.h \
parse.h \
pi.h \
qcanvasarrow.h \
random.h \
rungekutta.h \
simitembase.h \
simplugin.h \
sqr.h \
tiny.h \
transporterdialog.h \
UniqueMessage.h \
vector.h \
wallbase.h \
wall.h \
wallitem.h \
warning.h \
xmlwrite.h \
$${PARTMPL}
SOURCES += \
apoplastitem.cpp \
canvas.cpp \
cellbase.cpp \
cell.cpp \
cellitem.cpp \
forwardeuler.cpp \
mainbase.cpp \
matrix.cpp \
mesh.cpp \
miscq.cpp \
modelcatalogue.cpp \
Neighbor.cpp \
node.cpp \
nodeitem.cpp \
nodeset.cpp \
OptionFileDialog.cpp \
output.cpp \
parameter.cpp \
pardialog.cpp \
parse.cpp \
random.cpp \
rungekutta.cpp \
simitembase.cpp \
transporterdialog.cpp \
UniqueMessage.cpp \
vector.cpp \
wallbase.cpp \
wall.cpp \
wallitem.cpp \
warning.cpp \
xmlwritecode.cpp \
xmlwrite.cpp \
$$MAINSRC
contains( TARGET, leaf_fleming ) {
DEFINES += FLEMING
}
contains(GRAPHICS, qwt) {
macx:LIBS += -L$$QWTDIR/lib -lqwt
win32:LIBS += -L$$QWTDIR/lib -lqwt5
#LIBS += -L$$QWTDIR/lib -lqwt
INCLUDEPATH += $$QWTDIR/include
DEFINES += HAVE_QWT
HEADERS += data_plot.h
SOURCES += data_plot.cpp
}
contains( GRAPHICS, qt ) {
message( "Building Qt executable" )
QMAKE_CXXFLAGS_RELEASE += -DQTGRAPHICS # -fpermissive
QMAKE_CXXFLAGS_DEBUG += -DQTGRAPHICS
}
contains( GRAPHICS, xfig ) {
message("Building Xfig executable (background runnable).")
QMAKE_CXXFLAGS_RELEASE += -DXFIGGRAPHICS
QMAKE_CXXFLAGS_DEBUG += -DXFIGGRAPHICS
}
contains( GRAPHICS, x11 ) {
!unix {
error("X11 graphics only available on Unix systems.")
}
message("Building X11 executable")
SOURCES += x11graph.cpp
HEADERS += x11graph.h
QMAKE_CXXFLAGS_RELEASE += -DX11GRAPHICS
QMAKE_CXXFLAGS_DEBUG += -DX11GRAPHICS
CONFIG -= qt
CONFIG += x11
unix:LIBS += -lpng
}
# finis
|