example-common.lua 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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-scintilla"] then
  22. defines {
  23. "SCI_NAMESPACE",
  24. "SCI_LEXER",
  25. }
  26. includedirs {
  27. path.join(BGFX_DIR, "3rdparty/scintilla/include"),
  28. path.join(BGFX_DIR, "3rdparty/scintilla/lexlib"),
  29. }
  30. files {
  31. path.join(BGFX_DIR, "3rdparty/scintilla/src/**.cxx"),
  32. path.join(BGFX_DIR, "3rdparty/scintilla/src/**.h"),
  33. path.join(BGFX_DIR, "3rdparty/scintilla/lexlib/**.cxx"),
  34. path.join(BGFX_DIR, "3rdparty/scintilla/lexlib/**.h"),
  35. path.join(BGFX_DIR, "3rdparty/scintilla/lexers/**.cxx"),
  36. }
  37. end
  38. if _OPTIONS["with-sdl"] then
  39. defines {
  40. "ENTRY_CONFIG_USE_SDL=1",
  41. }
  42. includedirs {
  43. "$(SDL2_DIR)/include",
  44. }
  45. end
  46. if _OPTIONS["with-glfw"] then
  47. defines {
  48. "ENTRY_CONFIG_USE_GLFW=1",
  49. }
  50. end
  51. configuration { "vs2008" }
  52. includedirs {
  53. "$(DXSDK_DIR)/include",
  54. }
  55. if (_OPTIONS["vs"] == "vs2012-xp") or (_OPTIONS["vs"] == "vs2013-xp") then
  56. configuration { "vs201*" }
  57. includedirs {
  58. "$(DXSDK_DIR)/include",
  59. }
  60. end
  61. configuration { "winphone8* or winstore8*"}
  62. linkoptions {
  63. "/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
  64. }
  65. premake.vstudio.splashpath = "../../../examples/runtime/images/SplashScreen.png"