cpptools.qbs 4.77 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: "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
    Depends { name: "TextEditor" }
    Depends { name: "ProjectExplorer" }
    Depends { name: "Locator" }
    Depends { name: "CPlusPlus" }
    Depends { name: "LanguageUtils" }

Orgad Shaneh's avatar
Orgad Shaneh committed
18 19 20 21 22 23
    cpp.defines: base
    Properties {
        condition: qbs.toolchain.contains("msvc")
        cpp.defines: base.concat("_SCL_SECURE_NO_WARNINGS")
    }

Joerg Bornemann's avatar
Joerg Bornemann committed
24 25 26 27 28 29 30 31
    files: [
        "abstracteditorsupport.cpp",
        "abstracteditorsupport.h",
        "commentssettings.cpp",
        "commentssettings.h",
        "completionsettingspage.cpp",
        "completionsettingspage.h",
        "completionsettingspage.ui",
Orgad Shaneh's avatar
Orgad Shaneh committed
32 33
        "cppchecksymbols.cpp",
        "cppchecksymbols.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
34 35 36 37 38 39 40
        "cppclassesfilter.cpp",
        "cppclassesfilter.h",
        "cppcodeformatter.cpp",
        "cppcodeformatter.h",
        "cppcodestylepreferences.cpp",
        "cppcodestylepreferences.h",
        "cppcodestylepreferencesfactory.cpp",
Orgad Shaneh's avatar
Orgad Shaneh committed
41
        "cppcodestylepreferencesfactory.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
42 43 44 45 46 47 48
        "cppcodestylesettings.cpp",
        "cppcodestylesettings.h",
        "cppcodestylesettingspage.cpp",
        "cppcodestylesettingspage.h",
        "cppcodestylesettingspage.ui",
        "cppcompletionassist.cpp",
        "cppcompletionassist.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
49 50
        "cppcompletionassistprovider.cpp",
        "cppcompletionassistprovider.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
51 52 53 54 55 56 57 58 59 60 61 62 63
        "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
64 65
        "cpphighlightingsupportinternal.cpp",
        "cpphighlightingsupportinternal.h",
66 67
        "cppindexingsupport.cpp",
        "cppindexingsupport.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
68 69
        "cpplocalsymbols.cpp",
        "cpplocalsymbols.h",
70 71
        "cpplocatordata.cpp",
        "cpplocatordata.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
72 73 74 75
        "cpplocatorfilter.cpp",
        "cpplocatorfilter.h",
        "cppmodelmanager.cpp",
        "cppmodelmanager.h",
76 77 78 79
        "cppmodelmanagersupport.h",
        "cppmodelmanagersupport.cpp",
        "cppmodelmanagersupportinternal.h",
        "cppmodelmanagersupportinternal.cpp",
80 81
        "cppmodelmanagerinterface.cpp",
        "cppmodelmanagerinterface.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
82 83
        "cppqtstyleindenter.cpp",
        "cppqtstyleindenter.h",
84 85
        "cpppointerdeclarationformatter.cpp",
        "cpppointerdeclarationformatter.h",
86 87
        "cppprojectfile.cpp",
        "cppprojectfile.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103
        "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",
104 105
        "functionutils.cpp",
        "functionutils.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
106 107 108 109 110 111 112 113
        "insertionpointlocator.cpp",
        "insertionpointlocator.h",
        "searchsymbols.cpp",
        "searchsymbols.h",
        "symbolfinder.cpp",
        "symbolfinder.h",
        "symbolsfindfilter.cpp",
        "symbolsfindfilter.h",
114 115
        "typehierarchybuilder.cpp",
        "typehierarchybuilder.h",
116
        "builtinindexingsupport.cpp",
117 118
        "builtinindexingsupport.h",
        "cpppreprocessor.cpp",
119 120
        "cpppreprocessor.h",
        "includeutils.cpp",
121 122 123 124 125
        "includeutils.h",
        "cppcodemodelsettings.cpp",
        "cppcodemodelsettings.h",
        "cppcodemodelsettingspage.cpp",
        "cppcodemodelsettingspage.h",
126 127 128
        "cppcodemodelsettingspage.ui",
        "cppsnapshotupdater.cpp",
        "cppsnapshotupdater.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
129
    ]
Marco Bubke's avatar
Marco Bubke committed
130

131
    Group {
132
        name: "Tests"
133
        condition: project.testsEnabled
134 135 136
        files: [
            "cppcodegen_test.cpp",
            "cppcompletion_test.cpp",
137
            "cppheadersource_test.cpp",
138
            "cppmodelmanager_test.cpp",
139
            "modelmanagertesthelper.cpp", "modelmanagertesthelper.h",
140
            "cpppointerdeclarationformatter_test.cpp",
141
            "cpplocatorfilter_test.cpp",
142 143
            "symbolsearcher_test.cpp",
            "cpppreprocessor_test.cpp",
144 145
            "cpppreprocessertesthelper.cpp", "cpppreprocessertesthelper.h",
            "typehierarchybuilder_test.cpp"
146 147 148
        ]

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

151
    Export {
Marco Bubke's avatar
Marco Bubke committed
152
        Depends { name: "CPlusPlus" }
153
        Depends { name: "Qt.concurrent" }
Marco Bubke's avatar
Marco Bubke committed
154
    }
Joerg Bornemann's avatar
Joerg Bornemann committed
155
}