cpptools.qbs 5.9 KB
Newer Older
1
import qbs 1.0
2
import qbs.FileInfo
Joerg Bornemann's avatar
Joerg Bornemann committed
3 4 5 6

QtcPlugin {
    name: "CppTools"

Yuchen Deng's avatar
Yuchen Deng committed
7
    Depends { name: "Qt.widgets" }
8 9 10
    Depends { name: "CPlusPlus" }
    Depends { name: "Utils" }

Joerg Bornemann's avatar
Joerg Bornemann committed
11 12 13
    Depends { name: "Core" }
    Depends { name: "TextEditor" }
    Depends { name: "ProjectExplorer" }
14
    Depends { name: "app_version_header" }
Joerg Bornemann's avatar
Joerg Bornemann committed
15

16 17 18 19 20
    pluginTestDepends: [
        "CppEditor",
        "QmakeProjectManager",
    ]

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

Joerg Bornemann's avatar
Joerg Bornemann committed
27
    files: [
28
        "abstracteditorsupport.cpp", "abstracteditorsupport.h",
29
        "baseeditordocumentparser.cpp", "baseeditordocumentparser.h",
30
        "baseeditordocumentprocessor.cpp", "baseeditordocumentprocessor.h",
31
        "builtineditordocumentparser.cpp", "builtineditordocumentparser.h",
32
        "builtineditordocumentprocessor.cpp", "builtineditordocumentprocessor.h",
33
        "builtinindexingsupport.cpp", "builtinindexingsupport.h",
34 35 36 37
        "clangdiagnosticconfig.cpp", "clangdiagnosticconfig.h",
        "clangdiagnosticconfigsmodel.cpp", "clangdiagnosticconfigsmodel.h",
        "clangdiagnosticconfigswidget.cpp", "clangdiagnosticconfigswidget.h",
        "clangdiagnosticconfigswidget.ui",
38
        "compileroptionsbuilder.cpp", "compileroptionsbuilder.h",
39 40 41
        "cppchecksymbols.cpp", "cppchecksymbols.h",
        "cppclassesfilter.cpp", "cppclassesfilter.h",
        "cppcodeformatter.cpp", "cppcodeformatter.h",
42
        "cppcodemodelinspectordumper.cpp", "cppcodemodelinspectordumper.h",
43 44 45 46 47 48 49
        "cppcodemodelsettings.cpp", "cppcodemodelsettings.h",
        "cppcodemodelsettingspage.cpp", "cppcodemodelsettingspage.h", "cppcodemodelsettingspage.ui",
        "cppcodestylepreferences.cpp", "cppcodestylepreferences.h",
        "cppcodestylepreferencesfactory.cpp", "cppcodestylepreferencesfactory.h",
        "cppcodestylesettings.cpp", "cppcodestylesettings.h",
        "cppcodestylesettingspage.cpp", "cppcodestylesettingspage.h", "cppcodestylesettingspage.ui",
        "cppcompletionassist.cpp", "cppcompletionassist.h",
50
        "cppcompletionassistprocessor.cpp", "cppcompletionassistprocessor.h",
51 52 53
        "cppcompletionassistprovider.cpp", "cppcompletionassistprovider.h",
        "cppcurrentdocumentfilter.cpp", "cppcurrentdocumentfilter.h",
        "cppdoxygen.cpp", "cppdoxygen.h",
54
        "cppeditoroutline.cpp", "cppeditoroutline.h",
55
        "cppfileiterationorder.cpp", "cppfileiterationorder.h",
56 57 58
        "cppfilesettingspage.cpp", "cppfilesettingspage.h", "cppfilesettingspage.ui",
        "cppfindreferences.cpp", "cppfindreferences.h",
        "cppfunctionsfilter.cpp", "cppfunctionsfilter.h",
59
        "cppincludesfilter.cpp", "cppincludesfilter.h",
60 61 62 63 64 65 66 67 68 69 70
        "cppindexingsupport.cpp", "cppindexingsupport.h",
        "cpplocalsymbols.cpp", "cpplocalsymbols.h",
        "cpplocatordata.cpp", "cpplocatordata.h",
        "cpplocatorfilter.cpp", "cpplocatorfilter.h",
        "cppmodelmanager.cpp", "cppmodelmanager.h",
        "cppmodelmanagersupport.cpp", "cppmodelmanagersupport.h",
        "cppmodelmanagersupportinternal.cpp", "cppmodelmanagersupportinternal.h",
        "cpppointerdeclarationformatter.cpp", "cpppointerdeclarationformatter.h",
        "cppprojectfile.cpp", "cppprojectfile.h",
        "cppqtstyleindenter.cpp", "cppqtstyleindenter.h",
        "cpprefactoringchanges.cpp", "cpprefactoringchanges.h",
71
        "cppselectionchanger.cpp", "cppselectionchanger.h",
72
        "cppsemanticinfo.cpp", "cppsemanticinfo.h",
73
        "cppsemanticinfoupdater.cpp", "cppsemanticinfoupdater.h",
74
        "cppsourceprocessor.cpp", "cppsourceprocessor.h",
Marco Bubke's avatar
Marco Bubke committed
75 76 77
        "cpptoolsbridge.cpp", "cpptoolsbridge.h",
        "cpptoolsbridgeinterface.h",
        "cpptoolsbridgeqtcreatorimplementation.cpp", "cpptoolsbridgeqtcreatorimplementation.h",
78
        "cpptools.qrc",
Joerg Bornemann's avatar
Joerg Bornemann committed
79 80
        "cpptools_global.h",
        "cpptoolsconstants.h",
81
        "cpptoolsjsextension.cpp", "cpptoolsjsextension.h",
82 83 84
        "cpptoolsplugin.cpp", "cpptoolsplugin.h",
        "cpptoolsreuse.cpp", "cpptoolsreuse.h",
        "cpptoolssettings.cpp", "cpptoolssettings.h",
85
        "cppworkingcopy.cpp", "cppworkingcopy.h",
86
        "doxygengenerator.cpp", "doxygengenerator.h",
87
        "editordocumenthandle.cpp", "editordocumenthandle.h",
88
        "functionutils.cpp", "functionutils.h",
89
        "generatedcodemodelsupport.cpp", "generatedcodemodelsupport.h",
90
        "includeutils.cpp", "includeutils.h",
91
        "indexitem.cpp", "indexitem.h",
92
        "insertionpointlocator.cpp", "insertionpointlocator.h",
93
        "projectinfo.cpp", "projectinfo.h",
94
        "projectpart.cpp", "projectpart.h",
95
        "projectpartbuilder.cpp", "projectpartbuilder.h",
96
        "projectpartheaderpath.h",
97
        "searchsymbols.cpp", "searchsymbols.h",
98
        "semantichighlighter.cpp", "semantichighlighter.h",
99
        "senddocumenttracker.cpp", "senddocumenttracker.h",
100
        "stringtable.cpp", "stringtable.h",
101 102 103
        "symbolfinder.cpp", "symbolfinder.h",
        "symbolsfindfilter.cpp", "symbolsfindfilter.h",
        "typehierarchybuilder.cpp", "typehierarchybuilder.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
104
    ]
Marco Bubke's avatar
Marco Bubke committed
105

106
    Group {
107
        name: "Tests"
108
        condition: project.testsEnabled
109 110 111
        files: [
            "cppcodegen_test.cpp",
            "cppcompletion_test.cpp",
112
            "cppheadersource_test.cpp",
113
            "cpplocalsymbols_test.cpp",
114
            "cpplocatorfilter_test.cpp",
115
            "cppmodelmanager_test.cpp",
116
            "cpppointerdeclarationformatter_test.cpp",
117 118
            "cppsourceprocessertesthelper.cpp", "cppsourceprocessertesthelper.h",
            "cppsourceprocessor_test.cpp",
119
            "cpptoolstestcase.cpp", "cpptoolstestcase.h",
120 121 122
            "modelmanagertesthelper.cpp", "modelmanagertesthelper.h",
            "symbolsearcher_test.cpp",
            "typehierarchybuilder_test.cpp",
123 124 125
        ]

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

128
    Export {
Marco Bubke's avatar
Marco Bubke committed
129
        Depends { name: "CPlusPlus" }
130
        Depends { name: "Qt.concurrent" }
Marco Bubke's avatar
Marco Bubke committed
131
    }
Joerg Bornemann's avatar
Joerg Bornemann committed
132
}