This repository has been archived by the owner on Sep 1, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathpremake5.lua
83 lines (64 loc) · 1.73 KB
/
premake5.lua
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
--
-- Copyright 2016 Amer Koleci. All rights reserved.
--
newoption {
trigger = "with-ogre",
description = "Compile with Ogre",
}
MOGRE_HOME = path.getabsolute(os.getcwd())
MOGRE_BUILD_DIR = MOGRE_HOME .. "/.build/" .. _ACTION .. "/"
MOGRE_BIN_DIR = MOGRE_HOME .. "/bin"
OGRE_HOME = MOGRE_HOME .. "/ogre"
OGRE_HOME_SRC = MOGRE_HOME .. "/ogre_src"
THIRD_PARTY_DIR = MOGRE_HOME .. "/ThirdParty"
printf("Premake home " .. MOGRE_HOME)
printf("Build directory " .. MOGRE_BUILD_DIR)
-- Setup toolchain
dofile('sdk.lua')
solution "Mogre"
location (MOGRE_BUILD_DIR)
language "C++"
configurations {
"Debug",
"Release",
}
platforms {
"x32",
"x64"
}
startproject "Mogre.SampleBrowser"
if _OPTIONS["with-ogre"] then
group "Ogre"
include ("ogre_src/OgreMain")
include ("ogre_src/Components/Overlay")
include ("ogre_src/Components/RTShaderSystem")
-- RenderSystems
include ("ogre_src/RenderSystems/Direct3D9")
include ("ogre_src/RenderSystems/GL")
-- Plugins
include ("ogre_src/Plugins/ParticleFX")
include ("ogre_src/Plugins/CgProgramManager")
group ""
end
group "Mogre"
-- Mogre
include ("Mogre.Base")
-- Mogre
include ("Mogre")
group "Miyagi"
include ("Miyagi/Miyagi")
include ("Miyagi/Backends/Miyagi.Backend.Mogre")
group "Samples"
-- Mogre.Framework
include ("Samples/Mogre.Framework")
-- Now Samples
include ("Samples/Mogre.Sample.SkyBox")
include ("Samples/Mogre.Sample.SkyPlane")
include ("Samples/Mogre.Sample.CubeMapping")
include ("Samples/Mogre.Sample.CameraTrack")
include ("Samples/Mogre.Sample.StaticGeometry")
include ("Samples/Mogre.Sample.RenderToTexture")
include ("Samples/Mogre.Sample.Shadows")
-- Mogre.SampleBrowser
include ("Mogre.SampleBrowser")
group ""