cppeditor.qbs 1.83 KB
Newer Older
Joerg Bornemann's avatar
Joerg Bornemann committed
1
import qbs.base 1.0
Nikolai Kosjar's avatar
Nikolai Kosjar committed
2
import qbs.fileinfo as FileInfo
Joerg Bornemann's avatar
Joerg Bornemann committed
3 4

import "../QtcPlugin.qbs" as QtcPlugin
Nikolai Kosjar's avatar
Nikolai Kosjar committed
5
import "../../../qbs/defaults.js" as Defaults
Joerg Bornemann's avatar
Joerg Bornemann committed
6 7 8 9

QtcPlugin {
    name: "CppEditor"

Yuchen Deng's avatar
Yuchen Deng committed
10
    Depends { name: "Qt.widgets" }
Joerg Bornemann's avatar
Joerg Bornemann committed
11 12 13 14 15
    Depends { name: "Core" }
    Depends { name: "CppTools" }
    Depends { name: "CPlusPlus" }
    Depends { name: "TextEditor" }
    Depends { name: "ProjectExplorer" }
16 17

    cpp.includePaths: base.concat("../../libs/3rdparty")
Joerg Bornemann's avatar
Joerg Bornemann committed
18 19 20 21 22 23 24

    files: [
        "CppEditor.mimetypes.xml",
        "cppautocompleter.cpp",
        "cppautocompleter.h",
        "cppclasswizard.cpp",
        "cppclasswizard.h",
25
        "cppeditorconstants.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
26
        "cppeditor.cpp",
27 28
        "cppeditorenums.h",
        "cppeditor_global.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
29
        "cppeditor.h",
30 31
        "cppeditorplugin.cpp",
        "cppeditorplugin.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
32
        "cppeditor.qrc",
Joerg Bornemann's avatar
Joerg Bornemann committed
33 34 35 36 37 38 39 40 41 42 43 44 45 46
        "cppelementevaluator.cpp",
        "cppelementevaluator.h",
        "cppfilewizard.cpp",
        "cppfilewizard.h",
        "cppfunctiondecldeflink.cpp",
        "cppfunctiondecldeflink.h",
        "cpphighlighter.cpp",
        "cpphighlighter.h",
        "cpphoverhandler.cpp",
        "cpphoverhandler.h",
        "cppoutline.cpp",
        "cppoutline.h",
        "cppquickfixassistant.cpp",
        "cppquickfixassistant.h",
47
        "cppquickfix.cpp",
Joerg Bornemann's avatar
Joerg Bornemann committed
48
        "cppquickfixes.cpp",
Nikolai Kosjar's avatar
Nikolai Kosjar committed
49
        "cppquickfixes.h",
50
        "cppquickfix.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
51 52 53
        "cppsnippetprovider.cpp",
        "cppsnippetprovider.h",
        "cpptypehierarchy.cpp",
Orgad Shaneh's avatar
Orgad Shaneh committed
54
        "cpptypehierarchy.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
55
    ]
Nikolai Kosjar's avatar
Nikolai Kosjar committed
56 57

    Group {
58
        name: "Tests"
Nikolai Kosjar's avatar
Nikolai Kosjar committed
59 60
        condition: Defaults.testsEnabled(qbs)
        files: [
61
            "cppdoxygen_test.cpp",
62 63
            "cppquickfix_test.cpp",
            "fileandtokenactions_test.cpp",
64
            "followsymbol_switchmethoddecldef_test.cpp"
Nikolai Kosjar's avatar
Nikolai Kosjar committed
65 66 67 68
        ]

        cpp.defines: outer.concat(['SRCDIR="' + FileInfo.path(filePath) + '"'])
    }
Joerg Bornemann's avatar
Joerg Bornemann committed
69
}