vs2008.lua 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. --
  2. -- vs2008.lua
  3. -- Add support for the Visual Studio 2008 project formats.
  4. -- Copyright (c) Jason Perkins and the Premake project
  5. --
  6. local p = premake
  7. p.vstudio.vs2008 = {}
  8. local vs2008 = p.vstudio.vs2008
  9. local vstudio = p.vstudio
  10. ---
  11. -- Define the Visual Studio 2008 export action.
  12. ---
  13. newaction {
  14. -- Metadata for the command line and help system
  15. trigger = "vs2008",
  16. shortname = "Visual Studio 2008",
  17. description = "Generate Visual Studio 2008 project files",
  18. -- Visual Studio always uses Windows path and naming conventions
  19. targetos = "windows",
  20. toolset = "msc-v90",
  21. -- The capabilities of this action
  22. valid_kinds = { "ConsoleApp", "WindowedApp", "StaticLib", "SharedLib", "Makefile", "None" },
  23. valid_languages = { "C", "C++", "C#", "F#" },
  24. valid_tools = {
  25. cc = { "msc" },
  26. dotnet = { "msnet" },
  27. },
  28. -- Workspace and project generation logic
  29. onWorkspace = vstudio.vs2005.generateSolution,
  30. onProject = vstudio.vs2005.generateProject,
  31. onCleanWorkspace = vstudio.cleanSolution,
  32. onCleanProject = vstudio.cleanProject,
  33. onCleanTarget = vstudio.cleanTarget,
  34. -- This stuff is specific to the Visual Studio exporters
  35. vstudio = {
  36. csprojSchemaVersion = "2.0",
  37. productVersion = "9.0.30729",
  38. solutionVersion = "10",
  39. versionName = "2008",
  40. toolsVersion = "3.5",
  41. }
  42. }