mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-05-01 14:45:42 +08:00
Enable doxygen by default but run only if it is is installed
This commit is contained in:
@@ -6,6 +6,12 @@ TEMPLATE = lib
|
|||||||
CONFIG += staticlib
|
CONFIG += staticlib
|
||||||
CONFIG -= qt
|
CONFIG -= qt
|
||||||
|
|
||||||
|
win32: DOXYGEN_BIN = $$system(where doxygen)
|
||||||
|
else: DOXYGEN_BIN = $$system(which doxygen)
|
||||||
|
|
||||||
|
isEmpty(DOXYGEN_BIN) {
|
||||||
|
message("Doxygen not found")
|
||||||
|
} else {
|
||||||
DOXYFILE = Doxyfile.qmake
|
DOXYFILE = Doxyfile.qmake
|
||||||
|
|
||||||
DOXY_INPUT = .
|
DOXY_INPUT = .
|
||||||
@@ -30,7 +36,9 @@ doxy.depends = $$PWD/$$DOXYFILE
|
|||||||
doxy.input = DOXY_INPUT
|
doxy.input = DOXY_INPUT
|
||||||
doxy.name = DOXY
|
doxy.name = DOXY
|
||||||
doxy.output = html/index.html
|
doxy.output = html/index.html
|
||||||
|
|
||||||
QMAKE_EXTRA_COMPILERS += doxy
|
QMAKE_EXTRA_COMPILERS += doxy
|
||||||
OTHER_FILES += Doxyfile.qmake
|
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