2024-06-20 15:47:15 +08:00
|
|
|
@ECHO OFF
|
|
|
|
SET README_PATH=%CD%\README.md
|
|
|
|
IF EXIST %README_PATH% (
|
|
|
|
REM DO NOTHING
|
|
|
|
) ELSE (
|
|
|
|
ECHO Error: You must run this script at the root folder of this project!
|
|
|
|
EXIT /b
|
|
|
|
)
|
|
|
|
|
|
|
|
:: Create essential folder
|
|
|
|
MKDIR bin
|
|
|
|
CD bin
|
|
|
|
MKDIR Win32
|
|
|
|
MKDIR x64
|
2024-07-06 15:28:30 +08:00
|
|
|
MKDIR documentation
|
2024-06-20 15:47:15 +08:00
|
|
|
MKDIR install
|
|
|
|
|
|
|
|
:: Build for Win32
|
|
|
|
CD Win32
|
|
|
|
cmake -G "Visual Studio 16 2019" -A Win32 -DYYCC_BUILD_TESTBENCH=ON ../..
|
|
|
|
cmake --build . --config Debug
|
|
|
|
cmake --install . --prefix=../install --config Debug
|
|
|
|
cmake --build . --config Release
|
|
|
|
cmake --install . --prefix=../install --config Release
|
|
|
|
CD ..
|
|
|
|
|
|
|
|
:: Build for x64
|
|
|
|
CD x64
|
|
|
|
cmake -G "Visual Studio 16 2019" -A x64 -DYYCC_BUILD_TESTBENCH=ON ../..
|
|
|
|
cmake --build . --config Debug
|
|
|
|
cmake --install . --prefix=../install --config Debug
|
|
|
|
cmake --build . --config Release
|
|
|
|
cmake --install . --prefix=../install --config Release
|
|
|
|
CD ..
|
|
|
|
|
2024-07-06 15:28:30 +08:00
|
|
|
:: Build for documentation
|
|
|
|
CD documentation
|
|
|
|
cmake -DYYCC_BUILD_DOC=ON ../..
|
|
|
|
cmake --build . --config Release
|
|
|
|
:: cmake --install . --prefix=../install --config Release
|
|
|
|
CD ..
|
|
|
|
|
2024-06-20 15:47:15 +08:00
|
|
|
ECHO DONE
|