forked from premake/premake-eclipse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheclipse.lua
43 lines (31 loc) · 831 Bytes
/
eclipse.lua
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
36
37
38
39
40
41
42
43
--
-- Name: eclipse/eclipse.lua
-- Purpose: Define the Eclipse action(s).
-- Author: Manu Evans
-- Created: 2014/12/22
-- Copyright: (c) 2008-2014 Jason Perkins and the Premake project
--
local p = premake
p.modules.eclipse = {}
local eclipse = p.modules.eclipse
eclipse.compiler = {}
eclipse.platforms = {}
eclipse.project = {}
eclipse.cproject = {}
eclipse.workspace = {}
function eclipse.esc(value)
-- TODO: not sure if/how eclipse escapes yet
return value
end
function eclipse.uid()
-- eclipse seems to use random 31 bit numbers as id's
return math.random(2147483647)-1
end
--
-- Set global environment for some platforms...
--
include("_preload.lua")
include("eclipse_cproject.lua")
include("eclipse_project.lua")
include("eclipse_workspace.lua")
return eclipse