forked from HeliumProject/Engine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
premake4.lua
57 lines (45 loc) · 1.05 KB
/
premake4.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
require "Helium"
require "Prebuild"
require "FBX"
require "TBB"
require "WxWidgets"
-- Do both instruction sets
newoption
{
trigger = "build32and64",
description = "Build both 32-bit and 64-bit binaries"
}
-- Custom action to just run the pre-build scripts.
newaction
{
trigger = "prebuild",
description = "Run the pre-build scripts without updating project or make files",
execute = Helium.Prebuild
}
-- Do nothing if there is no action (--help, etc...)
if _ACTION then
-- Check prereqs
Helium.CheckEnvironment()
if _ACTION == "vs2005" then
print("Visual Studio 2005 is no longer supported (no regex library)")
os.exit(1)
end
if _ACTION ~= "prebuild" then
if _ACTION ~= "clean" then
local bin = "Bin"
Helium.BuildWxWidgets()
Helium.PublishWxWidgets( bin )
Helium.BuildTBB()
Helium.PublishTBB( bin )
Helium.PublishFBX( bin )
Helium.PublishIcons( bin )
Helium.Prebuild()
else
Helium.CleanWxWidgets()
Helium.CleanTBB()
end
dofile "Dependencies.lua"
dofile "Runtime.lua"
dofile "Tools.lua"
end
end