2012-02-18 14:47:38 +01:00
|
|
|
TEMPLATE = subdirs
|
2012-07-06 13:28:45 +02:00
|
|
|
|
|
|
|
defineTest(addSubdir) {
|
|
|
|
for(subdir, 1) {
|
|
|
|
entries = $$files($$subdir/*)
|
|
|
|
for(entry, entries) {
|
|
|
|
fullPath = $$replace(entry, ;,"")
|
|
|
|
name = $$replace(fullPath, $$re_escape("$$subdir/"), "")
|
|
|
|
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
|