From b01d8db282f7971ade728e47a943585eae42f419 Mon Sep 17 00:00:00 2001 From: Yong He Date: Wed, 28 Sep 2022 20:03:18 -0700 Subject: Fix build script for macos aarch64. (#2420) * Fix build script for macos aarch64. * fix1 * Fix2. * update vs files Co-authored-by: Yong He --- build/visual-studio/gfx/gfx.vcxproj | 40 ++++++++++++++++++++----------------- 1 file changed, 22 insertions(+), 18 deletions(-) (limited to 'build/visual-studio/gfx') diff --git a/build/visual-studio/gfx/gfx.vcxproj b/build/visual-studio/gfx/gfx.vcxproj index 473becabf..05e70cc78 100644 --- a/build/visual-studio/gfx/gfx.vcxproj +++ b/build/visual-studio/gfx/gfx.vcxproj @@ -9,9 +9,9 @@ Debug x64 - + Debug - ARM + ARM64 Debug aarch64 @@ -21,9 +21,9 @@ Debug aarch64 x64 - + Debug aarch64 - ARM + ARM64 Release @@ -33,9 +33,9 @@ Release x64 - + Release - ARM + ARM64 Release aarch64 @@ -45,9 +45,9 @@ Release aarch64 x64 - + Release aarch64 - ARM + ARM64 @@ -70,12 +70,12 @@ Unicode v142 - + DynamicLibrary true Unicode v142 - true + true DynamicLibrary @@ -89,12 +89,12 @@ Unicode v142 - + DynamicLibrary false Unicode v142 - true + true @@ -105,7 +105,7 @@ - + @@ -114,7 +114,7 @@ - + @@ -132,7 +132,7 @@ gfx .dll - + true ..\..\..\bin\windows-aarch64\debug\ ..\..\..\intermediate\windows-aarch64\debug\gfx\ @@ -153,7 +153,7 @@ gfx .dll - + false ..\..\..\bin\windows-aarch64\release\ ..\..\..\intermediate\windows-aarch64\release\gfx\ @@ -206,7 +206,7 @@ IF EXIST "$(SolutionDir)tools\gfx\slang.slang"\ (xcopy /Q /E /Y /I "$(SolutionDi "$(SolutionDir)tools\copy-hlsl-libs.bat" "$(WindowsSdkDir)Redist/D3D/x64/" "../../../bin/windows-x64/debug/" - + NotUsing Level3 @@ -216,12 +216,14 @@ IF EXIST "$(SolutionDir)tools\gfx\slang.slang"\ (xcopy /Q /E /Y /I "$(SolutionDi ProgramDatabase Disabled MultiThreadedDebug + -arch arm64 %(AdditionalOptions) Windows true ..\..\..\bin\windows-aarch64\debug\gfx.lib true + -arch arm64 %(AdditionalOptions) IF EXIST "$(SolutionDir)tools\gfx\gfx.slang"\ (xcopy /Q /E /Y /I "$(SolutionDir)tools\gfx\gfx.slang" "..\..\..\bin\windows-aarch64\debug" > nul) ELSE (xcopy /Q /Y /I "$(SolutionDir)tools\gfx\gfx.slang" "..\..\..\bin\windows-aarch64\debug" > nul) @@ -283,7 +285,7 @@ IF EXIST "$(SolutionDir)tools\gfx\slang.slang"\ (xcopy /Q /E /Y /I "$(SolutionDi "$(SolutionDir)tools\copy-hlsl-libs.bat" "$(WindowsSdkDir)Redist/D3D/x64/" "../../../bin/windows-x64/release/" - + NotUsing Level3 @@ -296,6 +298,7 @@ IF EXIST "$(SolutionDir)tools\gfx\slang.slang"\ (xcopy /Q /E /Y /I "$(SolutionDi false true MultiThreaded + -arch arm64 %(AdditionalOptions) Windows @@ -303,6 +306,7 @@ IF EXIST "$(SolutionDir)tools\gfx\slang.slang"\ (xcopy /Q /E /Y /I "$(SolutionDi true ..\..\..\bin\windows-aarch64\release\gfx.lib true + -arch arm64 %(AdditionalOptions) IF EXIST "$(SolutionDir)tools\gfx\gfx.slang"\ (xcopy /Q /E /Y /I "$(SolutionDir)tools\gfx\gfx.slang" "..\..\..\bin\windows-aarch64\release" > nul) ELSE (xcopy /Q /Y /I "$(SolutionDir)tools\gfx\gfx.slang" "..\..\..\bin\windows-aarch64\release" > nul) -- cgit v1.2.3