-
Notifications
You must be signed in to change notification settings - Fork 275
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial batch files for building windows on arm64 without changing ja…
…m files Current problem: The editor compilation would fail due to difference in emmintrins.
- Loading branch information
1 parent
01c10f8
commit 4403577
Showing
8 changed files
with
225 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
pushd prog\tools | ||
call build_dagor_cdk_mini_WindowsOnArm64.cmd | ||
if errorlevel 1 ( | ||
echo build_dagor3_cdk_mini.cmd failed, trying once more... | ||
call build_dagor_cdk_mini_WindowsOnArm64.cmd | ||
) | ||
if errorlevel 1 ( | ||
echo failed to build CDK, stop! | ||
pause | ||
exit /b 1 | ||
) | ||
pause | ||
popd | ||
|
||
pushd prog\tools\dargbox | ||
call create_vfsroms_WoA64.bat | ||
cd shaders | ||
call compile_shaders_pc11.bat | ||
call compile_shaders_metal.bat | ||
call compile_shaders_spirV.bat | ||
popd | ||
|
||
pushd prog\samples\physTest | ||
jam -sPlatformArch=arm64 -sPlatformSpec=vc17 | ||
jam -sPlatformArch=arm64 -sPlatformSpec=vc17 -f jamfile-test-jolt | ||
cd shaders | ||
call compile_game_shaders-dx11_WOA.bat | ||
popd | ||
|
||
pushd samples\skiesSample\prog | ||
jam -sPlatformArch=arm64 -sPlatformSpec=vc17 | ||
cd shaders | ||
call compile_shaders_dx12_WOA.bat | ||
call compile_shaders_dx11_WOA.bat | ||
popd | ||
|
||
pushd samples\testGI\prog | ||
jam -sPlatformArch=arm64 -sPlatformSpec=vc17 | ||
cd shaders | ||
call compile_shaders_dx12_WOA.bat | ||
call compile_shaders_dx11_WOA.bat | ||
popd |
1 change: 1 addition & 0 deletions
1
prog/samples/physTest/shaders/compile_game_shaders-dx11_WOA.bat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
@..\..\..\..\tools\dagor_cdk\windows-arm64\dsc2-hlsl11-dev.exe ./game.dx11.blk -shaderOn -q -o ../../../../_output/shaders/physTest-game~dx11 %1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,125 @@ | ||
@echo off | ||
|
||
rem DaEditorX | ||
jam -sPlatformArch=arm64 -sPlatformSpec=vc17 -s Root=../.. -f sceneTools/daEditorX/jamfile-editor | ||
if errorlevel 1 goto error | ||
jam -sPlatformArch=arm64 -sPlatformSpec=vc17 -s Root=../.. -f sceneTools/daEditorX/jamfile | ||
if errorlevel 1 goto error | ||
|
||
rem dabuild | ||
jam -sPlatformArch=arm64 -sPlatformSpec=vc17 -s Root=../.. -f sceneTools/assetExp/jamfile | ||
if errorlevel 1 goto error | ||
jam -sPlatformArch=arm64 -sPlatformSpec=vc17 -s Root=../.. -f converters/ddsxCvt2/jamfile | ||
if errorlevel 1 goto error | ||
|
||
rem AssetViewer | ||
jam -sPlatformArch=arm64 -sPlatformSpec=vc17 -s Root=../.. -f AssetViewer/jamfile | ||
if errorlevel 1 goto error | ||
jam -sPlatformArch=arm64 -sPlatformSpec=vc17 -s Root=../.. -f sceneTools/findUnusedTex/jamfile | ||
if errorlevel 1 goto error | ||
|
||
rem daImpostorBaker | ||
jam -sPlatformArch=arm64 -sPlatformSpec=vc17 -s Root=../.. -f sceneTools/impostorBaker/jamfile | ||
if errorlevel 1 goto error | ||
|
||
rem DDSx plugins | ||
jam -sPlatformArch=arm64 -sPlatformSpec=vc17 -s Root=../.. -f sceneTools/assetExp/ddsxConv/jamfile | ||
if errorlevel 1 goto error | ||
jam -sPlatformArch=arm64 -sPlatformSpec=vc17 -s Root=../.. -s iOS_exp=yes -f sceneTools/assetExp/ddsxConv/jamfile | ||
if errorlevel 1 goto error | ||
jam -sPlatformArch=arm64 -sPlatformSpec=vc17 -s Root=../.. -s Tegra_exp=yes -f sceneTools/assetExp/ddsxConv/jamfile | ||
if errorlevel 1 goto error | ||
|
||
rem shader compilers | ||
jam -sPlatformArch=arm64 -sPlatformSpec=vc17 -s Root=../.. -f ../3rdPartyLibs/legacy_parser/dolphin/jamfile | ||
if errorlevel 1 goto error | ||
jam -sPlatformArch=arm64 -sPlatformSpec=vc17 -s Root=../.. -f ../3rdPartyLibs/legacy_parser/whale/jamfile | ||
if errorlevel 1 goto error | ||
jam -sPlatformArch=arm64 -sPlatformSpec=vc17 -s Root=../.. -f shaderCompiler2/jamfile-hlsl11 | ||
if errorlevel 1 goto error | ||
jam -sPlatformArch=arm64 -sPlatformSpec=vc17 -s Root=../.. -f shaderCompiler2/jamfile-hlsl2spirv | ||
if errorlevel 1 goto error | ||
jam -sPlatformArch=arm64 -sPlatformSpec=vc17 -s Root=../.. -f shaderCompiler2/jamfile-hlsl2metal | ||
if errorlevel 1 goto error | ||
jam -sPlatformArch=arm64 -sPlatformSpec=vc17 -s Root=../.. -f shaderCompiler2/jamfile-dx12 | ||
if errorlevel 1 goto error | ||
jam -sPlatformArch=arm64 -sPlatformSpec=vc17 -s Root=../.. -f shaderCompiler2/hlslCompiler/jamfile | ||
if errorlevel 1 goto error | ||
jam -sPlatformArch=arm64 -sPlatformSpec=vc17 -s Root=../.. -f shaderCompiler2/nodeBased/jamfile | ||
if errorlevel 1 goto error | ||
jam -sPlatformArch=arm64 -sPlatformSpec=vc17 -s Root=../.. -f shaderInfo/jamfile | ||
if errorlevel 1 goto error | ||
|
||
rem common minimal gui shaders for tools | ||
pushd sceneTools\guiShaders_commonData | ||
call compile_gui_shaders_dx11.cmd | ||
popd | ||
|
||
rem utils | ||
jam -sPlatformArch=arm64 -sPlatformSpec=vc17 -s Root=../.. -f sceneTools/vromfsPacker/jamfile | ||
if errorlevel 1 goto error | ||
jam -sPlatformArch=arm64 -sPlatformSpec=vc17 -s Root=../.. -f sceneTools/csvUtil/jamfile | ||
if errorlevel 1 goto error | ||
jam -sPlatformArch=arm64 -sPlatformSpec=vc17 -s Root=../.. -f converters/ddsxCvt/jamfile | ||
if errorlevel 1 goto error | ||
jam -sPlatformArch=arm64 -sPlatformSpec=vc17 -s Root=../.. -f converters/ddsx2dds/jamfile | ||
if errorlevel 1 goto error | ||
jam -sPlatformArch=arm64 -sPlatformSpec=vc17 -s Root=../.. -f converters/ddsConverter/jamfile | ||
if errorlevel 1 goto error | ||
jam -sPlatformArch=arm64 -sPlatformSpec=vc17 -s Root=../.. -f FontGenerator/jamfile | ||
if errorlevel 1 goto error | ||
jam -sPlatformArch=arm64 -sPlatformSpec=vc17 -s Root=../.. -f converters/GuiTex/jamfile | ||
if errorlevel 1 goto error | ||
jam -sPlatformArch=arm64 -sPlatformSpec=vc17 -s Root=../.. -f sceneTools/utils/jamfile-binBlk | ||
if errorlevel 1 goto error | ||
|
||
jam -sPlatformArch=arm64 -sPlatformSpec=vc17 -s Root=../.. -f sceneTools/dumpGrp/jamfile | ||
if errorlevel 1 goto error | ||
jam -sPlatformArch=arm64 -sPlatformSpec=vc17 -s Root=../.. -f sceneTools/dbldUtil/jamfile | ||
if errorlevel 1 goto error | ||
jam -sPlatformArch=arm64 -sPlatformSpec=vc17 -s Root=../.. -f sceneTools/resDiff/jamfile | ||
if errorlevel 1 goto error | ||
jam -sPlatformArch=arm64 -sPlatformSpec=vc17 -s Root=../.. -f sceneTools/resUpdate/jamfile | ||
if errorlevel 1 goto error | ||
jam -sPlatformArch=arm64 -sPlatformSpec=vc17 -s Root=../.. -f sceneTools/resClean/jamfile | ||
if errorlevel 1 goto error | ||
|
||
jam -sPlatformArch=arm64 -sPlatformSpec=vc17 -s Root=../.. -sConfig=dev -sPlatformArch=x86_64 -f consoleSq/jamfile | ||
if errorlevel 1 goto error | ||
|
||
rem jam -sPlatformArch=arm64 -sPlatformSpec=vc17 -s Root=../.. -f miscUtils/fastdep-0.16/jamfile | ||
rem if errorlevel 1 goto error | ||
|
||
rem GUI tools | ||
jam -sPlatformArch=arm64 -sPlatformSpec=vc17 -s Root=../.. -f dargbox/jamfile | ||
if errorlevel 1 goto error | ||
|
||
rem Blender plugin | ||
pushd dag4blend | ||
__build_pack.py FINAL | ||
popd | ||
|
||
rem 3ds Max plugins, we don't care if these plugins fail to compile (this could happen due to missing SDK or compiler) | ||
jam -sPlatformArch=arm64 -sPlatformSpec=vc17 -s Root=../.. -s MaxVer=Max2025 -f maxplug/jamfile | ||
jam -sPlatformArch=arm64 -sPlatformSpec=vc17 -s Root=../.. -s MaxVer=Max2025 -f maxplug/jamfile-imp | ||
|
||
jam -sPlatformArch=arm64 -sPlatformSpec=vc17 -s Root=../.. -s MaxVer=Max2024 -f maxplug/jamfile | ||
jam -sPlatformArch=arm64 -sPlatformSpec=vc17 -s Root=../.. -s MaxVer=Max2024 -f maxplug/jamfile-imp | ||
|
||
jam -sPlatformArch=arm64 -sPlatformSpec=vc17 -s Root=../.. -s MaxVer=Max2023 -f maxplug/jamfile | ||
jam -sPlatformArch=arm64 -sPlatformSpec=vc17 -s Root=../.. -s MaxVer=Max2023 -f maxplug/jamfile-imp | ||
|
||
jam -sPlatformArch=arm64 -sPlatformSpec=vc17 -s Root=../.. -s MaxVer=Max2022 -f maxplug/jamfile | ||
jam -sPlatformArch=arm64 -sPlatformSpec=vc17 -s Root=../.. -s MaxVer=Max2022 -f maxplug/jamfile-imp | ||
if errorlevel 1 goto EOF | ||
|
||
goto EOF | ||
|
||
:error | ||
|
||
echo. | ||
echo An error occured | ||
exit /b 1 | ||
|
||
:EOF | ||
exit /b 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
@ECHO OFF | ||
|
||
set /P a=...<nul | ||
..\..\..\tools\dagor_cdk\windows-arm64\vromfsPacker-dev.exe darg.vromfs.blk -platform:PC >log_vrom_darg | ||
if ERRORLEVEL 1 goto err_pc | ||
|
||
@rem ..\..\..\tools\dagor_cdk\windows-x86_64\vromfsPacker-dev.exe darg.vromfs.blk -platform:iOS >log_vrom_darg_ios | ||
@rem if ERRORLEVEL 1 goto err_ios | ||
|
||
..\..\..\tools\dagor_cdk\windows-arm64\vromfsPacker-dev.exe android.vromfs.blk -platform:and >log_vrom_android | ||
if ERRORLEVEL 1 goto err_and | ||
|
||
set /P a=...<nul | ||
|
||
goto EOF | ||
|
||
:err_darg_pc | ||
echo ERROR | ||
type log_vrom_darg_pc | find "[E]" | ||
if [%BUILD_URL%]==[] pause > nul | ||
exit /b 1 | ||
|
||
:err_darg_and | ||
echo ERROR | ||
type log_vrom_darg_and | find "[E]" | ||
if [%BUILD_URL%]==[] pause > nul | ||
exit /b 1 | ||
|
||
:err_darg_ios | ||
echo ERROR | ||
type log_vrom_darg_ios | find "[E]" | ||
if [%BUILD_URL%]==[] pause > nul | ||
exit /b 1 | ||
|
||
:err_android | ||
echo ERROR | ||
type log_vrom_android | find "[E]" | ||
if [%BUILD_URL%]==[] pause > nul | ||
exit /b 1 | ||
|
||
:EOF | ||
verify > nul |
3 changes: 3 additions & 0 deletions
3
samples/skiesSample/prog/shaders/compile_shaders_dx11_WOA.bat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
@echo on | ||
..\..\..\..\tools\dagor_cdk\windows-arm64\dsc2-hlsl11-dev.exe .\shaders_dx11.blk -q -shaderOn -nodisassembly -commentPP -codeDumpErr -o ..\..\..\..\_output\shaders\skiesSample-game~dx11 %1 %2 %3 | ||
@echo off |
4 changes: 4 additions & 0 deletions
4
samples/skiesSample/prog/shaders/compile_shaders_dx12_WOA.bat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
@echo on | ||
..\..\..\..\tools\dagor_cdk\windows-arm64\dsc2-dx12-dev.exe .\shaders_dx12.blk -q -shaderOn -nodisassembly -commentPP -codeDumpErr -maxVSF 4096 -o ..\..\..\..\_output\shaders\skiesSample-game~dx12 %1 %2 %3 %4 %5 | ||
if %ERRORLEVEL% NEQ 0 exit /b 1 | ||
@echo off |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
@echo on | ||
..\..\..\..\tools\dagor_cdk\windows-arm64\dsc2-hlsl11-dev.exe .\shaders_dx11.blk -q -shaderOn -nodisassembly -commentPP -codeDumpErr -o ..\..\..\..\_output\shaders\testGI-game~dx11 %1 %2 %3 %4 %5 %6 | ||
pause | ||
@echo off |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
@echo on | ||
..\..\..\..\tools\dagor_cdk\windows-arm64\dsc2-dx12-dev.exe .\shaders_dx12.blk -q -shaderOn -nodisassembly -commentPP -codeDumpErr -maxVSF 4096 -o ..\..\..\..\_output\shaders\testGI-game~dx12 -wx %1 %2 %3 %4 %5 | ||
if %ERRORLEVEL% NEQ 0 exit /b 1 | ||
@echo off |