mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-30 01:55:39 +00:00
77 lines
1.5 KiB
Batchfile
77 lines
1.5 KiB
Batchfile
:: SPDX-License-Identifier: MIT
|
|
::
|
|
:: EmulationStation Desktop Edition
|
|
:: Windows_dependencies_build_MSVC.bat
|
|
::
|
|
:: Builds the external dependencies in-tree using MSVC.
|
|
:: The Windows_dependencies_setup_MSVC.bat script must have been executed prior to this.
|
|
:: 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\ (
|
|
echo You need to first run tools\Windows_dependencies_setup_MSVC.bat to download and configure the dependencies.
|
|
goto end
|
|
)
|
|
|
|
echo Building all dependencies in the .\external directory...
|
|
echo:
|
|
|
|
cd external
|
|
|
|
echo Building FreeType
|
|
|
|
if not exist freetype\build\ (
|
|
echo FreeType directory is missing, aborting.
|
|
cd ..
|
|
goto end
|
|
)
|
|
|
|
cd freetype\build
|
|
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 ..\..
|
|
|
|
echo:
|
|
echo Building pugixml
|
|
|
|
if not exist pugixml\ (
|
|
echo pugixml directory is missing, aborting.
|
|
cd ..
|
|
goto end
|
|
)
|
|
|
|
cd pugixml
|
|
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 ..
|
|
|
|
echo:
|
|
echo Done building all dependencies.
|
|
|
|
:end
|