Mercurial > hg > octave-max
annotate gui/octave-gui.pro @ 14255:5dcfb705ce12 gui
GUI: Bundled the new qterminal.
author | Jacob Dawid <jacob.dawid@googlemail.com> |
---|---|
date | Mon, 23 Jan 2012 22:35:00 +0100 |
parents | 995c69c217e5 |
children | 2254d7c14f41 |
rev | line source |
---|---|
13504
13e3d60aff2d
Replaced Quint with OctaveGUI.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13502
diff
changeset
|
1 # OctaveGUI - A graphical user interface for Octave |
13674
c0e66d6e3dc8
Updated license headers and moved to AGPLv3.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13673
diff
changeset
|
2 # Copyright (C) 2011 Jacob Dawid (jacob.dawid@googlemail.com) |
13501 | 3 # |
4 # This program is free software: you can redistribute it and/or modify | |
13674
c0e66d6e3dc8
Updated license headers and moved to AGPLv3.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13673
diff
changeset
|
5 # it under the terms of the GNU Affero General Public License as |
c0e66d6e3dc8
Updated license headers and moved to AGPLv3.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13673
diff
changeset
|
6 # published by the Free Software Foundation, either version 3 of the |
c0e66d6e3dc8
Updated license headers and moved to AGPLv3.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13673
diff
changeset
|
7 # License, or (at your option) any later version. |
13501 | 8 # |
9 # This program is distributed in the hope that it will be useful, | |
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
13674
c0e66d6e3dc8
Updated license headers and moved to AGPLv3.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13673
diff
changeset
|
12 # GNU Affero General Public License for more details. |
13501 | 13 # |
13674
c0e66d6e3dc8
Updated license headers and moved to AGPLv3.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13673
diff
changeset
|
14 # You should have received a copy of the GNU Affero General Public License |
c0e66d6e3dc8
Updated license headers and moved to AGPLv3.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13673
diff
changeset
|
15 # along with this program. If not, see <http://www.gnu.org/licenses/>. |
13501 | 16 |
17 | |
18 # Basic settings: | |
13579
6568fccb8940
Updated russian and ukrainian translation files.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13574
diff
changeset
|
19 QT += core gui webkit network # Qt modules |
13501 | 20 TEMPLATE = app # Build as application |
13502
751bbbcfd6e3
Renamed project files and target binary to octave-gui.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13501
diff
changeset
|
21 TARGET = octave-gui # Name of the target binary |
13501 | 22 |
23 DESTDIR = bin # Destination of the output | |
24 UI_DIR = ui-files # Folder for ui files | |
25 MOC_DIR = moc-files # Folder for moc files | |
26 OBJECTS_DIR = object-files # Folder for object files | |
27 | |
13561
dd029759f57e
Corrected language files.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13558
diff
changeset
|
28 TRANSLATIONS += languages/generic.ts \ |
13566
d22b9973120f
Renamed language files to match convention.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13563
diff
changeset
|
29 languages/de-de.ts \ |
13572
7fff75c62f30
Added spanish translation.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13566
diff
changeset
|
30 languages/pt-br.ts \ |
13573
908c86cfe656
Added russian and ukrainian translation.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13572
diff
changeset
|
31 languages/es-es.ts \ |
908c86cfe656
Added russian and ukrainian translation.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13572
diff
changeset
|
32 languages/ru-ru.ts \ |
13574
4f44084ce322
Corrected language files for russian and ukrainian.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13573
diff
changeset
|
33 languages/uk-ua.ts # Available translations |
14255
5dcfb705ce12
GUI: Bundled the new qterminal.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
14079
diff
changeset
|
34 LIBS += -lqscintilla2 -Lqterminal/libqterminal -lqterminal $$system(mkoctfile -p LIBS) $$system(mkoctfile -p OCTAVE_LIBS) |
13501 | 35 |
36 mac { | |
37 CONFIG -= app_bundle | |
38 } | |
39 | |
40 # Includepaths and libraries to link against: | |
14255
5dcfb705ce12
GUI: Bundled the new qterminal.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
14079
diff
changeset
|
41 INCLUDEPATH += src src/terminal src/qirc src/backend qterminal/libqterminal \ |
13673
6a11fd0efa16
Bugfix for building on Debian.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13668
diff
changeset
|
42 $$system(mkoctfile -p INCFLAGS) |
13596
f6bb48258200
Corrected mistake.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13595
diff
changeset
|
43 INCFLAGS += $$system(mkoctfile -p INCFLAGS) |
13501 | 44 mac { |
45 INCFLAGS += -I/opt/local-native/include | |
46 } | |
47 | |
13769
43ffcaee3fea
Fix various issues under Windows (MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
13683
diff
changeset
|
48 QMAKE_LIBDIR += $$system(octave-config -p OCTLIBDIR) |
43ffcaee3fea
Fix various issues under Windows (MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
13683
diff
changeset
|
49 |
13501 | 50 mac { |
51 LFLAGS += -L/opt/local-native/lib | |
52 } | |
53 | |
13682 | 54 unix { |
14079
995c69c217e5
Fixed bug in *.pro for compiling on Ubuntu.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13927
diff
changeset
|
55 LIBS += -lutil |
13682 | 56 } |
57 | |
13769
43ffcaee3fea
Fix various issues under Windows (MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
13683
diff
changeset
|
58 win32-g++ { |
13682 | 59 QMAKE_LFLAGS += --enable-auto-import |
60 } | |
61 | |
13769
43ffcaee3fea
Fix various issues under Windows (MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
13683
diff
changeset
|
62 win32-msvc* { |
43ffcaee3fea
Fix various issues under Windows (MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
13683
diff
changeset
|
63 DEFINES += QSCINTILLA_DLL |
13869
d80086a9880e
Initial implementation of a Qt Win32 terminal widget.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
13769
diff
changeset
|
64 #CONFIG += console |
13769
43ffcaee3fea
Fix various issues under Windows (MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
13683
diff
changeset
|
65 include(msvc-debug.pri) |
43ffcaee3fea
Fix various issues under Windows (MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
13683
diff
changeset
|
66 } |
43ffcaee3fea
Fix various issues under Windows (MSVC)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
13683
diff
changeset
|
67 |
13682 | 68 QMAKE_LFLAGS += $$LFLAGS $$system(mkoctfile -p RLD_FLAG) |
13501 | 69 QMAKE_CXXFLAGS += $$INCFLAGS |
70 | |
71 # Files associated with the project: | |
72 SOURCES +=\ | |
13682 | 73 src/lexer/lexeroctavegui.cpp \ |
74 src/MainWindow.cpp \ | |
13683
25dc40d24a44
Renamed VariablesDockWidget to WorkspaceView and optimized memory footprint for 30%.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13682
diff
changeset
|
75 src/WorkspaceView.cpp \ |
13682 | 76 src/HistoryDockWidget.cpp \ |
77 src/FilesDockWidget.cpp \ | |
78 src/FileEditorMdiSubWindow.cpp \ | |
79 src/BrowserWidget.cpp \ | |
80 src/ImageViewerMdiSubWindow.cpp \ | |
13679
e272af3f252d
Renamed qirc to irc.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13678
diff
changeset
|
81 src/irc/IRCWidget.cpp \ |
13504
13e3d60aff2d
Replaced Quint with OctaveGUI.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13502
diff
changeset
|
82 src/SettingsDialog.cpp \ |
13537
a43ecce77eec
Introduced a central ResourceManager class.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13516
diff
changeset
|
83 src/OctaveGUI.cpp \ |
13539
a4b5cad8f7c6
Added command line parser class.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13537
diff
changeset
|
84 src/ResourceManager.cpp \ |
13540
0dbf8681cd08
Seperated classes into own files.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13539
diff
changeset
|
85 src/CommandLineParser.cpp \ |
13543
8d529f8103dc
Separated backend files to folder.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13540
diff
changeset
|
86 src/backend/OctaveCallbackThread.cpp \ |
8d529f8103dc
Separated backend files to folder.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13540
diff
changeset
|
87 src/backend/OctaveLink.cpp \ |
13579
6568fccb8940
Updated russian and ukrainian translation files.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13574
diff
changeset
|
88 src/backend/OctaveMainThread.cpp \ |
13679
e272af3f252d
Renamed qirc to irc.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13678
diff
changeset
|
89 src/irc/IRCClientImpl.cpp \ |
13647 | 90 src/backend/ReadlineAdapter.cpp \ |
14255
5dcfb705ce12
GUI: Bundled the new qterminal.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
14079
diff
changeset
|
91 src/WelcomeWizard.cpp |
13501 | 92 |
13682 | 93 unix { |
94 SOURCES +=\ | |
14255
5dcfb705ce12
GUI: Bundled the new qterminal.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
14079
diff
changeset
|
95 src/TerminalHighlighter.cpp |
13869
d80086a9880e
Initial implementation of a Qt Win32 terminal widget.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
13769
diff
changeset
|
96 } |
d80086a9880e
Initial implementation of a Qt Win32 terminal widget.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
13769
diff
changeset
|
97 |
d80086a9880e
Initial implementation of a Qt Win32 terminal widget.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
13769
diff
changeset
|
98 win32 { |
d80086a9880e
Initial implementation of a Qt Win32 terminal widget.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
13769
diff
changeset
|
99 SOURCES += \ |
d80086a9880e
Initial implementation of a Qt Win32 terminal widget.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
13769
diff
changeset
|
100 src/WinTerminalView.cpp \ |
d80086a9880e
Initial implementation of a Qt Win32 terminal widget.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
13769
diff
changeset
|
101 src/terminal/win32/QConsole.cpp \ |
d80086a9880e
Initial implementation of a Qt Win32 terminal widget.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
13769
diff
changeset
|
102 src/terminal/win32/QConsoleColors.cpp |
13682 | 103 } |
104 | |
13501 | 105 HEADERS += \ |
13682 | 106 src/lexer/lexeroctavegui.h \ |
107 src/MainWindow.h \ | |
13683
25dc40d24a44
Renamed VariablesDockWidget to WorkspaceView and optimized memory footprint for 30%.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13682
diff
changeset
|
108 src/WorkspaceView.h \ |
13682 | 109 src/HistoryDockWidget.h \ |
110 src/FilesDockWidget.h \ | |
111 src/FileEditorMdiSubWindow.h \ | |
112 src/BrowserWidget.h \ | |
113 src/ImageViewerMdiSubWindow.h \ | |
13679
e272af3f252d
Renamed qirc to irc.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13678
diff
changeset
|
114 src/irc/IRCWidget.h \ |
13537
a43ecce77eec
Introduced a central ResourceManager class.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13516
diff
changeset
|
115 src/SettingsDialog.h \ |
13539
a4b5cad8f7c6
Added command line parser class.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13537
diff
changeset
|
116 src/ResourceManager.h \ |
13540
0dbf8681cd08
Seperated classes into own files.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13539
diff
changeset
|
117 src/CommandLineParser.h \ |
13543
8d529f8103dc
Separated backend files to folder.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13540
diff
changeset
|
118 src/backend/OctaveCallbackThread.h \ |
8d529f8103dc
Separated backend files to folder.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13540
diff
changeset
|
119 src/backend/OctaveLink.h \ |
13579
6568fccb8940
Updated russian and ukrainian translation files.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13574
diff
changeset
|
120 src/backend/OctaveMainThread.h \ |
13679
e272af3f252d
Renamed qirc to irc.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13678
diff
changeset
|
121 src/irc/IRCClientInterface.h \ |
e272af3f252d
Renamed qirc to irc.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13678
diff
changeset
|
122 src/irc/IRCClientImpl.h \ |
13647 | 123 src/backend/ReadlineAdapter.h \ |
14255
5dcfb705ce12
GUI: Bundled the new qterminal.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
14079
diff
changeset
|
124 src/WelcomeWizard.h |
13501 | 125 |
13682 | 126 unix { |
127 HEADERS += \ | |
14255
5dcfb705ce12
GUI: Bundled the new qterminal.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
14079
diff
changeset
|
128 src/TerminalHighlighter.h |
13869
d80086a9880e
Initial implementation of a Qt Win32 terminal widget.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
13769
diff
changeset
|
129 } |
d80086a9880e
Initial implementation of a Qt Win32 terminal widget.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
13769
diff
changeset
|
130 |
d80086a9880e
Initial implementation of a Qt Win32 terminal widget.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
13769
diff
changeset
|
131 win32 { |
d80086a9880e
Initial implementation of a Qt Win32 terminal widget.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
13769
diff
changeset
|
132 HEADERS += \ |
d80086a9880e
Initial implementation of a Qt Win32 terminal widget.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
13769
diff
changeset
|
133 src/WinTerminalView.h \ |
d80086a9880e
Initial implementation of a Qt Win32 terminal widget.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
13769
diff
changeset
|
134 src/terminal/win32/QConsole.h \ |
d80086a9880e
Initial implementation of a Qt Win32 terminal widget.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
13769
diff
changeset
|
135 src/terminal/win32/QConsoleColors.h |
d80086a9880e
Initial implementation of a Qt Win32 terminal widget.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
13769
diff
changeset
|
136 INCLUDEPATH += src/terminal/win32 |
13682 | 137 } |
138 | |
13501 | 139 FORMS += \ |
13668
421afeae929b
Added a settings wizard that appears at first startup of Octave GUI.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13665
diff
changeset
|
140 src/SettingsDialog.ui \ |
421afeae929b
Added a settings wizard that appears at first startup of Octave GUI.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13665
diff
changeset
|
141 src/WelcomeWizard.ui |