[Building] Correctly detect whether to build keyring plugins.

remotes/origin/falkon
nowrep 13 years ago
parent 5c698d5d2a
commit c035e02bbd
  1. 20
      src/plugins/GnomeKeyringPasswords/GnomeKeyringPasswords.pro
  2. 18
      src/plugins/KWalletPasswords/KWalletPasswords.pro
  3. 7
      src/plugins/plugins.pro

@ -1,20 +1,18 @@
include(../../defines.pri)
!mac:unix:contains(DEFINES, "GNOME_INTEGRATION"):system(pkg-config --exists gnome-keyring-1) {
TARGET = $$qtLibraryTarget(GnomeKeyringPasswords)
TARGET = $$qtLibraryTarget(GnomeKeyringPasswords)
SOURCES += gnomekeyringplugin.cpp \
gnomekeyringpasswordbackend.cpp
SOURCES += gnomekeyringplugin.cpp \
gnomekeyringpasswordbackend.cpp
HEADERS += gnomekeyringplugin.h \
gnomekeyringpasswordbackend.h
HEADERS += gnomekeyringplugin.h \
gnomekeyringpasswordbackend.h
RESOURCES += gnomekeyringpasswords.qrc
RESOURCES += gnomekeyringpasswords.qrc
TRANSLATIONS = translations/cs_CZ.ts \
TRANSLATIONS = translations/cs_CZ.ts \
LIBS += $$system(pkg-config --libs gnome-keyring-1)
QMAKE_CXXFLAGS += $$system(pkg-config --cflags gnome-keyring-1)
}
LIBS += $$system(pkg-config --libs gnome-keyring-1)
QMAKE_CXXFLAGS += $$system(pkg-config --cflags gnome-keyring-1)
include(../../plugins.pri)

@ -1,19 +1,17 @@
include(../../defines.pri)
!mac:unix:contains(DEFINES, "KDE_INTEGRATION") {
TARGET = $$qtLibraryTarget(KWalletPasswords)
TARGET = $$qtLibraryTarget(KWalletPasswords)
SOURCES += kwalletplugin.cpp \
kwalletpasswordbackend.cpp
SOURCES += kwalletplugin.cpp \
kwalletpasswordbackend.cpp
HEADERS += kwalletplugin.h \
kwalletpasswordbackend.h
HEADERS += kwalletplugin.h \
kwalletpasswordbackend.h
RESOURCES += kwalletpasswords.qrc
RESOURCES += kwalletpasswords.qrc
TRANSLATIONS = translations/cs_CZ.ts \
TRANSLATIONS = translations/cs_CZ.ts \
LIBS += -lkdeui
}
LIBS += -lkdeui
include(../../plugins.pri)

@ -20,3 +20,10 @@ outOfDirPlugins = $$(QUPZILLA_PLUGINS_SRCDIR)
# TestPlugin only in debug build
!CONFIG(debug, debug|release): SUBDIRS -= $$PWD/TestPlugin
# KWalletPasswords only with KDE_INTEGRATION
!contains(DEFINES, "KDE_INTEGRATION"): SUBDIRS -= $$PWD/KWalletPasswords
# GnomeKeyringPasswords only with GNOME_INTEGRATION
!contains(DEFINES, "GNOME_INTEGRATION"): SUBDIRS -= $$PWD/GnomeKeyringPasswords
!system(pkg-config --exists gnome-keyring-1): SUBDIRS -= $$PWD/GnomeKeyringPasswords

Loading…
Cancel
Save