diff --git a/doc/src/intro.dox b/doc/src/intro.dox index 17c8745..c6a8b94 100644 --- a/doc/src/intro.dox +++ b/doc/src/intro.dox @@ -106,6 +106,8 @@ See following section for more details. For creating CMake distribution, please execute script script/win_build.bat. After script done, you will find CMake distribution in directory bin/install with following structure. +In default, building process will build documentation automatically. +If you don't want built documentation, please execute with extra argument \c NODOC, i.e. script/win_build.bat NODOC. \verbatim YYCC @@ -137,6 +139,8 @@ because MSVC distribution depend on CMake distribution. After creating CMake distribution, you can simply create MSVC distribution by executing script/win_msvc_build.bat. Then you will find your MSVC distribution in directory bin/msvc_install with following structure. +Same as CMake distribution, if you don't want built documentation, +please execute script/win_msvc_build.bat NODOC. \verbatim YYCC diff --git a/script/win_build.bat b/script/win_build.bat index c70905e..5333c57 100644 --- a/script/win_build.bat +++ b/script/win_build.bat @@ -1,4 +1,5 @@ @ECHO OFF +:: Check environment SET README_PATH=%CD%\README.md IF EXIST %README_PATH% ( REM DO NOTHING @@ -42,12 +43,14 @@ cmake --install . --prefix=../install/x64_Release --config Release CD .. :: Build for documentation -CD documentation -cmake -G "Visual Studio 16 2019" -A x64 -DYYCC_BUILD_DOC=ON ../.. -cmake --build . --config Release -cmake --build . --target YYCCDocumentation -cmake --install . --prefix=../install/x64_Release --config Release -CD .. +IF NOT "%1"=="NODOC" ( + CD documentation + cmake -G "Visual Studio 16 2019" -A x64 -DYYCC_BUILD_DOC=ON ../.. + cmake --build . --config Release + cmake --build . --target YYCCDocumentation + cmake --install . --prefix=../install/x64_Release --config Release + CD .. +) :: Exit to original path CD .. diff --git a/script/win_msvc_build.bat b/script/win_msvc_build.bat index 8dfbc01..50fe0b4 100644 --- a/script/win_msvc_build.bat +++ b/script/win_msvc_build.bat @@ -35,7 +35,9 @@ CD .. :: Copy include from x64_Release build XCOPY install\x64_Release\include msvc_install\include\ /E /Y :: Copy document from x64_Release build -XCOPY install\x64_Release\share msvc_install\share\ /E /Y +IF NOT "%1"=="NODOC" ( + XCOPY install\x64_Release\share msvc_install\share\ /E /Y +) :: Copy binary testbench COPY install\Win32_Release\bin\YYCCTestbench.exe msvc_install\bin\Win32\YYCCTestbench.exe /Y COPY install\x64_Release\bin\YYCCTestbench.exe msvc_install\bin\x64\YYCCTestbench.exe /Y