example-common.lua 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. if _OPTIONS["with-glfw"] then
  30. defines {
  31. "ENTRY_CONFIG_USE_GLFW=1",
  32. }
  33. end
  34. configuration { "vs2008" }
  35. includedirs {
  36. "$(DXSDK_DIR)/include",
  37. }
  38. if (_OPTIONS["vs"] == "vs2012-xp") or (_OPTIONS["vs"] == "vs2013-xp") then
  39. configuration { "vs201*" }
  40. includedirs {
  41. "$(DXSDK_DIR)/include",
  42. }
  43. end
  44. configuration { "winphone8* or winstore8*"}
  45. linkoptions {
  46. "/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
  47. }
  48. premake.vstudio.splashpath = "../../../examples/runtime/images/SplashScreen.png"