Fixed up Windows regen.bat script to use environment variables instead of conditional config file includes.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72875 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Bryan Petty
2012-11-03 18:33:31 +00:00
parent b15e29d69c
commit 0bfa9ddf3a
2 changed files with 51 additions and 10 deletions

View File

@@ -376,7 +376,7 @@ DOCSET_PUBLISHER_NAME = wxWidgets Team
GENERATE_HTMLHELP = $(GENERATE_HTMLHELP)
CHM_FILE = ..\wx.chm # Windows style separator is required.
HHC_LOCATION = hhc.exe # Don't modify, see Doxyfile_chm for info
HHC_LOCATION = hhc.exe
GENERATE_CHI = NO
CHM_INDEX_ENCODING =
BINARY_TOC = NO

View File

@@ -13,19 +13,60 @@ REM These not automatically copied by Doxygen because they're not
REM used in doxygen documentation, only in our html footer and by our
REM custom aliases
copy images\generic\*.png out\html\generic 2>&1 >NUL
copy wxwidgets.js out\html 2>&1 >NUL
REM set cfgfile variable to the right doxyfile to use,
REM using MS broken batch scripting
setlocal enableextensions
set arg=%1
if "%arg%" EQU "" set cfgfile=Doxyfile_all
if "%arg%" NEQ "" set cfgfile=Doxyfile_%1
pushd ..\..
set WXWIDGETS=%CD%
popd
REM Defaults for settings controlled by this script
set GENERATE_DOCSET=NO
set GENERATE_HTML=NO
set GENERATE_HTMLHELP=NO
set GENERATE_LATEX=NO
set GENERATE_QHP=NO
set GENERATE_XML=NO
set SEARCHENGINE=NO
set SERVER_BASED_SEARCH=NO
IF "%1" == "all" (
set GENERATE_HTML=YES
set GENERATE_HTMLHELP=YES
set GENERATE_XML=YES
) ELSE (
IF "%1" == "chm" (
set GENERATE_HTML=YES
set GENERATE_HTMLHELP=YES
) ELSE (
IF "%1" == "docset" (
set GENERATE_DOCSET=YES
set GENERATE_HTML=YES
) ELSE (
IF "%1" == "latex" (
set GENERATE_LATEX=YES
) ELSE (
IF "%1" == "php" (
set GENERATE_HTML=YES
set SEARCHENGINE=YES
set SERVER_BASED_SEARCH=YES
) ELSE (
IF "%1" == "qch" (
set GENERATE_HTML=YES
set GENERATE_QHP=YES
) ELSE (
IF "%1" == "xml" (
set GENERATE_XML=YES
) ELSE (
REM Default to HTML format.
set GENERATE_HTML=YES
set SEARCHENGINE=YES
)
)
)
)
)
)
)
REM
REM NOW RUN DOXYGEN
REM
@@ -34,4 +75,4 @@ REM otherwise when generating the CHM file with Doxygen, those files are
REM not included!
REM
set PATH=%PATH%;%HHC_PATH%
doxygen %cfgfile%
doxygen Doxyfile