2013-08-15 11:16:56 +00:00
|
|
|
--
|
|
|
|
-- actions/vstudio/vs2013.lua
|
2013-08-17 18:31:52 +00:00
|
|
|
-- Extend the existing exporters with support for Visual Studio 2013.
|
2014-05-22 14:26:16 +00:00
|
|
|
-- Copyright (c) 2013-2014 Jason Perkins and the Premake project
|
2013-08-15 11:16:56 +00:00
|
|
|
--
|
|
|
|
|
2014-05-22 14:26:16 +00:00
|
|
|
premake.vstudio.vc2013 = {}
|
|
|
|
|
|
|
|
local p = premake
|
|
|
|
local vstudio = p.vstudio
|
2013-08-15 11:16:56 +00:00
|
|
|
local vc2010 = vstudio.vc2010
|
|
|
|
|
2014-05-22 14:26:16 +00:00
|
|
|
local m = vstudio.vc2013
|
|
|
|
|
2013-08-15 11:16:56 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
-- 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
|
|
|
|
|
|
|
|
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
|
|
|
|
|
2015-01-22 18:14:02 +00:00
|
|
|
onSolution = vstudio.vs2005.generateSolution,
|
|
|
|
onProject = vstudio.vs2010.generateProject,
|
2013-08-15 11:16:56 +00:00
|
|
|
|
2015-01-22 18:14:02 +00:00
|
|
|
onCleanSolution = vstudio.cleanSolution,
|
|
|
|
onCleanProject = vstudio.cleanProject,
|
|
|
|
onCleanTarget = vstudio.cleanTarget,
|
2013-08-15 11:16:56 +00:00
|
|
|
|
|
|
|
-- This stuff is specific to the Visual Studio exporters
|
|
|
|
|
|
|
|
vstudio = {
|
|
|
|
solutionVersion = "12",
|
2013-10-29 05:47:39 +00:00
|
|
|
versionName = "2013",
|
2013-08-15 11:16:56 +00:00
|
|
|
targetFramework = "4.5",
|
|
|
|
toolsVersion = "12.0",
|
|
|
|
}
|
|
|
|
}
|