shaderc.lua 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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", "vs*" }
  11. includedirs {
  12. GLSL_OPTIMIZER .. "include/c99",
  13. }
  14. configuration { "windows" }
  15. includedirs {
  16. "$(DXSDK_DIR)/include",
  17. }
  18. links {
  19. "d3dx9",
  20. "d3dcompiler",
  21. "dxguid",
  22. }
  23. configuration {}
  24. defines { -- fcpp
  25. "NINCLUDE=64",
  26. "NWORK=65536",
  27. "NBUFF=65536",
  28. }
  29. includedirs {
  30. BGFX_DIR .. "../bx/include",
  31. FCPP_DIR,
  32. GLSL_OPTIMIZER .. "include",
  33. GLSL_OPTIMIZER .. "src/mesa",
  34. GLSL_OPTIMIZER .. "src/mapi",
  35. GLSL_OPTIMIZER .. "src/glsl",
  36. }
  37. files {
  38. BGFX_DIR .. "tools/shaderc/**.cpp",
  39. BGFX_DIR .. "tools/shaderc/**.h",
  40. FCPP_DIR .. "**.h",
  41. FCPP_DIR .. "cpp1.c",
  42. FCPP_DIR .. "cpp2.c",
  43. FCPP_DIR .. "cpp3.c",
  44. FCPP_DIR .. "cpp4.c",
  45. FCPP_DIR .. "cpp5.c",
  46. FCPP_DIR .. "cpp6.c",
  47. FCPP_DIR .. "cpp6.c",
  48. GLSL_OPTIMIZER .. "src/mesa/**.c",
  49. GLSL_OPTIMIZER .. "src/glsl/**.cpp",
  50. GLSL_OPTIMIZER .. "src/mesa/**.h",
  51. GLSL_OPTIMIZER .. "src/glsl/**.c",
  52. GLSL_OPTIMIZER .. "src/glsl/**.cpp",
  53. GLSL_OPTIMIZER .. "src/glsl/**.h",
  54. }
  55. excludes {
  56. GLSL_OPTIMIZER .. "src/glsl/glcpp/glcpp.c",
  57. GLSL_OPTIMIZER .. "src/glsl/glcpp/tests/**",
  58. GLSL_OPTIMIZER .. "src/glsl/glcpp/**.l",
  59. GLSL_OPTIMIZER .. "src/glsl/glcpp/**.y",
  60. GLSL_OPTIMIZER .. "src/glsl/ir_set_program_inouts.cpp",
  61. GLSL_OPTIMIZER .. "src/glsl/main.cpp",
  62. GLSL_OPTIMIZER .. "src/glsl/builtin_stubs.cpp",
  63. }