forked from LearningInfiniTensor/learning-cxx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathxmake.lua
143 lines (108 loc) · 2.88 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
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
add_rules("mode.debug", "mode.release")
set_encodings("utf-8")
set_warnings("all")
set_kind("binary")
set_languages("cxx17")
-- 格式化输出
target("exercise00")
add_files("00_hello_world/main.cpp")
-- 变量与运算符
target("exercise01")
add_files("01_variable&add/main.cpp")
-- 函数、声明和定义
target("exercise02")
add_files("02_function/main.cpp")
-- 形参实参
target("exercise03")
add_files("03_argument¶meter/main.cpp")
-- static 关键字
target("exercise04")
add_files("04_static/main.cpp")
-- constexpr 编译时常量和运算
target("exercise05")
add_files("05_constexpr/main.cpp")
-- 数组
target("exercise06")
add_files("06_array/main.cpp")
-- 循环
target("exercise07")
add_files("07_loop/main.cpp")
-- 指针
target("exercise08")
add_files("08_pointer/main.cpp")
-- 枚举/联合体
target("exercise09")
add_files("09_enum&union/main.cpp")
-- “普通”类型
target("exercise10")
add_files("10_trivial/main.cpp")
-- 方法
target("exercise11")
add_files("11_method/main.cpp")
-- const 修饰方法
target("exercise12")
add_files("12_method_const/main.cpp")
-- 类
target("exercise13")
add_files("13_class/main.cpp")
-- 析构器
target("exercise14")
add_files("14_class_destruct/main.cpp")
-- 复制构造函数
target("exercise15")
add_files("15_class_clone/main.cpp")
-- 移动语义
target("exercise16")
add_files("16_class_move/main.cpp")
-- 派生
target("exercise17")
add_files("17_class_derive/main.cpp")
-- 虚函数
target("exercise18")
add_files("18_class_virtual/main.cpp")
-- 虚析构函数
target("exercise19")
add_files("19_class_virtual_destruct/main.cpp")
-- 函数模板
target("exercise20")
add_files("20_function_template/main.cpp")
-- 习题:用于编译器的运行时类型
target("exercise21")
add_files("21_runtime_datatype/main.cpp")
-- 类模板
target("exercise22")
add_files("22_class_template/main.cpp")
-- 模板非类型实参
target("exercise23")
add_files("23_template_const/main.cpp")
-- std::array
target("exercise24")
add_files("24_std_array/main.cpp")
-- std::vector
target("exercise25")
add_files("25_std_vector/main.cpp")
-- std::vector<bool>
target("exercise26")
add_files("26_std_vector_bool/main.cpp")
-- 习题:步长计算
target("exercise27")
add_files("27_strides/main.cpp")
-- std::string
target("exercise28")
add_files("28_std_string/main.cpp")
-- std::map
target("exercise29")
add_files("29_std_map/main.cpp")
-- std::transform
target("exercise30")
add_files("30_std_unique_ptr/main.cpp")
-- std::accumulate
target("exercise31")
add_files("31_std_shared_ptr/main.cpp")
-- std::transform
target("exercise32")
add_files("32_std_transform/main.cpp")
-- std::accumulate
target("exercise33")
add_files("33_std_accumulate/main.cpp")
-- TODO: lambda; deque; forward_list; fs; thread; mutex;