yum-slop/modular_slang

write individual HLSL modules/libraries in slang

git clone https://git.yummers.dev/yum-slop/modular_slang

yumupdate pathbff603d

v1.0.0
586 B23 linesraw
1if (Test-Path -Path ./build) {
2  rm -Recurse ./build
3}
4mkdir ./build
5
6cmake -S . -B build -G "Visual Studio 17 2022" -A x64
7if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
8cmake --build build --config Release -j 32
9if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
10
11# Package up into ./dist dir
12if (Test-Path -Path ./dist) {
13  rm -Recurse ./dist
14}
15mkdir ./dist
16cp -Recurse build/bin/Release/* dist
17cp -Recurse ./Scripts ./dist/
18
19if (Test-Path -Path ../Assets/yum_food/Modular_Slang) {
20  rm -Recurse ../Assets/yum_food/Modular_Slang
21}
22cp -Recurse ./dist ../Assets/yum_food/Modular_Slang/
23