2011-01-24 Andras Becsi <abecsi@webkit.org>
[WebKit-https.git] / Tools / DerivedSources.pro
1 TEMPLATE = subdirs
2 CONFIG += ordered
3
4 SUBDIRS += \
5     MiniBrowser/DerivedSources.pro \
6     WebKitTestRunner/DerivedSources.pro
7
8 for(subpro, SUBDIRS) {
9     subdir = $${dirname(subpro)}
10     subtarget = $$replace(subpro, [^a-zA-Z0-9_], -)
11     eval($${subtarget}.makefile = "Makefile.DerivedSources")
12     eval(generated_files-$${subtarget}.commands = (cd $$subdir && $(MAKE) -f Makefile.DerivedSources generated_files))
13     QMAKE_EXTRA_TARGETS += generated_files-$${subtarget}
14     generated_files.depends += generated_files-$${subtarget}
15 }
16 QMAKE_EXTRA_TARGETS += generated_files