premake/modules/vstudio/vs2013.lua
Tom van Dijck f2f739d79c Fsharp support (#879)
* Generate fsproj for F# projects.

* store the order of the original file list.

* fixes based on review.

* I guess this was supposed to be moved.
2017-08-30 11:35:42 -07:00

69 lines
1.5 KiB
Lua

--
-- vs2013.lua
-- Extend the existing exporters with support for Visual Studio 2013.
-- Copyright (c) Jason Perkins and the Premake project
--
local p = premake
local vstudio = p.vstudio
---
-- Define the Visual Studio 2013 export action.
---
newaction {
-- Metadata for the command line and help system
trigger = "vs2013",
shortname = "Visual Studio 2013",
description = "Generate Visual Studio 2013 project files",
-- Visual Studio always uses Windows path and naming conventions
targetos = "windows",
toolset = "msc-v120",
-- The capabilities of this action
valid_kinds = { "ConsoleApp", "WindowedApp", "StaticLib", "SharedLib", "Makefile", "None", "Utility" },
valid_languages = { "C", "C++", "C#", "F#" },
valid_tools = {
cc = { "msc" },
dotnet = { "msnet" },
},
-- Workspace and project generation logic
onWorkspace = function(wks)
vstudio.vs2005.generateSolution(wks)
end,
onProject = function(prj)
vstudio.vs2010.generateProject(prj)
end,
onRule = function(rule)
vstudio.vs2010.generateRule(rule)
end,
onCleanWorkspace = function(wks)
vstudio.cleanSolution(wks)
end,
onCleanProject = function(prj)
vstudio.cleanProject(prj)
end,
onCleanTarget = function(prj)
vstudio.cleanTarget(prj)
end,
pathVars = vstudio.vs2010.pathVars,
-- This stuff is specific to the Visual Studio exporters
vstudio = {
solutionVersion = "12",
versionName = "2013",
targetFramework = "4.5",
toolsVersion = "12.0",
filterToolsVersion = "4.0",
}
}