example-01-cubes.lua 770 B

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