-
Notifications
You must be signed in to change notification settings - Fork 0
/
scarlett.lua
44 lines (33 loc) · 1 KB
/
scarlett.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
--
-- Xbox Series X/S support for Visual Studio backend.
-- Copyright Blizzard Entertainment, Inc
--
--
-- Non-overrides
--
local p = premake
local vstudio = p.vstudio
local vc2010 = p.vstudio.vc2010
local config = p.config
p.SCARLETT = "scarlett"
if vstudio.vs2010_architectures ~= nil then
vstudio.vs2010_architectures.scarlett = "Gaming.Xbox.Scarlett.x64"
p.api.addAllowed("system", p.SCARLETT)
os.systemTags[p.SCARLETT] = { "scarlett", "xbox", "gdk", "console" }
local osoption = p.option.get("os")
if osoption ~= nil then
table.insert(osoption.allowed, { p.SCARLETT, "Xbox Series X/S" })
end
end
filter { "system:scarlett" }
architecture "x86_64"
filter { "system:scarlett", "kind:ConsoleApp or WindowedApp" }
targetextension ".exe"
filter { "system:scarlett", "kind:StaticLib" }
targetprefix ""
targetextension ".lib"
filter { "system:scarlett", "kind:SharedLib" }
targetprefix ""
targetextension ".dll"
implibextension ".lib"
filter {}