Started work on an example action.

This commit is contained in:
starkos 2010-01-28 21:20:42 +00:00
parent e210af92e0
commit ceafa8c310
2 changed files with 42 additions and 2 deletions

View File

@ -1,7 +1,7 @@
--
-- _manifest.lua
-- Manage the list of built-in Premake scripts.
-- Copyright (c) 2002-2009 Jason Perkins and the Premake project
-- Copyright (c) 2002-2010 Jason Perkins and the Premake project
--
-- The master list of built-in scripts. Order is important! If you want to
@ -48,7 +48,10 @@
"actions/make/make_csharp.lua",
"actions/make/_make.lua",
-- Visual Studio action
-- SlickEdit action
"actions/slickedit/_slickedit.lua",
-- Visual Studio actions
"actions/vstudio/vs2002_solution.lua",
"actions/vstudio/vs2002_csproj.lua",
"actions/vstudio/vs2002_csproj_user.lua",

View File

@ -0,0 +1,37 @@
-- Define a namespace for my new action. The second line defines an alias that I
-- can use in this file, saving myself some typing. It will not be visible outside
-- of this file (though I can always define it again).
premake.example = { }
local example = premake.example
-- The description of the action. Note that only the first three fields are required;
-- you can remove any of the additional fields that are not required by your action.
newaction
{
-- The trigger is what needs to be typed on the command line to cause
-- this action this run (premake4 example)
trigger = "example",
-- The short name is used when this toolset name needs to be shown to
-- the user, such as in status or error messages
shortname = "Fantasic Studio 2013",
-- The description is shown in the help text (premake4 /help)
description = "An example action that prints simple text files",
-- Some actions imply a particular operating system. Visual Studio only
-- runs on Windows, and Xcode only on Mac OS X. If this is the case,
-- uncomment this line and set it to one of "windows", "linux" or "macosx".
-- Otherwise, this action will use the currently set operating system.
-- os = "macosx",
-- Which kinds of targets this action supports. Remove those you don't.
valid_kinds = { "ConsoleApp", "WindowedApp", "SharedLib", "StaticLib" },
-- Which programming languagaes this actions supports. Remove those you don't.
valid_languages = { "C", "C++", "C#" },
}