blob: a6a31eb7761f1383c2bbf0c9ef1fc490c3f46b08 (
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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
|
!force_bootstrap {
requires(qtConfig(xmlstreamwriter))
}
option(host_build)
QT = core
qtHaveModule(qmldevtools-private) {
QT += qmldevtools-private
} else {
DEFINES += QT_NO_DECLARATIVE
}
DEFINES += QT_NO_FOREACH
include($$OUT_PWD/../../src/global/qttools-config.pri)
LIBS += $$CLANG_LIBS
!contains(QMAKE_DEFAULT_INCDIRS, $$CLANG_INCLUDEPATH): INCLUDEPATH += $$CLANG_INCLUDEPATH
DEFINES += $$CLANG_DEFINES
!contains(QMAKE_DEFAULT_LIBDIRS, $$CLANG_LIBDIR):!disable_external_rpath: QMAKE_RPATHDIR += $$CLANG_LIBDIR
DEFINES += $$shell_quote(CLANG_RESOURCE_DIR=\"$${CLANG_LIBDIR}/clang/$${CLANG_VERSION}/include\")
INCLUDEPATH += $$QT_SOURCE_TREE/src/tools/qdoc \
$$QT_SOURCE_TREE/src/tools/qdoc/qmlparser
# Increase the stack size on MSVC to 4M to avoid a stack overflow
win32-icc*|win32-msvc*:{
QMAKE_LFLAGS += /STACK:4194304
}
HEADERS += access.h \
aggregate.h \
atom.h \
clangcodeparser.h \
classnode.h \
codechunk.h \
codemarker.h \
codeparser.h \
collectionnode.h \
config.h \
cppcodemarker.h \
cppcodeparser.h \
ditaref.h \
doc.h \
docbookgenerator.h \
docparser.h \
docprivate.h \
docutilities.h \
editdistance.h \
enumitem.h \
enumnode.h \
examplenode.h \
externalpagenode.h \
functionnode.h \
generator.h \
headernode.h \
helpprojectwriter.h \
htmlgenerator.h \
importrec.h \
location.h \
loggingcategory.h \
macro.h \
manifestwriter.h \
namespacenode.h \
node.h \
openedlist.h \
pagenode.h \
parameters.h \
propertynode.h \
proxynode.h \
puredocparser.h \
qdoccommandlineparser.h \
qdocdatabase.h \
qdocindexfiles.h \
qdoctagfiles.h \
qmltypenode.h \
qmlpropertynode.h \
quoter.h \
relatedclass.h \
sections.h \
separator.h \
sharedcommentnode.h \
singleton.h \
text.h \
tokenizer.h \
topic.h \
tree.h \
typedefnode.h \
usingclause.h \
utilities.h \
variablenode.h \
webxmlgenerator.h \
xmlgenerator.h
SOURCES += aggregate.cpp \
atom.cpp \
clangcodeparser.cpp \
classnode.cpp \
codechunk.cpp \
codemarker.cpp \
codeparser.cpp \
collectionnode.cpp \
config.cpp \
cppcodemarker.cpp \
cppcodeparser.cpp \
doc.cpp \
docbookgenerator.cpp \
docparser.cpp \
docprivate.cpp \
editdistance.cpp \
enumnode.cpp \
externalpagenode.cpp \
functionnode.cpp \
generator.cpp \
headernode.cpp \
helpprojectwriter.cpp \
htmlgenerator.cpp \
location.cpp \
main.cpp \
manifestwriter.cpp \
namespacenode.cpp \
node.cpp \
openedlist.cpp \
pagenode.cpp \
parameters.cpp \
propertynode.cpp \
proxynode.cpp \
puredocparser.cpp \
qdoccommandlineparser.cpp \
qdocdatabase.cpp \
qdocindexfiles.cpp \
qdoctagfiles.cpp \
qmltypenode.cpp \
qmlpropertynode.cpp \
quoter.cpp \
relatedclass.cpp \
sections.cpp \
separator.cpp \
sharedcommentnode.cpp \
text.cpp \
tokenizer.cpp \
tree.cpp \
typedefnode.cpp \
usingclause.cpp \
utilities.cpp \
variablenode.cpp \
webxmlgenerator.cpp \
xmlgenerator.cpp
### QML/JS Parser ###
HEADERS += jscodemarker.h \
qmlcodemarker.h \
qmlcodeparser.h \
qmlmarkupvisitor.h \
qmlvisitor.h
SOURCES += jscodemarker.cpp \
qmlcodemarker.cpp \
qmlcodeparser.cpp \
qmlmarkupvisitor.cpp \
qmlvisitor.cpp
### Documentation for qdoc ###
qtPrepareTool(QDOC, qdoc)
qtPrepareTool(QHELPGENERATOR, qhelpgenerator)
QMAKE_DOCS = $$PWD/doc/config/qdoc.qdocconf
QMAKE_TARGET_DESCRIPTION = "Qt Documentation Compiler"
load(qt_tool)
TR_EXCLUDE += $$PWD/*
load(cmake_functions)
CMAKE_INSTALL_LIBS_DIR = $$cmakeTargetPath($$[QT_INSTALL_LIBS])
contains(CMAKE_INSTALL_LIBS_DIR, ^(/usr)?/lib(64)?.*): CMAKE_USR_MOVE_WORKAROUND = $$CMAKE_INSTALL_LIBS_DIR
CMAKE_LIB_DIR = $$cmakeRelativePath($$[QT_INSTALL_LIBS], $$[QT_INSTALL_PREFIX])
!contains(CMAKE_LIB_DIR,"^\\.\\./.*") {
CMAKE_RELATIVE_INSTALL_LIBS_DIR = $$cmakeRelativePath($$[QT_INSTALL_PREFIX], $$[QT_INSTALL_LIBS])
# We need to go up another two levels because the CMake files are
# installed in $${CMAKE_LIB_DIR}/cmake/Qt5$${CMAKE_MODULE_NAME}
CMAKE_RELATIVE_INSTALL_DIR = "$${CMAKE_RELATIVE_INSTALL_LIBS_DIR}../../"
} else {
CMAKE_LIB_DIR_IS_ABSOLUTE = True
}
CMAKE_BIN_DIR = $$cmakeRelativePath($$[QT_HOST_BINS], $$[QT_INSTALL_PREFIX])
contains(CMAKE_BIN_DIR, "^\\.\\./.*") {
CMAKE_BIN_DIR = $$[QT_HOST_BINS]/
CMAKE_BIN_DIR_IS_ABSOLUTE = True
}
load(qt_build_paths)
equals(QMAKE_HOST.os, Windows): CMAKE_BIN_SUFFIX = ".exe"
cmake_qdoc_config_file.input = $$PWD/Qt5DocToolsConfig.cmake.in
cmake_qdoc_config_version_file.input = $$[QT_HOST_DATA/src]/mkspecs/features/data/cmake/Qt5ConfigVersion.cmake.in
CMAKE_PACKAGE_VERSION = $$MODULE_VERSION
cmake_qdoc_config_file.output = $$MODULE_BASE_OUTDIR/lib/cmake/Qt5DocTools/Qt5DocToolsConfig.cmake
cmake_qdoc_config_version_file.output = $$MODULE_BASE_OUTDIR/lib/cmake/Qt5DocTools/Qt5DocToolsConfigVersion.cmake
QMAKE_SUBSTITUTES += cmake_qdoc_config_file cmake_qdoc_config_version_file
cmake_qdoc_tools_files.files += $$cmake_qdoc_config_file.output $$cmake_qdoc_config_version_file.output
cmake_qdoc_tools_files.path = $$[QT_INSTALL_LIBS]/cmake/Qt5DocTools
cmake_qdoc_tools_files.CONFIG = no_check_exist
INSTALLS += cmake_qdoc_tools_files
|