Mercurial > octave-nkf
comparison gui/octave-gui/octave-gui.pro @ 14240:a9992bc3c3f7 gui
GUI: Added qtermwidget snapshot as a subproject to build as a library that links with Octave GUI.
author | Jacob Dawid <jacob.dawid@googlemail.com> |
---|---|
date | Sat, 21 Jan 2012 11:26:36 +0100 |
parents | gui/octave-gui.pro@995c69c217e5 |
children | b871a65c5681 |
comparison
equal
deleted
inserted
replaced
14239:7ecaa8a66d5a | 14240:a9992bc3c3f7 |
---|---|
1 # OctaveGUI - A graphical user interface for Octave | |
2 # Copyright (C) 2011 Jacob Dawid (jacob.dawid@googlemail.com) | |
3 # | |
4 # This program is free software: you can redistribute it and/or modify | |
5 # it under the terms of the GNU Affero General Public License as | |
6 # published by the Free Software Foundation, either version 3 of the | |
7 # License, or (at your option) any later version. | |
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 | |
12 # GNU Affero General Public License for more details. | |
13 # | |
14 # You should have received a copy of the GNU Affero General Public License | |
15 # along with this program. If not, see <http://www.gnu.org/licenses/>. | |
16 | |
17 | |
18 # Basic settings: | |
19 QT += core gui webkit network # Qt modules | |
20 TEMPLATE = app # Build as application | |
21 TARGET = octave-gui # Name of the target binary | |
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 | |
28 TRANSLATIONS += languages/generic.ts \ | |
29 languages/de-de.ts \ | |
30 languages/pt-br.ts \ | |
31 languages/es-es.ts \ | |
32 languages/ru-ru.ts \ | |
33 languages/uk-ua.ts # Available translations | |
34 LIBS += -L../qtermwidget \ | |
35 -lqscintilla2 \ | |
36 -lqtermwidget \ | |
37 $$system(mkoctfile -p LIBS) \ | |
38 $$system(mkoctfile -p OCTAVE_LIBS) | |
39 | |
40 mac { | |
41 CONFIG -= app_bundle | |
42 } | |
43 | |
44 # Includepaths and libraries to link against: | |
45 INCLUDEPATH += src \ | |
46 src/terminal \ | |
47 src/qirc \ | |
48 src/backend \ | |
49 ../qtermwidget/lib \ | |
50 $$system(mkoctfile -p INCFLAGS) | |
51 | |
52 INCFLAGS += $$system(mkoctfile -p INCFLAGS) | |
53 mac { | |
54 INCFLAGS += -I/opt/local-native/include | |
55 } | |
56 | |
57 QMAKE_LIBDIR += $$system(octave-config -p OCTLIBDIR) | |
58 | |
59 mac { | |
60 LFLAGS += -L/opt/local-native/lib | |
61 } | |
62 | |
63 unix { | |
64 LIBS += -lutil | |
65 } | |
66 | |
67 win32-g++ { | |
68 QMAKE_LFLAGS += --enable-auto-import | |
69 } | |
70 | |
71 win32-msvc* { | |
72 DEFINES += QSCINTILLA_DLL | |
73 #CONFIG += console | |
74 include(msvc-debug.pri) | |
75 } | |
76 | |
77 QMAKE_LFLAGS += $$LFLAGS $$system(mkoctfile -p RLD_FLAG) | |
78 QMAKE_CXXFLAGS += $$INCFLAGS | |
79 | |
80 # Files associated with the project: | |
81 SOURCES +=\ | |
82 src/lexer/lexeroctavegui.cpp \ | |
83 src/MainWindow.cpp \ | |
84 src/WorkspaceView.cpp \ | |
85 src/HistoryDockWidget.cpp \ | |
86 src/FilesDockWidget.cpp \ | |
87 src/FileEditorMdiSubWindow.cpp \ | |
88 src/BrowserWidget.cpp \ | |
89 src/ImageViewerMdiSubWindow.cpp \ | |
90 src/irc/IRCWidget.cpp \ | |
91 src/SettingsDialog.cpp \ | |
92 src/OctaveGUI.cpp \ | |
93 src/ResourceManager.cpp \ | |
94 src/CommandLineParser.cpp \ | |
95 src/backend/OctaveCallbackThread.cpp \ | |
96 src/backend/OctaveLink.cpp \ | |
97 src/backend/OctaveMainThread.cpp \ | |
98 src/irc/IRCClientImpl.cpp \ | |
99 src/backend/ReadlineAdapter.cpp \ | |
100 src/WelcomeWizard.cpp \ | |
101 src/AbstractTerminalView.cpp | |
102 | |
103 unix { | |
104 SOURCES +=\ | |
105 src/TerminalHighlighter.cpp \ | |
106 src/TerminalView.cpp \ | |
107 src/terminal/KPty.cpp \ | |
108 src/terminal/KPtyDevice.cpp \ | |
109 src/terminal/LinuxTerminalEmulation.cpp \ | |
110 src/terminal/TerminalEmulation.cpp | |
111 } | |
112 | |
113 win32 { | |
114 SOURCES += \ | |
115 src/WinTerminalView.cpp \ | |
116 src/terminal/win32/QConsole.cpp \ | |
117 src/terminal/win32/QConsoleColors.cpp | |
118 } | |
119 | |
120 HEADERS += \ | |
121 src/lexer/lexeroctavegui.h \ | |
122 src/MainWindow.h \ | |
123 src/WorkspaceView.h \ | |
124 src/HistoryDockWidget.h \ | |
125 src/FilesDockWidget.h \ | |
126 src/FileEditorMdiSubWindow.h \ | |
127 src/BrowserWidget.h \ | |
128 src/ImageViewerMdiSubWindow.h \ | |
129 src/irc/IRCWidget.h \ | |
130 src/SettingsDialog.h \ | |
131 src/ResourceManager.h \ | |
132 src/CommandLineParser.h \ | |
133 src/backend/OctaveCallbackThread.h \ | |
134 src/backend/OctaveLink.h \ | |
135 src/backend/OctaveMainThread.h \ | |
136 src/irc/IRCClientInterface.h \ | |
137 src/irc/IRCClientImpl.h \ | |
138 src/backend/ReadlineAdapter.h \ | |
139 src/WelcomeWizard.h \ | |
140 src/AbstractTerminalView.h | |
141 | |
142 unix { | |
143 HEADERS += \ | |
144 src/TerminalHighlighter.h \ | |
145 src/TerminalView.h \ | |
146 src/terminal/KPtyDevice.h \ | |
147 src/terminal/KPty.h \ | |
148 src/terminal/LinuxTerminalEmulation.h \ | |
149 src/terminal/TerminalEmulation.h | |
150 } | |
151 | |
152 win32 { | |
153 HEADERS += \ | |
154 src/WinTerminalView.h \ | |
155 src/terminal/win32/QConsole.h \ | |
156 src/terminal/win32/QConsoleColors.h | |
157 INCLUDEPATH += src/terminal/win32 | |
158 } | |
159 | |
160 FORMS += \ | |
161 src/SettingsDialog.ui \ | |
162 src/WelcomeWizard.ui |