unittest++.lua 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. --
  2. -- Copyright 2010-2013 Branimir Karadzic. All rights reserved.
  3. -- License: http://www.opensource.org/licenses/BSD-2-Clause
  4. --
  5. function flagsremove(name)
  6. -- bx's toolchain.lua disables exceptions everywhere
  7. -- this function can remove some of those flags when
  8. -- needed.
  9. local container, err = premake.getobject("solution")
  10. for _, block in pairs(container["blocks"]) do
  11. local tbl = block["flags"]
  12. for index, value in pairs(tbl) do
  13. if value == name then
  14. table.remove(tbl, index)
  15. end
  16. end
  17. end
  18. end
  19. project "UnitTest++"
  20. uuid "ab932f5c-2409-11e3-b000-887628d43830"
  21. kind "StaticLib"
  22. flagsremove("NoExceptions")
  23. files {
  24. "../3rdparty/UnitTest++/src/*.cpp",
  25. "../3rdparty/UnitTest++/src/*.h",
  26. }
  27. configuration { "linux or osx or android-* or *nacl*" }
  28. files {
  29. "../3rdparty/UnitTest++/src/Posix/**.cpp",
  30. "../3rdparty/UnitTest++/src/Posix/**.h",
  31. }
  32. configuration { "mingw* or vs*" }
  33. files {
  34. "../3rdparty/UnitTest++/src/Win32/**.cpp",
  35. "../3rdparty/UnitTest++/src/Win32/**.h",
  36. }
  37. configuration {}