generated from Moxibyte/MoxPP
-
Notifications
You must be signed in to change notification settings - Fork 1
/
mox.lua
81 lines (69 loc) · 2.35 KB
/
mox.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
-- === Configuration ===
-- Change the following lines to complete your setup
-- PRODUCT NAME
-- This the name used for the product provided by this repo
-- (On windows used as the solution name)
cmox_product_name = "Boundless2D"
-- CONFIGURATIONS
-- The first array _n are the configuration names
-- The second array _d are the configuration debug flags
-- (use true on all debugging configurations)
cmox_configurations_n = {
"Debug", "DebugEditor",
"Development", "DevelopmentEditor",
"Release",
}
cmox_configurations_d = {
true, true,
false, false,
false
}
-- SOURCE FOLDER NAME
cmox_src_folder = "src"
-- PROJECT ARCHITECTURE
-- "single" Only one build.lua file will be loaded.
-- The file needs to be in the src folder.
-- Used for singel project repos
--
-- "flat" The hirarch of the project is flat.
-- build.lua files will be loaded from from
-- subdirs of the src folder. Each dir can
-- be a project.
--
-- "hierarchical" Adds one more indirection layer to the
-- "flat" architecture. The first folder
-- will be the group name. Groups are treatet
-- similar to the flat modell
--
-- "manual" Projects are not loaded by the MoxPP
-- provide the "cmox_function_includeprojects"
-- function.
cmox_project_architecture = "manual"
-- MACRO PREFIX
-- This will be prepended to ALL non default macros
cmox_macro_prefix = "BL2D_"
-- === Custom callback functions ===
-- This is the way to go when implementing custom features
-- This function is called when the workspace is configured
-- function cmox_function_setupworkspace()
-- ...
-- end
-- This function is called for each project when it's beeing configured
-- function cmox_function_setupproject()
-- ...
-- end
-- This function is called in manual configuration to include
-- the project
-- use: include "my-build-file.lua"
function cmox_function_includeprojects()
include "../scripts/boundless2d.lua"
-- Modules
group "Modules"
bl2d_include_folder("bl2d/modules")
-- Common Code (Util, Config, API)
group "Common"
bl2d_include_folder("bl2d/common")
-- Application
group "App"
bl2d_include_folder("bl2d/app")
end