Skip to content

Commit

Permalink
Build a distribution folder locally, pairs well with StereoKit's add_…
Browse files Browse the repository at this point in the history
…directory line on Windows x64

Signed-off-by: Nick Klingensmith <[email protected]>
  • Loading branch information
Nick Klingensmith committed Jul 12, 2024
1 parent bef7600 commit 8136506
Showing 1 changed file with 9 additions and 19 deletions.
28 changes: 9 additions & 19 deletions build.bat
Original file line number Diff line number Diff line change
@@ -1,21 +1,11 @@
mkdir build_linux
cd build_linux
wsl cmake .. -DCMAKE_BUILD_TYPE=MinSizeRel
wsl cmake --build . -j24 --config MinSizeRel
cd ..
cmake --preset skshaderc_Win32_x64_Release
cmake --build --preset skshaderc_Win32_x64_Release

mkdir build_win
cd build_win
cmake .. -DCMAKE_BUILD_TYPE=MinSizeRel
cmake --build . -j24 --config MinSizeRel
cd ..
mkdir bin\distribute
mkdir bin\distribute\tools
mkdir bin\distribute\tools\win32_x64
mkdir bin\distribute\src

mkdir distribute
mkdir distribute\example
copy sk_gpu.h distribute\sk_gpu.h
copy build_win\skshaderc\MinSizeRel\skshaderc.exe distribute\skshaderc.exe
copy build_linux\skshaderc\skshaderc distribute\skshaderc

copy build_win\MinSizeRel\skg_flatscreen.exe distribute\example\skg_flatscreen.exe
copy build_linux\skg_flatscreen distribute\example\skg_flatscreen
copy examples\platform.ply distribute\example\platform.ply
copy bin\intermediate\Win32_x64\Release\skshaderc_exe.exe bin\distribute\tools\win32_x64\skshaderc.exe
copy sk_gpu.h bin\distribute\src\sk_gpu.h
copy skshaderc\CMakeLists.distribute.txt bin\distribute\CMakeLists.txt

0 comments on commit 8136506

Please sign in to comment.