diff --git a/Jamulus.pro b/Jamulus.pro index 6d82107023..debe40adba 100755 --- a/Jamulus.pro +++ b/Jamulus.pro @@ -312,22 +312,26 @@ win32 { BINDIR = $$absolute_path($$BINDIR, $$PREFIX) target.path = $$BINDIR - isEmpty(APPSDIR) { - APPSDIR = share/applications - } - APPSDIR = $$absolute_path($$APPSDIR, $$PREFIX) - desktop.path = $$APPSDIR - QMAKE_SUBSTITUTES += distributions/jamulus.desktop.in - desktop.files = distributions/jamulus.desktop + contains(CONFIG, "headless") { + INSTALLS += target + } else { + isEmpty(APPSDIR) { + APPSDIR = share/applications + } + APPSDIR = $$absolute_path($$APPSDIR, $$PREFIX) + desktop.path = $$APPSDIR + QMAKE_SUBSTITUTES += distributions/jamulus.desktop.in + desktop.files = distributions/jamulus.desktop - isEmpty(ICONSDIR) { - ICONSDIR = share/icons/hicolor/512x512/apps - } - ICONSDIR = $$absolute_path($$ICONSDIR, $$PREFIX) - icons.path = $$ICONSDIR - icons.files = distributions/jamulus.png + isEmpty(ICONSDIR) { + ICONSDIR = share/icons/hicolor/512x512/apps + } + ICONSDIR = $$absolute_path($$ICONSDIR, $$PREFIX) + icons.path = $$ICONSDIR + icons.files = distributions/jamulus.png - INSTALLS += target desktop icons + INSTALLS += target desktop icons + } } RCC_DIR = src/res