summaryrefslogtreecommitdiff
path: root/src/libs/cplusplus/cplusplus.qbs
blob: 4eb658149818388d1efeb4a940d9fd3072c9b1f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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
64
65
66
67
68
69
70
71
72
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
import qbs 1.0

Project {
    name: "CPlusPlus"

    QtcDevHeaders { }
    QtcDevHeaders {
        productName: "cplusplus (3rd party)"
        baseDir: sourceDirectory + "/../3rdparty/cplusplus"
    }

    QtcLibrary {
        cpp.includePaths: base.concat("../3rdparty")
        cpp.defines: base.concat([
            "NDEBUG",
            "CPLUSPLUS_BUILD_LIB"
        ])
        cpp.optimization: "fast"

        Depends { name: "Qt.widgets" }
        Depends { name: "Utils" }

        Group {
            name: "ThirdPartyCPlusPlus"
            prefix: "../3rdparty/cplusplus/"
            files: [
                "AST.cpp",
                "AST.h",
                "ASTClone.cpp",
                "ASTMatch0.cpp",
                "ASTMatcher.cpp",
                "ASTMatcher.h",
                "ASTPatternBuilder.h",
                "ASTVisit.cpp",
                "ASTVisitor.cpp",
                "ASTVisitor.h",
                "ASTfwd.h",
                "Bind.cpp",
                "Bind.h",
                "CPlusPlus.h",
                "Control.cpp",
                "Control.h",
                "CoreTypes.cpp",
                "CoreTypes.h",
                "DiagnosticClient.cpp",
                "DiagnosticClient.h",
                "FullySpecifiedType.cpp",
                "FullySpecifiedType.h",
                "Keywords.cpp",
                "Lexer.cpp",
                "Lexer.h",
                "LiteralTable.h",
                "Literals.cpp",
                "Literals.h",
                "Matcher.cpp",
                "Matcher.h",
                "MemoryPool.cpp",
                "MemoryPool.h",
                "Name.cpp",
                "Name.h",
                "NameVisitor.cpp",
                "NameVisitor.h",
                "Names.cpp",
                "Names.h",
                "ObjectiveCAtKeywords.cpp",
                "ObjectiveCTypeQualifiers.cpp",
                "ObjectiveCTypeQualifiers.h",
                "Parser.cpp",
                "Parser.h",
                "QtContextKeywords.cpp",
                "QtContextKeywords.h",
                "SafeMatcher.cpp",
                "SafeMatcher.h",
                "Scope.cpp",
                "Scope.h",
                "Symbol.cpp",
                "Symbol.h",
                "SymbolVisitor.h",
                "Symbols.cpp",
                "Symbols.h",
                "Templates.cpp",
                "Templates.h",
                "Token.cpp",
                "Token.h",
                "TranslationUnit.cpp",
                "TranslationUnit.h",
                "Type.cpp",
                "Type.h",
                "TypeVisitor.cpp",
                "TypeVisitor.h",
            ]
        }

        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",
                "cppmodelmanagerbase.cpp", "cppmodelmanagerbase.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",
                "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",
                "cplusplus.qrc",
                "findcdbbreakpoint.cpp", "findcdbbreakpoint.h",
                "pp-cctype.h",
                "pp-engine.cpp", "pp-engine.h",
                "pp-scanner.cpp", "pp-scanner.h",
                "pp.h",
            ]
        }

        Export {
            cpp.includePaths: [
                product.sourceDirectory + "/../3rdparty"
            ]
        }
    }
}