1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
--
-- _codeblocks.lua
-- Define the Code::Blocks action(s).
-- Copyright (c) 2002-2008 Jason Perkins and the Premake project
--
newaction {
trigger = "codeblocks",
shortname = "Code::Blocks",
description = "Code::Blocks Studio",
valid_kinds = { "ConsoleApp", "WindowedApp", "StaticLib", "SharedLib" },
valid_languages = { "C", "C++" },
valid_tools = {
cc = { "gcc", "ow" },
},
solutiontemplates = {
{ ".workspace", _TEMPLATES.codeblocks_workspace },
},
projecttemplates = {
{ ".cbp", _TEMPLATES.codeblocks_cbp },
},
onclean = function(solutions, projects, targets)
for _,name in ipairs(projects) do
os.remove(name .. ".depend")
os.remove(name .. ".layout")
end
end
}
|