mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-13 07:35:41 +08:00
Enable doxygen by default but run only if it is is installed
This commit is contained in:
@@ -6,31 +6,39 @@ TEMPLATE = lib
|
|||||||
CONFIG += staticlib
|
CONFIG += staticlib
|
||||||
CONFIG -= qt
|
CONFIG -= qt
|
||||||
|
|
||||||
DOXYFILE = Doxyfile.qmake
|
win32: DOXYGEN_BIN = $$system(where doxygen)
|
||||||
|
else: DOXYGEN_BIN = $$system(which doxygen)
|
||||||
|
|
||||||
DOXY_INPUT = .
|
isEmpty(DOXYGEN_BIN) {
|
||||||
win32-g++ {
|
message("Doxygen not found")
|
||||||
doxy.commands = set DOXY_SRC_ROOT=$$SourceRoot\\src & \
|
} else {
|
||||||
set QDOC_PATH=$$[QT_INSTALL_DOCS] & \
|
DOXYFILE = Doxyfile.qmake
|
||||||
doxygen $$PWD/$$DOXYFILE
|
|
||||||
}
|
|
||||||
else:win32 {
|
|
||||||
doxy.commands = set DOXY_SRC_ROOT=$$SourceRoot\\src & \
|
|
||||||
set QDOC_PATH=$$[QT_INSTALL_DOCS] & \
|
|
||||||
doxygen $$PWD\\$$DOXYFILE
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
doxy.commands = DOXY_SRC_ROOT="$$SourceRoot/src" \
|
|
||||||
QDOC_PATH="$$[QT_INSTALL_DOCS]" \
|
|
||||||
doxygen $$PWD/$$DOXYFILE
|
|
||||||
}
|
|
||||||
|
|
||||||
doxy.CONFIG = no_link target_predeps
|
DOXY_INPUT = .
|
||||||
doxy.depends = $$PWD/$$DOXYFILE
|
win32-g++ {
|
||||||
doxy.input = DOXY_INPUT
|
doxy.commands = set DOXY_SRC_ROOT=$$SourceRoot\\src & \
|
||||||
doxy.name = DOXY
|
set QDOC_PATH=$$[QT_INSTALL_DOCS] & \
|
||||||
doxy.output = html/index.html
|
doxygen $$PWD/$$DOXYFILE
|
||||||
QMAKE_EXTRA_COMPILERS += doxy
|
}
|
||||||
OTHER_FILES += Doxyfile.qmake
|
else:win32 {
|
||||||
|
doxy.commands = set DOXY_SRC_ROOT=$$SourceRoot\\src & \
|
||||||
|
set QDOC_PATH=$$[QT_INSTALL_DOCS] & \
|
||||||
|
doxygen $$PWD\\$$DOXYFILE
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
doxy.commands = DOXY_SRC_ROOT="$$SourceRoot/src" \
|
||||||
|
QDOC_PATH="$$[QT_INSTALL_DOCS]" \
|
||||||
|
doxygen $$PWD/$$DOXYFILE
|
||||||
|
}
|
||||||
|
|
||||||
|
doxy.CONFIG = no_link target_predeps
|
||||||
|
doxy.depends = $$PWD/$$DOXYFILE
|
||||||
|
doxy.input = DOXY_INPUT
|
||||||
|
doxy.name = DOXY
|
||||||
|
doxy.output = html/index.html
|
||||||
|
|
||||||
|
QMAKE_EXTRA_COMPILERS += doxy
|
||||||
|
OTHER_FILES += Doxyfile.qmake
|
||||||
|
}
|
||||||
|
|
||||||
load(common_post)
|
load(common_post)
|
||||||
|
|||||||
@@ -15,4 +15,4 @@ BLACK_CONFIG += ProfileRelease
|
|||||||
BLACK_CONFIG += AssertsInRelease
|
BLACK_CONFIG += AssertsInRelease
|
||||||
BLACK_CONFIG += PackageInstaller
|
BLACK_CONFIG += PackageInstaller
|
||||||
#BLACK_CONFIG += Static
|
#BLACK_CONFIG += Static
|
||||||
#BLACK_CONFIG += Doxygen
|
BLACK_CONFIG += Doxygen
|
||||||
|
|||||||
Reference in New Issue
Block a user