cppeditor.qbs 2.53 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
    Depends { name: "app_version_header" }
16

Joerg Bornemann's avatar
Joerg Bornemann committed
17
    files: [
18 19
        "cppautocompleter.cpp", "cppautocompleter.h",
        "cppclasswizard.cpp", "cppclasswizard.h",
20
        "cppcodemodelinspectordialog.cpp", "cppcodemodelinspectordialog.h", "cppcodemodelinspectordialog.ui",
21 22 23
        "cppeditor.cpp", "cppeditor.h",
        "cppeditor.qrc",
        "cppeditor_global.h",
24 25
        "cppeditorconstants.h",
        "cppeditorenums.h",
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
        "cppeditorplugin.cpp", "cppeditorplugin.h",
        "cppelementevaluator.cpp", "cppelementevaluator.h",
        "cppfilewizard.cpp", "cppfilewizard.h",
        "cppfollowsymbolundercursor.cpp", "cppfollowsymbolundercursor.h",
        "cppfunctiondecldeflink.cpp", "cppfunctiondecldeflink.h",
        "cpphighlighter.cpp", "cpphighlighter.h",
        "cpphighlighterfactory.cpp", "cpphighlighterfactory.h",
        "cpphoverhandler.cpp", "cpphoverhandler.h",
        "cppincludehierarchy.cpp", "cppincludehierarchy.h",
        "cppincludehierarchyitem.cpp", "cppincludehierarchyitem.h",
        "cppincludehierarchymodel.cpp", "cppincludehierarchymodel.h",
        "cppincludehierarchytreeview.cpp", "cppincludehierarchytreeview.h",
        "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",
        "cppvirtualfunctionassistprovider.cpp", "cppvirtualfunctionassistprovider.h",
        "cppvirtualfunctionproposalitem.cpp", "cppvirtualfunctionproposalitem.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
47
    ]
Nikolai Kosjar's avatar
Nikolai Kosjar committed
48 49

    Group {
50
        name: "Tests"
51
        condition: project.testsEnabled
Nikolai Kosjar's avatar
Nikolai Kosjar committed
52
        files: [
53
            "cppdoxygen_test.cpp",
54
            "cppeditortestcase.cpp", "cppeditortestcase.h",
55
            "cppincludehierarchy_test.cpp",
56
            "cppquickfix_test.cpp",
57 58
            "cppquickfix_test_utils.cpp",
            "cppquickfix_test_utils.h",
59
            "fileandtokenactions_test.cpp",
60
            "followsymbol_switchmethoddecldef_test.cpp",
Nikolai Kosjar's avatar
Nikolai Kosjar committed
61 62 63 64
        ]

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