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/"), "")
|
2013-06-17 01:16:50 +02:00
|
|
|
win32: fullPath = $$lower($$fullPath)
|
2012-07-06 13:28:45 +02:00
|
|
|
exists($$fullPath/*.pro): SUBDIRS += $$fullPath
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export (SUBDIRS)
|
|
|
|
}
|
|
|
|
|
|
|
|
addSubdir($$PWD)
|
|
|
|
|
|
|
|
outOfDirPlugins = $$(QUPZILLA_PLUGINS_SRCDIR)
|
|
|
|
!equals(outOfDirPlugins, "") : addSubdir($$(QUPZILLA_PLUGINS_SRCDIR))
|
2012-02-25 10:22:23 +01:00
|
|
|
|
|
|
|
# TestPlugin only in debug build
|
2012-07-06 13:28:45 +02:00
|
|
|
!CONFIG(debug, debug|release): SUBDIRS -= $$PWD/TestPlugin
|
2013-05-20 14:12:48 +02:00
|
|
|
|
|
|
|
# KWalletPasswords only with KDE_INTEGRATION
|
2014-01-02 16:30:40 +01:00
|
|
|
!contains(DEFINES, KDE_INTEGRATION): SUBDIRS -= $$PWD/KWalletPasswords
|
2013-05-20 14:12:48 +02:00
|
|
|
|
|
|
|
# GnomeKeyringPasswords only with GNOME_INTEGRATION
|
2014-01-02 16:30:40 +01:00
|
|
|
!contains(DEFINES, GNOME_INTEGRATION): SUBDIRS -= $$PWD/GnomeKeyringPasswords
|
2013-05-20 14:12:48 +02:00
|
|
|
!system(pkg-config --exists gnome-keyring-1): SUBDIRS -= $$PWD/GnomeKeyringPasswords
|
2013-06-17 01:16:50 +02:00
|
|
|
|
|
|
|
win32 {
|
|
|
|
SUBDIRS -= $$lower($$PWD/KWalletPasswords)
|
|
|
|
SUBDIRS -= $$lower($$PWD/GnomeKeyringPasswords)
|
|
|
|
}
|