cppeditor.qbs 2.79 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

Joerg Bornemann's avatar
Joerg Bornemann committed
19
    files: [
20
        "cppautocompleter.cpp", "cppautocompleter.h",
21
        "cppcanonicalsymbol.cpp", "cppcanonicalsymbol.h",
22
        "cppcodemodelinspectordialog.cpp", "cppcodemodelinspectordialog.h", "cppcodemodelinspectordialog.ui",
23
        "cppdocumentationcommenthelper.cpp", "cppdocumentationcommenthelper.h",
24 25 26
        "cppeditor.cpp", "cppeditor.h",
        "cppeditor.qrc",
        "cppeditor_global.h",
27
        "cppeditorconstants.h",
28
        "cppeditordocument.cpp", "cppeditordocument.h",
29
        "cppeditorenums.h",
30 31 32 33 34 35 36 37 38 39
        "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",
40 41
        "cppinsertvirtualmethods.cpp",
        "cppinsertvirtualmethods.h",
42
        "cpplocalrenaming.cpp", "cpplocalrenaming.h",
43 44 45 46 47 48 49
        "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",
50
        "cppuseselectionsupdater.cpp", "cppuseselectionsupdater.h",
51 52
        "cppvirtualfunctionassistprovider.cpp", "cppvirtualfunctionassistprovider.h",
        "cppvirtualfunctionproposalitem.cpp", "cppvirtualfunctionproposalitem.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
53
    ]
Nikolai Kosjar's avatar
Nikolai Kosjar committed
54 55

    Group {
56
        name: "Tests"
57
        condition: project.testsEnabled
Nikolai Kosjar's avatar
Nikolai Kosjar committed
58
        files: [
59
            "cppdoxygen_test.cpp",
60
            "cppeditortestcase.cpp", "cppeditortestcase.h",
61
            "cppincludehierarchy_test.cpp",
62
            "cppquickfix_test.cpp",
63
            "cppquickfix_test.h",
64
            "cppuseselections_test.cpp",
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
}