premake4.lua 883 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. --
  2. -- Copyright 2010-2012 Branimir Karadzic. All rights reserved.
  3. -- License: http://www.opensource.org/licenses/BSD-2-Clause
  4. --
  5. solution "bgfx"
  6. configurations {
  7. "Debug",
  8. "Release",
  9. }
  10. platforms {
  11. "x32",
  12. "x64",
  13. "Xbox360",
  14. }
  15. language "C++"
  16. BGFX_DIR = (path.getabsolute("..") .. "/")
  17. local BGFX_BUILD_DIR = (BGFX_DIR .. ".build/")
  18. local BGFX_THIRD_PARTY_DIR = (BGFX_DIR .. "3rdparty/")
  19. BX_DIR = (BGFX_DIR .. "../bx/")
  20. dofile (BX_DIR .. "premake/toolchain.lua")
  21. toolchain(BGFX_BUILD_DIR, BGFX_THIRD_PARTY_DIR)
  22. function copyLib()
  23. end
  24. dofile "bgfx.lua"
  25. dofile "makedisttex.lua"
  26. dofile "shaderc.lua"
  27. dofile "texturec.lua"
  28. dofile "openctm.lua"
  29. dofile "example-00-helloworld.lua"
  30. dofile "example-01-cubes.lua"
  31. dofile "example-02-metaballs.lua"
  32. dofile "example-03-raymarch.lua"
  33. dofile "example-04-mesh.lua"
  34. dofile "example-05-instancing.lua"
  35. dofile "example-06-bump.lua"