aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/ode-0.9/contrib/Ode.NET/premake.lua
blob: c25a017ab7bf9fd04775ecafdda66c222d3a6fbf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
project.name = "Ode.NET"

-- Target checking

  if (target and target ~= "vs2005" and target ~= "gnu") then
    error("Ode.NET requires a .NET 2.0 compiler")
  end
      

-- Project options

  addoption("with-doubles",  "Use double instead of float as base numeric type")
  addoption("with-tests",    "Builds the test applications and DrawStuff library")
  addoption("no-unsafe",     "Exclude functions using unsafe code (dBodyGetPosition, etc.)")


-- Build settings

  project.config["Debug"].bindir = "bin/Debug"
  project.config["Release"].bindir = "bin/Release"
  

-- Packages

  if (options["with-tests"]) then
    dopackage("Tests")
    dopackage("Drawstuff")
  end
  dopackage("Ode")