forked from ChunelFeng/CGraph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
xmake.lua
55 lines (50 loc) · 1.23 KB
/
xmake.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
-- project
set_project("CGraph")
-- set project version
set_version("2.6.1")
-- set language: c++11
set_languages("c++11")
-- set features on different platform
if is_plat("macosx") then
add_defines("_ENABLE_LIKELY_")
elseif is_plat("linux") then
add_defines("_ENABLE_LIKELY_")
add_syslinks("pthread")
end
tutorial_list = {
"T00-HelloCGraph",
"T01-Simple",
"T02-Cluster",
"T03-Region",
"T04-Complex",
"T05-Param",
"T06-Condition",
"T07-MultiPipeline",
"T08-Template",
"T09-Aspect",
"T10-AspectParam",
"T11-Singleton",
"T12-Function",
"T13-Daemon",
"T14-Hold",
"T15-ElementParam",
"T16-MessageSendRecv",
"T17-MessagePubSub",
"T18-Event",
"T19-Cancel",
"T20-YieldResume",
"T21-MultiCondition",
"T22-Timeout",
"T23-Some",
"T24-Fence",
"T25-Coordinator",
"T26-Mutable"
}
-- add tutorial target one by one
for _, v in pairs(tutorial_list) do
target(v)
set_kind("binary")
add_includedirs("src")
add_headerfiles("src/CGraph.h")
add_files("src/**.cpp", string.format("tutorial/%s.cpp", v))
end