cplusplus.qbs 4.68 KB
Newer Older
Joerg Bornemann's avatar
Joerg Bornemann committed
1
import qbs.base 1.0
2
import "../QtcLibrary.qbs" as QtcLibrary
Joerg Bornemann's avatar
Joerg Bornemann committed
3

4
QtcLibrary {
Joerg Bornemann's avatar
Joerg Bornemann committed
5 6
    name: "CPlusPlus"

7
    cpp.includePaths: base.concat("../3rdparty/cplusplus")
Christian Kandeler's avatar
Christian Kandeler committed
8
    cpp.defines: base.concat([
Joerg Bornemann's avatar
Joerg Bornemann committed
9
        "NDEBUG",
10
        "CPLUSPLUS_BUILD_LIB"
Christian Kandeler's avatar
Christian Kandeler committed
11
    ])
Joerg Bornemann's avatar
Joerg Bornemann committed
12 13 14
    cpp.optimization: "fast"

    Depends { name: "cpp" }
15
    Depends { name: "Qt.widgets" }
Joerg Bornemann's avatar
Joerg Bornemann committed
16 17 18 19

    Group {
        prefix: "../3rdparty/cplusplus/"
        files: [
Orgad Shaneh's avatar
Orgad Shaneh committed
20 21 22 23 24 25
            "AST.cpp",
            "AST.h",
            "ASTClone.cpp",
            "ASTMatch0.cpp",
            "ASTMatcher.cpp",
            "ASTMatcher.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
26
            "ASTPatternBuilder.cpp",
Orgad Shaneh's avatar
Orgad Shaneh committed
27 28
            "ASTPatternBuilder.h",
            "ASTVisit.cpp",
Joerg Bornemann's avatar
Joerg Bornemann committed
29
            "ASTVisitor.cpp",
Orgad Shaneh's avatar
Orgad Shaneh committed
30 31 32 33 34
            "ASTVisitor.h",
            "ASTfwd.h",
            "Bind.cpp",
            "Bind.h",
            "CPlusPlus.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
35 36 37 38 39 40 41 42
            "Control.cpp",
            "Control.h",
            "CoreTypes.cpp",
            "CoreTypes.h",
            "DiagnosticClient.cpp",
            "DiagnosticClient.h",
            "FullySpecifiedType.cpp",
            "FullySpecifiedType.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
43 44
            "Keywords.cpp",
            "Lexer.cpp",
Joerg Bornemann's avatar
Joerg Bornemann committed
45
            "Lexer.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
46
            "LiteralTable.cpp",
Joerg Bornemann's avatar
Joerg Bornemann committed
47
            "LiteralTable.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
48
            "Literals.cpp",
Joerg Bornemann's avatar
Joerg Bornemann committed
49 50 51 52 53 54 55 56 57 58 59
            "Literals.h",
            "MemoryPool.cpp",
            "MemoryPool.h",
            "Name.cpp",
            "Name.h",
            "NameVisitor.cpp",
            "NameVisitor.h",
            "Names.cpp",
            "Names.h",
            "ObjectiveCAtKeywords.cpp",
            "ObjectiveCTypeQualifiers.cpp",
Orgad Shaneh's avatar
Orgad Shaneh committed
60 61 62 63 64
            "ObjectiveCTypeQualifiers.h",
            "Parser.cpp",
            "Parser.h",
            "QtContextKeywords.cpp",
            "QtContextKeywords.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
65 66
            "Scope.cpp",
            "Scope.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
67 68
            "Symbol.cpp",
            "Symbol.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
69 70
            "SymbolVisitor.cpp",
            "SymbolVisitor.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
71
            "Symbols.cpp",
Joerg Bornemann's avatar
Joerg Bornemann committed
72
            "Symbols.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
73 74 75 76 77 78
            "Templates.cpp",
            "Templates.h",
            "Token.cpp",
            "Token.h",
            "TranslationUnit.cpp",
            "TranslationUnit.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
79 80 81 82 83 84 85 86 87 88
            "Type.cpp",
            "Type.h",
            "TypeMatcher.cpp",
            "TypeMatcher.h",
            "TypeVisitor.cpp",
            "TypeVisitor.h",
        ]
    }

    files: [
89
        "AlreadyConsideredClassContainer.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125
        "ASTParent.cpp",
        "ASTParent.h",
        "ASTPath.cpp",
        "ASTPath.h",
        "BackwardsScanner.cpp",
        "BackwardsScanner.h",
        "CppDocument.cpp",
        "CppDocument.h",
        "CppRewriter.cpp",
        "CppRewriter.h",
        "DependencyTable.cpp",
        "DependencyTable.h",
        "DeprecatedGenTemplateInstance.cpp",
        "DeprecatedGenTemplateInstance.h",
        "ExpressionUnderCursor.cpp",
        "ExpressionUnderCursor.h",
        "FastPreprocessor.cpp",
        "FastPreprocessor.h",
        "FindUsages.cpp",
        "FindUsages.h",
        "Icons.cpp",
        "Icons.h",
        "LookupContext.cpp",
        "LookupContext.h",
        "LookupItem.cpp",
        "LookupItem.h",
        "Macro.cpp",
        "Macro.h",
        "MatchingText.cpp",
        "MatchingText.h",
        "NamePrettyPrinter.cpp",
        "NamePrettyPrinter.h",
        "Overview.cpp",
        "Overview.h",
        "OverviewModel.cpp",
        "OverviewModel.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
126 127
        "PPToken.cpp",
        "PPToken.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143
        "PreprocessorClient.cpp",
        "PreprocessorClient.h",
        "PreprocessorEnvironment.cpp",
        "PreprocessorEnvironment.h",
        "ResolveExpression.cpp",
        "ResolveExpression.h",
        "SimpleLexer.cpp",
        "SimpleLexer.h",
        "SnapshotSymbolVisitor.cpp",
        "SnapshotSymbolVisitor.h",
        "SymbolNameVisitor.cpp",
        "SymbolNameVisitor.h",
        "TypeOfExpression.cpp",
        "TypeOfExpression.h",
        "TypePrettyPrinter.cpp",
        "TypePrettyPrinter.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
144
        "cplusplus.qrc",
Joerg Bornemann's avatar
Joerg Bornemann committed
145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167
        "findcdbbreakpoint.cpp",
        "findcdbbreakpoint.h",
        "pp-cctype.h",
        "pp-engine.cpp",
        "pp-engine.h",
        "pp-scanner.cpp",
        "pp-scanner.h",
        "pp.h",
        "images/class.png",
        "images/enum.png",
        "images/enumerator.png",
        "images/func.png",
        "images/func_priv.png",
        "images/func_prot.png",
        "images/keyword.png",
        "images/macro.png",
        "images/namespace.png",
        "images/signal.png",
        "images/slot.png",
        "images/slot_priv.png",
        "images/slot_prot.png",
        "images/var.png",
        "images/var_priv.png",
Orgad Shaneh's avatar
Orgad Shaneh committed
168
        "images/var_prot.png",
Joerg Bornemann's avatar
Joerg Bornemann committed
169 170
    ]

171
    Export {
Joerg Bornemann's avatar
Joerg Bornemann committed
172
        Depends { name: "cpp" }
Joerg Bornemann's avatar
Joerg Bornemann committed
173 174 175 176 177 178 179
        cpp.includePaths: [
            ".",
            "../3rdparty",
            "../3rdparty/cplusplus"
        ]
    }
}