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/vs2017.lua
2017-06-19 13:12:05 -07:00

69 lines
1.6 KiB
Lua

--
-- actions/vstudio/vs2017.lua
-- Extend the existing exporters with support for Visual Studio 2017.
-- Copyright (c) 2017-2017 Jason Perkins and the Premake project
--
local p = premake
local vstudio = p.vstudio
---
-- Define the Visual Studio 2017 export action.
---
newaction {
-- Metadata for the command line and help system
trigger = "vs2017",
shortname = "Visual Studio 2017",
description = "Generate Visual Studio 2017 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", "Installer" },
valid_languages = { "C", "C++", "C#" },
valid_tools = {
cc = { "msc" },
dotnet = { "msnet" },
},
-- Workspace and project generation logic
onWorkspace = function(wks)
p.vstudio.vs2005.generateSolution(wks)
end,
onProject = function(prj)
p.vstudio.vs2010.generateProject(prj)
end,
onRule = function(rule)
p.vstudio.vs2010.generateRule(rule)
end,
onCleanWorkspace = function(wks)
p.vstudio.cleanSolution(wks)
end,
onCleanProject = function(prj)
p.vstudio.cleanProject(prj)
end,
onCleanTarget = function(prj)
p.vstudio.cleanTarget(prj)
end,
pathVars = vstudio.vs2010.pathVars,
-- This stuff is specific to the Visual Studio exporters
vstudio = {
solutionVersion = "12",
versionName = "15",
targetFramework = "4.5.2",
toolsVersion = "15.0",
filterToolsVersion = "4.0",
platformToolset = "v141"
}
}