mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-21 21:55:38 +00:00
(Windows) Added the libgit2 library as a dependency
This commit is contained in:
parent
905b8c021c
commit
38980ffd44
|
@ -438,6 +438,7 @@ elseif(WIN32)
|
|||
${CMAKE_CURRENT_SOURCE_DIR}/external/ffmpeg-n5.1.2-1-g05d6157aab-win64-gpl-shared-5.1/include
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/external/FreeImage/Dist/x64
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/external/freetype/include
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/external/libgit2/include
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/external/pugixml/src
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/external/SDL2-2.26.3)
|
||||
elseif(EMSCRIPTEN)
|
||||
|
@ -499,6 +500,7 @@ elseif(WIN32)
|
|||
${PROJECT_SOURCE_DIR}/swresample.lib
|
||||
${PROJECT_SOURCE_DIR}/swscale.lib
|
||||
${PROJECT_SOURCE_DIR}/FreeImage.lib
|
||||
${PROJECT_SOURCE_DIR}/git2.lib
|
||||
${PROJECT_SOURCE_DIR}/glew32.lib
|
||||
${PROJECT_SOURCE_DIR}/libcurl-x64.lib
|
||||
${PROJECT_SOURCE_DIR}/freetype.lib
|
||||
|
@ -516,6 +518,7 @@ elseif(WIN32)
|
|||
${PROJECT_SOURCE_DIR}/swresample-4.dll
|
||||
${PROJECT_SOURCE_DIR}/swscale-6.dll
|
||||
${PROJECT_SOURCE_DIR}/FreeImage.dll
|
||||
${PROJECT_SOURCE_DIR}/libgit2.dll
|
||||
${PROJECT_SOURCE_DIR}/glew32.dll
|
||||
${PROJECT_SOURCE_DIR}/libcurl-x64.dll
|
||||
${PROJECT_SOURCE_DIR}/libfreetype.dll
|
||||
|
|
|
@ -139,6 +139,7 @@ if(WIN32)
|
|||
../swscale-6.dll
|
||||
../FreeImage.dll
|
||||
../freetype.dll
|
||||
../git2.dll
|
||||
../glew32.dll
|
||||
../libcrypto-1_1-x64.dll
|
||||
../libcurl-x64.dll
|
||||
|
@ -165,6 +166,7 @@ if(WIN32)
|
|||
../libcrypto-1_1-x64.dll
|
||||
../libcurl-x64.dll
|
||||
../libfreetype.dll
|
||||
../libgit2.dll
|
||||
../liblunasvg.dll
|
||||
../libpugixml.dll
|
||||
../librlottie.dll
|
||||
|
|
|
@ -46,6 +46,25 @@ copy /Y freetype.dll ..\..\..\
|
|||
copy /Y freetype.lib ..\..\..\
|
||||
cd ..\..
|
||||
|
||||
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 ..\..\..\
|
||||
cd ..\..
|
||||
|
||||
echo:
|
||||
echo Building pugixml
|
||||
|
||||
|
|
|
@ -57,6 +57,22 @@ strip libfreetype.dll
|
|||
cp libfreetype.dll ../../..
|
||||
cd ../..
|
||||
|
||||
echo -e "\nBuilding libgit2"
|
||||
|
||||
if [ ! -d libgit2/build ]; then
|
||||
echo "libgit2 directory is missing, aborting."
|
||||
exit
|
||||
fi
|
||||
|
||||
cd libgit2/build
|
||||
rm -f CMakeCache.txt
|
||||
cmake -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTS=OFF ..
|
||||
make clean
|
||||
make -j${JOBS}
|
||||
strip libgit2.dll
|
||||
cp libgit2.dll ../../..
|
||||
cd ../..
|
||||
|
||||
echo -e "\nBuilding pugixml"
|
||||
|
||||
if [ ! -d pugixml ]; then
|
||||
|
|
|
@ -118,6 +118,26 @@ if not exist FreeImage\ (
|
|||
copy /Y FreeImage\Dist\x64\FreeImage.dll ..
|
||||
copy /Y FreeImage\Dist\x64\FreeImage.lib ..
|
||||
|
||||
echo:
|
||||
echo Setting up libgit2
|
||||
|
||||
if exist libgit2\ (
|
||||
rmdir /S /Q libgit2
|
||||
)
|
||||
|
||||
git clone https://github.com/libgit2/libgit2.git
|
||||
|
||||
if not exist libgit2\ (
|
||||
echo libgit2 directory is missing, aborting.
|
||||
cd ..
|
||||
goto end
|
||||
)
|
||||
|
||||
cd libgit2
|
||||
git checkout v1.6.3
|
||||
mkdir build
|
||||
cd ..
|
||||
|
||||
echo:
|
||||
echo Setting up pugixml
|
||||
|
||||
|
|
|
@ -71,6 +71,21 @@ fi
|
|||
|
||||
cp -p FreeImage/Dist/x64/FreeImage.dll ..
|
||||
|
||||
echo -e "\nSetting up libgit2"
|
||||
rm -rf libgit2
|
||||
|
||||
git clone https://github.com/libgit2/libgit2.git
|
||||
|
||||
if [ ! -d libgit2 ]; then
|
||||
echo "libgit2 directory is missing, aborting."
|
||||
exit
|
||||
fi
|
||||
|
||||
cd libgit2
|
||||
git checkout v1.6.3
|
||||
mkdir build
|
||||
cd ..
|
||||
|
||||
echo -e "\nSetting up pugixml"
|
||||
rm -rf pugixml
|
||||
|
||||
|
|
Loading…
Reference in a new issue