-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathproject.lua
More file actions
60 lines (55 loc) · 1.81 KB
/
project.lua
File metadata and controls
60 lines (55 loc) · 1.81 KB
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
local Path = require "Macaroni.IO.Path"
local cmfw = require "Macaroni.Generators.CMake.CMakeFileWriter"
project = context:Group("Lp3"):Project("Lp3-Engine"):Version("DEV")
core = project:Library{
name="Lp3_Core",
shortName="Lp3_Core",
headers=pathList{"src/Core", "target"},
sources=pathList{"src/Core", "src/Dependencies.mcpp"},
usesBoost=true,
excludeFiles = pathList{
"src/Core/Demos/AssertDemo.cpp",
"src/Core/Demos/Demo.cpp",
"src/Core/Lp3/PrimitivesTest.cpp",
"src/Core/Lp3/Engine/Memory/AllocatorTest.cpp",
"src/Core/Lp3/Engine/Coroutine/CoroutineTest.cpp",
"src/Core/Lp3/Engine/Memory/MemoryStackTest.cpp",
}
}
gfx = project:Library{
name="Lp3_Gfx",
shortName="Lp3_Gfx",
headers=pathList{"src/Gfx", "target"},
sources=pathList{"src/Gfx", "src/Dependencies.mcpp"},
usesBoost=true,
excludeFiles = pathList{
"src/Gfx/Demos/Emscripten/Simple.cpp",
"src/Gfx/Demos/PvrTextureDemo.cpp",
"src/Gfx/Demos/Pvr2DShapesDemo.cpp",
"src/Gfx/Demos/Pvr2DTexturedShapesDemo.cpp",
"src/Gfx/Lp3/Engine/Gfx/PixelTest.cpp",
}
}
input = project:Library{
name="Lp3_Input",
shortName="Lp3_Input",
headers=pathList{"src/Input", "target"},
sources=pathList{"src/Input", "src/Dependencies.mcpp"},
usesBoost=true,
}
sfx = project:Library{
name="Lp3_Sfx",
shortName="Lp3_Sfx",
headers=pathList{"src/Sfx", "target"},
sources=pathList{"src/Sfx", "src/Dependencies.mcpp"},
usesBoost=true,
}
function generate()
local cpp = plugins:Get("Cpp")
cpp:Run("Generate",
{ projectVersion=project, path=filePath("target"), output=output})
local root = Path.New(getWorkingDirectory());
cmfw.ProjectInfo(
project,
root:NewPathForceSlash("target/macaroni.cmake"))
end