-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build a distribution folder locally, pairs well with StereoKit's add_…
…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.
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 |
---|---|---|
@@ -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 |