example-04-mesh.lua 820 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. project "example-04-mesh"
  2. uuid "546bbc76-0c4a-11e2-ab09-debcdd6a022f"
  3. kind "WindowedApp"
  4. debugdir (BGFX_DIR .. "examples/runtime/")
  5. defines {
  6. "OPENCTM_STATIC",
  7. "OPENCTM_NO_CPP",
  8. }
  9. includedirs {
  10. BGFX_DIR .. "../bx/include",
  11. BGFX_DIR .. "include",
  12. BGFX_DIR .. "3rdparty/openctm/lib",
  13. }
  14. files {
  15. BGFX_DIR .. "examples/common/**.cpp",
  16. BGFX_DIR .. "examples/common/**.h",
  17. BGFX_DIR .. "examples/04-mesh/**.cpp",
  18. BGFX_DIR .. "examples/04-mesh/**.h",
  19. }
  20. links {
  21. "bgfx",
  22. "openctm",
  23. }
  24. configuration { "nacl" }
  25. targetextension ".nexe"
  26. configuration { "nacl", "Release" }
  27. postbuildcommands {
  28. "@echo Stripping symbols.",
  29. "@$(NACL)/bin/x86_64-nacl-strip -s \"$(TARGET)\""
  30. }
  31. configuration { "linux" }
  32. links {
  33. "GL",
  34. "pthread",
  35. }