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

QtcPlugin {
    name: "CppEditor"

Yuchen Deng's avatar
Yuchen Deng committed
7
    Depends { name: "Qt.widgets" }
8 9 10 11
    Depends { name: "Aggregation" }
    Depends { name: "CPlusPlus" }
    Depends { name: "Utils" }

Joerg Bornemann's avatar
Joerg Bornemann committed
12 13 14 15
    Depends { name: "Core" }
    Depends { name: "CppTools" }
    Depends { name: "TextEditor" }
    Depends { name: "ProjectExplorer" }
16

17
    Depends { name: "app_version_header" }
18

19 20 21 22
    pluginTestDepends: [
        "QmakeProjectManager",
    ]

Joerg Bornemann's avatar
Joerg Bornemann committed
23
    files: [
24
        "cppautocompleter.cpp", "cppautocompleter.h",
25
        "cppcanonicalsymbol.cpp", "cppcanonicalsymbol.h",
26
        "cppcodemodelinspectordialog.cpp", "cppcodemodelinspectordialog.h", "cppcodemodelinspectordialog.ui",
27
        "cppdocumentationcommenthelper.cpp", "cppdocumentationcommenthelper.h",
28 29 30
        "cppeditor.cpp", "cppeditor.h",
        "cppeditor.qrc",
        "cppeditor_global.h",
31
        "cppeditorconstants.h",
32
        "cppeditordocument.cpp", "cppeditordocument.h",
33
        "cppeditorenums.h",
34 35 36 37 38 39 40 41 42 43
        "cppeditorplugin.cpp", "cppeditorplugin.h",
        "cppelementevaluator.cpp", "cppelementevaluator.h",
        "cppfollowsymbolundercursor.cpp", "cppfollowsymbolundercursor.h",
        "cppfunctiondecldeflink.cpp", "cppfunctiondecldeflink.h",
        "cpphighlighter.cpp", "cpphighlighter.h",
        "cpphoverhandler.cpp", "cpphoverhandler.h",
        "cppincludehierarchy.cpp", "cppincludehierarchy.h",
        "cppincludehierarchyitem.cpp", "cppincludehierarchyitem.h",
        "cppincludehierarchymodel.cpp", "cppincludehierarchymodel.h",
        "cppincludehierarchytreeview.cpp", "cppincludehierarchytreeview.h",
44 45
        "cppinsertvirtualmethods.cpp",
        "cppinsertvirtualmethods.h",
46
        "cpplocalrenaming.cpp", "cpplocalrenaming.h",
47 48 49 50 51 52 53
        "cppoutline.cpp", "cppoutline.h",
        "cpppreprocessordialog.cpp", "cpppreprocessordialog.h", "cpppreprocessordialog.ui",
        "cppquickfix.cpp", "cppquickfix.h",
        "cppquickfixassistant.cpp", "cppquickfixassistant.h",
        "cppquickfixes.cpp", "cppquickfixes.h",
        "cppsnippetprovider.cpp", "cppsnippetprovider.h",
        "cpptypehierarchy.cpp", "cpptypehierarchy.h",
54
        "cppuseselectionsupdater.cpp", "cppuseselectionsupdater.h",
55 56
        "cppvirtualfunctionassistprovider.cpp", "cppvirtualfunctionassistprovider.h",
        "cppvirtualfunctionproposalitem.cpp", "cppvirtualfunctionproposalitem.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
57
    ]
Nikolai Kosjar's avatar
Nikolai Kosjar committed
58 59

    Group {
60
        name: "Tests"
61
        condition: project.testsEnabled
Nikolai Kosjar's avatar
Nikolai Kosjar committed
62
        files: [
63
            "cppdoxygen_test.cpp", "cppdoxygen_test.h",
64
            "cppeditortestcase.cpp", "cppeditortestcase.h",
65
            "cppincludehierarchy_test.cpp",
66
            "cppquickfix_test.cpp",
67
            "cppquickfix_test.h",
68
            "cppuseselections_test.cpp",
69
            "fileandtokenactions_test.cpp",
70
            "followsymbol_switchmethoddecldef_test.cpp",
Nikolai Kosjar's avatar
Nikolai Kosjar committed
71 72 73 74
        ]

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