Allow system("android") per configuration
This commit is contained in:
parent
2dfa956d2b
commit
f46c2006a4
@ -46,6 +46,18 @@
|
||||
return elements
|
||||
end)
|
||||
|
||||
premake.override(vc2010.elements, "globalsCondition", function (oldfn, prj, cfg)
|
||||
local elements = oldfn(prj, cfg)
|
||||
|
||||
if cfg.system == premake.ANDROID and cfg.system ~= prj.system and cfg.kind ~= premake.ANDROIDPROJ then
|
||||
elements = table.join(elements, {
|
||||
android.androidApplicationType
|
||||
})
|
||||
end
|
||||
|
||||
return elements
|
||||
end)
|
||||
|
||||
function android.androidApplicationType(cfg)
|
||||
_p(2, "<Keyword>Android</Keyword>")
|
||||
_p(2, "<RootNamespace>%s</RootNamespace>", cfg.project.name)
|
||||
|
Loading…
Reference in New Issue
Block a user