cpptools.qbs 5.2 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 11
    Depends { name: "Aggregation" }
    Depends { name: "CPlusPlus" }
    Depends { name: "Utils" }

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

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

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

Joerg Bornemann's avatar
Joerg Bornemann committed
28
    files: [
29
        "abstracteditorsupport.cpp", "abstracteditorsupport.h",
30
        "baseeditordocumentparser.cpp", "baseeditordocumentparser.h",
31
        "baseeditordocumentprocessor.cpp", "baseeditordocumentprocessor.h",
32
        "builtineditordocumentparser.cpp", "builtineditordocumentparser.h",
33
        "builtineditordocumentprocessor.cpp", "builtineditordocumentprocessor.h",
34 35 36 37 38 39
        "builtinindexingsupport.cpp", "builtinindexingsupport.h",
        "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 54 55
        "cppfilesettingspage.cpp", "cppfilesettingspage.h", "cppfilesettingspage.ui",
        "cppfindreferences.cpp", "cppfindreferences.h",
        "cppfunctionsfilter.cpp", "cppfunctionsfilter.h",
56
        "cppincludesfilter.cpp", "cppincludesfilter.h",
57 58 59 60 61 62 63 64 65
        "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",
66
        "cppprojects.cpp", "cppprojects.h",
67 68 69
        "cppqtstyleindenter.cpp", "cppqtstyleindenter.h",
        "cpprefactoringchanges.cpp", "cpprefactoringchanges.h",
        "cppsemanticinfo.cpp", "cppsemanticinfo.h",
70
        "cppsemanticinfoupdater.cpp", "cppsemanticinfoupdater.h",
71
        "cppsourceprocessor.cpp", "cppsourceprocessor.h",
72
        "cpptools.qrc",
Joerg Bornemann's avatar
Joerg Bornemann committed
73 74
        "cpptools_global.h",
        "cpptoolsconstants.h",
75
        "cpptoolsjsextension.cpp", "cpptoolsjsextension.h",
76 77 78
        "cpptoolsplugin.cpp", "cpptoolsplugin.h",
        "cpptoolsreuse.cpp", "cpptoolsreuse.h",
        "cpptoolssettings.cpp", "cpptoolssettings.h",
79
        "cppworkingcopy.cpp", "cppworkingcopy.h",
80
        "doxygengenerator.cpp", "doxygengenerator.h",
81
        "editordocumenthandle.cpp", "editordocumenthandle.h",
82 83
        "functionutils.cpp", "functionutils.h",
        "includeutils.cpp", "includeutils.h",
84
        "indexitem.cpp", "indexitem.h",
85 86
        "insertionpointlocator.cpp", "insertionpointlocator.h",
        "searchsymbols.cpp", "searchsymbols.h",
87
        "semantichighlighter.cpp", "semantichighlighter.h",
88
        "stringtable.cpp", "stringtable.h",
89 90 91
        "symbolfinder.cpp", "symbolfinder.h",
        "symbolsfindfilter.cpp", "symbolsfindfilter.h",
        "typehierarchybuilder.cpp", "typehierarchybuilder.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
92
    ]
Marco Bubke's avatar
Marco Bubke committed
93

94
    Group {
95
        name: "Tests"
96
        condition: project.testsEnabled
97 98 99
        files: [
            "cppcodegen_test.cpp",
            "cppcompletion_test.cpp",
100
            "cppheadersource_test.cpp",
101
            "cpplocalsymbols_test.cpp",
102
            "cpplocatorfilter_test.cpp",
103
            "cppmodelmanager_test.cpp",
104
            "cpppointerdeclarationformatter_test.cpp",
105 106
            "cppsourceprocessertesthelper.cpp", "cppsourceprocessertesthelper.h",
            "cppsourceprocessor_test.cpp",
107
            "cpptoolstestcase.cpp", "cpptoolstestcase.h",
108 109 110
            "modelmanagertesthelper.cpp", "modelmanagertesthelper.h",
            "symbolsearcher_test.cpp",
            "typehierarchybuilder_test.cpp",
111 112 113
        ]

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

116
    Export {
Marco Bubke's avatar
Marco Bubke committed
117
        Depends { name: "CPlusPlus" }
118
        Depends { name: "Qt.concurrent" }
Marco Bubke's avatar
Marco Bubke committed
119
    }
Joerg Bornemann's avatar
Joerg Bornemann committed
120
}