1
mirror of https://invent.kde.org/network/falkon.git synced 2024-09-21 17:52:10 +02:00

[Building] Correctly detect whether to build keyring plugins.

This commit is contained in:
nowrep 2013-05-20 14:12:48 +02:00
parent 5c698d5d2a
commit c035e02bbd
3 changed files with 24 additions and 21 deletions

View File

@ -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)

View File

@ -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)

View File

@ -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