premake.lua 723 B

1234567891011121314151617181920212223242526272829
  1. project.name = "Ode.NET"
  2. -- Target checking
  3. if (target and target ~= "vs2005" and target ~= "gnu") then
  4. error("Ode.NET requires a .NET 2.0 compiler")
  5. end
  6. -- Project options
  7. addoption("with-doubles", "Use double instead of float as base numeric type")
  8. addoption("with-tests", "Builds the test applications and DrawStuff library")
  9. addoption("no-unsafe", "Exclude functions using unsafe code (dBodyGetPosition, etc.)")
  10. -- Build settings
  11. project.config["Debug"].bindir = "bin/Debug"
  12. project.config["Release"].bindir = "bin/Release"
  13. -- Packages
  14. if (options["with-tests"]) then
  15. dopackage("Tests")
  16. dopackage("Drawstuff")
  17. end
  18. dopackage("Ode")