diff options
author | dan miller | 2007-10-19 05:24:38 +0000 |
---|---|---|
committer | dan miller | 2007-10-19 05:24:38 +0000 |
commit | f205de7847da7ae1c10212d82e7042d0100b4ce0 (patch) | |
tree | 9acc9608a6880502aaeda43af52c33e278e95b9c /libraries/ode-0.9/build/demos.lua | |
parent | trying to fix my screwup part deux (diff) | |
download | opensim-SC_OLD-f205de7847da7ae1c10212d82e7042d0100b4ce0.zip opensim-SC_OLD-f205de7847da7ae1c10212d82e7042d0100b4ce0.tar.gz opensim-SC_OLD-f205de7847da7ae1c10212d82e7042d0100b4ce0.tar.bz2 opensim-SC_OLD-f205de7847da7ae1c10212d82e7042d0100b4ce0.tar.xz |
from the start... checking in ode-0.9
Diffstat (limited to 'libraries/ode-0.9/build/demos.lua')
-rw-r--r-- | libraries/ode-0.9/build/demos.lua | 88 |
1 files changed, 88 insertions, 0 deletions
diff --git a/libraries/ode-0.9/build/demos.lua b/libraries/ode-0.9/build/demos.lua new file mode 100644 index 0000000..4752ba6 --- /dev/null +++ b/libraries/ode-0.9/build/demos.lua | |||
@@ -0,0 +1,88 @@ | |||
1 | -- Here are the lists of demos to build. Add/remove new | ||
2 | -- demos here and everything else should just work | ||
3 | |||
4 | local demos = | ||
5 | { | ||
6 | "boxstack", | ||
7 | "buggy", | ||
8 | "chain1", | ||
9 | "chain2", | ||
10 | "collision", | ||
11 | "crash", | ||
12 | "feedback", | ||
13 | "friction", | ||
14 | "heightfield", | ||
15 | "hinge", | ||
16 | "I", | ||
17 | "jointsPR", | ||
18 | "joints", | ||
19 | "motor", | ||
20 | "ode", | ||
21 | "plane2d", | ||
22 | "slider", | ||
23 | "space", | ||
24 | "space_stress", | ||
25 | "step" | ||
26 | } | ||
27 | |||
28 | if (not options["no-trimesh"]) then | ||
29 | table.insert(demos, "basket") | ||
30 | if (not options["no-cylinder"]) then | ||
31 | table.insert(demos, "cyl") | ||
32 | end | ||
33 | table.insert(demos, "moving_trimesh") | ||
34 | table.insert(demos, "trimesh") | ||
35 | end | ||
36 | |||
37 | if (not options["no-cylinder"]) then | ||
38 | table.insert(demos, "cylvssphere") | ||
39 | end | ||
40 | |||
41 | |||
42 | -- Separate distribution files into toolset subdirectories | ||
43 | |||
44 | if (options["usetargetpath"]) then | ||
45 | packagepath = options["target"] | ||
46 | else | ||
47 | packagepath = "custom" | ||
48 | end | ||
49 | |||
50 | |||
51 | -- Factory function for demo packages | ||
52 | |||
53 | function makedemo(index, name) | ||
54 | package = newpackage() | ||
55 | package.name = "demo_" .. name | ||
56 | package.kind = "exe" | ||
57 | package.language = "c++" | ||
58 | package.path = packagepath | ||
59 | package.objdir = "obj/"..name | ||
60 | |||
61 | package.includepaths = { "../../include" } | ||
62 | package.defines = { "_CRT_SECURE_NO_DEPRECATE" } | ||
63 | |||
64 | if (options.target == "vs6" or options.target == "vs2002" or options.target == "vs2003") then | ||
65 | package.config.DebugLib.buildflags = { "static-runtime" } | ||
66 | package.config.ReleaseLib.buildflags = { "static-runtime" } | ||
67 | end | ||
68 | |||
69 | package.links = { "ode", "drawstuff" } | ||
70 | if (windows) then | ||
71 | table.insert(package.links, { "user32", "winmm", "gdi32", "opengl32", "glu32" }) | ||
72 | else | ||
73 | table.insert(package.links, { "GL", "GLU" }) | ||
74 | end | ||
75 | |||
76 | if (name == "chain1") then | ||
77 | package.files = { "../../ode/demo/demo_" .. name .. ".c" } | ||
78 | else | ||
79 | package.files = { "../../ode/demo/demo_" .. name .. ".cpp" } | ||
80 | end | ||
81 | |||
82 | if (windows) then | ||
83 | table.insert(package.defines, "WIN32") | ||
84 | table.insert(package.files, "../../drawstuff/src/resources.rc") | ||
85 | end | ||
86 | end | ||
87 | |||
88 | table.foreach(demos, makedemo) | ||