1 # building without muParser doesn't work yet
\r
2 SCRIPTING_LANGS += muParser
\r
3 SCRIPTING_LANGS += Python
\r
5 # a console displaying output of scripts; particularly useful on Windows
\r
6 # where running QtiPlot from a terminal is inconvenient
\r
7 DEFINES += SCRIPTING_CONSOLE
\r
9 # a dialog for selecting the scripting language on a per-project basis
\r
10 DEFINES += SCRIPTING_DIALOG
\r
12 #DEFINES += QTIPLOT_DEMO
\r
14 # Comment the following lines to disable donations start-up message.
\r
15 #DEFINES += QTIPLOT_SUPPORT
\r
17 # Comment the next line, if you don't have libpng on your system.
\r
18 CONFIG += HAVE_LIBPNG
\r
20 # Uncomment the next line in order to enable export of 2D plots to the EMF file format on Windows. You need EmfEngine on your system.
\r
23 # Uncomment the following line if you want to perform a custom installation using the *.path variables defined bellow.
\r
24 CONFIG += CustomInstall
\r
28 #win32: CONFIG += console
\r
30 ##################### 3rd PARTY HEADER FILES SECTION ########################
\r
31 #!!! Warning: You must modify these paths according to your computer settings
\r
32 #############################################################################
\r
34 INCLUDEPATH += ../3rdparty/qwtplot3d/include
\r
35 INCLUDEPATH += ../3rdparty/qwt/src
\r
36 INCLUDEPATH += ../3rdparty/liborigin
\r
37 INCLUDEPATH += /usr/include
\r
38 INCLUDEPATH += /usr/include/gsl
\r
39 INCLUDEPATH += /usr/include/boost
\r
41 ##################### 3rd PARTY LIBRARIES SECTION ###########################
\r
42 #!!! Warning: You must modify these paths according to your computer settings
\r
43 #############################################################################
\r
45 ##################### Linux (Mac OS X) ######################################
\r
47 # statically link against libraries in 3rdparty
\r
48 #unix:LIBS += ../3rdparty/muparser/lib/libmuparser.a
\r
49 unix:LIBS += ../3rdparty/qwt/lib/libqwt.a
\r
50 #unix:LIBS += ../3rdparty/gsl/lib/libgsl.a
\r
51 #unix:LIBS += ../3rdparty/gsl/lib/libgslcblas.a
\r
52 #unix:LIBS += ../3rdparty/boost/lib/libboost_date_time-gcc43-mt-1_38.a
\r
53 #unix:LIBS += ../3rdparty/boost/lib/libboost_thread-gcc43-mt-1_38.a
\r
55 # dynamically link against dependencies if they are installed system-wide
\r
56 unix:LIBS += -lmuparser $$system(pkg-config --libs gsl) -lz -lboost_date_time -lboost_thread-mt
\r
57 ##################### Windows ###############################################
\r
59 win32:LIBS += ../3rdparty/muparser/lib/libmuparser.a
\r
60 win32:LIBS += ../3rdparty/qwt/lib/libqwt.a
\r
61 win32:LIBS += ../3rdparty/gsl/lib/libgsl.a
\r
62 win32:LIBS += ../3rdparty/gsl/lib/libgslcblas.a
\r
63 win32:LIBS += ../3rdparty/zlib/libz.a
\r
64 win32:LIBS += ../3rdparty/boost/lib/libboost_date_time-mgw34-mt.lib
\r
65 win32:LIBS += ../3rdparty/boost/lib/libboost_thread-mgw34-mt.lib
\r
67 #############################################################################
\r
68 ###################### BASIC PROJECT PROPERTIES #############################
\r
69 #############################################################################
\r
71 QMAKE_PROJECT_DEPTH = 0
\r
75 CONFIG += qt warn_on exceptions opengl thread
\r
78 DEFINES += QT_PLUGIN
\r
79 contains(CONFIG, CustomInstall){
\r
81 INSTALLS += translations
\r
83 INSTALLS += documentation
\r
84 unix:INSTALLS += man
\r
86 unix: INSTALLBASE = /usr
\r
87 win32: INSTALLBASE = C:/QtiPlot
\r
89 unix: target.path = $$INSTALLBASE/bin
\r
90 unix: translations.path = $$INSTALLBASE/share/qtiplot/translations
\r
91 unix: manual.path = $$INSTALLBASE/share/doc/qtiplot/manual
\r
92 unix: documentation.path = $$INSTALLBASE/share/doc/qtiplot
\r
93 unix: man.path = $$INSTALLBASE/share/man/man1/
\r
95 win32: target.path = $$INSTALLBASE
\r
96 win32: translations.path = $$INSTALLBASE/translations
\r
97 win32: manual.path = $$INSTALLBASE/manual
\r
98 win32: documentation.path = $$INSTALLBASE/doc
\r
100 DEFINES += TRANSLATIONS_PATH="\\\"$$replace(translations.path," ","\ ")\\\"
\r
101 DEFINES += MANUAL_PATH="\\\"$$replace(manual.path," ","\ ")\\\"
\r
104 win32:DEFINES += QT_DLL QT_THREAD_SUPPORT
\r
105 QT += opengl qt3support network svg xml
\r
107 MOC_DIR = ../tmp/qtiplot
\r
108 OBJECTS_DIR = ../tmp/qtiplot
\r
109 SIP_DIR = ../tmp/qtiplot
\r
112 #############################################################################
\r
113 ###################### PROJECT FILES SECTION ################################
\r
114 #############################################################################
\r
116 ###################### ICONS ################################################
\r
117 INCLUDEPATH += icons/
\r
118 HEADERS += icons/pixmaps.h
\r
119 HEADERS += icons/axes_icons.h
\r
120 win32:RC_FILE = icons/qtiplot.rc
\r
121 mac:RC_FILE = icons/qtiplot.icns
\r
123 ###################### TRANSLATIONS #########################################
\r
125 TRANSLATIONS = translations/qtiplot_cn.ts \
\r
126 translations/qtiplot_cz.ts \
\r
127 translations/qtiplot_de.ts \
\r
128 translations/qtiplot_es.ts \
\r
129 translations/qtiplot_fr.ts \
\r
130 #translations/qtiplot_pt.ts \
\r
131 translations/qtiplot_ro.ts \
\r
132 translations/qtiplot_ru.ts \
\r
133 translations/qtiplot_ja.ts \
\r
134 translations/qtiplot_sv.ts
\r
136 system(lupdate -verbose qtiplot.pro)
\r
137 system(lrelease -verbose qtiplot.pro)
\r
139 translations.files += translations/qtiplot_de.qm \
\r
140 translations/qtiplot_es.qm \
\r
141 translations/qtiplot_fr.qm \
\r
142 #translations/qtiplot_pt.qm \
\r
143 translations/qtiplot_ru.qm \
\r
144 translations/qtiplot_ja.qm \
\r
145 translations/qtiplot_sv.qm
\r
147 ###################### DOCUMENTATION ########################################
\r
149 manual.files += ../manual/html \
\r
150 ../manual/qtiplot-manual-en.pdf
\r
152 documentation.files += ../README.html \
\r
155 unix: man.files += ../qtiplot.1
\r
157 ###############################################################
\r
158 ##################### Compression (zlib-1.2.3) ################
\r
159 ###############################################################
\r
161 SOURCES += ../3rdparty/zlib/minigzip.c
\r
163 ###############################################################
\r
164 ################# Default Modules #############################
\r
165 ###############################################################
\r
167 include(../3rdparty/qwtplot3d/qwtplot3d.pri)
\r
168 include(src/analysis/analysis.pri)
\r
169 include(src/core/core.pri)
\r
170 include(src/lib/libqti.pri)
\r
171 include(src/plot2D/plot2D.pri)
\r
172 include(src/plot3D/plot3D.pri)
\r
173 include(src/matrix/matrix.pri)
\r
174 include(src/origin/origin.pri)
\r
175 include(src/table/table.pri)
\r
176 include(src/scripting/scripting.pri)
\r
178 ###############################################################
\r
179 ##################### TeX export: QTeXEngine ##################
\r
180 ###############################################################
\r
182 INCLUDEPATH += ../3rdparty/QTeXEngine/src
\r
183 HEADERS += ../3rdparty/QTeXEngine/src/QTeXEngine.h
\r
184 SOURCES += ../3rdparty/QTeXEngine/src/QTeXPaintEngine.cpp
\r
185 SOURCES += ../3rdparty/QTeXEngine/src/QTeXPaintDevice.cpp
\r
187 ###############################################################
\r
188 ##################### Scripting: PYTHON + SIP + PyQT ##########
\r
189 ###############################################################
\r
191 contains(SCRIPTING_LANGS, Python) {
\r
193 contains(CONFIG, CustomInstall){
\r
194 INSTALLS += pythonconfig
\r
195 pythonconfig.files += qtiplotrc.py \
\r
199 unix: pythonconfig.path = /usr/share/qtiplot
\r
200 win32: pythonconfig.path = $$INSTALLBASE
\r
201 DEFINES += PYTHON_CONFIG_PATH="\\\"$$replace(pythonconfig.path," ","\ ")\\\"
\r
205 INCLUDEPATH += $$system(python python-includepath.py)
\r
206 LIBS += $$system(python -c "\"from distutils import sysconfig; print '-lpython'+sysconfig.get_config_var('VERSION')\"")
\r
208 system(mkdir -p $${SIP_DIR})
\r
209 system($$system(python python-sipcmd.py) -c $${SIP_DIR} src/scripting/qti.sip)
\r
213 INCLUDEPATH += $$system(call python-includepath.py)
\r
214 LIBS += $$system(call python-libs-win.py)
\r
215 system($$system(call python-sipcmd.py) -c $${SIP_DIR} src/scripting/qti.sip)
\r
219 ###############################################################
\r
221 contains(CONFIG, HAVE_LIBPNG){
\r
222 DEFINES += GL2PS_HAVE_LIBPNG
\r
225 ###############################################################
\r
227 contains(CONFIG, HAVE_EMF){
\r
229 DEFINES += EMF_OUTPUT
\r
230 INCLUDEPATH += ../3rdparty/EmfEngine/src
\r
231 LIBS += ../3rdparty/EmfEngine/libEmfEngine.a -lgdiplus
\r
235 ###############################################################
\r