Skip to content
This repository has been archived by the owner on May 10, 2018. It is now read-only.

Commit

Permalink
Build system now allow building plugins out of src/plugins directory
Browse files Browse the repository at this point in the history
  • Loading branch information
nowrep committed Jul 6, 2012
1 parent abdcc5b commit 0d4078f
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -7,6 +7,7 @@ DEBIAN
*.a
*.orig
*.qm
*.o
!qt_*.qm
headers*.tar.gz
license_template
Expand Down
3 changes: 2 additions & 1 deletion QupZilla.pro
Expand Up @@ -14,4 +14,5 @@ lessThan(QT_VERSION, 4.7) {
mac|unix: system(test -d bin/plugins || mkdir bin/plugins)

TEMPLATE = subdirs
SUBDIRS = src
SUBDIRS = src/lib src/main src/plugins
CONFIG += ordered
21 changes: 19 additions & 2 deletions src/plugins/plugins.pro
@@ -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
3 changes: 0 additions & 3 deletions src/src.pro

This file was deleted.

0 comments on commit 0d4078f

Please sign in to comment.