example-00-helloworld.lua 738 B

12345678910111213141516171819202122232425262728293031323334353637
  1. project "example-00-helloworld"
  2. uuid "ff2c8450-ebf4-11e0-9572-0800200c9a66"
  3. kind "WindowedApp"
  4. includedirs {
  5. BGFX_DIR .. "../bx/include",
  6. BGFX_DIR .. "include",
  7. }
  8. files {
  9. BGFX_DIR .. "examples/common/**.cpp",
  10. BGFX_DIR .. "examples/common/**.h",
  11. BGFX_DIR .. "examples/00-helloworld/**.cpp",
  12. BGFX_DIR .. "examples/00-helloworld/**.h",
  13. }
  14. links {
  15. "bgfx",
  16. }
  17. configuration { "emscripten" }
  18. targetextension ".bc"
  19. configuration { "nacl" }
  20. targetextension ".nexe"
  21. configuration { "nacl", "Release" }
  22. postbuildcommands {
  23. "@echo Stripping symbols.",
  24. "@$(NACL)/bin/x86_64-nacl-strip -s \"$(TARGET)\""
  25. }
  26. configuration { "linux" }
  27. links {
  28. "GL",
  29. "pthread",
  30. }