Debian Codegraph @

src/xmpsolve/xmpsolve.pro

raw
1 # Project file for xmpsolve. Please note that this file assumes that you have
2 # compiled MPSolve in mpsolve-x.y.z/_build.
3 #
4 # To accomplish this you can just enter the mpsolve-x.y.z folder and then
5 # $ mkdir _build
6 # $ cd _build
7 # $ ../configure && make
8
9 TEMPLATE = app
10
11 CONFIG += mps_qml
12 # CONFIG += mps_widgets
13
14 QT += core gui
15 mps_widgets {
16 greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
17 }
18 mps_qml {
19 greaterThan(QT_MAJOR_VERSION, 4) QT += quick
20 }
21
22 #
23 # This section addresses Android specific configuration. This is a bit atypical,
24 # w.r.t other platforms, since you will probably have to compile a copy of GMP
25 # and a separate version of libmps. Those will need to be installed in a different
26 # directory and then xmpsolve will be linked against them.
27 #
28 android {
29
30 CONFIG += mobility
31 MOBILITY =
32
33 # App configuration. TODO: It should be possible (in the future, not right now)
34 # to specify an icon here.
35 ANDROID_PACKAGE = it.unipi.dm.mpsolve
36 ANDROID_APP_NAME = MPSolve
37
38 # Customize this to match your current setup. This way the setup points to a directory inside
39 # mpsolve-x.y.z. This setup can be obtained with the script in tools/android-build-libmps.sh
40 ANDROID_ROOT = $${PWD}/../../android-ext-x86
41 ANDROID_ROOT = $${PWD}/../../android-ext-armeabi
42 ANDROID_ROOT = $${PWD}/../../android-ext-armeabi-v7a
43 ANDROID_ROOT = $${PWD}/../../android-ext-mips
44
45 # We need -DMPS_USE_BUILTIN_COMPLEX since Android uses tiny bionic without complex
46 # arithmetic support.
47 QMAKE_CXXFLAGS += -I$${ANDROID_ROOT}/include \
48 -include $${ANDROID_ROOT}/tarballs/mpsolve-build/config.h
49
50 # Link against locally compiled libmps and libgmp.
51 LIBS += $${ANDROID_ROOT}/lib/libmps.a $${ANDROID_ROOT}/lib/libgmp.a
52
53 }
54
55 !android {
56 QMAKE_CXXFLAGS += -include $${PWD}/../../build/config.h
57 INCLUDEPATH += $${PWD}/../../include/ $${PWD}/../../build/include/
58 LIBS += $${PWD}/../../build/src/libmps/.libs/libmps.so -lgmp
59 }
60
61 # Input
62 HEADERS += ./mpsolveworker.h \
63 ./polynomialsolver.h \
64 ./root.h \
65 ./rootsrenderer.h \
66 ./monomial.h \
67 ./rootsmodel.h \
68 ./polsyntaxhighlighter.h
69
70 SOURCES += ./main.cpp \
71 ./mpsolveworker.cpp \
72 ./polynomialsolver.cpp \
73 ./root.cpp \
74 ./rootsrenderer.cpp \
75 ./rootsmodel.cpp \
76 ./polsyntaxhighlighter.cpp
77
78 RESOURCES += \
79 resources.qrc
80
81 OTHER_FILES += \
82 android/AndroidManifest.xml \
83 Main.qml \
84 ApproximationList.qml \
85 PolyInputField.qml \
86 SwitchableApproximationView.qml \
87 CombinedApproximationView.qml \
88 MainView.qml \
89 LoadingIndicator.qml
90
91 ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android
92
93 # QtWidgets configuration
94 mps_widgets {
95 HEADERS += mainwindow.h \
96 polfileeditor.h \
97 polfileeditorwindow.h \
98 qrootsrenderer.h
99
100 FORMS += ./mainwindow.ui \
101 ./polfileeditor.ui \
102 ./polfileeditorwindow.ui
103
104 SOURCES += mainwindow.cpp \
105 ./polfileeditor.cpp \
106 ./polfileeditorwindow.cpp \
107 ./qrootsrenderer.cpp
108
109 }
110
111 # QtQuick configuration
112 mps_qml {
113 QMAKE_CXXFLAGS += -DMPS_USE_QML
114
115 HEADERS += qquickrootsrenderer.h \
116 mainqmlview.h
117
118 SOURCES += ./mainqmlview.cpp \
119 ./qquickrootsrenderer.cpp
120 }