shaderc.lua 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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 {}
  11. includedirs {
  12. BGFX_DIR .. "../bx/include",
  13. FCPP_DIR,
  14. GLSL_OPTIMIZER .. "include",
  15. GLSL_OPTIMIZER .. "include/c99",
  16. GLSL_OPTIMIZER .. "src/mesa",
  17. GLSL_OPTIMIZER .. "src/mapi",
  18. GLSL_OPTIMIZER .. "src/glsl",
  19. }
  20. files {
  21. BGFX_DIR .. "tools/shaderc.cpp",
  22. FCPP_DIR .. "**.h",
  23. FCPP_DIR .. "cpp1.c",
  24. FCPP_DIR .. "cpp2.c",
  25. FCPP_DIR .. "cpp3.c",
  26. FCPP_DIR .. "cpp4.c",
  27. FCPP_DIR .. "cpp5.c",
  28. FCPP_DIR .. "cpp6.c",
  29. FCPP_DIR .. "cpp6.c",
  30. GLSL_OPTIMIZER .. "src/mesa/**.c",
  31. GLSL_OPTIMIZER .. "src/glsl/**.cpp",
  32. GLSL_OPTIMIZER .. "src/mesa/**.h",
  33. GLSL_OPTIMIZER .. "src/glsl/**.c",
  34. GLSL_OPTIMIZER .. "src/glsl/**.cpp",
  35. GLSL_OPTIMIZER .. "src/glsl/**.h",
  36. }
  37. excludes {
  38. GLSL_OPTIMIZER .. "src/glsl/glcpp/glcpp.c",
  39. GLSL_OPTIMIZER .. "src/glsl/glcpp/tests/**",
  40. GLSL_OPTIMIZER .. "src/glsl/main.cpp",
  41. GLSL_OPTIMIZER .. "src/glsl/builtin_stubs.cpp",
  42. }
  43. links {
  44. "d3dx9",
  45. "d3dcompiler",
  46. "dxguid",
  47. }