aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/ode-0.9/contrib/Ode.NET/Ode/premake.lua
blob: b53d54cfa8f3e443a9b76f468e04401177f599fc (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
30
31
package.name = "Ode.NET"
package.kind = "dll"
package.language = "c#"

-- Build options

  package.defines = { }

  if (options["with-doubles"]) then
    table.insert(package.defines, "dDOUBLE")
  else
    table.insert(package.defines, "dSINGLE")
  end

  if (options["no-unsafe"]) then
    table.insert(package.defines, "dNO_UNSAFE_CODE")
  else
    package.buildflags = { "unsafe" }
  end
  

-- Files & Libraries

  package.files = {
    "AssemblyInfo.cs",
    "Ode.cs"
  }

  package.links = {
    "System"
  }