vsandroid_sln2005.lua 865 B

123456789101112131415161718192021222324252627282930313233343536
  1. --
  2. -- android/vsandroid_sln2005.lua
  3. -- vs-android integration for vstudio.
  4. -- Copyright (c) 2012-2015 Manu Evans and the Premake project
  5. --
  6. local p = premake
  7. local android = p.modules.android
  8. local vsandroid = p.modules.vsandroid
  9. local sln2005 = p.vstudio.sln2005
  10. --
  11. -- Add android tools to vstudio actions.
  12. --
  13. premake.override(sln2005.elements, "projectConfigurationPlatforms", function(oldfn, cfg, context)
  14. local elements = oldfn(cfg, context)
  15. if cfg.system == premake.ANDROID and _ACTION >= "vs2015" then
  16. elements = table.join(elements, {
  17. android.deployProject
  18. })
  19. end
  20. return elements
  21. end)
  22. function android.deployProject(cfg, context)
  23. if context.prjCfg.kind == p.PACKAGING and _ACTION >= "vs2015" then
  24. p.w('{%s}.%s.Deploy.0 = %s|%s', context.prj.uuid, context.descriptor, context.platform, context.architecture)
  25. end
  26. end