-
Notifications
You must be signed in to change notification settings - Fork 1
/
multiupv2.pro
140 lines (125 loc) · 4.53 KB
/
multiupv2.pro
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
# This file is part of Multiup MaNaGeR.
#
# Multiup MaNaGeR is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Multiup MaNaGeR is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Multiup MaNaGeR. If not, see <http://www.gnu.org/licenses/>.
#
# Copyright 2012-2023 Lex
# Copyright 2013 LuNiKoFf
#-------------------------------------------------
#
# Project created by QtCreator 2012-10-15T23:44:59
#
#-------------------------------------------------
QT += core gui widgets
QT += network
# Activate the processing of the FORMS content like mainwindow.ui to ui_mainwindow.h
QT += widgets
win32:QT += winextras
TARGET = multiup
TEMPLATE = app
CONFIG(release, debug|release) {
# Remove logging on Release mode
DEFINES += QT_NO_DEBUG_OUTPUT
DEFINES += QT_NO_WARNING_OUTPUT
message(Release mode is active!)
}
# Known platforms
# - win32 mingw
# - linux unix posix
message(Platform detected : $$QMAKE_PLATFORM)
# Detection & configuration of MSYS env
QTPREFIX=$$[QT_INSTALL_PREFIX]
# Ex: E:/msys64/mingw64/qt5-static
message(Qt kit used: $$QTPREFIX)
MSYS_DETECTION = $$find(QTPREFIX, "msys")
count(MSYS_DETECTION, 1) {
message(MSYS env detected!)
MSYS_PREFIX = "$$QTPREFIX/../.."
message(MSYS_PREFIX: $$MSYS_PREFIX)
}
# Curl dependency for Windows
# Note: Depending on the options used when compilation of curl you may be
# expected to use the following flags:
# -lidn -lssl -lcrypto -lrt -lssl -lz -lrtmp -lwldap32 -lws2_32
count(MSYS_DETECTION, 1) {
# Use manually compiled version of libcurl, without useless dependencies
# This lib is NOT installed in msys env (to avoid conflicts).
win32:INCLUDEPATH += E:\curl-7.88.1\include \
win32:INCLUDEPATH += E:\curl-7.88.1\include\curl
win32:LIBS += -L'E:\curl-7.88.1\lib\.libs'
win32:LIBS += -lcurl -lbcrypt -ladvapi32 -lcrypt32 -lssl -lcrypto -lssl -lcrypto -lgdi32 -lzstd -lz -lws2_32
} else {
# Legacy compilation toolchain
# With mingw32 :
win32:INCLUDEPATH += dependances-developpement\curl-7.28.1-devel-mingw32\include
win32:INCLUDEPATH += dependances-developpement\curl-7.28.1-devel-mingw32\include\curl
# Absolute path is mandatory for linking step
win32:LIBS += -L"D:\Projets\multiupv2\dependances-developpement\curl-7.28.1-devel-mingw32\lib"
win32:LIBS += -L"Z:\media\DATA\Projets\multiupv2\dependances-developpement\curl-7.28.1-devel-mingw32\lib"
win32:LIBS += -lcurl -lwldap32 -lws2_32
# With msvc (draft):
#win32:INCLUDEPATH += libcurl-7.19.3-win32-ssl-msvc \
#win32:INCLUDEPATH += libcurl-7.19.3-win32-ssl-msvc\include\curl \
#win32:INCLUDEPATH += libcurl-7.19.3-win32-ssl-msvc\lib\Release
}
# Curl dependency for Unix systems
# Use system dev version
unix:LIBS += -lcurl
# Mandatory for static libcurl
# Works for Windows & GNU/Linux, but we make a static compilation only for Windows.
win32:DEFINES += CURL_STATICLIB
# Global paths for MSYS env
count(MSYS_DETECTION, 1) {
win32:INCLUDEPATH += $$MSYS_PREFIX/usr/include
win32:INCLUDEPATH += $$MSYS_PREFIX/usr/include/openssl
win32:LIBS += -L'$$MSYS_PREFIX/usr/lib'
win32:LIBS += -L'$$MSYS_PREFIX/mingw64/lib'
}
SOURCES += main.cpp\
mainwindow.cpp \
Outils.cpp \
fenvoirmiseajour.cpp \
FenLiens.cpp \
ObjectConnexion.cpp \
ObjectCompression.cpp \
ObjectSelectionServeur.cpp \
ObjectUpCurl.cpp \
ObjectRecupHebergeurs.cpp \
ObjectRecupHebergeursIcones.cpp \
InfoNewVersion.cpp
HEADERS += mainwindow.h \
Outils.h \
fenvoirmiseajour.h \
FenLiens.h \
ObjectConnexion.h \
ObjectCompression.h \
ObjectSelectionServeur.h \
ObjectUpCurl.h \
Config.h \
ObjectRecupHebergeurs.h \
ObjectRecupHebergeursIcones.h \
version.h \
InfoNewVersion.h
FORMS += mainwindow.ui \
fenvoirmiseajour.ui \
InfoNewVersion.ui
RESOURCES += Multiup.qrc
win32:RC_FILE = ressource_win32.rc
# Make translations visible for lrelease & lupdate
# For lrelease only, use EXTRA_TRANSLATIONS instead.
TRANSLATIONS = multiupManager_en.ts multiupManager_es.ts
# Embed translations files
CONFIG += lrelease
CONFIG += embed_translations
# Default prefix in resources
#QM_FILES_RESOURCE_PREFIX=/i18n/