25 lines
758 B
Batchfile
25 lines
758 B
Batchfile
REM gets the output dir
|
|
set BUILD_OUTDIR=%1
|
|
|
|
REM get the batch files dir
|
|
SET mypath=%~dp0
|
|
echo %mypath:~0,-1%
|
|
|
|
IF NOT EXIST %BUILD_OUTDIR%Compute mkdir %BUILD_OUTDIR%Compute
|
|
|
|
REM Build Vulkan Shader Binary
|
|
REM "%VULKAN_SDK%"\bin\glslangvalidator -V %mypath:~0,-1%\BC1.comp -o %BUILD_OUTDIR%\Compute\BC1.spv
|
|
REM IF %ERRORLEVEL% GTR 0 exit 123
|
|
del %BUILD_OUTDIR%\Compute\BC1_Encode_Kernel.cpp.cmp
|
|
|
|
XCopy /r /d /y "%mypath:~0,-1%\BC1_Encode_Kernel.h" %BUILD_OUTDIR%\Compute\
|
|
XCopy /r /d /y "%mypath:~0,-1%\BC1_Encode_Kernel.cpp" %BUILD_OUTDIR%\Compute\
|
|
XCopy /r /d /y "%mypath:~0,-1%\BCn_Common_Kernel.h" %BUILD_OUTDIR%\Compute\
|
|
XCopy /r /d /y "%mypath:~0,-1%\..\..\Common\Common_Def.h" %BUILD_OUTDIR%\Compute\
|
|
|
|
echo "Dependencies copied done"
|
|
|
|
|
|
|
|
|