cpptools.qbs 5.07 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" }
Christian Kandeler's avatar
Christian Kandeler committed
15
    Depends { name: "app_version_header" }
Joerg Bornemann's avatar
Joerg Bornemann committed
16

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

Joerg Bornemann's avatar
Joerg Bornemann committed
23
    files: [
24
        "abstracteditorsupport.cpp", "abstracteditorsupport.h",
25
        "baseeditordocumentparser.cpp", "baseeditordocumentparser.h",
26
        "baseeditordocumentprocessor.cpp", "baseeditordocumentprocessor.h",
27
        "builtineditordocumentparser.cpp", "builtineditordocumentparser.h",
28
        "builtineditordocumentprocessor.cpp", "builtineditordocumentprocessor.h",
29 30 31 32 33 34
        "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",
35
        "cppcodemodelinspectordumper.cpp", "cppcodemodelinspectordumper.h",
36 37 38 39 40 41 42
        "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",
43
        "cppcompletionassistprocessor.cpp", "cppcompletionassistprocessor.h",
44 45 46 47 48 49
        "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",
50
        "cppincludesfilter.cpp", "cppincludesfilter.h",
51 52 53 54 55 56 57 58 59
        "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
Christian Kandeler's avatar
Christian Kandeler committed
91 92 93
        files: [
            "cppcodegen_test.cpp",
            "cppcompletion_test.cpp",
94
            "cppheadersource_test.cpp",
95
            "cpplocalsymbols_test.cpp",
96
            "cpplocatorfilter_test.cpp",
Christian Kandeler's avatar
Christian Kandeler committed
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",
Christian Kandeler's avatar
Christian Kandeler committed
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
}