This repository has been archived on 2022-12-23. You can view files and clone it, but cannot push or open issues or pull requests.
fuck-premake-old2/modules/vstudio/vs2012.lua

68 lines
1.5 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
--
2017-04-25 05:44:13 +00:00
local p = premake
local vstudio = p.vstudio
---
-- 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
targetos = "windows",
-- The capabilities of this action
valid_kinds = { "ConsoleApp", "WindowedApp", "StaticLib", "SharedLib", "Makefile", "None", "Utility" },
valid_languages = { "C", "C++", "C#" },
valid_tools = {
cc = { "msc" },
dotnet = { "msnet" },
},
-- Workspace and project generation logic
2015-07-30 19:30:41 +00:00
onWorkspace = function(wks)
vstudio.vs2005.generateSolution(wks)
end,
onProject = function(prj)
vstudio.vs2010.generateProject(prj)
end,
onRule = function(rule)
vstudio.vs2010.generateRule(rule)
end,
2015-07-30 19:30:41 +00:00
onCleanWorkspace = function(wks)
vstudio.cleanSolution(wks)
2015-04-10 00:53:04 +00:00
end,
onCleanProject = function(prj)
vstudio.cleanProject(prj)
end,
onCleanTarget = function(prj)
vstudio.cleanTarget(prj)
end,
2017-06-19 19:50:34 +00:00
pathVars = vstudio.vs2010.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"
}
}