cplusplus.qbs 4.61 KB
Newer Older
1
import qbs 1.0
Joerg Bornemann's avatar
Joerg Bornemann committed
2

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

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

13
    Depends { name: "Qt.widgets" }
Christian Kandeler's avatar
Christian Kandeler committed
14
    Depends { name: "Utils" }
Joerg Bornemann's avatar
Joerg Bornemann committed
15
16

    Group {
17
        name: "ThirdPartyCPlusPlus"
Joerg Bornemann's avatar
Joerg Bornemann committed
18
19
        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
46
            "Lexer.h",
            "LiteralTable.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
47
            "Literals.cpp",
Joerg Bornemann's avatar
Joerg Bornemann committed
48
            "Literals.h",
49
50
            "Matcher.cpp",
            "Matcher.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
51
52
53
54
55
56
57
58
59
60
            "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
61
62
63
64
65
            "ObjectiveCTypeQualifiers.h",
            "Parser.cpp",
            "Parser.h",
            "QtContextKeywords.cpp",
            "QtContextKeywords.h",
66
67
            "SafeMatcher.cpp",
            "SafeMatcher.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
68
69
            "Scope.cpp",
            "Scope.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
70
71
            "Symbol.cpp",
            "Symbol.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
72
            "SymbolVisitor.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
73
            "Symbols.cpp",
Joerg Bornemann's avatar
Joerg Bornemann committed
74
            "Symbols.h",
Orgad Shaneh's avatar
Orgad Shaneh committed
75
76
77
78
79
80
            "Templates.cpp",
            "Templates.h",
            "Token.cpp",
            "Token.h",
            "TranslationUnit.cpp",
            "TranslationUnit.h",
Joerg Bornemann's avatar
Joerg Bornemann committed
81
82
83
84
85
86
87
            "Type.cpp",
            "Type.h",
            "TypeVisitor.cpp",
            "TypeVisitor.h",
        ]
    }

88
89
90
91
92
93
94
95
96
    Group {
        name: "General"
        files: [
            "AlreadyConsideredClassContainer.h",
            "ASTParent.cpp", "ASTParent.h",
            "ASTPath.cpp", "ASTPath.h",
            "BackwardsScanner.cpp", "BackwardsScanner.h",
            "CppDocument.cpp", "CppDocument.h",
            "CppRewriter.cpp", "CppRewriter.h",
97
            "cppmodelmanagerbase.cpp", "cppmodelmanagerbase.h",
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
            "DependencyTable.cpp", "DependencyTable.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",
            "PPToken.cpp", "PPToken.h",
            "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",
119
            "TypeResolver.cpp", "TypeResolver.h",
120
121
122
123
124
125
126
127
128
129
130
131
132
133
            "cplusplus.qrc",
            "findcdbbreakpoint.cpp", "findcdbbreakpoint.h",
            "pp-cctype.h",
            "pp-engine.cpp", "pp-engine.h",
            "pp-scanner.cpp", "pp-scanner.h",
            "pp.h",
        ]
    }

    Group {
        name: "Images"
        prefix: "images/"
        files: [
            "class.png",
134
            "struct.png",
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
            "enum.png",
            "enumerator.png",
            "func.png",
            "func_priv.png",
            "func_prot.png",
            "keyword.png",
            "macro.png",
            "namespace.png",
            "signal.png",
            "slot.png",
            "slot_priv.png",
            "slot_prot.png",
            "var.png",
            "var_priv.png",
            "var_prot.png",
        ]
    }
Joerg Bornemann's avatar
Joerg Bornemann committed
152

153
    Export {
Joerg Bornemann's avatar
Joerg Bornemann committed
154
        cpp.includePaths: [
155
            "../3rdparty"
Joerg Bornemann's avatar
Joerg Bornemann committed
156
157
158
        ]
    }
}