shaderc.lua 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. project "shaderc"
  2. uuid "f3cd2e90-52a4-11e1-b86c-0800200c9a66"
  3. kind "ConsoleApp"
  4. local GLSL_OPTIMIZER = (BGFX_DIR .. "3rdparty/glsl-optimizer/")
  5. configuration { "vs*" }
  6. includedirs {
  7. GLSL_OPTIMIZER .. "src/glsl/msvc",
  8. }
  9. configuration {}
  10. includedirs {
  11. BGFX_DIR .. "../bx/include",
  12. BGFX_DIR .. "3rdparty/fcpp",
  13. GLSL_OPTIMIZER .. "include",
  14. GLSL_OPTIMIZER .. "include/c99",
  15. GLSL_OPTIMIZER .. "src/mesa",
  16. GLSL_OPTIMIZER .. "src/mapi",
  17. GLSL_OPTIMIZER .. "src/glsl",
  18. }
  19. files {
  20. BGFX_DIR .. "3rdparty/tools/shaderc.cpp",
  21. BGFX_DIR .. "3rdparty/fcpp/**.h",
  22. BGFX_DIR .. "3rdparty/fcpp/cpp1.c",
  23. BGFX_DIR .. "3rdparty/fcpp/cpp2.c",
  24. BGFX_DIR .. "3rdparty/fcpp/cpp3.c",
  25. BGFX_DIR .. "3rdparty/fcpp/cpp4.c",
  26. BGFX_DIR .. "3rdparty/fcpp/cpp5.c",
  27. BGFX_DIR .. "3rdparty/fcpp/cpp6.c",
  28. BGFX_DIR .. "3rdparty/fcpp/cpp6.c",
  29. GLSL_OPTIMIZER .. "src/mesa/**.c",
  30. GLSL_OPTIMIZER .. "src/glsl/**.cpp",
  31. GLSL_OPTIMIZER .. "src/mesa/**.h",
  32. GLSL_OPTIMIZER .. "src/glsl/**.c",
  33. GLSL_OPTIMIZER .. "src/glsl/**.cpp",
  34. GLSL_OPTIMIZER .. "src/glsl/**.h",
  35. }
  36. excludes {
  37. GLSL_OPTIMIZER .. "src/glsl/glcpp/glcpp.c",
  38. GLSL_OPTIMIZER .. "src/glsl/glcpp/tests/**",
  39. GLSL_OPTIMIZER .. "src/glsl/main.cpp",
  40. GLSL_OPTIMIZER .. "src/glsl/builtin_stubs.cpp",
  41. }
  42. links {
  43. "d3dx9",
  44. }