-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpremake5.lua
49 lines (39 loc) · 981 Bytes
/
premake5.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
44
45
46
47
48
--
-- XRhodes
--
-- copyright (c) Gyorgy Straub. All rights reserved.
--
-- License: https://github.com/zyndor/xrhodes#license-bsd-2-clause
--
--==============================================================================
include("template/workspace.lua")
do_workspace("xr3", "examples")
--
-- create a project that just reruns the premake script.
--
filter {}
project "!regenerate_projects"
kind "Utility"
local generate_projects_suffix = "";
if target_env == "windows" then
generate_projects_suffix = ".bat"
else
generate_projects_suffix = ".sh"
end
postbuildcommands{
-- at this point we're in .projects/${target_env}/
"../../tools/"..target_env.."/generate_projects"..generate_projects_suffix,
}
-- create projects
filter {}
include "xr3core/premake5.lua"
filter {}
include "xr3json/premake5.lua"
filter {}
include "xr3/premake5.lua"
filter {}
include "xr3scene/premake5.lua"
filter {}
include "unittests/premake5.lua"
filter {}
include "examples/premake5.lua"