cppeditor.qbs 2.62 KB
Newer Older
1
import qbs 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" }
10 11 12 13
    Depends { name: "Aggregation" }
    Depends { name: "CPlusPlus" }
    Depends { name: "Utils" }

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

Tobias Hunger's avatar
Tobias Hunger committed
19
    Depends { name: "app_version_header" }
20

Joerg Bornemann's avatar
Joerg Bornemann committed
21
    files: [
22 23
        "cppautocompleter.cpp", "cppautocompleter.h",
        "cppclasswizard.cpp", "cppclasswizard.h",
24
        "cppcodemodelinspectordialog.cpp", "cppcodemodelinspectordialog.h", "cppcodemodelinspectordialog.ui",
25 26 27
        "cppeditor.cpp", "cppeditor.h",
        "cppeditor.qrc",
        "cppeditor_global.h",
28 29
        "cppeditorconstants.h",
        "cppeditorenums.h",
30 31 32 33 34 35 36 37 38 39 40 41
        "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",
Christian Kandeler's avatar
Christian Kandeler committed
42 43
        "cppinsertvirtualmethods.cpp",
        "cppinsertvirtualmethods.h",
44 45 46 47 48 49 50 51 52
        "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
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",
Christian Kandeler's avatar
Christian Kandeler committed
63
            "cppquickfix_test.h",
64
            "fileandtokenactions_test.cpp",
65
            "followsymbol_switchmethoddecldef_test.cpp",
Nikolai Kosjar's avatar
Nikolai Kosjar committed
66 67 68 69
        ]

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