[core] Adding ARM support for Visual Studio.

This commit is contained in:
Tom van Dijck 2017-04-26 15:59:20 -07:00
parent 6cc2514737
commit 1e648f5515
4 changed files with 11 additions and 0 deletions

View File

@ -26,6 +26,7 @@
"universal",
p.X86,
p.X86_64,
p.ARM,
},
aliases = {
i386 = p.X86,

View File

@ -24,6 +24,7 @@
x86 = "x86",
x86_64 = "x64",
xbox360 = "Xbox 360",
ARM = "ARM",
}
vstudio.vs2010_architectures =

View File

@ -159,6 +159,7 @@
m.platformToolset,
m.wholeProgramOptimization,
m.nmakeOutDirs,
m.windowsSDKDesktopARMSupport,
}
end
end
@ -1792,6 +1793,13 @@
end
function m.windowsSDKDesktopARMSupport(cfg)
if cfg.architecture == p.ARM then
p.w('<WindowsSDKDesktopARMSupport>true</WindowsSDKDesktopARMSupport>')
end
end
function m.nmakeOutput(cfg)
m.element("NMakeOutput", nil, "$(OutDir)%s", cfg.buildtarget.name)
end

View File

@ -53,6 +53,7 @@
premake.WINDOWS = "windows"
premake.X86 = "x86"
premake.X86_64 = "x86_64"
premake.ARM = "ARM"
premake.XBOX360 = "xbox360"