-corrected qmake.qdocconf file to not read the manual twice -moved the snippets and images directories to make sure they are not in the src directory Task-number: QTBUG-32580 Change-Id: I7b702ce3b1c8709bbb1f473f70625083242f1a40 Reviewed-by: Martin Smith <martin.smith@digia.com> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@digia.com>
47 lines
1.0 KiB
Prolog
47 lines
1.0 KiB
Prolog
#! [0]
|
|
defineReplace(headersAndSources) {
|
|
variable = $$1
|
|
names = $$eval($$variable)
|
|
headers =
|
|
sources =
|
|
|
|
for(name, names) {
|
|
header = $${name}.h
|
|
exists($$header) {
|
|
headers += $$header
|
|
}
|
|
source = $${name}.cpp
|
|
exists($$source) {
|
|
sources += $$source
|
|
}
|
|
}
|
|
return($$headers $$sources)
|
|
}
|
|
#! [0]
|
|
|
|
defineReplace(matchingFiles) {
|
|
names = $$ARGS
|
|
files =
|
|
|
|
for(name, names) {
|
|
header = $${name}.h
|
|
source = $${name}.cpp
|
|
exists($$header):exists($$source) {
|
|
files += $$header
|
|
files += $$source
|
|
}
|
|
}
|
|
return($$files)
|
|
}
|
|
|
|
names = delegate model view main
|
|
message(Finding all headers and sources from the following list of names:)
|
|
message($$names)
|
|
allFiles = $$headersAndSources(names)
|
|
message(Found: $$allFiles)
|
|
|
|
message(Finding only matching headers and sources from the following list of names:)
|
|
message($$names)
|
|
matching = $$matchingFiles($$names)
|
|
message(Found: $$matching)
|