cpptools.qbs 4.48 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 5 6 7 8

import "../QtcPlugin.qbs" as QtcPlugin

QtcPlugin {
    name: "CppTools"

Yuchen Deng's avatar
Yuchen Deng committed
9
    Depends { name: "Qt.widgets" }
Joerg Bornemann's avatar
Joerg Bornemann committed
10
    Depends { name: "Core" }
Orgad Shaneh's avatar
Orgad Shaneh committed
11
    Depends { name: "Find" }
Joerg Bornemann's avatar
Joerg Bornemann committed
12 13 14 15 16 17 18 19 20 21 22 23 24 25
    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
26 27
        "cppchecksymbols.cpp",
        "cppchecksymbols.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
28 29 30 31 32 33 34
        "cppclassesfilter.cpp",
        "cppclassesfilter.h",
        "cppcodeformatter.cpp",
        "cppcodeformatter.h",
        "cppcodestylepreferences.cpp",
        "cppcodestylepreferences.h",
        "cppcodestylepreferencesfactory.cpp",
Orgad Shaneh's avatar
Orgad Shaneh committed
35
        "cppcodestylepreferencesfactory.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
36 37 38 39 40 41 42
        "cppcodestylesettings.cpp",
        "cppcodestylesettings.h",
        "cppcodestylesettingspage.cpp",
        "cppcodestylesettingspage.h",
        "cppcodestylesettingspage.ui",
        "cppcompletionassist.cpp",
        "cppcompletionassist.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
43 44
        "cppcompletionassistprovider.cpp",
        "cppcompletionassistprovider.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
45 46 47 48 49 50 51 52 53 54 55 56 57
        "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
58 59
        "cpphighlightingsupportinternal.cpp",
        "cpphighlightingsupportinternal.h",
60 61
        "cppindexingsupport.cpp",
        "cppindexingsupport.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
62 63
        "cpplocalsymbols.cpp",
        "cpplocalsymbols.h",
64 65
        "cpplocatordata.cpp",
        "cpplocatordata.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
66 67 68 69
        "cpplocatorfilter.cpp",
        "cpplocatorfilter.h",
        "cppmodelmanager.cpp",
        "cppmodelmanager.h",
70 71 72 73
        "cppmodelmanagersupport.h",
        "cppmodelmanagersupport.cpp",
        "cppmodelmanagersupportinternal.h",
        "cppmodelmanagersupportinternal.cpp",
74 75
        "cppmodelmanagerinterface.cpp",
        "cppmodelmanagerinterface.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
76 77
        "cppqtstyleindenter.cpp",
        "cppqtstyleindenter.h",
78 79
        "cpppointerdeclarationformatter.cpp",
        "cpppointerdeclarationformatter.h",
80 81
        "cppprojectfile.cpp",
        "cppprojectfile.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105
        "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",
106 107
        "typehierarchybuilder.cpp",
        "typehierarchybuilder.h",
108
        "builtinindexingsupport.cpp",
109 110
        "builtinindexingsupport.h",
        "cpppreprocessor.cpp",
111 112
        "cpppreprocessor.h",
        "includeutils.cpp",
113 114 115 116 117 118
        "includeutils.h",
        "cppcodemodelsettings.cpp",
        "cppcodemodelsettings.h",
        "cppcodemodelsettingspage.cpp",
        "cppcodemodelsettingspage.h",
        "cppcodemodelsettingspage.ui"
Joerg Bornemann's avatar
Joerg Bornemann committed
119
    ]
Marco Bubke's avatar
Marco Bubke committed
120

121
    Group {
122
        name: "Tests"
123
        condition: project.testsEnabled
124 125 126
        files: [
            "cppcodegen_test.cpp",
            "cppcompletion_test.cpp",
127
            "cppheadersource_test.cpp",
128
            "cppmodelmanager_test.cpp",
129
            "modelmanagertesthelper.cpp", "modelmanagertesthelper.h",
130
            "cpppointerdeclarationformatter_test.cpp",
131
            "cpplocatorfilter_test.cpp",
132 133 134
            "symbolsearcher_test.cpp",
            "cpppreprocessor_test.cpp",
            "cpppreprocessertesthelper.cpp", "cpppreprocessertesthelper.h"
135 136 137
        ]

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

140
    Export {
Marco Bubke's avatar
Marco Bubke committed
141
        Depends { name: "CPlusPlus" }
142
        Depends { name: "Qt.concurrent" }
Marco Bubke's avatar
Marco Bubke committed
143
    }
Joerg Bornemann's avatar
Joerg Bornemann committed
144
}