QMake: No need for 'make depend' anymore
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
90744ced60
commit
57c32eea58
18 changed files with 75 additions and 110 deletions
24
gta5view.pro
24
gta5view.pro
|
|
@ -16,7 +16,7 @@
|
|||
#* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#*****************************************************************************/
|
||||
|
||||
QT += core gui network svg
|
||||
QT += core gui network svg
|
||||
|
||||
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
||||
greaterThan(QT_MAJOR_VERSION, 4): greaterThan(QT_MINOR_VERSION, 1): win32: QT += winextras
|
||||
|
|
@ -69,7 +69,7 @@ SOURCES += main.cpp \
|
|||
uimod/UiModLabel.cpp \
|
||||
uimod/UiModWidget.cpp
|
||||
|
||||
HEADERS += \
|
||||
HEADERS += \
|
||||
AboutDialog.h \
|
||||
AppEnv.h \
|
||||
CrewDatabase.h \
|
||||
|
|
@ -112,7 +112,7 @@ HEADERS += \
|
|||
uimod/UiModLabel.h \
|
||||
uimod/UiModWidget.h
|
||||
|
||||
FORMS += \
|
||||
FORMS += \
|
||||
AboutDialog.ui \
|
||||
ExportDialog.ui \
|
||||
ImportDialog.ui \
|
||||
|
|
@ -139,8 +139,8 @@ TRANSLATIONS += \
|
|||
res/gta5sync_zh_TW.ts
|
||||
|
||||
RESOURCES += \
|
||||
res/tr_g5p.qrc \
|
||||
res/app_qmake.qrc
|
||||
res/app.qrc \
|
||||
res/tr_g5p.qrc
|
||||
|
||||
DISTFILES += \
|
||||
res/gta5view-16.png \
|
||||
|
|
@ -217,9 +217,11 @@ isEqual(QT_MAJOR_VERSION, 5): GTA5SYNC_RCC = $$[QT_HOST_BINS]/rcc
|
|||
|
||||
# RESOURCE COMPILATION
|
||||
|
||||
depend.depends += $$PWD/res/global.qrc
|
||||
depend.commands += $$GTA5SYNC_RCC -binary -threshold 0 -compress 9 $$PWD/res/global.qrc -o $$PWD/res/global.rcc
|
||||
QMAKE_EXTRA_TARGETS += depend
|
||||
system($$GTA5SYNC_RCC -threshold 0 -compress 9 $$PWD/res/global.qrc -o $$OUT_PWD/qrc_global.cpp) {
|
||||
SOURCES += $$OUT_PWD/qrc_global.cpp
|
||||
} else {
|
||||
message("Failed to generate qrc_global.cpp")
|
||||
}
|
||||
|
||||
# PROJECT INSTALLATION
|
||||
|
||||
|
|
@ -253,3 +255,9 @@ contains(DEFINES, GTA5SYNC_QCONF){
|
|||
HEADERS -= TelemetryClass.h \
|
||||
tmext/TelemetryClassAuthenticator.h
|
||||
}
|
||||
|
||||
# CMAKE BASED STUFF
|
||||
|
||||
unix: greaterThan(QT_MAJOR_VERSION, 4) {
|
||||
message("Building non-Windows gta5view with QMake is deprecated, please use CMake instead!")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue