parent
abdcc5bfab
commit
0d4078f005
4 changed files with 22 additions and 6 deletions
@ -1,5 +1,22 @@ |
||||
TEMPLATE = subdirs |
||||
SUBDIRS = MouseGestures AccessKeysNavigation |
||||
|
||||
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)) |
||||
|
||||
# TestPlugin only in debug build |
||||
CONFIG(debug, debug|release): SUBDIRS += TestPlugin |
||||
!CONFIG(debug, debug|release): SUBDIRS -= $$PWD/TestPlugin |
||||
|
||||
@ -1,3 +0,0 @@ |
||||
TEMPLATE = subdirs |
||||
SUBDIRS = lib main plugins |
||||
CONFIG += ordered |
||||
Loading…
Reference in new issue