shaderc.lua 1.5 KB

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