example-00-helloworld.lua 965 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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/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 or nacl-arm or pnacl" }
  20. targetextension ".nexe"
  21. links {
  22. "ppapi",
  23. "ppapi_gles2",
  24. "pthread",
  25. }
  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. }
  36. configuration { "macosx" }
  37. files {
  38. BGFX_DIR .. "examples/common/**.mm",
  39. }
  40. links {
  41. "Cocoa.framework",
  42. "OpenGL.framework",
  43. }