annotate gui/octave-gui.pro @ 13682:c0e0625ffd13

Adjustements for compiling on Windows.
author Jacob@Jacob-PC
date Mon, 26 Sep 2011 07:55:20 +0200
parents e272af3f252d
children 25dc40d24a44
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
86d6c3b90ad7 Added new gui files.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
diff changeset
3 #
86d6c3b90ad7 Added new gui files.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
diff changeset
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
86d6c3b90ad7 Added new gui files.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
diff changeset
8 #
86d6c3b90ad7 Added new gui files.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
diff changeset
9 # This program is distributed in the hope that it will be useful,
86d6c3b90ad7 Added new gui files.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
diff changeset
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
86d6c3b90ad7 Added new gui files.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
diff changeset
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
86d6c3b90ad7 Added new gui files.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
diff changeset
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
86d6c3b90ad7 Added new gui files.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
diff changeset
16
86d6c3b90ad7 Added new gui files.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
diff changeset
17
86d6c3b90ad7 Added new gui files.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
diff changeset
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
86d6c3b90ad7 Added new gui files.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
diff changeset
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
86d6c3b90ad7 Added new gui files.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
diff changeset
22
86d6c3b90ad7 Added new gui files.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
diff changeset
23 DESTDIR = bin # Destination of the output
86d6c3b90ad7 Added new gui files.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
diff changeset
24 UI_DIR = ui-files # Folder for ui files
86d6c3b90ad7 Added new gui files.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
diff changeset
25 MOC_DIR = moc-files # Folder for moc files
86d6c3b90ad7 Added new gui files.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
diff changeset
26 OBJECTS_DIR = object-files # Folder for object files
86d6c3b90ad7 Added new gui files.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
diff changeset
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
13682
c0e0625ffd13 Adjustements for compiling on Windows.
Jacob@Jacob-PC
parents: 13679
diff changeset
34 LIBS += -lqscintilla2 $$system(mkoctfile -p LIBS) $$system(mkoctfile -p OCTAVE_LIBS)
13501
86d6c3b90ad7 Added new gui files.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
diff changeset
35
86d6c3b90ad7 Added new gui files.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
diff changeset
36 mac {
86d6c3b90ad7 Added new gui files.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
diff changeset
37 CONFIG -= app_bundle
86d6c3b90ad7 Added new gui files.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
diff changeset
38 }
86d6c3b90ad7 Added new gui files.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
diff changeset
39
86d6c3b90ad7 Added new gui files.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
diff changeset
40 # Includepaths and libraries to link against:
13673
6a11fd0efa16 Bugfix for building on Debian.
Jacob Dawid <jacob.dawid@googlemail.com>
parents: 13668
diff changeset
41 INCLUDEPATH += src src/terminal src/qirc src/backend \
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
86d6c3b90ad7 Added new gui files.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
diff changeset
44 mac {
86d6c3b90ad7 Added new gui files.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
diff changeset
45 INCFLAGS += -I/opt/local-native/include
86d6c3b90ad7 Added new gui files.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
diff changeset
46 }
86d6c3b90ad7 Added new gui files.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
diff changeset
47
86d6c3b90ad7 Added new gui files.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
diff changeset
48 LFLAGS += $$system(mkoctfile -p LFLAGS) \
86d6c3b90ad7 Added new gui files.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
diff changeset
49 $$system(mkoctfile -p OCTAVE_LIBS) \
86d6c3b90ad7 Added new gui files.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
diff changeset
50 $$system(mkoctfile -p LIBS)
86d6c3b90ad7 Added new gui files.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
diff changeset
51 mac {
86d6c3b90ad7 Added new gui files.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
diff changeset
52 LFLAGS += -L/opt/local-native/lib
86d6c3b90ad7 Added new gui files.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
diff changeset
53 }
86d6c3b90ad7 Added new gui files.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
diff changeset
54
13682
c0e0625ffd13 Adjustements for compiling on Windows.
Jacob@Jacob-PC
parents: 13679
diff changeset
55 unix {
c0e0625ffd13 Adjustements for compiling on Windows.
Jacob@Jacob-PC
parents: 13679
diff changeset
56 QMAKE_LFLAGS += -lutil
c0e0625ffd13 Adjustements for compiling on Windows.
Jacob@Jacob-PC
parents: 13679
diff changeset
57 }
c0e0625ffd13 Adjustements for compiling on Windows.
Jacob@Jacob-PC
parents: 13679
diff changeset
58
c0e0625ffd13 Adjustements for compiling on Windows.
Jacob@Jacob-PC
parents: 13679
diff changeset
59 win32 {
c0e0625ffd13 Adjustements for compiling on Windows.
Jacob@Jacob-PC
parents: 13679
diff changeset
60 QMAKE_LFLAGS += --enable-auto-import
c0e0625ffd13 Adjustements for compiling on Windows.
Jacob@Jacob-PC
parents: 13679
diff changeset
61 }
c0e0625ffd13 Adjustements for compiling on Windows.
Jacob@Jacob-PC
parents: 13679
diff changeset
62
c0e0625ffd13 Adjustements for compiling on Windows.
Jacob@Jacob-PC
parents: 13679
diff changeset
63 QMAKE_LFLAGS += $$LFLAGS $$system(mkoctfile -p RLD_FLAG)
13501
86d6c3b90ad7 Added new gui files.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
diff changeset
64 QMAKE_CXXFLAGS += $$INCFLAGS
86d6c3b90ad7 Added new gui files.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
diff changeset
65
86d6c3b90ad7 Added new gui files.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
diff changeset
66 # Files associated with the project:
86d6c3b90ad7 Added new gui files.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
diff changeset
67 SOURCES +=\
13682
c0e0625ffd13 Adjustements for compiling on Windows.
Jacob@Jacob-PC
parents: 13679
diff changeset
68 src/lexer/lexeroctavegui.cpp \
c0e0625ffd13 Adjustements for compiling on Windows.
Jacob@Jacob-PC
parents: 13679
diff changeset
69 src/MainWindow.cpp \
c0e0625ffd13 Adjustements for compiling on Windows.
Jacob@Jacob-PC
parents: 13679
diff changeset
70 src/VariablesDockWidget.cpp \
c0e0625ffd13 Adjustements for compiling on Windows.
Jacob@Jacob-PC
parents: 13679
diff changeset
71 src/HistoryDockWidget.cpp \
c0e0625ffd13 Adjustements for compiling on Windows.
Jacob@Jacob-PC
parents: 13679
diff changeset
72 src/FilesDockWidget.cpp \
c0e0625ffd13 Adjustements for compiling on Windows.
Jacob@Jacob-PC
parents: 13679
diff changeset
73 src/FileEditorMdiSubWindow.cpp \
c0e0625ffd13 Adjustements for compiling on Windows.
Jacob@Jacob-PC
parents: 13679
diff changeset
74 src/BrowserWidget.cpp \
c0e0625ffd13 Adjustements for compiling on Windows.
Jacob@Jacob-PC
parents: 13679
diff changeset
75 src/ImageViewerMdiSubWindow.cpp \
13679
e272af3f252d Renamed qirc to irc.
Jacob Dawid <jacob.dawid@googlemail.com>
parents: 13678
diff changeset
76 src/irc/IRCWidget.cpp \
13504
13e3d60aff2d Replaced Quint with OctaveGUI.
Jacob Dawid <jacob.dawid@googlemail.com>
parents: 13502
diff changeset
77 src/SettingsDialog.cpp \
13537
a43ecce77eec Introduced a central ResourceManager class.
Jacob Dawid <jacob.dawid@googlemail.com>
parents: 13516
diff changeset
78 src/OctaveGUI.cpp \
13539
a4b5cad8f7c6 Added command line parser class.
Jacob Dawid <jacob.dawid@googlemail.com>
parents: 13537
diff changeset
79 src/ResourceManager.cpp \
13540
0dbf8681cd08 Seperated classes into own files.
Jacob Dawid <jacob.dawid@googlemail.com>
parents: 13539
diff changeset
80 src/CommandLineParser.cpp \
13543
8d529f8103dc Separated backend files to folder.
Jacob Dawid <jacob.dawid@googlemail.com>
parents: 13540
diff changeset
81 src/backend/OctaveCallbackThread.cpp \
8d529f8103dc Separated backend files to folder.
Jacob Dawid <jacob.dawid@googlemail.com>
parents: 13540
diff changeset
82 src/backend/OctaveLink.cpp \
13579
6568fccb8940 Updated russian and ukrainian translation files.
Jacob Dawid <jacob.dawid@googlemail.com>
parents: 13574
diff changeset
83 src/backend/OctaveMainThread.cpp \
13679
e272af3f252d Renamed qirc to irc.
Jacob Dawid <jacob.dawid@googlemail.com>
parents: 13678
diff changeset
84 src/irc/IRCClientImpl.cpp \
13640
bad5cb3cfe20 Cleanly separated terminal emulation code with an interface for platform-dependent terminals.
Jacob Dawid <jacob.dawid@googlemail.com>
parents: 13639
diff changeset
85 src/terminal/TerminalEmulation.cpp \
13647
ac3d9480292d Renamed file.
Jacob Dawid <jacob.dawid@googlemail.com>
parents: 13645
diff changeset
86 src/backend/ReadlineAdapter.cpp \
13665
ddc3c20d0e2f Implemented highlighting of octave keywords in terminal.
Jacob Dawid <jacob.dawid@googlemail.com>
parents: 13648
diff changeset
87 src/TerminalView.cpp \
13668
421afeae929b Added a settings wizard that appears at first startup of Octave GUI.
Jacob Dawid <jacob.dawid@googlemail.com>
parents: 13665
diff changeset
88 src/TerminalHighlighter.cpp \
421afeae929b Added a settings wizard that appears at first startup of Octave GUI.
Jacob Dawid <jacob.dawid@googlemail.com>
parents: 13665
diff changeset
89 src/WelcomeWizard.cpp
13501
86d6c3b90ad7 Added new gui files.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
diff changeset
90
13682
c0e0625ffd13 Adjustements for compiling on Windows.
Jacob@Jacob-PC
parents: 13679
diff changeset
91 unix {
c0e0625ffd13 Adjustements for compiling on Windows.
Jacob@Jacob-PC
parents: 13679
diff changeset
92 SOURCES +=\
c0e0625ffd13 Adjustements for compiling on Windows.
Jacob@Jacob-PC
parents: 13679
diff changeset
93 src/terminal/LinuxTerminalEmulation.cpp \
c0e0625ffd13 Adjustements for compiling on Windows.
Jacob@Jacob-PC
parents: 13679
diff changeset
94 src/terminal/KPty.cpp \
c0e0625ffd13 Adjustements for compiling on Windows.
Jacob@Jacob-PC
parents: 13679
diff changeset
95 src/terminal/KPtyDevice.cpp
c0e0625ffd13 Adjustements for compiling on Windows.
Jacob@Jacob-PC
parents: 13679
diff changeset
96 }
c0e0625ffd13 Adjustements for compiling on Windows.
Jacob@Jacob-PC
parents: 13679
diff changeset
97
13501
86d6c3b90ad7 Added new gui files.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
diff changeset
98 HEADERS += \
13682
c0e0625ffd13 Adjustements for compiling on Windows.
Jacob@Jacob-PC
parents: 13679
diff changeset
99 src/lexer/lexeroctavegui.h \
c0e0625ffd13 Adjustements for compiling on Windows.
Jacob@Jacob-PC
parents: 13679
diff changeset
100 src/MainWindow.h \
c0e0625ffd13 Adjustements for compiling on Windows.
Jacob@Jacob-PC
parents: 13679
diff changeset
101 src/VariablesDockWidget.h \
c0e0625ffd13 Adjustements for compiling on Windows.
Jacob@Jacob-PC
parents: 13679
diff changeset
102 src/HistoryDockWidget.h \
c0e0625ffd13 Adjustements for compiling on Windows.
Jacob@Jacob-PC
parents: 13679
diff changeset
103 src/FilesDockWidget.h \
c0e0625ffd13 Adjustements for compiling on Windows.
Jacob@Jacob-PC
parents: 13679
diff changeset
104 src/FileEditorMdiSubWindow.h \
c0e0625ffd13 Adjustements for compiling on Windows.
Jacob@Jacob-PC
parents: 13679
diff changeset
105 src/BrowserWidget.h \
c0e0625ffd13 Adjustements for compiling on Windows.
Jacob@Jacob-PC
parents: 13679
diff changeset
106 src/ImageViewerMdiSubWindow.h \
13679
e272af3f252d Renamed qirc to irc.
Jacob Dawid <jacob.dawid@googlemail.com>
parents: 13678
diff changeset
107 src/irc/IRCWidget.h \
13537
a43ecce77eec Introduced a central ResourceManager class.
Jacob Dawid <jacob.dawid@googlemail.com>
parents: 13516
diff changeset
108 src/SettingsDialog.h \
13539
a4b5cad8f7c6 Added command line parser class.
Jacob Dawid <jacob.dawid@googlemail.com>
parents: 13537
diff changeset
109 src/ResourceManager.h \
13540
0dbf8681cd08 Seperated classes into own files.
Jacob Dawid <jacob.dawid@googlemail.com>
parents: 13539
diff changeset
110 src/CommandLineParser.h \
13543
8d529f8103dc Separated backend files to folder.
Jacob Dawid <jacob.dawid@googlemail.com>
parents: 13540
diff changeset
111 src/backend/OctaveCallbackThread.h \
8d529f8103dc Separated backend files to folder.
Jacob Dawid <jacob.dawid@googlemail.com>
parents: 13540
diff changeset
112 src/backend/OctaveLink.h \
13579
6568fccb8940 Updated russian and ukrainian translation files.
Jacob Dawid <jacob.dawid@googlemail.com>
parents: 13574
diff changeset
113 src/backend/OctaveMainThread.h \
13679
e272af3f252d Renamed qirc to irc.
Jacob Dawid <jacob.dawid@googlemail.com>
parents: 13678
diff changeset
114 src/irc/IRCClientInterface.h \
e272af3f252d Renamed qirc to irc.
Jacob Dawid <jacob.dawid@googlemail.com>
parents: 13678
diff changeset
115 src/irc/IRCClientImpl.h \
13640
bad5cb3cfe20 Cleanly separated terminal emulation code with an interface for platform-dependent terminals.
Jacob Dawid <jacob.dawid@googlemail.com>
parents: 13639
diff changeset
116 src/terminal/TerminalEmulation.h \
13647
ac3d9480292d Renamed file.
Jacob Dawid <jacob.dawid@googlemail.com>
parents: 13645
diff changeset
117 src/backend/ReadlineAdapter.h \
13665
ddc3c20d0e2f Implemented highlighting of octave keywords in terminal.
Jacob Dawid <jacob.dawid@googlemail.com>
parents: 13648
diff changeset
118 src/TerminalView.h \
13668
421afeae929b Added a settings wizard that appears at first startup of Octave GUI.
Jacob Dawid <jacob.dawid@googlemail.com>
parents: 13665
diff changeset
119 src/TerminalHighlighter.h \
421afeae929b Added a settings wizard that appears at first startup of Octave GUI.
Jacob Dawid <jacob.dawid@googlemail.com>
parents: 13665
diff changeset
120 src/WelcomeWizard.h
13501
86d6c3b90ad7 Added new gui files.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
diff changeset
121
13682
c0e0625ffd13 Adjustements for compiling on Windows.
Jacob@Jacob-PC
parents: 13679
diff changeset
122 unix {
c0e0625ffd13 Adjustements for compiling on Windows.
Jacob@Jacob-PC
parents: 13679
diff changeset
123 HEADERS += \
c0e0625ffd13 Adjustements for compiling on Windows.
Jacob@Jacob-PC
parents: 13679
diff changeset
124 src/terminal/LinuxTerminalEmulation.h \
c0e0625ffd13 Adjustements for compiling on Windows.
Jacob@Jacob-PC
parents: 13679
diff changeset
125 src/terminal/KPtyDevice.h \
c0e0625ffd13 Adjustements for compiling on Windows.
Jacob@Jacob-PC
parents: 13679
diff changeset
126 src/terminal/KPty.h
c0e0625ffd13 Adjustements for compiling on Windows.
Jacob@Jacob-PC
parents: 13679
diff changeset
127 }
c0e0625ffd13 Adjustements for compiling on Windows.
Jacob@Jacob-PC
parents: 13679
diff changeset
128
13501
86d6c3b90ad7 Added new gui files.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
diff changeset
129 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
130 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
131 src/WelcomeWizard.ui