example-01-cubes.lua 896 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. project "example-01-cubes"
  2. uuid "fec3bc94-e1e5-11e1-9c59-c7eeec2c1c51"
  3. kind "WindowedApp"
  4. debugdir (BGFX_DIR .. "examples/runtime/")
  5. includedirs {
  6. BX_DIR .. "include",
  7. BGFX_DIR .. "include",
  8. }
  9. files {
  10. BGFX_DIR .. "examples/common/**.cpp",
  11. BGFX_DIR .. "examples/common/**.h",
  12. BGFX_DIR .. "examples/common/**.mm",
  13. BGFX_DIR .. "examples/01-cubes/**.cpp",
  14. BGFX_DIR .. "examples/01-cubes/**.h",
  15. }
  16. links {
  17. "bgfx",
  18. }
  19. configuration { "emscripten" }
  20. targetextension ".bc"
  21. configuration { "nacl" }
  22. targetextension ".nexe"
  23. configuration { "nacl", "Release" }
  24. postbuildcommands {
  25. "@echo Stripping symbols.",
  26. "@$(NACL)/bin/x86_64-nacl-strip -s \"$(TARGET)\""
  27. }
  28. configuration { "linux" }
  29. links {
  30. "GL",
  31. "pthread",
  32. }
  33. configuration { "macosx" }
  34. links {
  35. "Cocoa.framework",
  36. "OpenGL.framework",
  37. }