Merge pull request #1062 from redorav/android_config

Allow system("android") per configuration
This commit is contained in:
Manu Evans 2018-05-07 13:56:29 -07:00 committed by GitHub
commit 968fc118f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,6 +45,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>")