cpptools.qbs 4.99 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 43 44 45 46 47 48
        "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",
49
        "cppincludesfilter.cpp", "cppincludesfilter.h",
50 51 52 53 54 55 56 57 58
        "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",
59
        "cppprojects.cpp", "cppprojects.h",
60 61 62
        "cppqtstyleindenter.cpp", "cppqtstyleindenter.h",
        "cpprefactoringchanges.cpp", "cpprefactoringchanges.h",
        "cppsemanticinfo.cpp", "cppsemanticinfo.h",
63
        "cppsemanticinfoupdater.cpp", "cppsemanticinfoupdater.h",
64
        "cppsourceprocessor.cpp", "cppsourceprocessor.h",
65
        "cpptools.qrc",
Joerg Bornemann's avatar
Joerg Bornemann committed
66 67
        "cpptools_global.h",
        "cpptoolsconstants.h",
68
        "cpptoolsjsextension.cpp", "cpptoolsjsextension.h",
69 70 71
        "cpptoolsplugin.cpp", "cpptoolsplugin.h",
        "cpptoolsreuse.cpp", "cpptoolsreuse.h",
        "cpptoolssettings.cpp", "cpptoolssettings.h",
72
        "cppworkingcopy.cpp", "cppworkingcopy.h",
73
        "doxygengenerator.cpp", "doxygengenerator.h",
74
        "editordocumenthandle.cpp", "editordocumenthandle.h",
75 76
        "functionutils.cpp", "functionutils.h",
        "includeutils.cpp", "includeutils.h",
77
        "indexitem.cpp", "indexitem.h",
78 79
        "insertionpointlocator.cpp", "insertionpointlocator.h",
        "searchsymbols.cpp", "searchsymbols.h",
80
        "semantichighlighter.cpp", "semantichighlighter.h",
81
        "stringtable.cpp", "stringtable.h",
82 83 84
        "symbolfinder.cpp", "symbolfinder.h",
        "symbolsfindfilter.cpp", "symbolsfindfilter.h",
        "typehierarchybuilder.cpp", "typehierarchybuilder.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
85
    ]
Marco Bubke's avatar
Marco Bubke committed
86

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

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

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