example-common.lua 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. --
  2. -- Copyright 2010-2015 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. path.join(BX_DIR, "include"),
  10. path.join(BGFX_DIR, "include"),
  11. path.join(BGFX_DIR, "3rdparty"),
  12. }
  13. files {
  14. path.join(BGFX_DIR, "3rdparty/ib-compress/**.cpp"),
  15. path.join(BGFX_DIR, "3rdparty/ib-compress/**.h"),
  16. path.join(BGFX_DIR, "3rdparty/ocornut-imgui/**.cpp"),
  17. path.join(BGFX_DIR, "3rdparty/ocornut-imgui/**.h"),
  18. path.join(BGFX_DIR, "examples/common/**.cpp"),
  19. path.join(BGFX_DIR, "examples/common/**.h"),
  20. }
  21. if _OPTIONS["with-sdl"] then
  22. defines {
  23. "ENTRY_CONFIG_USE_SDL=1",
  24. }
  25. includedirs {
  26. "$(SDL2_DIR)/include",
  27. }
  28. end
  29. configuration { "mingw* or vs2008" }
  30. includedirs {
  31. "$(DXSDK_DIR)/include",
  32. }
  33. configuration { "winphone8*"}
  34. linkoptions {
  35. "/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
  36. }