-
Notifications
You must be signed in to change notification settings - Fork 0
/
consoles.lua
52 lines (42 loc) · 1.01 KB
/
consoles.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
--
-- Console support for premake.
-- Copyright Blizzard Entertainment, Inc
--
if not premake.modules.consoles then
require('vstudio')
premake.modules.consoles = {}
local p = premake
local vc2010 = p.vstudio.vc2010
vc2010.elements.mgcCompile = function(cfg)
return {
}
end
function vc2010.mgcCompile(cfg)
if p.config.hasFile(cfg, path.ismgcfile) then
local contents = p.capture(function ()
p.push('<MGCCompile>')
p.outln(contents)
p.pop('</MGCCompile>')
end)
end
end
vc2010.categories.MGCCompile = {
name = "MGCCompile",
extensions = { ".mgc", ".Config" },
priority = 14,
emitFiles = function(prj, group)
local fileCfgFunc = {
vc2010.excludedFromBuild
}
vc2010.emitFiles(prj, group, "MGCCompile", nil, fileCfgFunc)
end,
emitFilter = function(prj, group)
vc2010.filterGroup(prj, group, "MGCCompile")
end
}
-- xbox
include 'desktop.lua'
include 'scarlett.lua'
-- playstation
include 'psp.lua'
end