cpptools.qbs 5.79 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
        "compileroptionsbuilder.cpp", "compileroptionsbuilder.h",
35 36 37 38 39
        "commentssettings.cpp", "commentssettings.h",
        "completionsettingspage.cpp", "completionsettingspage.h", "completionsettingspage.ui",
        "cppchecksymbols.cpp", "cppchecksymbols.h",
        "cppclassesfilter.cpp", "cppclassesfilter.h",
        "cppcodeformatter.cpp", "cppcodeformatter.h",
40
        "cppcodemodelinspectordumper.cpp", "cppcodemodelinspectordumper.h",
41 42 43 44 45 46 47
        "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",
48
        "cppcompletionassistprocessor.cpp", "cppcompletionassistprocessor.h",
49 50 51
        "cppcompletionassistprovider.cpp", "cppcompletionassistprovider.h",
        "cppcurrentdocumentfilter.cpp", "cppcurrentdocumentfilter.h",
        "cppdoxygen.cpp", "cppdoxygen.h",
52
        "cppeditoroutline.cpp", "cppeditoroutline.h",
53
        "cppfileiterationorder.cpp", "cppfileiterationorder.h",
54 55 56
        "cppfilesettingspage.cpp", "cppfilesettingspage.h", "cppfilesettingspage.ui",
        "cppfindreferences.cpp", "cppfindreferences.h",
        "cppfunctionsfilter.cpp", "cppfunctionsfilter.h",
57
        "cppincludesfilter.cpp", "cppincludesfilter.h",
58 59 60 61 62 63 64 65 66 67 68
        "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",
69
        "cppselectionchanger.cpp", "cppselectionchanger.h",
70
        "cppsemanticinfo.cpp", "cppsemanticinfo.h",
71
        "cppsemanticinfoupdater.cpp", "cppsemanticinfoupdater.h",
72
        "cppsourceprocessor.cpp", "cppsourceprocessor.h",
Marco Bubke's avatar
Marco Bubke committed
73 74 75
        "cpptoolsbridge.cpp", "cpptoolsbridge.h",
        "cpptoolsbridgeinterface.h",
        "cpptoolsbridgeqtcreatorimplementation.cpp", "cpptoolsbridgeqtcreatorimplementation.h",
76
        "cpptools.qrc",
Joerg Bornemann's avatar
Joerg Bornemann committed
77 78
        "cpptools_global.h",
        "cpptoolsconstants.h",
79
        "cpptoolsjsextension.cpp", "cpptoolsjsextension.h",
80 81 82
        "cpptoolsplugin.cpp", "cpptoolsplugin.h",
        "cpptoolsreuse.cpp", "cpptoolsreuse.h",
        "cpptoolssettings.cpp", "cpptoolssettings.h",
83
        "cppworkingcopy.cpp", "cppworkingcopy.h",
84
        "doxygengenerator.cpp", "doxygengenerator.h",
85
        "editordocumenthandle.cpp", "editordocumenthandle.h",
86
        "functionutils.cpp", "functionutils.h",
87
        "generatedcodemodelsupport.cpp", "generatedcodemodelsupport.h",
88
        "includeutils.cpp", "includeutils.h",
89
        "indexitem.cpp", "indexitem.h",
90
        "insertionpointlocator.cpp", "insertionpointlocator.h",
91
        "projectinfo.cpp", "projectinfo.h",
92
        "projectpart.cpp", "projectpart.h",
93
        "projectpartbuilder.cpp", "projectpartbuilder.h",
94
        "projectpartheaderpath.h",
95
        "searchsymbols.cpp", "searchsymbols.h",
96
        "semantichighlighter.cpp", "semantichighlighter.h",
97
        "senddocumenttracker.cpp", "senddocumenttracker.h",
98
        "stringtable.cpp", "stringtable.h",
99 100 101
        "symbolfinder.cpp", "symbolfinder.h",
        "symbolsfindfilter.cpp", "symbolsfindfilter.h",
        "typehierarchybuilder.cpp", "typehierarchybuilder.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
102
    ]
Marco Bubke's avatar
Marco Bubke committed
103

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

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

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