This repository has been archived by the owner on Oct 20, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
qmljsreformatter.pro
150 lines (133 loc) · 8.27 KB
/
qmljsreformatter.pro
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
141
142
143
144
145
146
147
148
149
150
TEMPLATE = app
QT += widgets xml
CONFIG += c++14
macx {
CONFIG -= app_bundle
}
DEFINES += QT_CREATOR
QT_CREATOR_SIMPLIFIED_SRC = "qt-creator-simplified"
INCLUDEPATH += $$QT_CREATOR_SIMPLIFIED_SRC/src/libs
INCLUDEPATH += $$QT_CREATOR_SIMPLIFIED_SRC/src/libs/3rdparty
HEADERS += \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/cplusplus/cppmodelmanagerbase.h \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/utils/filesystemwatcher.h \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/utils/globalfilechangeblocker.h \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/utils/savefile.h \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/utils/optional.h \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/utils/qtcprocess.h \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/qmljs/qmljscodeformatter.h \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/qmljs/qmljsinterpreter.h \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/qmljs/qmljsmodelmanagerinterface.h \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/qmljs/qmljsplugindumper.h \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/qmljs/qmljsreformatter.h
SOURCES += \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/3rdparty/cplusplus/AST.cpp \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/3rdparty/cplusplus/ASTClone.cpp \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/3rdparty/cplusplus/ASTMatch0.cpp \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/3rdparty/cplusplus/ASTMatcher.cpp \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/3rdparty/cplusplus/ASTVisit.cpp \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/3rdparty/cplusplus/ASTVisitor.cpp \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/3rdparty/cplusplus/Bind.cpp \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/3rdparty/cplusplus/Control.cpp \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/3rdparty/cplusplus/CoreTypes.cpp \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/3rdparty/cplusplus/DiagnosticClient.cpp \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/3rdparty/cplusplus/FullySpecifiedType.cpp \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/3rdparty/cplusplus/Keywords.cpp \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/3rdparty/cplusplus/Lexer.cpp \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/3rdparty/cplusplus/Literals.cpp \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/3rdparty/cplusplus/Matcher.cpp \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/3rdparty/cplusplus/MemoryPool.cpp \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/3rdparty/cplusplus/Name.cpp \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/3rdparty/cplusplus/Names.cpp \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/3rdparty/cplusplus/NameVisitor.cpp \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/3rdparty/cplusplus/ObjectiveCAtKeywords.cpp \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/3rdparty/cplusplus/ObjectiveCTypeQualifiers.cpp \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/3rdparty/cplusplus/Parser.cpp \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/3rdparty/cplusplus/QtContextKeywords.cpp \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/3rdparty/cplusplus/SafeMatcher.cpp \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/3rdparty/cplusplus/Scope.cpp \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/3rdparty/cplusplus/Symbol.cpp \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/3rdparty/cplusplus/Symbols.cpp \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/3rdparty/cplusplus/Templates.cpp \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/3rdparty/cplusplus/Token.cpp \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/3rdparty/cplusplus/TranslationUnit.cpp \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/3rdparty/cplusplus/Type.cpp \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/3rdparty/cplusplus/TypeVisitor.cpp \
SOURCES += \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/cplusplus/CppDocument.cpp \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/cplusplus/cppmodelmanagerbase.cpp \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/cplusplus/CppRewriter.cpp \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/cplusplus/DependencyTable.cpp \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/cplusplus/DeprecatedGenTemplateInstance.cpp \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/cplusplus/FastPreprocessor.cpp \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/cplusplus/LookupContext.cpp \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/cplusplus/LookupItem.cpp \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/cplusplus/Macro.cpp \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/cplusplus/NamePrettyPrinter.cpp \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/cplusplus/Overview.cpp \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/cplusplus/pp-engine.cpp \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/cplusplus/PPToken.cpp \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/cplusplus/PreprocessorClient.cpp \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/cplusplus/PreprocessorEnvironment.cpp \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/cplusplus/ResolveExpression.cpp \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/cplusplus/TypeOfExpression.cpp \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/cplusplus/TypePrettyPrinter.cpp \
SOURCES += \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/utils/environment.cpp \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/utils/fileutils.cpp \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/utils/filesystemwatcher.cpp \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/utils/globalfilechangeblocker.cpp \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/utils/hostosinfo.cpp \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/utils/json.cpp \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/utils/qrcparser.cpp \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/utils/qtcassert.cpp \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/utils/runextensions.cpp \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/utils/namevaluedictionary.cpp \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/utils/namevalueitem.cpp \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/utils/qtcprocess.cpp \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/utils/savefile.cpp
SOURCES += \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/languageutils/componentversion.cpp \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/languageutils/fakemetaobject.cpp
SOURCES += \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/qmljs/parser/qmlerror.cpp \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/qmljs/parser/qmljsast.cpp \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/qmljs/parser/qmljsastvisitor.cpp \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/qmljs/parser/qmldirparser.cpp \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/qmljs/parser/qmljsengine_p.cpp \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/qmljs/parser/qmljsgrammar.cpp \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/qmljs/parser/qmljslexer.cpp \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/qmljs/parser/qmljsparser.cpp \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/qmljs/persistenttrie.cpp \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/qmljs/qmljsbind.cpp \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/qmljs/qmljsbundle.cpp \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/qmljs/qmljscodeformatter.cpp \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/qmljs/qmljscontext.cpp \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/qmljs/qmljsdialect.cpp \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/qmljs/qmljsdocument.cpp \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/qmljs/qmljsevaluate.cpp \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/qmljs/qmljsfindexportedcpptypes.cpp \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/qmljs/qmljsimportdependencies.cpp \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/qmljs/qmljsinterpreter.cpp \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/qmljs/qmljsmodelmanagerinterface.cpp \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/qmljs/qmljsplugindumper.cpp \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/qmljs/qmljsreformatter.cpp \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/qmljs/qmljsscanner.cpp \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/qmljs/qmljsscopeastpath.cpp \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/qmljs/qmljsscopebuilder.cpp \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/qmljs/qmljsscopechain.cpp \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/qmljs/qmljstypedescriptionreader.cpp \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/qmljs/qmljsutils.cpp \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/qmljs/qmljsvalueowner.cpp \
$$QT_CREATOR_SIMPLIFIED_SRC/src/libs/qmljs/qmljsviewercontext.cpp
SOURCES += src/main.cpp
ORANGE {
DEFINES += ORANGE
# Override the code source from Qt Creator
SOURCES -= $$QT_CREATOR_SIMPLIFIED_SRC/src/libs/qmljs/qmljsreformatter.cpp
HEADERS -= $$QT_CREATOR_SIMPLIFIED_SRC/src/libs/qmljs/qmljsreformatter.h
SOURCES += src/qmljsreformatter.cpp
HEADERS += src/qmljsreformatter.h
}
TARGET = qmljsreformatter
OTHER_FILES += tests/*.test.qml tests/*.reference.qml tests/*.sh