~x2go/x2go/x2goclient_build-main

812 by Mihai Moldovan
x2goclient.pro: translate and simplify header.
1
# This file was created by KDevelop.
2
# -------------------------------------------
21 by Oleksander Schneyder
Imported x2goclient_3.01-4.tar.gz
3
813 by Mihai Moldovan
x2goclient.pro: add x2goclientconfig.pri only containing a comment to override specific entries in x2goclient.pro in x2goclientconfig.pri.
4
# Override settings in this file.
5
include (x2goclientconfig.pri)
25 by Oleksander Schneyder
Imported x2goclient_3.01-16.tar.gz
6
7
CONFIG += $$(X2GO_CLIENT_TARGET)
88 by Mike Gabriel
bundle commit, worked in unreleased non-Git versions 3.01-19, 3.01-20, 3.01-21, bumping towards version 3.0.99.0.
8
CONFIG += $$(X2GO_LINUX_STATIC)
1800 by Mihai Moldovan
x2goclient.pro: detect libssh and libssh_threads via pkgconfig on UNIX-based platforms.
9
CONFIG += link_pkgconfig
720 by Mike DePaulo
Revert accidentaly enabling console output by default
10
#CONFIG += console
88 by Mike Gabriel
bundle commit, worked in unreleased non-Git versions 3.01-19, 3.01-20, 3.01-21, bumping towards version 3.0.99.0.
11
911 by Mihai Moldovan
{x2goclient.pro,res/osxbundle/{Info.plist,postbuild.sh}}:
12
VERSION = "$$cat($${PWD}/VERSION)"
13
811 by Mihai Moldovan
general: move *.ui files to src/ui/ and reference in x2goclient.pro.
14
FORMS += src/ui/cupsprintsettingsdialog.ui \
15
         src/ui/cupsprintwidget.ui \
16
         src/ui/printdialog.ui \
17
         src/ui/printercmddialog.ui \
18
         src/ui/printwidget.ui \
19
         src/ui/xsettingsui.ui \
20
         src/ui/brokerpassdialog.ui \
21
         src/ui/contest.ui \
22
         src/ui/appdialog.ui \
23
         src/ui/helpdialog.ui \
24
         src/ui/folderexplorer.ui
38 by Oleksandr Shneyder
Added Windows X-Server option (Split by Morty)
25
1825 by Tom Ruzicka
Second update round of Czech translation + add it to x2goclient.pro.
26
TRANSLATIONS += res/i18n/x2goclient_cs.ts \
27
                res/i18n/x2goclient_de.ts \
841 by Mihai Moldovan
general: move i18n/ to res/i18n/ and update references in:
28
                res/i18n/x2goclient_da.ts \
29
                res/i18n/x2goclient_es.ts \
30
                res/i18n/x2goclient_et.ts \
31
                res/i18n/x2goclient_fi.ts \
32
                res/i18n/x2goclient_fr.ts \
33
                res/i18n/x2goclient_nb_no.ts \
34
                res/i18n/x2goclient_nl.ts \
35
                res/i18n/x2goclient_pt.ts \
36
                res/i18n/x2goclient_ru.ts \
37
                res/i18n/x2goclient_sv.ts \
38
                res/i18n/x2goclient_tr.ts \
39
                res/i18n/x2goclient_zh_tw.ts
810 by Mihai Moldovan
x2goclient.pro: reference files moved to src/ and src/i18n/.
40
41
HEADERS += src/configdialog.h \
42
           src/editconnectiondialog.h \
43
           src/exportdialog.h \
44
           src/imgframe.h \
45
           src/LDAPSession.h \
46
           src/onmainwindow.h \
47
           src/sessionbutton.h \
48
           src/sessionmanagedialog.h \
49
           src/sshmasterconnection.h \
50
           src/sshprocess.h \
51
           src/SVGFrame.h \
1607 by Oleksandr Shneyder
Interaction with SSH server (for example for changing expired password). Fixes: #592.
52
           src/InteractionDialog.h \
810 by Mihai Moldovan
x2goclient.pro: reference files moved to src/ and src/i18n/.
53
           src/userbutton.h \
54
           src/x2goclientconfig.h \
55
           src/x2gologdebug.h \
56
           src/printprocess.h \
57
           src/cupsprint.h \
58
           src/cupsprintwidget.h \
59
           src/cupsprintersettingsdialog.h \
60
           src/printwidget.h \
61
           src/printercmddialog.h \
62
           src/printdialog.h \
63
           src/wapi.h \
64
           src/sessionwidget.h \
65
           src/configwidget.h \
66
           src/connectionwidget.h \
67
           src/settingswidget.h \
68
           src/mediawidget.h \
69
           src/sharewidget.h \
70
           src/clicklineedit.h \
71
           src/httpbrokerclient.h \
72
           src/ongetpass.h \
73
           src/onmainwindow_privat.h \
74
           src/x2gosettings.h \
75
           src/brokerpassdlg.h \
76
           src/contest.h \
77
           src/xsettingswidget.h \
78
           src/appdialog.h \
79
           src/x2goutils.h \
80
           src/helpdialog.h \
81
           src/sessionexplorer.h \
82
           src/folderbutton.h \
908 by Mihai Moldovan
non_modal_messagebox.{cpp,h}: add new Non_Modal_MessageBox class for non-modal message boxes.
83
           src/folderexplorer.h \
960 by Mihai Moldovan
x2goclient.pro{,.maemo}: add new help.{cpp,h} files.
84
           src/non_modal_messagebox.h \
1228 by Mihai Moldovan
{unixhelper.{cpp,h},x2goclient.pro{maemo}}: add unixhelper stub.
85
           src/help.h \
1256 by Mihai Moldovan
compat.{cpp,h}: new files. Implements strndup on OS X 10.6 and below. Add to x2goclient.cpp, x2goclient.pro and x2goclient.pro.maemo.
86
           src/unixhelper.h \
1260 by Mihai Moldovan
x2goclient.pro{maemo}: reference new pulsemanager.{cpp,h} files.
87
           src/compat.h \
88
           src/pulsemanager.h
810 by Mihai Moldovan
x2goclient.pro: reference files moved to src/ and src/i18n/.
89
90
SOURCES += src/sharewidget.cpp \
91
           src/settingswidget.cpp \
92
           src/mediawidget.cpp \
93
           src/configwidget.cpp \
94
           src/sessionwidget.cpp \
95
           src/connectionwidget.cpp \
96
           src/configdialog.cpp \
97
           src/editconnectiondialog.cpp \
98
           src/exportdialog.cpp \
99
           src/imgframe.cpp \
100
           src/LDAPSession.cpp \
101
           src/onmainwindow.cpp \
102
           src/sessionbutton.cpp \
103
           src/sessionmanagedialog.cpp \
104
           src/sshmasterconnection.cpp \
105
           src/sshprocess.cpp \
106
           src/SVGFrame.cpp \
1607 by Oleksandr Shneyder
Interaction with SSH server (for example for changing expired password). Fixes: #592.
107
           src/InteractionDialog.cpp \
810 by Mihai Moldovan
x2goclient.pro: reference files moved to src/ and src/i18n/.
108
           src/userbutton.cpp \
109
           src/x2gologdebug.cpp \
110
           src/printprocess.cpp \
111
           src/cupsprint.cpp \
112
           src/cupsprintwidget.cpp \
113
           src/cupsprintersettingsdialog.cpp \
114
           src/printwidget.cpp \
115
           src/printercmddialog.cpp \
116
           src/printdialog.cpp \
117
           src/wapi.cpp \
118
           src/clicklineedit.cpp \
119
           src/httpbrokerclient.cpp \
120
           src/ongetpass.cpp \
121
           src/x2gosettings.cpp \
122
           src/brokerpassdlg.cpp \
123
           src/contest.cpp \
124
           src/xsettingswidget.cpp \
125
           src/appdialog.cpp \
126
           src/x2goutils.cpp \
127
           src/helpdialog.cpp \
128
           src/sessionexplorer.cpp \
129
           src/folderbutton.cpp \
908 by Mihai Moldovan
non_modal_messagebox.{cpp,h}: add new Non_Modal_MessageBox class for non-modal message boxes.
130
           src/folderexplorer.cpp \
960 by Mihai Moldovan
x2goclient.pro{,.maemo}: add new help.{cpp,h} files.
131
           src/non_modal_messagebox.cpp \
1228 by Mihai Moldovan
{unixhelper.{cpp,h},x2goclient.pro{maemo}}: add unixhelper stub.
132
           src/help.cpp \
1256 by Mihai Moldovan
compat.{cpp,h}: new files. Implements strndup on OS X 10.6 and below. Add to x2goclient.cpp, x2goclient.pro and x2goclient.pro.maemo.
133
           src/unixhelper.cpp \
1260 by Mihai Moldovan
x2goclient.pro{maemo}: reference new pulsemanager.{cpp,h} files.
134
           src/compat.cpp \
135
           src/pulsemanager.cpp
24 by Oleksander Schneyder
Imported x2goclient_3.01-14.tar.gz
136
1800 by Mihai Moldovan
x2goclient.pro: detect libssh and libssh_threads via pkgconfig on UNIX-based platforms.
137
unix {
138
  isEmpty(PKG_CONFIG):PKG_CONFIG = pkg-config
139
1801 by Mihai Moldovan
x2goclient.pro: let static Linux configuration override the new pkgconfig-based libssh usage.
140
  !x2go_linux_static {
141
    PKGCONFIG += libssh
1800 by Mihai Moldovan
x2goclient.pro: detect libssh and libssh_threads via pkgconfig on UNIX-based platforms.
142
1801 by Mihai Moldovan
x2goclient.pro: let static Linux configuration override the new pkgconfig-based libssh usage.
143
    # Failure to find libssh_threads is non-fatal, since newer libssh versions
144
    # don't ship a separate library any longer.
1835 by Mihai Moldovan
x2goclient.pro: fix libssh_threads logic again.
145
    # We can't just check for version 0.8.0, though, since some distros
146
    # (looking at you, Ubuntu Bionic/18.04) ship a pre-release version of 0.8.0
147
    # which is actually still based upon 0.7.x and still has libssh_threads...
148
    system("$$PKG_CONFIG --exists 'libssh_threads'"):PKGCONFIG += libssh_threads
1801 by Mihai Moldovan
x2goclient.pro: let static Linux configuration override the new pkgconfig-based libssh usage.
149
  }
150
  else {
151
    # No pkgconfig stuff, because... for some reason we wanted to call the
152
    # library libssh_static. This doesn't sound like a standard name a Linux
153
    # distro would ship, but at the same time I doubt anyone is building this
154
    # package statically anyway. And even if they do, they shouldn't.
155
    # It's also unclear how libssh_threads is called in this scheme.
156
    LIBS += -lssh_static
157
  }
1800 by Mihai Moldovan
x2goclient.pro: detect libssh and libssh_threads via pkgconfig on UNIX-based platforms.
158
}
1805 by Mihai Moldovan
x2goclient.pro: fix qmake control flow for libssh logic, we really wanted to use else if for the Windows section and have the general else section being the general fallback.
159
else:win32 {
2035 by Mihai Moldovan
{handle_mxe.sh,x2goclient.pro}: make mxe selectable via CONFIG option and prepare selector in x2goclient.pro.
160
  mxe {
2036 by Ulrich Sibiller
x2goclient.pro: use different parameters for MXE builds.
161
    QMAKE_CXXFLAGS += -DLIBSSH_STATIC=1
162
    LIBS += -lssh -lgcrypt -lgpg-error
2035 by Mihai Moldovan
{handle_mxe.sh,x2goclient.pro}: make mxe selectable via CONFIG option and prepare selector in x2goclient.pro.
163
  }
164
  else {
165
    # pkgconfig is... tricky on Windows. Additionally, libssh 0.7.x stopped
166
    # distributing pkgconfig files on non-UNIX platforms, including Windows.
167
    # We'll hardcode stuff here. Make sure that it's consistent with the
168
    # libraries we use on Windows.
169
    LIBS += -lssh
170
  }
1800 by Mihai Moldovan
x2goclient.pro: detect libssh and libssh_threads via pkgconfig on UNIX-based platforms.
171
}
172
else {
173
  # For backwards-compatibility.
174
  LIBS += -lssh -lssh_threads
175
}
176
2035 by Mihai Moldovan
{handle_mxe.sh,x2goclient.pro}: make mxe selectable via CONFIG option and prepare selector in x2goclient.pro.
177
win32:!mxe {
178
  LIBS += -lAdvAPI32 -lshell32 -lUser32
179
}
88 by Mike Gabriel
bundle commit, worked in unreleased non-Git versions 3.01-19, 3.01-20, 3.01-21, bumping towards version 3.0.99.0.
180
1734 by Mihai Moldovan
x2goclient.pro: remove plugin references.
181
RC_FILE = res/x2goclient.rc
182
SOURCES += src/x2goclient.cpp
183
TARGET = x2goclient
184
DEFINES += CFGCLIENT
24 by Oleksander Schneyder
Imported x2goclient_3.01-14.tar.gz
185
220 by Mihai Moldovan
Add translation file processing to x2goclient.pro.
186
!isEmpty(TRANSLATIONS) {
187
  isEmpty(QMAKE_LRELEASE) {
1082 by Mihai Moldovan
x2goclient.pro: reinstate old lrelease "search" behavior if qtPrepareTool() is not available.
188
    # Some Qt versions (looking at you, EPEL 6) are broken
189
    # and do not provide the qtPrepareTool test function.
190
    # This section is only for working around bugs...
191
    !defined(qtPrepareTool) {
192
      win32:QMAKE_LRELEASE = $$[QT_INSTALL_BINS]\\lrelease.exe
193
      else:QMAKE_LRELEASE = $$[QT_INSTALL_BINS]/lrelease
194
    }
195
    else {
1081 by Henning Heinold
x2goclient.pro: simplify lrelease path preparing for different OS and cross compiling. Fixes: #901.
196
      qtPrepareTool(QMAKE_LRELEASE, lrelease)
1082 by Mihai Moldovan
x2goclient.pro: reinstate old lrelease "search" behavior if qtPrepareTool() is not available.
197
    }
220 by Mihai Moldovan
Add translation file processing to x2goclient.pro.
198
  }
199
200
  isEmpty(TS_DIR):TS_DIR = .
201
202
  TSQM.name = lrelease ${QMAKE_FILE_IN}
203
  TSQM.input = TRANSLATIONS
204
  TSQM.output = $$TS_DIR/${QMAKE_FILE_BASE}.qm
205
  TSQM.commands = $$QMAKE_LRELEASE ${QMAKE_FILE_IN}
206
  TSQM.CONFIG = no_link
207
  QMAKE_EXTRA_COMPILERS += TSQM
208
  PRE_TARGETDEPS += compiler_TSQM_make_all
209
}
827 by Mihai Moldovan
x2goclient.pro: improve consistency: replace tabs with spaces, put quotes around messages, remove or add whitespace where applicable.
210
else:message("No translation files in project")
220 by Mihai Moldovan
Add translation file processing to x2goclient.pro.
211
21 by Oleksander Schneyder
Imported x2goclient_3.01-4.tar.gz
212
TEMPLATE = app
213
DEPENDPATH += .
845 by Mihai Moldovan
x2goclient.pro: reference new src directory as include dir.
214
INCLUDEPATH += src
1210 by Bernard Cafarelli
{res/,x2goclient.pro}: rename .rcc files to .qrc. Fixes: #1096.
215
RESOURCES += res/resources.qrc
21 by Oleksander Schneyder
Imported x2goclient_3.01-4.tar.gz
216
846 by Mihai Moldovan
general: move txt/ to res/text/ and update references in:
217
exists(res/txt/git-info) {
827 by Mihai Moldovan
x2goclient.pro: improve consistency: replace tabs with spaces, put quotes around messages, remove or add whitespace where applicable.
218
  message("Configuring with --git-info")
1210 by Bernard Cafarelli
{res/,x2goclient.pro}: rename .rcc files to .qrc. Fixes: #1096.
219
  RESOURCES += res/git.qrc
548 by Oleksandr Shneyder
Check if txt/changelog and txt/git exist on config phase. Rename option "--git" to "--git-info".
220
}
221
846 by Mihai Moldovan
general: move txt/ to res/text/ and update references in:
222
exists(res/txt/changelog) {
827 by Mihai Moldovan
x2goclient.pro: improve consistency: replace tabs with spaces, put quotes around messages, remove or add whitespace where applicable.
223
  message("Configuring with --changelog")
1210 by Bernard Cafarelli
{res/,x2goclient.pro}: rename .rcc files to .qrc. Fixes: #1096.
224
  RESOURCES += res/changelog.qrc
548 by Oleksandr Shneyder
Check if txt/changelog and txt/git exist on config phase. Rename option "--git" to "--git-info".
225
}
226
1843 by Mihai Moldovan
x2goclient.pro: while a linux scope seems to work fine with Qt5, Qt4 doesn't recognize that, so add another linux-* catch.
227
linux|linux-* {
1842 by Mihai Moldovan
x2goclient.pro: add libraries that we always want to use on Linux correctly to LIBS and use a bigger catch clause.
228
  message("building $$TARGET via $$QMAKESPEC with ldap and cups")
827 by Mihai Moldovan
x2goclient.pro: improve consistency: replace tabs with spaces, put quotes around messages, remove or add whitespace where applicable.
229
  LIBS += -lldap -lcups -lX11 -lXpm
230
  DEFINES += __linux__
21 by Oleksander Schneyder
Imported x2goclient_3.01-4.tar.gz
231
}
88 by Mike Gabriel
bundle commit, worked in unreleased non-Git versions 3.01-19, 3.01-20, 3.01-21, bumping towards version 3.0.99.0.
232
x2go_linux_static {
827 by Mihai Moldovan
x2goclient.pro: improve consistency: replace tabs with spaces, put quotes around messages, remove or add whitespace where applicable.
233
  message("linking all libs statically")
234
  DEFINES += __linux__
1801 by Mihai Moldovan
x2goclient.pro: let static Linux configuration override the new pkgconfig-based libssh usage.
235
  LIBS += -lssl -lXpm
827 by Mihai Moldovan
x2goclient.pro: improve consistency: replace tabs with spaces, put quotes around messages, remove or add whitespace where applicable.
236
  QMAKE_LFLAGS = -Bstatic $$QMAKE_LFLAGS
88 by Mike Gabriel
bundle commit, worked in unreleased non-Git versions 3.01-19, 3.01-20, 3.01-21, bumping towards version 3.0.99.0.
237
}
238
897 by Mihai Moldovan
x2goclient.pro: move ICON definition up before it's actually used in the macx section.
239
ICON = $${PWD}/res/img/icons/x2go-mac.icns
240
21 by Oleksander Schneyder
Imported x2goclient_3.01-4.tar.gz
241
macx {
827 by Mihai Moldovan
x2goclient.pro: improve consistency: replace tabs with spaces, put quotes around messages, remove or add whitespace where applicable.
242
  message("building $$TARGET with ldap and cups")
243
  LIBS += -framework LDAP -lcups -lcrypto -lssl -lz
873 by Mihai Moldovan
macbuild.sh: select stdlib on OS X based on the passed or default SDK value.
244
245
  !isEmpty(OSX_STDLIB) {
1123 by Mihai Moldovan
x2goclient.pro: fix typo --stdlib=... -> -stdlib=... Fixes: #973.
246
    QMAKE_CXXFLAGS += -stdlib=$${OSX_STDLIB}
1920 by Ryan Schmidt
x2goclient.pro: use the right C++ standard library on OS X/macOS.
247
    QMAKE_LFLAGS += -stdlib=$${OSX_STDLIB}
873 by Mihai Moldovan
macbuild.sh: select stdlib on OS X based on the passed or default SDK value.
248
  }
896 by Mihai Moldovan
x2goclient.pro: move OS X-specific stuff from general section to macx section.
249
1116 by Mihai Moldovan
{macbuild.sh,x2goclient.pro}: pass MacPorts library and include path's to qmake.
250
  !isEmpty(MACPORTS_INCLUDE_PATH) {
251
    INCLUDEPATH += $${MACPORTS_INCLUDE_PATH}
252
  }
253
254
  !isEmpty(MACPORTS_LIBRARY_PATH) {
255
    LIBS = -L$${MACPORTS_LIBRARY_PATH} $${LIBS}
256
  }
257
1581 by Mihai Moldovan
{macbuild.sh,src/{x2goutils.h,{pulsemanager,onmainwindow}.cpp},x2goclient.pro}: make MacPorts prefix selectable at compile time.
258
  !isEmpty(MACPORTS_PREFIX) {
259
    DEFINES += MACPORTS_PREFIX=\"\\\"$${MACPORTS_PREFIX}\\\"\"
260
  }
261
896 by Mihai Moldovan
x2goclient.pro: move OS X-specific stuff from general section to macx section.
262
  # Strictly speaking, this is a bug in qmake and we should neither need $${PWD}
263
  # nor QMAKE_INFO_PLIST_OUT nor PRE_TARGETDEPS nor QMAKE_POST_LINK.
264
  # Not defining the latter two will however lead to it being empty and no
265
  # Info.plist file being created in the first place.
266
  # The last command takes care of actually putting the icon in place - yet
267
  # another bug in qmake. Bummer.
911 by Mihai Moldovan
{x2goclient.pro,res/osxbundle/{Info.plist,postbuild.sh}}:
268
  # Qt 4.8 is currently missing patches for substituting FULL_VERSION. Work
269
  # around by using the postbuild.sh script.
896 by Mihai Moldovan
x2goclient.pro: move OS X-specific stuff from general section to macx section.
270
  QMAKE_INFO_PLIST = $${PWD}/res/osxbundle/Info.plist
271
  QMAKE_INFO_PLIST_OUT = $${TARGET}.app/Contents/Info.plist
272
  PRE_TARGETDEPS += $${TARGET}.app/Contents/Info.plist
911 by Mihai Moldovan
{x2goclient.pro,res/osxbundle/{Info.plist,postbuild.sh}}:
273
  QMAKE_POST_LINK += $${PWD}/res/osxbundle/postbuild.sh \"$${TARGET}\" \"$${VERSION}\" \"$${QMAKE_INFO_PLIST_OUT}\" \"$${QMAKE_COPY}\" \"$${ICON}\" \"$${OUT_PWD}/$${TARGET}.app/Contents/Resources/\"
21 by Oleksander Schneyder
Imported x2goclient_3.01-4.tar.gz
274
}
2037 by Mihai Moldovan
x2goclient.pro: also select on win32 and not just win32-*, fix whitespace.
275
win32|win32-* {
827 by Mihai Moldovan
x2goclient.pro: improve consistency: replace tabs with spaces, put quotes around messages, remove or add whitespace where applicable.
276
  message("building $$TARGET for windows without ldap and cups")
277
  LIBS += -lwinspool -lws2_32
278
  CONFIG += static release
21 by Oleksander Schneyder
Imported x2goclient_3.01-4.tar.gz
279
}
280
QT += svg network
2012 by Oleksandr Shneyder
Fixed build with Qt5 on Windows.
281
linux|linux-* {
2037 by Mihai Moldovan
x2goclient.pro: also select on win32 and not just win32-*, fix whitespace.
282
  greaterThan(QT_MAJOR_VERSION, 4): QT += x11extras
2012 by Oleksandr Shneyder
Fixed build with Qt5 on Windows.
283
}
2037 by Mihai Moldovan
x2goclient.pro: also select on win32 and not just win32-*, fix whitespace.
284
win32|win32-* {
285
  greaterThan(QT_MAJOR_VERSION, 4): QT += winextras
2012 by Oleksandr Shneyder
Fixed build with Qt5 on Windows.
286
}
859 by Mihai Moldovan
x2goclient.pro: work around a bug in qmake generating incorrect make rules for embedding the OS X app bundle Info.plist file.
287
2036 by Ulrich Sibiller
x2goclient.pro: use different parameters for MXE builds.
288
mxe:QMAKE_CXXFLAGS += -std=c++11 -Wno-deprecated-declarations
872 by Mihai Moldovan
x2goclient.pro: enable more debugging if needed: change -g flag to -g3 -ggdb3 -gdwarf-4.
289
QMAKE_CXXFLAGS_DEBUG -= -g
879 by Mihai Moldovan
x2goclient.pro: Enable -O2 in debug mode.
290
QMAKE_CXXFLAGS_DEBUG += -O2 -g3 -ggdb3 -gdwarf-4