cpptools.qbs 4.49 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" }
Christian Kandeler's avatar
Christian Kandeler committed
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 27 28 29 30 31 32
        "abstracteditorsupport.cpp", "abstracteditorsupport.h",
        "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",
33
        "cppcodemodelinspectordumper.cpp", "cppcodemodelinspectordumper.h",
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
        "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",
        "cpphighlightingsupport.cpp", "cpphighlightingsupport.h",
        "cpphighlightingsupportinternal.cpp", "cpphighlightingsupportinternal.h",
        "cppindexingsupport.cpp", "cppindexingsupport.h",
        "cpplocalsymbols.cpp", "cpplocalsymbols.h",
        "cpplocatordata.cpp", "cpplocatordata.h",
        "cpplocatorfilter.cpp", "cpplocatorfilter.h",
        "cppmodelmanager.cpp", "cppmodelmanager.h",
        "cppmodelmanagerinterface.cpp", "cppmodelmanagerinterface.h",
        "cppmodelmanagersupport.cpp", "cppmodelmanagersupport.h",
        "cppmodelmanagersupportinternal.cpp", "cppmodelmanagersupportinternal.h",
        "cpppointerdeclarationformatter.cpp", "cpppointerdeclarationformatter.h",
        "cpppreprocessor.cpp", "cpppreprocessor.h",
        "cppprojectfile.cpp", "cppprojectfile.h",
        "cppqtstyleindenter.cpp", "cppqtstyleindenter.h",
        "cpprefactoringchanges.cpp", "cpprefactoringchanges.h",
        "cppsemanticinfo.cpp", "cppsemanticinfo.h",
        "cppsnapshotupdater.cpp", "cppsnapshotupdater.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
64 65
        "cpptools_global.h",
        "cpptoolsconstants.h",
66 67 68 69 70 71 72 73 74 75 76 77
        "cpptoolseditorsupport.cpp", "cpptoolseditorsupport.h",
        "cpptoolsplugin.cpp", "cpptoolsplugin.h",
        "cpptoolsreuse.cpp", "cpptoolsreuse.h",
        "cpptoolssettings.cpp", "cpptoolssettings.h",
        "doxygengenerator.cpp", "doxygengenerator.h",
        "functionutils.cpp", "functionutils.h",
        "includeutils.cpp", "includeutils.h",
        "insertionpointlocator.cpp", "insertionpointlocator.h",
        "searchsymbols.cpp", "searchsymbols.h",
        "symbolfinder.cpp", "symbolfinder.h",
        "symbolsfindfilter.cpp", "symbolsfindfilter.h",
        "typehierarchybuilder.cpp", "typehierarchybuilder.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
78
    ]
Marco Bubke's avatar
Marco Bubke committed
79

80
    Group {
81
        name: "Tests"
82
        condition: project.testsEnabled
Christian Kandeler's avatar
Christian Kandeler committed
83 84 85
        files: [
            "cppcodegen_test.cpp",
            "cppcompletion_test.cpp",
86
            "cppheadersource_test.cpp",
87
            "cpplocatorfilter_test.cpp",
Christian Kandeler's avatar
Christian Kandeler committed
88
            "cppmodelmanager_test.cpp",
89
            "cpppointerdeclarationformatter_test.cpp",
90
            "cpppreprocessertesthelper.cpp", "cpppreprocessertesthelper.h",
91
            "cpppreprocessor_test.cpp",
92
            "cpptoolstestcase.cpp", "cpptoolstestcase.h",
93 94 95
            "modelmanagertesthelper.cpp", "modelmanagertesthelper.h",
            "symbolsearcher_test.cpp",
            "typehierarchybuilder_test.cpp",
Christian Kandeler's avatar
Christian Kandeler committed
96 97 98
        ]

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

101
    Export {
Marco Bubke's avatar
Marco Bubke committed
102
        Depends { name: "CPlusPlus" }
103
        Depends { name: "Qt.concurrent" }
Marco Bubke's avatar
Marco Bubke committed
104
    }
Joerg Bornemann's avatar
Joerg Bornemann committed
105
}