vs2012.lua 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. --
  2. -- vs2012.lua
  3. -- Extend the existing exporters with support for Visual Studio 2012.
  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 2010 export action.
  10. ---
  11. newaction {
  12. -- Metadata for the command line and help system
  13. trigger = "vs2012",
  14. shortname = "Visual Studio 2012",
  15. description = "Generate Visual Studio 2012 project files",
  16. -- Visual Studio always uses Windows path and naming conventions
  17. targetos = "windows",
  18. toolset = "msc-v110",
  19. -- The capabilities of this action
  20. valid_kinds = { "ConsoleApp", "WindowedApp", "StaticLib", "SharedLib", "Makefile", "None", "Utility" },
  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 = "2012",
  50. targetFramework = "4.5",
  51. toolsVersion = "4.0",
  52. }
  53. }