cpptools.qbs 5.12 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

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

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

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

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