build.sh 648 B

123456789101112131415
  1. #!/bin/sh
  2. gcc -DVK_USE_PLATFORM_XCB_KHR -DUSE_stb_image -Os -s -fdata-sections -ffunction-sections -Wl,--gc-sections ../../vk_utils/vk_utils.c ../../vk_utils/vk_error_print.c ../../vk_utils/vk_render_helper.c ../../launcher/main.c -o VK_shadertoy -lm -lxcb -lxcb-keysyms -lvulkan
  3. #clang -DVK_USE_PLATFORM_XCB_KHR -DUSE_stb_image -Os -s ../../vk_utils/vk_utils.c ../../vk_utils/vk_error_print.c ../../vk_utils/vk_render_helper.c ../../launcher/main.c -o VK_shadertoy -lm -lxcb -lxcb-keysyms -lvulkan
  4. strip VK_shadertoy
  5. #upx VK_shadertoy
  6. rm -rf shaders
  7. rm -rf textures
  8. cp -r ../../launcher/shaders shaders
  9. cp -r ../../launcher/textures textures