example-04-mesh.lua 994 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. project "example-04-mesh"
  2. uuid "546bbc76-0c4a-11e2-ab09-debcdd6a022f"
  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/04-mesh/**.cpp",
  13. BGFX_DIR .. "examples/04-mesh/**.h",
  14. }
  15. links {
  16. "bgfx",
  17. }
  18. configuration { "emscripten" }
  19. targetextension ".bc"
  20. configuration { "nacl or nacl-arm or pnacl" }
  21. targetextension ".nexe"
  22. links {
  23. "ppapi",
  24. "ppapi_gles2",
  25. "pthread",
  26. }
  27. configuration { "nacl", "Release" }
  28. postbuildcommands {
  29. "@echo Stripping symbols.",
  30. "@$(NACL)/bin/x86_64-nacl-strip -s \"$(TARGET)\""
  31. }
  32. configuration { "linux" }
  33. links {
  34. "GL",
  35. "pthread",
  36. }
  37. configuration { "macosx" }
  38. files {
  39. BGFX_DIR .. "examples/common/**.mm",
  40. }
  41. links {
  42. "Cocoa.framework",
  43. "OpenGL.framework",
  44. }