cpptools.qbs 3.44 KB
Newer Older
Joerg Bornemann's avatar
Joerg Bornemann committed
1 2 3
import qbs.base 1.0

import "../QtcPlugin.qbs" as QtcPlugin
4
import "../../../qbs/defaults.js" as Defaults
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" }
Joerg Bornemann's avatar
Joerg Bornemann committed
10
    Depends { name: "Core" }
Orgad Shaneh's avatar
Orgad Shaneh committed
11
    Depends { name: "Find" }
Joerg Bornemann's avatar
Joerg Bornemann committed
12 13 14 15 16 17 18 19 20 21
    Depends { name: "TextEditor" }
    Depends { name: "ProjectExplorer" }
    Depends { name: "Locator" }
    Depends { name: "CPlusPlus" }
    Depends { name: "LanguageUtils" }

    Depends { name: "cpp" }
    cpp.defines: base.concat(["QT_NO_CAST_TO_ASCII"])

    files: [
Orgad Shaneh's avatar
Orgad Shaneh committed
22 23 24 25
        "ModelManagerInterface.cpp",
        "ModelManagerInterface.h",
        "TypeHierarchyBuilder.cpp",
        "TypeHierarchyBuilder.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
26 27 28 29 30 31 32
        "abstracteditorsupport.cpp",
        "abstracteditorsupport.h",
        "commentssettings.cpp",
        "commentssettings.h",
        "completionsettingspage.cpp",
        "completionsettingspage.h",
        "completionsettingspage.ui",
Orgad Shaneh's avatar
Orgad Shaneh committed
33 34
        "cppchecksymbols.cpp",
        "cppchecksymbols.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
35 36 37 38 39 40 41
        "cppclassesfilter.cpp",
        "cppclassesfilter.h",
        "cppcodeformatter.cpp",
        "cppcodeformatter.h",
        "cppcodestylepreferences.cpp",
        "cppcodestylepreferences.h",
        "cppcodestylepreferencesfactory.cpp",
Orgad Shaneh's avatar
Orgad Shaneh committed
42
        "cppcodestylepreferencesfactory.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
43 44 45 46 47 48 49
        "cppcodestylesettings.cpp",
        "cppcodestylesettings.h",
        "cppcodestylesettingspage.cpp",
        "cppcodestylesettingspage.h",
        "cppcodestylesettingspage.ui",
        "cppcompletionassist.cpp",
        "cppcompletionassist.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
50 51 52 53
        "cppcompletionassistprovider.cpp",
        "cppcompletionassistprovider.h",
        "cppcompletionsupport.cpp",
        "cppcompletionsupport.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
54 55 56 57 58 59 60 61 62 63 64 65 66
        "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",
Orgad Shaneh's avatar
Orgad Shaneh committed
67 68
        "cpphighlightingsupportinternal.cpp",
        "cpphighlightingsupportinternal.h",
Christian Kandeler's avatar
Christian Kandeler committed
69 70
        "cppindexingsupport.cpp",
        "cppindexingsupport.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
71 72
        "cpplocalsymbols.cpp",
        "cpplocalsymbols.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105
        "cpplocatorfilter.cpp",
        "cpplocatorfilter.h",
        "cppmodelmanager.cpp",
        "cppmodelmanager.h",
        "cppqtstyleindenter.cpp",
        "cppqtstyleindenter.h",
        "cpprefactoringchanges.cpp",
        "cpprefactoringchanges.h",
        "cppsemanticinfo.cpp",
        "cppsemanticinfo.h",
        "cpptools_global.h",
        "cpptoolsconstants.h",
        "cpptoolseditorsupport.cpp",
        "cpptoolseditorsupport.h",
        "cpptoolsplugin.cpp",
        "cpptoolsplugin.h",
        "cpptoolsreuse.cpp",
        "cpptoolsreuse.h",
        "cpptoolssettings.cpp",
        "cpptoolssettings.h",
        "doxygengenerator.cpp",
        "doxygengenerator.h",
        "insertionpointlocator.cpp",
        "insertionpointlocator.h",
        "searchsymbols.cpp",
        "searchsymbols.h",
        "symbolfinder.cpp",
        "symbolfinder.h",
        "symbolsfindfilter.cpp",
        "symbolsfindfilter.h",
        "uicodecompletionsupport.cpp",
        "uicodecompletionsupport.h",
    ]
Marco Bubke's avatar
Marco Bubke committed
106

107 108 109 110 111
    Group {
        condition: Defaults.testsEnabled(qbs)
        files: ["cppcodegen_test.cpp", "cppcompletion_test.cpp"]
    }

Marco Bubke's avatar
Marco Bubke committed
112 113 114
    ProductModule {
        Depends { name: "CPlusPlus" }
    }
Joerg Bornemann's avatar
Joerg Bornemann committed
115
}