help.qbs 2.34 KB
Newer Older
Joerg Bornemann's avatar
Joerg Bornemann committed
1 2
import qbs.base 1.0

3
import QtcPlugin
Joerg Bornemann's avatar
Joerg Bornemann committed
4 5 6 7

QtcPlugin {
    name: "Help"

8
    Depends { name: "Qt"; submodules: ["help", "network", "webkit"]; }
9
    Depends {
10 11
        condition: Qt.core.versionMajor >= 5;
        name: "Qt"; submodules: ["printsupport", "webkitwidgets"];
12 13
    }

Joerg Bornemann's avatar
Joerg Bornemann committed
14
    Depends { name: "Core" }
Orgad Shaneh's avatar
Orgad Shaneh committed
15
    Depends { name: "Find" }
Joerg Bornemann's avatar
Joerg Bornemann committed
16
    Depends { name: "Locator" }
17
    Depends { name: "app_version_header" }
Joerg Bornemann's avatar
Joerg Bornemann committed
18

19
    cpp.defines: base.concat(["QT_CLUCENE_SUPPORT"])
20

21 22
    // We include headers from src/shared/help, and their sources include headers from here...
    cpp.includePaths: base.concat([sharedSources.prefix, path])
Joerg Bornemann's avatar
Joerg Bornemann committed
23

24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
    Group {
        name: "Sources"
        files: [
            "centralwidget.cpp", "centralwidget.h",
            "docsettingspage.cpp", "docsettingspage.h", "docsettingspage.ui",
            "externalhelpwindow.cpp", "externalhelpwindow.h",
            "filtersettingspage.cpp", "filtersettingspage.h", "filtersettingspage.ui",
            "generalsettingspage.cpp", "generalsettingspage.h", "generalsettingspage.ui",
            "help.qrc",
            "helpconstants.h",
            "helpfindsupport.cpp", "helpfindsupport.h",
            "helpindexfilter.cpp", "helpindexfilter.h",
            "helpmode.cpp", "helpmode.h",
            "helpplugin.cpp", "helpplugin.h",
            "helpviewer.cpp", "helpviewer.h", "helpviewer_p.h",
            "helpviewer_qtb.cpp",
            "helpviewer_qwv.cpp",
            "localhelpmanager.cpp", "localhelpmanager.h",
            "openpagesmanager.cpp", "openpagesmanager.h",
            "openpagesmodel.cpp", "openpagesmodel.h",
            "openpagesswitcher.cpp", "openpagesswitcher.h",
            "openpageswidget.cpp", "openpageswidget.h",
            "remotehelpfilter.cpp", "remotehelpfilter.h", "remotehelpfilter.ui",
            "searchwidget.cpp", "searchwidget.h",
            "xbelsupport.cpp", "xbelsupport.h",
        ]
    }

    Group {
        id: sharedSources
        name: "Shared Sources"
        prefix: "../../shared/help/"
        files: [
            "bookmarkdialog.ui",
            "bookmarkmanager.cpp", "bookmarkmanager.h",
            "contentwindow.cpp", "contentwindow.h",
            "filternamedialog.cpp", "filternamedialog.h", "filternamedialog.ui",
            "indexwindow.cpp", "indexwindow.h",
            "topicchooser.cpp", "topicchooser.h", "topicchooser.ui",
        ]
    }
Joerg Bornemann's avatar
Joerg Bornemann committed
65
}