example-common.lua 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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 .. "3rdparty/ib-compress/**.cpp",
  15. BGFX_DIR .. "3rdparty/ib-compress/**.h",
  16. BGFX_DIR .. "examples/common/**.cpp",
  17. BGFX_DIR .. "examples/common/**.h",
  18. }
  19. if _OPTIONS["with-sdl"] then
  20. defines {
  21. "ENTRY_CONFIG_USE_SDL=1",
  22. }
  23. includedirs {
  24. "$(SDL2_DIR)/include",
  25. }
  26. end
  27. configuration { "mingw* or vs2008" }
  28. includedirs {
  29. "$(DXSDK_DIR)/include",
  30. }
  31. configuration { "xcode4" }
  32. includedirs {
  33. BX_DIR .. "include/compat/osx",
  34. }
  35. configuration { "winphone8*"}
  36. linkoptions {
  37. "/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
  38. }