example-common.lua 617 B

123456789101112131415161718192021222324252627282930313233
  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 .. "examples/common/**.cpp",
  15. BGFX_DIR .. "examples/common/**.h",
  16. }
  17. if _OPTIONS["with-sdl"] then
  18. defines {
  19. "ENTRY_CONFIG_USE_SDL=1",
  20. }
  21. includedirs {
  22. "$(SDL2_DIR)/include",
  23. }
  24. end
  25. configuration { "xcode4" }
  26. includedirs {
  27. BX_DIR .. "include/compat/osx",
  28. }