forked from qt-creator/qt-creator
-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build documentation also when using qbs.
Change-Id: I17330fa27effc633a06bc8f0a5864e771b831476 Reviewed-by: Jake Petroules <[email protected]>
- Loading branch information
Christian Kandeler
committed
Apr 27, 2016
1 parent
bc4a24d
commit 4d5a836
Showing
3 changed files
with
90 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
import qbs | ||
|
||
Project { | ||
name: "documentation" | ||
|
||
QtcDocumentation { | ||
name: "user doc online" | ||
isOnlineDoc: true | ||
mainDocConfFile: "qtcreator-online.qdocconf" | ||
|
||
files: [ | ||
"src/**/*", | ||
] | ||
} | ||
|
||
QtcDocumentation { | ||
name: "user doc offline" | ||
isOnlineDoc: false | ||
mainDocConfFile: "qtcreator.qdocconf" | ||
|
||
files: [ | ||
"src/**/*", | ||
] | ||
} | ||
|
||
QtcDocumentation { | ||
name: "API doc online" | ||
isOnlineDoc: true | ||
mainDocConfFile: "api/qtcreator-dev-online.qdocconf" | ||
|
||
Group { | ||
name: "sources" | ||
files: [ | ||
"api/*.qdoc", | ||
"api/**/*", | ||
] | ||
excludeFiles: [mainDocConfFile] | ||
} | ||
} | ||
|
||
QtcDocumentation { | ||
name: "API doc offline" | ||
isOnlineDoc: false | ||
mainDocConfFile: "api/qtcreator-dev.qdocconf" | ||
|
||
Group { | ||
name: "sources" | ||
files: [ | ||
"api/*.qdoc", | ||
"api/**/*", | ||
] | ||
excludeFiles: [mainDocConfFile] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import qbs | ||
|
||
Product { | ||
builtByDefault: false | ||
type: [isOnlineDoc ? "qdoc-output" : "qch"] | ||
Depends { name: "Qt.core" } | ||
|
||
property path mainDocConfFile | ||
property bool isOnlineDoc | ||
|
||
Group { | ||
name: "main qdocconf file" | ||
files: [mainDocConfFile] | ||
fileTags: ["qdocconf-main"] | ||
} | ||
|
||
property string versionTag: project.qtcreator_version.replace(/\.|-/g, "") | ||
Qt.core.qdocEnvironment: [ | ||
"QTC_LICENSE_TYPE=" + project.licenseType, | ||
"QTC_VERSION=" + project.qtcreator_version, | ||
"QTC_VERSION_TAG=" + project.qtcreator_version, | ||
"SRCDIR=" + sourceDirectory, | ||
"QT_INSTALL_DOCS=" + Qt.core.docPath, | ||
"QDOC_INDEX_DIR=" + Qt.core.docPath, | ||
"VERSION_TAG=" + versionTag | ||
] | ||
|
||
Group { | ||
fileTagsFilter: ["qch"] | ||
qbs.install: !qbs.targetOS.contains("osx") | ||
qbs.installDir: project.ide_doc_path | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters