2022-01-02 17:34:11 +00:00
|
|
|
:: SPDX-License-Identifier: MIT
|
|
|
|
::
|
2024-04-17 15:32:04 +00:00
|
|
|
:: ES-DE Frontend
|
2023-12-19 16:38:21 +00:00
|
|
|
:: Windows_dependencies_build.bat
|
2022-01-02 17:34:11 +00:00
|
|
|
::
|
|
|
|
:: Builds the external dependencies in-tree using MSVC.
|
2024-08-09 15:24:08 +00:00
|
|
|
:: The Windows_dependencies_setup.bat script must have been executed prior to this.
|
2022-01-02 17:34:11 +00:00
|
|
|
:: All libraries will be recompiled from scratch every time.
|
|
|
|
::
|
|
|
|
:: This script needs to run from the root of the repository.
|
|
|
|
::
|
|
|
|
@echo off
|
|
|
|
|
|
|
|
if not exist .clang-format (
|
|
|
|
echo You need to run this script from the root of the repository.
|
|
|
|
goto end
|
|
|
|
)
|
|
|
|
|
|
|
|
if not exist external\pugixml\ (
|
2024-08-09 15:24:08 +00:00
|
|
|
echo You need to first run tools\Windows_dependencies_setup.bat to download and configure the dependencies.
|
2022-01-02 17:34:11 +00:00
|
|
|
goto end
|
|
|
|
)
|
|
|
|
|
2024-08-09 15:24:08 +00:00
|
|
|
cd external
|
|
|
|
|
2022-01-02 17:34:11 +00:00
|
|
|
echo Building all dependencies in the .\external directory...
|
2024-08-09 15:24:08 +00:00
|
|
|
|
2022-01-02 17:34:11 +00:00
|
|
|
echo:
|
2024-08-09 15:24:08 +00:00
|
|
|
echo Building ICU
|
2022-01-02 17:34:11 +00:00
|
|
|
|
2024-08-09 15:24:08 +00:00
|
|
|
if not exist icu/icu4c\ (
|
|
|
|
echo icu/icu4c directory is missing, aborting.
|
|
|
|
cd ..
|
|
|
|
goto end
|
|
|
|
)
|
2022-01-02 17:34:11 +00:00
|
|
|
|
2024-08-09 15:24:08 +00:00
|
|
|
cd icu/icu4c
|
|
|
|
msbuild source\allinone\allinone.sln /p:Configuration=Release /p:Platform=x64 /p:SkipUWP=true
|
|
|
|
|
|
|
|
copy /Y bin64\icudt75.dll ..\..\..\
|
|
|
|
copy /Y bin64\icuin75.dll ..\..\..\
|
|
|
|
copy /Y bin64\icuuc75.dll ..\..\..\
|
|
|
|
copy /Y lib64\icudt.lib ..\..\..\
|
|
|
|
copy /Y lib64\icuin.lib ..\..\..\
|
|
|
|
copy /Y lib64\icuuc.lib ..\..\..\
|
|
|
|
cd ..\..
|
|
|
|
|
|
|
|
echo:
|
2024-07-31 17:15:59 +00:00
|
|
|
echo Building HarfBuzz
|
|
|
|
|
|
|
|
if not exist harfbuzz\build\ (
|
|
|
|
echo harfbuzz directory is missing, aborting.
|
|
|
|
cd ..
|
|
|
|
goto end
|
|
|
|
)
|
|
|
|
|
|
|
|
cd harfbuzz\build
|
|
|
|
if exist CMakeCache.txt (
|
|
|
|
nmake clean
|
|
|
|
del CMakeCache.txt
|
|
|
|
)
|
|
|
|
|
2024-07-31 18:54:27 +00:00
|
|
|
cmake -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON -DHB_BUILD_SUBSET=off ..
|
2024-07-31 17:15:59 +00:00
|
|
|
nmake
|
|
|
|
copy /Y harfbuzz.dll ..\..\..\
|
|
|
|
copy /Y harfbuzz.lib ..\..\..\
|
|
|
|
cd ..\..
|
|
|
|
|
2024-08-09 15:24:08 +00:00
|
|
|
echo:
|
2022-01-02 17:34:11 +00:00
|
|
|
echo Building FreeType
|
|
|
|
|
2022-10-30 11:34:57 +00:00
|
|
|
if not exist freetype\build\ (
|
|
|
|
echo FreeType directory is missing, aborting.
|
|
|
|
cd ..
|
|
|
|
goto end
|
|
|
|
)
|
|
|
|
|
2022-01-11 16:33:34 +00:00
|
|
|
cd freetype\build
|
2022-01-02 17:34:11 +00:00
|
|
|
if exist CMakeCache.txt (
|
|
|
|
nmake clean
|
|
|
|
del CMakeCache.txt
|
|
|
|
)
|
|
|
|
|
|
|
|
cmake -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON ..
|
|
|
|
nmake
|
|
|
|
copy /Y freetype.dll ..\..\..\
|
|
|
|
copy /Y freetype.lib ..\..\..\
|
|
|
|
cd ..\..
|
|
|
|
|
2024-08-09 15:24:08 +00:00
|
|
|
echo:
|
2023-03-21 22:22:07 +00:00
|
|
|
echo Building libgit2
|
|
|
|
|
|
|
|
if not exist libgit2\build\ (
|
|
|
|
echo libgit2 directory is missing, aborting.
|
|
|
|
cd ..
|
|
|
|
goto end
|
|
|
|
)
|
|
|
|
|
|
|
|
cd libgit2\build
|
|
|
|
if exist CMakeCache.txt (
|
|
|
|
nmake clean
|
|
|
|
del CMakeCache.txt
|
|
|
|
)
|
|
|
|
|
|
|
|
cmake -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTS=OFF ..
|
|
|
|
nmake
|
|
|
|
copy /Y git2.dll ..\..\..\
|
2023-03-21 22:25:25 +00:00
|
|
|
copy /Y git2.lib ..\..\..\
|
2023-03-21 22:22:07 +00:00
|
|
|
cd ..\..
|
|
|
|
|
2022-01-02 17:34:11 +00:00
|
|
|
echo:
|
|
|
|
echo Building pugixml
|
|
|
|
|
2022-10-30 11:34:57 +00:00
|
|
|
if not exist pugixml\ (
|
|
|
|
echo pugixml directory is missing, aborting.
|
|
|
|
cd ..
|
|
|
|
goto end
|
|
|
|
)
|
2022-01-02 17:34:11 +00:00
|
|
|
|
2022-10-30 11:34:57 +00:00
|
|
|
cd pugixml
|
2022-01-02 17:34:11 +00:00
|
|
|
if exist CMakeCache.txt (
|
|
|
|
nmake clean
|
|
|
|
del CMakeCache.txt
|
|
|
|
)
|
|
|
|
|
|
|
|
cmake -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON .
|
|
|
|
nmake
|
|
|
|
copy /Y pugixml.dll ..\..
|
|
|
|
copy /Y pugixml.lib ..\..
|
|
|
|
cd..
|
|
|
|
|
|
|
|
:: Return to the root of the repository.
|
|
|
|
cd ..
|
|
|
|
|
2022-10-30 11:34:57 +00:00
|
|
|
echo:
|
|
|
|
echo Done building all dependencies.
|
|
|
|
|
2022-01-02 17:34:11 +00:00
|
|
|
:end
|