From 65a0d91a109dae4fab1a10d664caa722b99e38f9 Mon Sep 17 00:00:00 2001 From: Gregory Casamento Date: Tue, 20 Feb 2024 07:38:30 -0500 Subject: [PATCH] Update 46-libcairo.bat --- phases/46-libcairo.bat | 35 ++++++++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/phases/46-libcairo.bat b/phases/46-libcairo.bat index b00f9df..e4902ed 100644 --- a/phases/46-libcairo.bat +++ b/phases/46-libcairo.bat @@ -1 +1,34 @@ -# Temporary +@echo off +setlocal + +set PROJECT=libjpeg +set GITHUB_REPO=native-toolkit/libcairo +set TAG=1.15.2 + +:: get the latest release tag from GitHub +cd %~dp0 +for /f "usebackq delims=" %%i in (`call %BASH% '../scripts/get-latest-github-release-tag.sh %GITHUB_REPO%'`) do ( + set TAG=%%i +) + +:: load environment and prepare project +call "%~dp0\..\scripts\common.bat" prepare_project || exit /b 1 + +set BUILD_DIR="%SRCROOT%\%PROJECT%\build-%ARCH%-%BUILD_TYPE%" +if exist "%BUILD_DIR%" (rmdir /S /Q "%BUILD_DIR%" || exit /b 1) +mkdir "%BUILD_DIR%" || exit /b 1 +cd "%BUILD_DIR%" || exit /b 1 + +echo. +echo ### Running cmake +cmake .. %CMAKE_OPTIONS% ^ + -D ENABLE_STATIC=OFF -D INST_ID=vc ^ + || exit /b 1 + +echo. +echo ### Building +ninja || exit /b 1 + +echo. +echo ### Installing +ninja install || exit /b 1