cpptools.qbs 4.17 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.qbs" as QtcPlugin
5
import "../../../qbs/defaults.js" as Defaults
Joerg Bornemann's avatar
Joerg Bornemann committed
6 7 8 9

QtcPlugin {
    name: "CppTools"

Yuchen Deng's avatar
Yuchen Deng committed
10
    Depends { name: "Qt.widgets" }
Joerg Bornemann's avatar
Joerg Bornemann committed
11
    Depends { name: "Core" }
Orgad Shaneh's avatar
Orgad Shaneh committed
12
    Depends { name: "Find" }
Joerg Bornemann's avatar
Joerg Bornemann committed
13 14 15 16 17 18 19 20 21 22 23 24 25 26
    Depends { name: "TextEditor" }
    Depends { name: "ProjectExplorer" }
    Depends { name: "Locator" }
    Depends { name: "CPlusPlus" }
    Depends { name: "LanguageUtils" }

    files: [
        "abstracteditorsupport.cpp",
        "abstracteditorsupport.h",
        "commentssettings.cpp",
        "commentssettings.h",
        "completionsettingspage.cpp",
        "completionsettingspage.h",
        "completionsettingspage.ui",
Orgad Shaneh's avatar
Orgad Shaneh committed
27 28
        "cppchecksymbols.cpp",
        "cppchecksymbols.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
29 30 31 32 33 34 35
        "cppclassesfilter.cpp",
        "cppclassesfilter.h",
        "cppcodeformatter.cpp",
        "cppcodeformatter.h",
        "cppcodestylepreferences.cpp",
        "cppcodestylepreferences.h",
        "cppcodestylepreferencesfactory.cpp",
Orgad Shaneh's avatar
Orgad Shaneh committed
36
        "cppcodestylepreferencesfactory.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
37 38 39 40 41 42 43
        "cppcodestylesettings.cpp",
        "cppcodestylesettings.h",
        "cppcodestylesettingspage.cpp",
        "cppcodestylesettingspage.h",
        "cppcodestylesettingspage.ui",
        "cppcompletionassist.cpp",
        "cppcompletionassist.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
44 45 46 47
        "cppcompletionassistprovider.cpp",
        "cppcompletionassistprovider.h",
        "cppcompletionsupport.cpp",
        "cppcompletionsupport.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
48 49 50 51 52 53 54 55 56 57 58 59 60
        "cppcurrentdocumentfilter.cpp",
        "cppcurrentdocumentfilter.h",
        "cppdoxygen.cpp",
        "cppdoxygen.h",
        "cppfilesettingspage.cpp",
        "cppfilesettingspage.h",
        "cppfilesettingspage.ui",
        "cppfindreferences.cpp",
        "cppfindreferences.h",
        "cppfunctionsfilter.cpp",
        "cppfunctionsfilter.h",
        "cpphighlightingsupport.cpp",
        "cpphighlightingsupport.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
61 62
        "cpphighlightingsupportinternal.cpp",
        "cpphighlightingsupportinternal.h",
Christian Kandeler's avatar
Christian Kandeler committed
63 64
        "cppindexingsupport.cpp",
        "cppindexingsupport.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
65 66
        "cpplocalsymbols.cpp",
        "cpplocalsymbols.h",
67 68
        "cpplocatordata.cpp",
        "cpplocatordata.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
69 70 71 72
        "cpplocatorfilter.cpp",
        "cpplocatorfilter.h",
        "cppmodelmanager.cpp",
        "cppmodelmanager.h",
73 74
        "cppmodelmanagerinterface.cpp",
        "cppmodelmanagerinterface.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
75 76
        "cppqtstyleindenter.cpp",
        "cppqtstyleindenter.h",
77 78
        "cpppointerdeclarationformatter.cpp",
        "cpppointerdeclarationformatter.h",
Christian Kandeler's avatar
Christian Kandeler committed
79 80
        "cppprojectfile.cpp",
        "cppprojectfile.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104
        "cpprefactoringchanges.cpp",
        "cpprefactoringchanges.h",
        "cppsemanticinfo.cpp",
        "cppsemanticinfo.h",
        "cpptools_global.h",
        "cpptoolsconstants.h",
        "cpptoolseditorsupport.cpp",
        "cpptoolseditorsupport.h",
        "cpptoolsplugin.cpp",
        "cpptoolsplugin.h",
        "cpptoolsreuse.cpp",
        "cpptoolsreuse.h",
        "cpptoolssettings.cpp",
        "cpptoolssettings.h",
        "doxygengenerator.cpp",
        "doxygengenerator.h",
        "insertionpointlocator.cpp",
        "insertionpointlocator.h",
        "searchsymbols.cpp",
        "searchsymbols.h",
        "symbolfinder.cpp",
        "symbolfinder.h",
        "symbolsfindfilter.cpp",
        "symbolsfindfilter.h",
105 106
        "typehierarchybuilder.cpp",
        "typehierarchybuilder.h",
Christian Kandeler's avatar
Christian Kandeler committed
107
        "builtinindexingsupport.cpp",
108 109
        "builtinindexingsupport.h",
        "cpppreprocessor.cpp",
110 111 112
        "cpppreprocessor.h",
        "includeutils.cpp",
        "includeutils.h"
Joerg Bornemann's avatar
Joerg Bornemann committed
113
    ]
Marco Bubke's avatar
Marco Bubke committed
114

115
    Group {
116
        name: "Tests"
117
        condition: Defaults.testsEnabled(qbs)
Christian Kandeler's avatar
Christian Kandeler committed
118 119 120 121
        files: [
            "cppcodegen_test.cpp",
            "cppcompletion_test.cpp",
            "cppmodelmanager_test.cpp",
122
            "modelmanagertesthelper.cpp", "modelmanagertesthelper.h",
123
            "cpppointerdeclarationformatter_test.cpp",
124
            "cpplocatorfilter_test.cpp",
125 126 127
            "symbolsearcher_test.cpp",
            "cpppreprocessor_test.cpp",
            "cpppreprocessertesthelper.cpp", "cpppreprocessertesthelper.h"
Christian Kandeler's avatar
Christian Kandeler committed
128 129 130
        ]

        cpp.defines: outer.concat(['SRCDIR="' + FileInfo.path(filePath) + '"'])
131 132
    }

133
    Export {
Marco Bubke's avatar
Marco Bubke committed
134 135
        Depends { name: "CPlusPlus" }
    }
Joerg Bornemann's avatar
Joerg Bornemann committed
136
}