2012-04-03 03:34:16 +02:00
|
|
|
@echo off
|
2022-09-01 20:53:26 +02:00
|
|
|
:: Copyright (c) 2022 The Chromium Embedded Framework Authors. All rights
|
|
|
|
:: reserved. Use of this source code is governed by a BSD-style license
|
|
|
|
:: that can be found in the LICENSE file.
|
|
|
|
|
|
|
|
set RC=
|
|
|
|
|
2012-04-03 03:34:16 +02:00
|
|
|
setlocal
|
|
|
|
|
2022-09-01 20:53:26 +02:00
|
|
|
:: Check if DOXYGEN_EXE is already provided via the environment.
|
|
|
|
if exist "%DOXYGEN_EXE%" goto found_exe
|
|
|
|
set DOXYGEN_EXE="C:\Program Files\doxygen\bin\doxygen.exe"
|
|
|
|
if not exist %DOXYGEN_EXE% (
|
|
|
|
echo ERROR: Please install Doxygen from https://doxygen.nl/ 1>&2
|
|
|
|
set ERRORLEVEL=1
|
|
|
|
goto end
|
2012-04-03 03:34:16 +02:00
|
|
|
)
|
|
|
|
|
2022-09-01 20:53:26 +02:00
|
|
|
:found_exe
|
|
|
|
|
|
|
|
:: Environment variables inserted into the Doxyfile via `$(VAR_NAME)` syntax.
|
|
|
|
for /F %%i in ('python.bat %~dp0\cef_version.py current') do set PROJECT_NUMBER=%%i
|
|
|
|
|
|
|
|
:: Run from the top-level CEF directory so that relative paths resolve correctly.
|
|
|
|
set CURRENT_PATH="%CD%"
|
|
|
|
cd "%~dp0\.."
|
|
|
|
|
2022-09-02 19:10:58 +02:00
|
|
|
:: Generate documentation in the docs/html directory.
|
2022-09-01 20:53:26 +02:00
|
|
|
%DOXYGEN_EXE% Doxyfile
|
|
|
|
|
2022-09-02 19:10:58 +02:00
|
|
|
:: Write a docs/index.html file.
|
|
|
|
echo|set /p="<html><head><meta http-equiv="refresh" content="0;URL='html/index.html'"/></head></html>" > docs/index.html
|
|
|
|
|
2022-09-01 20:53:26 +02:00
|
|
|
cd "%CURRENT_PATH%"
|
|
|
|
|
|
|
|
:end
|
|
|
|
endlocal & set RC=%ERRORLEVEL%
|
|
|
|
goto omega
|
|
|
|
|
|
|
|
:returncode
|
|
|
|
exit /B %RC%
|
2012-04-03 03:34:16 +02:00
|
|
|
|
2022-09-01 20:53:26 +02:00
|
|
|
:omega
|
|
|
|
call :returncode %RC%
|