summaryrefslogtreecommitdiffstats
path: root/Source/DerivedSources.pro
blob: 41c6fd21a3d1d8954aa266263cf4b83281dd2732 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
TEMPLATE = subdirs
CONFIG += ordered

SUBDIRS += \
        JavaScriptCore/DerivedSources.pro \
        WebCore/DerivedSources.pro \
        WebKit/qt/Api/DerivedSources.pro

webkit2: SUBDIRS += WebKit2/DerivedSources.pro

for(subpro, SUBDIRS) {
    subdir = $${dirname(subpro)}
    subtarget = $$replace(subpro, [^a-zA-Z0-9_], -)
    eval($${subtarget}.makefile = "Makefile.DerivedSources")
    eval(generated_files-$${subtarget}.commands = (cd $$subdir && $(MAKE) -f Makefile.DerivedSources generated_files))
    QMAKE_EXTRA_TARGETS += generated_files-$${subtarget}
    generated_files.depends += generated_files-$${subtarget}
}

QMAKE_EXTRA_TARGETS += generated_files