-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathblizzard.lua
66 lines (55 loc) · 1.98 KB
/
blizzard.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
---
-- Battle.net package management extension
-- Copyright (c) 2014-2016 Blizzard Entertainment
---
local p = premake
if not p.modules.blizzard then
p.modules.blizzard = {}
local blizzard = p.modules.blizzard
verbosef('Loading blizzard module...')
include('export.lua')
include('installer.lua')
include('prebake.lua')
include('telemetry.lua')
include('unity.lua')
include('visualsvn.lua')
include('vpaths.lua')
-- Add additional systems and it's tags.
p.api.addAllowed('system', {'centos6', 'centos7', 'ubuntu'})
-- override linux,macosx, windows and add tags for centos6,7 and ubuntu.
os.systemTags["linux"] = { "linux", "posix", "desktop" }
os.systemTags["macosx"] = { "macosx", "darwin", "posix", "desktop" }
os.systemTags["windows"] = { "windows", "win32" , "desktop" }
os.systemTags["centos6"] = { "centos6", "linux", "posix", "desktop" }
os.systemTags["centos7"] = { "centos7", "linux", "posix", "desktop" }
os.systemTags["ubuntu"] = { "ubuntu", "linux", "posix", "desktop" }
-- SC2/Heroes and some package need the Unicode and MacOSXBundle flag for a while longer.
p.api.addAllowed('flags', {'Unicode', 'MacOSXBundle'})
p.api.deprecateValue("flags", "Unicode", 'Use `characterset "Unicode"` instead',
function(value)
characterset "Unicode"
end,
function(value)
characterset "Default"
end
)
p.api.deprecateValue("flags", "MacOSXBundle", 'Use `sharedlibtype "OSXBundle"` instead',
function(value)
sharedlibtype "OSXBundle"
end,
function(value)
sharedlibtype "Default"
end
)
-- SC2/Heroes and some packages need the "buildoutputsasinputs" api still.
p.api.register {
name = "buildoutputsasinputs",
scope = "config",
kind = "boolean"
}
p.api.deprecateField("buildoutputsasinputs", nil, function(value)
p.warn("buildoutputsasinputs has been deprecated, please use 'compilebuildoutputs' instead.")
compilebuildoutputs(value)
end)
end
return p.modules.blizzard