2013-05-02 15:21:23 +00:00
|
|
|
--
|
|
|
|
-- actions/vstudio/vs2008.lua
|
|
|
|
-- Add support for the Visual Studio 2008 project formats.
|
|
|
|
-- Copyright (c) 2008-2013 Jason Perkins and the Premake project
|
|
|
|
--
|
|
|
|
|
2017-04-25 05:44:13 +00:00
|
|
|
local p = premake
|
|
|
|
p.vstudio.vs2008 = {}
|
|
|
|
local vs2008 = p.vstudio.vs2008
|
|
|
|
local vstudio = p.vstudio
|
2013-05-02 15:21:23 +00:00
|
|
|
|
|
|
|
|
|
|
|
---
|
2013-05-22 15:15:48 +00:00
|
|
|
-- Define the Visual Studio 2008 export action.
|
2013-05-02 15:21:23 +00:00
|
|
|
---
|
|
|
|
|
|
|
|
newaction {
|
|
|
|
-- Metadata for the command line and help system
|
|
|
|
|
|
|
|
trigger = "vs2008",
|
|
|
|
shortname = "Visual Studio 2008",
|
|
|
|
description = "Generate Visual Studio 2008 project files",
|
|
|
|
|
|
|
|
-- Visual Studio always uses Windows path and naming conventions
|
|
|
|
|
2017-04-11 20:39:25 +00:00
|
|
|
targetos = "windows",
|
2013-05-02 15:21:23 +00:00
|
|
|
|
|
|
|
-- The capabilities of this action
|
|
|
|
|
2013-06-26 11:28:57 +00:00
|
|
|
valid_kinds = { "ConsoleApp", "WindowedApp", "StaticLib", "SharedLib", "Makefile", "None" },
|
2017-05-04 00:01:33 +00:00
|
|
|
valid_languages = { "C", "C++", "C#" },
|
2013-05-02 15:21:23 +00:00
|
|
|
valid_tools = {
|
|
|
|
cc = { "msc" },
|
|
|
|
dotnet = { "msnet" },
|
|
|
|
},
|
|
|
|
|
2015-08-12 18:53:12 +00:00
|
|
|
-- Workspace and project generation logic
|
2013-05-02 15:21:23 +00:00
|
|
|
|
2015-07-29 19:40:20 +00:00
|
|
|
onWorkspace = vstudio.vs2005.generateSolution,
|
|
|
|
onProject = vstudio.vs2005.generateProject,
|
2013-05-02 15:21:23 +00:00
|
|
|
|
2015-07-29 19:40:20 +00:00
|
|
|
onCleanWorkspace = vstudio.cleanSolution,
|
|
|
|
onCleanProject = vstudio.cleanProject,
|
|
|
|
onCleanTarget = vstudio.cleanTarget,
|
2013-05-02 15:21:23 +00:00
|
|
|
|
|
|
|
-- This stuff is specific to the Visual Studio exporters
|
|
|
|
|
|
|
|
vstudio = {
|
|
|
|
csprojSchemaVersion = "2.0",
|
2013-05-15 15:15:54 +00:00
|
|
|
productVersion = "9.0.30729",
|
2013-05-02 15:21:23 +00:00
|
|
|
solutionVersion = "10",
|
2013-10-29 05:47:39 +00:00
|
|
|
versionName = "2008",
|
2013-05-02 15:21:23 +00:00
|
|
|
toolsVersion = "3.5",
|
|
|
|
}
|
|
|
|
}
|