2012-02-18 14:47:38 +01:00
|
|
|
TEMPLATE = subdirs
|
2012-07-06 13:28:45 +02:00
|
|
|
|
2014-01-02 16:30:40 +01:00
|
|
|
include(../defines.pri)
|
|
|
|
|
2012-07-06 13:28:45 +02:00
|
|
|
defineTest(addSubdir) {
|
|
|
|
for(subdir, 1) {
|
|
|
|
entries = $$files($$subdir/*)
|
|
|
|
for(entry, entries) {
|
|
|
|
fullPath = $$replace(entry, ;,"")
|
2013-06-17 01:16:50 +02:00
|
|
|
fullPath = $$replace(fullPath, \\\\, /)
|
2012-07-06 13:28:45 +02:00
|
|
|
name = $$replace(fullPath, $$re_escape("$$subdir/"), "")
|
2014-01-27 22:30:55 +01:00
|
|
|
os2|win32: fullPath = $$lower($$fullPath)
|
2012-07-06 13:28:45 +02:00
|
|
|
exists($$fullPath/*.pro): SUBDIRS += $$fullPath
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export (SUBDIRS)
|
|
|
|
}
|
|
|
|
|
2014-01-27 22:30:55 +01:00
|
|
|
defineTest(disablePlugin) {
|
|
|
|
SUBDIRS -= $$PWD/$$1
|
|
|
|
os2|win32: SUBDIRS -= $$lower($$PWD/$$1)
|
|
|
|
|
|
|
|
export(SUBDIRS)
|
|
|
|
}
|
|
|
|
|
2012-07-06 13:28:45 +02:00
|
|
|
addSubdir($$PWD)
|
|
|
|
|
|
|
|
outOfDirPlugins = $$(QUPZILLA_PLUGINS_SRCDIR)
|
2014-01-27 22:30:55 +01:00
|
|
|
!equals(outOfDirPlugins, ""): addSubdir($$(QUPZILLA_PLUGINS_SRCDIR))
|
2012-02-25 10:22:23 +01:00
|
|
|
|
|
|
|
# TestPlugin only in debug build
|
2014-01-27 22:30:55 +01:00
|
|
|
!CONFIG(debug, debug|release): disablePlugin(TestPlugin)
|
2013-05-20 14:12:48 +02:00
|
|
|
|
2014-09-23 23:03:54 +02:00
|
|
|
# KWalletPasswords only with KDE_INTEGRATION and KWallet framework
|
|
|
|
!contains(DEFINES, KDE_INTEGRATION): disablePlugin(KWalletPasswords)
|
|
|
|
isEqual(QT_MAJOR_VERSION, 5): !qtHaveModule(KWallet): disablePlugin(KWalletPasswords)
|
2013-05-20 14:12:48 +02:00
|
|
|
|
2014-09-23 23:03:54 +02:00
|
|
|
# GnomeKeyringPasswords only with GNOME_INTEGRATION and gnome-keyring pkg-config
|
|
|
|
!contains(DEFINES, GNOME_INTEGRATION): disablePlugin(GnomeKeyringPasswords)
|
|
|
|
!system(pkg-config --exists gnome-keyring-1): disablePlugin(GnomeKeyringPasswords)
|