example-00-helloworld.lua 864 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. project "example-00-helloworld"
  2. uuid "ff2c8450-ebf4-11e0-9572-0800200c9a66"
  3. kind "WindowedApp"
  4. includedirs {
  5. BX_DIR .. "include",
  6. BGFX_DIR .. "include",
  7. }
  8. files {
  9. BGFX_DIR .. "examples/common/**.cpp",
  10. BGFX_DIR .. "examples/common/**.h",
  11. BGFX_DIR .. "examples/common/**.mm",
  12. BGFX_DIR .. "examples/00-helloworld/**.cpp",
  13. BGFX_DIR .. "examples/00-helloworld/**.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. }
  32. configuration { "macosx" }
  33. links {
  34. "Cocoa.framework",
  35. "OpenGL.framework",
  36. }