cppeditor.qbs 2.41 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
import QtcPlugin
Joerg Bornemann's avatar
Joerg Bornemann committed
5 6 7 8

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
        "cpphoverhandler.cpp",
        "cpphoverhandler.h",
43 44 45 46 47 48 49 50
        "cppincludehierarchy.cpp",
        "cppincludehierarchy.h",
        "cppincludehierarchyitem.cpp",
        "cppincludehierarchyitem.h",
        "cppincludehierarchymodel.cpp",
        "cppincludehierarchymodel.h",
        "cppincludehierarchytreeview.cpp",
        "cppincludehierarchytreeview.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
51 52
        "cppoutline.cpp",
        "cppoutline.h",
53 54 55
        "cpppreprocessoradditionwidget.cpp",
        "cpppreprocessoradditionwidget.h",
        "cpppreprocessoradditionwidget.ui",
Joerg Bornemann's avatar
Joerg Bornemann committed
56 57
        "cppquickfixassistant.cpp",
        "cppquickfixassistant.h",
58
        "cppquickfix.cpp",
Joerg Bornemann's avatar
Joerg Bornemann committed
59
        "cppquickfixes.cpp",
Nikolai Kosjar's avatar
Nikolai Kosjar committed
60
        "cppquickfixes.h",
61
        "cppquickfix.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
62 63 64
        "cppsnippetprovider.cpp",
        "cppsnippetprovider.h",
        "cpptypehierarchy.cpp",
Orgad Shaneh's avatar
Orgad Shaneh committed
65
        "cpptypehierarchy.h",
66 67
        "cppvirtualfunctionassistprovider.cpp",
        "cppvirtualfunctionassistprovider.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
68
    ]
Nikolai Kosjar's avatar
Nikolai Kosjar committed
69 70

    Group {
71
        name: "Tests"
72
        condition: project.testsEnabled
Nikolai Kosjar's avatar
Nikolai Kosjar committed
73
        files: [
74
            "cppdoxygen_test.cpp",
75
            "cppquickfix_test.cpp",
76 77
            "cppquickfix_test_utils.cpp",
            "cppquickfix_test_utils.h",
78
            "fileandtokenactions_test.cpp",
79
            "followsymbol_switchmethoddecldef_test.cpp",
Nikolai Kosjar's avatar
Nikolai Kosjar committed
80 81 82 83
        ]

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