mirror of
				https://github.com/winfsp/winfsp.git
				synced 2025-10-30 19:48:38 -05:00 
			
		
		
		
	appveyor: use VS2015 to build post-ARM64
This commit is contained in:
		| @@ -46,6 +46,8 @@ build_script: | |||||||
| #- C:\cygwin64\bin\bash --login -c "make -C '%CD%\opt\cygfuse' dist" | #- C:\cygwin64\bin\bash --login -c "make -C '%CD%\opt\cygfuse' dist" | ||||||
| #- C:\cygwin\setup-x86.exe -qnNd -P cygport | #- C:\cygwin\setup-x86.exe -qnNd -P cygport | ||||||
| #- C:\cygwin\bin\bash --login -c "make -C '%CD%\opt\cygfuse' dist" | #- C:\cygwin\bin\bash --login -c "make -C '%CD%\opt\cygfuse' dist" | ||||||
|  | # remove ARM64 project configurations to build in VS2015 | ||||||
|  | - tools\gensrc\remove-all-arm64.bat | ||||||
| # build winfsp | # build winfsp | ||||||
| - tools\build.bat %CONFIGURATION% | - tools\build.bat %CONFIGURATION% | ||||||
|  |  | ||||||
|   | |||||||
| @@ -24,6 +24,13 @@ if X%~nx0==Xbuild-choco.bat ( | |||||||
|     goto :choco |     goto :choco | ||||||
| ) | ) | ||||||
|  |  | ||||||
|  | set BuildArm64=yes | ||||||
|  | if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2015" ( | ||||||
|  |     echo WARNING: APPVEYOR BUILD ON UNSUPPORTED VERSION OF VISUAL STUDIO. | ||||||
|  |     echo: | ||||||
|  |     set BuildArm64=no | ||||||
|  | ) | ||||||
|  |  | ||||||
| call "%~dp0vcvarsall.bat" x64 | call "%~dp0vcvarsall.bat" x64 | ||||||
|  |  | ||||||
| if not X%SignedPackage%==X ( | if not X%SignedPackage%==X ( | ||||||
| @@ -44,12 +51,21 @@ if X%SignedPackage%==X ( | |||||||
|         if exist "%%d" rmdir /s/q "%%d" |         if exist "%%d" rmdir /s/q "%%d" | ||||||
|     ) |     ) | ||||||
|  |  | ||||||
|  |     if X%BuildArm64%==Xyes ( | ||||||
|         devenv winfsp.sln /build "%Configuration%|ARM64" |         devenv winfsp.sln /build "%Configuration%|ARM64" | ||||||
|         if errorlevel 1 goto fail |         if errorlevel 1 goto fail | ||||||
|  |     ) | ||||||
|     devenv winfsp.sln /build "%Configuration%|x64" |     devenv winfsp.sln /build "%Configuration%|x64" | ||||||
|     if errorlevel 1 goto fail |     if errorlevel 1 goto fail | ||||||
|     devenv winfsp.sln /build "%Configuration%|x86" |     devenv winfsp.sln /build "%Configuration%|x86" | ||||||
|     if errorlevel 1 goto fail |     if errorlevel 1 goto fail | ||||||
|  |     if X%BuildArm64%==Xno ( | ||||||
|  |         echo: | ||||||
|  |         echo WARNING: APPVEYOR BUILD ON UNSUPPORTED VERSION OF VISUAL STUDIO. | ||||||
|  |         echo WARNING: ARM64 BUILD PRODUCTS ARE COPIES OF X64 BUILD PRODUCTS. | ||||||
|  |         echo: | ||||||
|  |         copy build\%Configuration%\*-x64.* build\%Configuration%\*-a64.* >nul | ||||||
|  |     ) | ||||||
|  |  | ||||||
|     for %%f in (build\%Configuration%\%MyProductFileName%-a64.sys build\%Configuration%\%MyProductFileName%-x64.sys build\%Configuration%\%MyProductFileName%-x86.sys) do ( |     for %%f in (build\%Configuration%\%MyProductFileName%-a64.sys build\%Configuration%\%MyProductFileName%-x64.sys build\%Configuration%\%MyProductFileName%-x86.sys) do ( | ||||||
|         signtool sign /ac %CrossCert% /i %Issuer% /n %Subject% /fd sha1 /t http://timestamp.digicert.com %%f |         signtool sign /ac %CrossCert% /i %Issuer% /n %Subject% /fd sha1 /t http://timestamp.digicert.com %%f | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user