example-common.lua 991 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. 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 { "winphone8*"}
  32. linkoptions {
  33. "/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
  34. }