premake/src/actions/vstudio/vs2012.lua

60 lines
1.4 KiB
Lua
Raw Normal View History

--
-- actions/vstudio/vs2012.lua
-- Extend the existing exporters with support for Visual Studio 2012.
-- Copyright (c) 2013-2014 Jason Perkins and the Premake project
--
local vstudio = premake.vstudio
local cs2005 = vstudio.cs2005
local vc2010 = vstudio.vc2010
local p = premake
---
-- Define the Visual Studio 2010 export action.
---
newaction {
-- Metadata for the command line and help system
trigger = "vs2012",
shortname = "Visual Studio 2012",
description = "Generate Visual Studio 2012 project files",
-- Visual Studio always uses Windows path and naming conventions
os = "windows",
-- The capabilities of this action
valid_kinds = { "ConsoleApp", "WindowedApp", "StaticLib", "SharedLib", "Makefile", "None" },
valid_languages = { "C", "C++", "C#" },
valid_tools = {
cc = { "msc" },
dotnet = { "msnet" },
},
-- Solution and project generation logic
onSolution = vstudio.vs2005.generateSolution,
onProject = vstudio.vs2010.generateProject,
onCleanSolution = vstudio.cleanSolution,
onCleanProject = vstudio.cleanProject,
onCleanTarget = vstudio.cleanTarget,
pathVars = vstudio.pathVars,
-- This stuff is specific to the Visual Studio exporters
vstudio = {
solutionVersion = "12",
2013-10-29 05:47:39 +00:00
versionName = "2012",
targetFramework = "4.5",
toolsVersion = "4.0",
2015-03-25 17:37:51 +00:00
platformToolset = "v110"
}
}