Fix some bugs with the pri file

This commit is contained in:
Victor Tran 2021-03-02 01:38:37 +11:00
parent a0e6373fd6
commit 4349f06424
No known key found for this signature in database
GPG key ID: 1F0729FE016CDC3E

View file

@ -1,14 +1,16 @@
unix:!macx {
desktopgen.output = ${QMAKE_FILE_BASE}.desktop
desktopgen.commands = tltrdesktop --desktop-generate --desktop-template ${QMAKE_FILE_NAME} --json-directory $$_PRO_FILE_PWD_/translations/desktop/${QMAKE_FILE_NAME}/ --desktop-output ${QMAKE_FILE_OUT}
desktopgen.commands = tltrdesktop --json-generate --desktop-generate --desktop-template ${QMAKE_FILE_NAME} --json-directory $$_PRO_FILE_PWD_/translations/desktop/${QMAKE_FILE_BASE}/ --desktop-output ${QMAKE_FILE_OUT}
desktopgen.input = DESKTOP_FILE
desktopgen.CONFIG = no_link target_predeps
desktopgen.depend_command = ls $$_PRO_FILE_PWD_/translations/desktop/${QMAKE_FILE_BASE}/*.json ${QMAKE_FILE_NAME}
desktopgen.CONFIG = no_link target_predeps explicit_dependencies
desktopgen.variable_out = DESKTOP_FILE_GENERATED
desktopgenbp.output = ${QMAKE_FILE_BASE}.desktop
desktopgenbp.commands = tltrdesktop --desktop-generate --desktop-template ${QMAKE_FILE_NAME} --json-directory $$_PRO_FILE_PWD_/translations/desktop/${QMAKE_FILE_NAME}/ --desktop-output ${QMAKE_FILE_OUT}
desktopgenbp.commands = tltrdesktop --json-generate --desktop-generate --desktop-template ${QMAKE_FILE_NAME} --json-directory $$_PRO_FILE_PWD_/translations/desktop/${QMAKE_FILE_BASE}/ --desktop-output ${QMAKE_FILE_OUT}
desktopgenbp.input = DESKTOP_FILE_BLUEPRINT
desktopgenbp.CONFIG = no_link target_predeps
desktopgenbp.depend_command = ls $$_PRO_FILE_PWD_/translations/desktop/${QMAKE_FILE_BASE}/*.json ${QMAKE_FILE_NAME}
desktopgenbp.CONFIG = no_link target_predeps explicit_dependencies
desktopgenbp.variable_out = DESKTOP_FILE_BLUEPRINT_GENERATED
QMAKE_EXTRA_COMPILERS = desktopgen desktopgenbp
@ -23,10 +25,10 @@ unix:!macx {
}
!isEmpty(DESKTOP_FILE_BLUEPRINT):blueprint {
desktop.files = DESKTOP_FILE_GENERATED_BLUEPRINT
desktop.path = /usr/share/applications
desktop.extra = $$QMAKE_COPY $${OUT_PWD}/$$DESKTOP_FILE_BLUEPRINT $(INSTALL_ROOT)/usr/share/applications
INSTALLS += desktop
desktopbp.files = DESKTOP_FILE_GENERATED_BLUEPRINT
desktopbp.path = /usr/share/applications
desktopbp.extra = $$QMAKE_COPY $${OUT_PWD}/$$DESKTOP_FILE_BLUEPRINT $(INSTALL_ROOT)/usr/share/applications
INSTALLS += desktopbp
message(Will install $$DESKTOP_FILE_BLUEPRINT as the desktop file)
}