example-common.lua 900 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. --
  2. -- Copyright 2010-2014 Branimir Karadzic. All rights reserved.
  3. -- License: http://www.opensource.org/licenses/BSD-2-Clause
  4. --
  5. project ("example-common")
  6. uuid ("21cc0e26-bf62-11e2-a01e-0291bd4c8125")
  7. kind "StaticLib"
  8. includedirs {
  9. BX_DIR .. "include",
  10. BGFX_DIR .. "include",
  11. BGFX_DIR .. "3rdparty",
  12. }
  13. files {
  14. BGFX_DIR .. "examples/common/**.cpp",
  15. BGFX_DIR .. "examples/common/**.h",
  16. }
  17. if _OPTIONS["with-sdl"] then
  18. defines {
  19. "ENTRY_CONFIG_USE_SDL=1",
  20. }
  21. includedirs {
  22. "$(SDL2_DIR)/include",
  23. }
  24. end
  25. configuration { "xcode4" }
  26. includedirs {
  27. BX_DIR .. "include/compat/osx",
  28. }
  29. configuration { "winphone8*"}
  30. linkoptions {
  31. "/ignore:4264" -- LNK4264: archiving object file compiled with /ZW into a static library; note that when authoring Windows Runtime types it is not recommended to link with a static library that contains Windows Runtime metadata
  32. }