premake4.lua 949 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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 "example-00-helloworld.lua"
  26. dofile "example-01-cubes.lua"
  27. dofile "example-02-metaballs.lua"
  28. dofile "example-03-raymarch.lua"
  29. dofile "example-04-mesh.lua"
  30. dofile "example-05-instancing.lua"
  31. dofile "example-06-bump.lua"
  32. dofile "example-07-callback.lua"
  33. dofile "example-08-update.lua"
  34. dofile "makedisttex.lua"
  35. dofile "shaderc.lua"
  36. dofile "texturec.lua"
  37. dofile "geometryc.lua"