cpptools.qbs 4.95 KB
Newer Older
1
import qbs 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" }
10 11 12 13
    Depends { name: "Aggregation" }
    Depends { name: "CPlusPlus" }
    Depends { name: "Utils" }

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

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

Joerg Bornemann's avatar
Joerg Bornemann committed
25
    files: [
26
        "abstracteditorsupport.cpp", "abstracteditorsupport.h",
27
        "baseeditordocumentparser.cpp", "baseeditordocumentparser.h",
28
        "baseeditordocumentprocessor.cpp", "baseeditordocumentprocessor.h",
29
        "builtineditordocumentparser.cpp", "builtineditordocumentparser.h",
30
        "builtineditordocumentprocessor.cpp", "builtineditordocumentprocessor.h",
31 32 33 34 35 36
        "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",
37
        "cppcodemodelinspectordumper.cpp", "cppcodemodelinspectordumper.h",
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
        "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",
        "cppcompletionassistprovider.cpp", "cppcompletionassistprovider.h",
        "cppcurrentdocumentfilter.cpp", "cppcurrentdocumentfilter.h",
        "cppdoxygen.cpp", "cppdoxygen.h",
        "cppfilesettingspage.cpp", "cppfilesettingspage.h", "cppfilesettingspage.ui",
        "cppfindreferences.cpp", "cppfindreferences.h",
        "cppfunctionsfilter.cpp", "cppfunctionsfilter.h",
        "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",
60
        "cppprojects.cpp", "cppprojects.h",
61 62 63
        "cppqtstyleindenter.cpp", "cppqtstyleindenter.h",
        "cpprefactoringchanges.cpp", "cpprefactoringchanges.h",
        "cppsemanticinfo.cpp", "cppsemanticinfo.h",
64
        "cppsemanticinfoupdater.cpp", "cppsemanticinfoupdater.h",
65
        "cppsourceprocessor.cpp", "cppsourceprocessor.h",
66
        "cpptools.qrc",
Joerg Bornemann's avatar
Joerg Bornemann committed
67 68
        "cpptools_global.h",
        "cpptoolsconstants.h",
69
        "cpptoolsjsextension.cpp", "cpptoolsjsextension.h",
70 71 72
        "cpptoolsplugin.cpp", "cpptoolsplugin.h",
        "cpptoolsreuse.cpp", "cpptoolsreuse.h",
        "cpptoolssettings.cpp", "cpptoolssettings.h",
73
        "cppworkingcopy.cpp", "cppworkingcopy.h",
74
        "doxygengenerator.cpp", "doxygengenerator.h",
75
        "editordocumenthandle.cpp", "editordocumenthandle.h",
76 77
        "functionutils.cpp", "functionutils.h",
        "includeutils.cpp", "includeutils.h",
78
        "indexitem.cpp", "indexitem.h",
79 80
        "insertionpointlocator.cpp", "insertionpointlocator.h",
        "searchsymbols.cpp", "searchsymbols.h",
81
        "semantichighlighter.cpp", "semantichighlighter.h",
82
        "stringtable.cpp", "stringtable.h",
83 84 85
        "symbolfinder.cpp", "symbolfinder.h",
        "symbolsfindfilter.cpp", "symbolsfindfilter.h",
        "typehierarchybuilder.cpp", "typehierarchybuilder.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
86
    ]
Marco Bubke's avatar
Marco Bubke committed
87

88
    Group {
89
        name: "Tests"
90
        condition: project.testsEnabled
91 92 93
        files: [
            "cppcodegen_test.cpp",
            "cppcompletion_test.cpp",
94
            "cppheadersource_test.cpp",
95
            "cpplocalsymbols_test.cpp",
96
            "cpplocatorfilter_test.cpp",
97
            "cppmodelmanager_test.cpp",
98
            "cpppointerdeclarationformatter_test.cpp",
99 100
            "cppsourceprocessertesthelper.cpp", "cppsourceprocessertesthelper.h",
            "cppsourceprocessor_test.cpp",
101
            "cpptoolstestcase.cpp", "cpptoolstestcase.h",
102 103 104
            "modelmanagertesthelper.cpp", "modelmanagertesthelper.h",
            "symbolsearcher_test.cpp",
            "typehierarchybuilder_test.cpp",
105 106 107
        ]

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

110
    Export {
Marco Bubke's avatar
Marco Bubke committed
111
        Depends { name: "CPlusPlus" }
112
        Depends { name: "Qt.concurrent" }
Marco Bubke's avatar
Marco Bubke committed
113
    }
Joerg Bornemann's avatar
Joerg Bornemann committed
114
}