summaryrefslogtreecommitdiffstats
path: root/src/src.pro
blob: 3f793474f06fc65dc65832f564d41213a58571e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
TEMPLATE = subdirs

process.depends = core
webengine.depends = core
webenginewidgets.depends = core webengine
webengine_plugin.subdir = webengine/plugin
webengine_plugin.target = sub-webengine-plugin
webengine_plugin.depends = webengine

SUBDIRS += core

!contains(WEBENGINE_CONFIG, use_gn) {
    SUBDIRS += process \
               webengine \
               webengine_plugin \
               plugins


    # allow only desktop builds of qwebengine_convert_dict
    contains(WEBENGINE_CONFIG, use_spellchecker):!contains(WEBENGINE_CONFIG, use_native_spellchecker):!cross_compile {
        SUBDIRS += qwebengine_convert_dict
        qwebengine_convert_dict.subdir = tools/qwebengine_convert_dict
        qwebengine_convert_dict.depends = core
    }

    isQMLTestSupportApiEnabled() {
        webengine_testsupport_plugin.subdir = webengine/plugin/testsupport
        webengine_testsupport_plugin.target = sub-webengine-testsupport-plugin
        webengine_testsupport_plugin.depends = webengine
        SUBDIRS += webengine_testsupport_plugin
    }

    # FIXME: We probably want a bit more control over config options to tweak what to build/ship or not.
    # Another example of where this could be necessary is to make it easy to build proprietery codecs support.
    !contains(WEBENGINE_CONFIG, no_ui_delegates) {
        SUBDIRS += webengine/ui \
                   webengine/ui2
    }
    qtHaveModule(widgets) {
        SUBDIRS += webenginewidgets
        plugins.depends = webenginewidgets
    }
}