vs2015.lua 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. --
  2. -- vs2015.lua
  3. -- Extend the existing exporters with support for Visual Studio 2015.
  4. -- Copyright (c) Jason Perkins and the Premake project
  5. --
  6. local p = premake
  7. local vstudio = p.vstudio
  8. ---
  9. -- Define the Visual Studio 2015 export action.
  10. ---
  11. newaction {
  12. -- Metadata for the command line and help system
  13. trigger = "vs2015",
  14. shortname = "Visual Studio 2015",
  15. description = "Generate Visual Studio 2015 project files",
  16. -- Visual Studio always uses Windows path and naming conventions
  17. targetos = "windows",
  18. toolset = "msc-v140",
  19. -- The capabilities of this action
  20. valid_kinds = { "ConsoleApp", "WindowedApp", "StaticLib", "SharedLib", "Makefile", "None", "Utility", "SharedItems" },
  21. valid_languages = { "C", "C++", "C#", "F#" },
  22. valid_tools = {
  23. cc = { "msc" },
  24. dotnet = { "msnet" },
  25. },
  26. -- Workspace and project generation logic
  27. onWorkspace = function(wks)
  28. vstudio.vs2005.generateSolution(wks)
  29. end,
  30. onProject = function(prj)
  31. vstudio.vs2010.generateProject(prj)
  32. end,
  33. onRule = function(rule)
  34. vstudio.vs2010.generateRule(rule)
  35. end,
  36. onCleanWorkspace = function(wks)
  37. vstudio.cleanSolution(wks)
  38. end,
  39. onCleanProject = function(prj)
  40. vstudio.cleanProject(prj)
  41. end,
  42. onCleanTarget = function(prj)
  43. vstudio.cleanTarget(prj)
  44. end,
  45. pathVars = vstudio.vs2010.pathVars,
  46. -- This stuff is specific to the Visual Studio exporters
  47. vstudio = {
  48. solutionVersion = "12",
  49. versionName = "14",
  50. targetFramework = "4.5",
  51. toolsVersion = "14.0",
  52. filterToolsVersion = "4.0",
  53. }
  54. }