Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_codeblocks.lua « codeblocks « actions « src - github.com/windirstat/premake-4.x-stable.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 746fd2c9b4001ae8c4f35422b6440e6f1ce6a620 (plain)
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
	}