Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/ogreode/premake/OgreOde_Demos.lua @ 22

Last change on this file since 22 was 21, checked in by nicolasc, 17 years ago

added ogreode and Colladaplugin

File size: 1.6 KB
RevLine 
[21]1-- Here are the lists of tests to build. Add/remove new
2-- tests here and everything else should just work
3
4  local Demos =
5  {
6    "GranTurismOgre",
7    "LandScape",
8    "SimpleScenes"
9  }
10
11-- Factory function for test packages
12  function makeDemos(index, name)
13 
14    package = newpackage()   
15    --------------------------
16    -- Package Build Settings
17    package.name = "OgreOde_Demo_" .. name
18    package.language = "c++"
19    package.kind = "exe"
20           
21    package.config["Debug"].target = "Demos/" .. name .. "/bin/debug/"
22    package.config["Release"].target = "Demos/" .. name .. "/bin/release/"
23           
24    setdefines()
25    setbuildoptions()
26 
27    --------------------------
28    -- Libraries
29   --OgreOde_Core && OgreOde_Prefab
30    package.libpaths = 
31    { 
32        "../../../../ode/lib",
33        "../../../../lib",
34        "../../../../prefab/lib"
35    }
36    setODElibpath()
37    setOGRElibpath()
38   
39    package.links = {  }
40    package.config["Debug"].links = 
41    { 
42          "OgreOde_Core_d", 
43          "OgreOde_Prefab_d", 
44          "OgreMain_d"       
45    }           
46    package.config["Release"].links = 
47    { 
48          "OgreOde_Core", 
49          "OgreOde_Prefab", 
50          "OgreMain" 
51    }
52         
53    --------------------------
54    -- Includes
55    package.includepaths = 
56    { 
57        "../../include" ,
58        "../../../../include",
59        "../../../../prefab/include",
60        "../../../../ode/include" 
61    }
62   
63    --------------------------
64    -- Files
65    package.path = "../Demos/" .. name  .. getsubScriptFolder()
66    setfiles("../../")
67  end
68
69table.foreach(Demos, makeDemos)
70
Note: See TracBrowser for help on using the repository browser.