the-libs/lib/prifiles/processdesktoptranslations.pri

36 lines
2.1 KiB
Text
Raw Normal View History

2021-03-01 09:12:16 -05:00
unix:!macx {
desktopgen.output = ${QMAKE_FILE_BASE}.desktop
2021-03-01 09:38:37 -05:00
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}
2021-03-01 09:12:16 -05:00
desktopgen.input = DESKTOP_FILE
2021-03-01 09:38:37 -05:00
desktopgen.depend_command = ls $$_PRO_FILE_PWD_/translations/desktop/${QMAKE_FILE_BASE}/*.json ${QMAKE_FILE_NAME}
desktopgen.CONFIG = no_link target_predeps explicit_dependencies
2021-03-01 09:12:16 -05:00
desktopgen.variable_out = DESKTOP_FILE_GENERATED
desktopgenbp.output = ${QMAKE_FILE_BASE}.desktop
2021-03-01 09:38:37 -05:00
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}
2021-03-01 09:12:16 -05:00
desktopgenbp.input = DESKTOP_FILE_BLUEPRINT
2021-03-01 09:38:37 -05:00
desktopgenbp.depend_command = ls $$_PRO_FILE_PWD_/translations/desktop/${QMAKE_FILE_BASE}/*.json ${QMAKE_FILE_NAME}
desktopgenbp.CONFIG = no_link target_predeps explicit_dependencies
2021-03-01 09:12:16 -05:00
desktopgenbp.variable_out = DESKTOP_FILE_BLUEPRINT_GENERATED
QMAKE_EXTRA_COMPILERS = desktopgen desktopgenbp
!isEmpty(DESKTOP_FILE):!blueprint {
desktop.files = DESKTOP_FILE_GENERATED
2021-03-10 11:46:22 -05:00
desktop.path = $$[QT_INSTALL_PREFIX]/share/applications
2021-03-11 13:45:29 -05:00
desktop.extra = mkdir -p $(INSTALL_ROOT)$$THELIBS_INSTALL_PREFIX/share/applications/ && $$QMAKE_COPY $${OUT_PWD}/$$DESKTOP_FILE $(INSTALL_ROOT)$$THELIBS_INSTALL_PREFIX/share/applications/
2021-03-01 09:12:16 -05:00
INSTALLS += desktop
message(Will install $$DESKTOP_FILE as the desktop file)
}
!isEmpty(DESKTOP_FILE_BLUEPRINT):blueprint {
2021-03-01 09:38:37 -05:00
desktopbp.files = DESKTOP_FILE_GENERATED_BLUEPRINT
2021-03-10 11:46:22 -05:00
desktopbp.path = $$[QT_INSTALL_PREFIX]/share/applications
2021-03-11 13:45:29 -05:00
desktopbp.extra = mkdir -p $(INSTALL_ROOT)$$THELIBS_INSTALL_PREFIX/share/applications/ && $$QMAKE_COPY $${OUT_PWD}/$$DESKTOP_FILE_BLUEPRINT $(INSTALL_ROOT)$$THELIBS_INSTALL_PREFIX/share/applications/
2021-03-01 09:38:37 -05:00
INSTALLS += desktopbp
2021-03-01 09:12:16 -05:00
message(Will install $$DESKTOP_FILE_BLUEPRINT as the desktop file)
}
}