cppeditor.qbs 1.91 KB
Newer Older
Joerg Bornemann's avatar
Joerg Bornemann committed
1
import qbs.base 1.0
2
import qbs.FileInfo
Joerg Bornemann's avatar
Joerg Bornemann committed
3 4 5 6 7 8

import "../QtcPlugin.qbs" as QtcPlugin

QtcPlugin {
    name: "CppEditor"

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

Joerg Bornemann's avatar
Joerg Bornemann committed
16 17 18 19 20
    files: [
        "cppautocompleter.cpp",
        "cppautocompleter.h",
        "cppclasswizard.cpp",
        "cppclasswizard.h",
21
        "cppeditorconstants.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
22
        "cppeditor.cpp",
23 24
        "cppeditorenums.h",
        "cppeditor_global.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
25
        "cppeditor.h",
26 27
        "cppeditorplugin.cpp",
        "cppeditorplugin.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
28
        "cppeditor.qrc",
Joerg Bornemann's avatar
Joerg Bornemann committed
29 30 31 32
        "cppelementevaluator.cpp",
        "cppelementevaluator.h",
        "cppfilewizard.cpp",
        "cppfilewizard.h",
33 34
        "cppfollowsymbolundercursor.cpp",
        "cppfollowsymbolundercursor.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
35 36 37
        "cppfunctiondecldeflink.cpp",
        "cppfunctiondecldeflink.h",
        "cpphighlighter.cpp",
38 39
        "cpphighlighterfactory.cpp",
        "cpphighlighterfactory.h",
40
        "cpphighlighter.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
41 42 43 44 45 46
        "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"
59
        condition: project.testsEnabled
Nikolai Kosjar's avatar
Nikolai Kosjar committed
60
        files: [
61
            "cppdoxygen_test.cpp",
62
            "cppquickfix_test.cpp",
63 64
            "cppquickfix_test_utils.cpp",
            "cppquickfix_test_utils.h",
65
            "fileandtokenactions_test.cpp",
66
            "followsymbol_switchmethoddecldef_test.cpp",
Nikolai Kosjar's avatar
Nikolai Kosjar committed
67 68 69 70
        ]

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