Skip to content

Commit ffa72bd

Browse files
committed
lua
1 parent a05b643 commit ffa72bd

File tree

17 files changed

+644
-1005
lines changed

17 files changed

+644
-1005
lines changed

add-two-integers/xmake.lua

Lines changed: 2 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -1,76 +1,6 @@
11
add_rules("mode.debug", "mode.release")
22

33
target("add-two-integers")
4-
set_kind("static")
5-
6-
add_files("index.ixx")
7-
8-
--
9-
-- If you want to known more usage about xmake, please see https://xmake.io
10-
--
11-
-- ## FAQ
12-
--
13-
-- You can enter the project directory firstly before building project.
14-
--
15-
-- $ cd projectdir
16-
--
17-
-- 1. How to build project?
18-
--
19-
-- $ xmake
20-
--
21-
-- 2. How to configure project?
22-
--
23-
-- $ xmake f -p [macosx|linux|iphoneos ..] -a [x86_64|i386|arm64 ..] -m [debug|release]
24-
--
25-
-- 3. Where is the build output directory?
26-
--
27-
-- The default output directory is `./build` and you can configure the output directory.
28-
--
29-
-- $ xmake f -o outputdir
30-
-- $ xmake
31-
--
32-
-- 4. How to run and debug target after building project?
33-
--
34-
-- $ xmake run [targetname]
35-
-- $ xmake run -d [targetname]
36-
--
37-
-- 5. How to install target to the system directory or other output directory?
38-
--
39-
-- $ xmake install
40-
-- $ xmake install -o installdir
41-
--
42-
-- 6. Add some frequently-used compilation flags in xmake.lua
43-
--
44-
-- @code
45-
-- -- add debug and release modes
46-
-- add_rules("mode.debug", "mode.release")
47-
--
48-
-- -- add macro defination
49-
-- add_defines("NDEBUG", "_GNU_SOURCE=1")
50-
--
51-
-- -- set warning all as error
52-
-- set_warnings("all", "error")
53-
--
54-
-- -- set language: c99, c++11
55-
-- set_languages("c99", "c++11")
56-
--
57-
-- -- set optimization: none, faster, fastest, smallest
58-
-- set_optimize("fastest")
59-
--
60-
-- -- add include search directories
61-
-- add_includedirs("/usr/include", "/usr/local/include")
62-
--
63-
-- -- add link libraries and search directories
64-
-- add_links("tbox")
65-
-- add_linkdirs("/usr/local/lib", "/usr/lib")
66-
--
67-
-- -- add system link libraries
68-
-- add_syslinks("z", "pthread")
69-
--
70-
-- -- add compilation and link flags
71-
-- add_cxflags("-stdnolib", "-fno-strict-aliasing")
72-
-- add_ldflags("-L/usr/local/lib", "-lpthread", {force = true})
73-
--
74-
-- @endcode
75-
--
4+
set_kind("static")
765

6+
add_files("index.ixx")

animal-shelter-lcci/xmake.lua

Lines changed: 68 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -4,72 +4,72 @@ target("animal-shelter-lcci")
44
set_kind("static")
55
add_files("index.ixx")
66

7-
--
8-
-- If you want to known more usage about xmake, please see https://xmake.io
9-
--
10-
-- ## FAQ
11-
--
12-
-- You can enter the project directory firstly before building project.
13-
--
14-
-- $ cd projectdir
15-
--
16-
-- 1. How to build project?
17-
--
18-
-- $ xmake
19-
--
20-
-- 2. How to configure project?
21-
--
22-
-- $ xmake f -p [macosx|linux|iphoneos ..] -a [x86_64|i386|arm64 ..] -m [debug|release]
23-
--
24-
-- 3. Where is the build output directory?
25-
--
26-
-- The default output directory is `./build` and you can configure the output directory.
27-
--
28-
-- $ xmake f -o outputdir
29-
-- $ xmake
30-
--
31-
-- 4. How to run and debug target after building project?
32-
--
33-
-- $ xmake run [targetname]
34-
-- $ xmake run -d [targetname]
35-
--
36-
-- 5. How to install target to the system directory or other output directory?
37-
--
38-
-- $ xmake install
39-
-- $ xmake install -o installdir
40-
--
41-
-- 6. Add some frequently-used compilation flags in xmake.lua
42-
--
43-
-- @code
44-
-- -- add debug and release modes
45-
-- add_rules("mode.debug", "mode.release")
46-
--
47-
-- -- add macro defination
48-
-- add_defines("NDEBUG", "_GNU_SOURCE=1")
49-
--
50-
-- -- set warning all as error
51-
-- set_warnings("all", "error")
52-
--
53-
-- -- set language: c99, c++11
54-
-- set_languages("c99", "c++11")
55-
--
56-
-- -- set optimization: none, faster, fastest, smallest
57-
-- set_optimize("fastest")
58-
--
59-
-- -- add include search directories
60-
-- add_includedirs("/usr/include", "/usr/local/include")
61-
--
62-
-- -- add link libraries and search directories
63-
-- add_links("tbox")
64-
-- add_linkdirs("/usr/local/lib", "/usr/lib")
65-
--
66-
-- -- add system link libraries
67-
-- add_syslinks("z", "pthread")
68-
--
69-
-- -- add compilation and link flags
70-
-- add_cxflags("-stdnolib", "-fno-strict-aliasing")
71-
-- add_ldflags("-L/usr/local/lib", "-lpthread", {force = true})
72-
--
73-
-- @endcode
74-
--
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+
7575

calculate-delayed-arrival-time/xmake.lua

Lines changed: 68 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -4,72 +4,72 @@ target("calculate-delayed-arrival-time")
44
set_kind("static")
55
add_files("index.ixx")
66

7-
--
8-
-- If you want to known more usage about xmake, please see https://xmake.io
9-
--
10-
-- ## FAQ
11-
--
12-
-- You can enter the project directory firstly before building project.
13-
--
14-
-- $ cd projectdir
15-
--
16-
-- 1. How to build project?
17-
--
18-
-- $ xmake
19-
--
20-
-- 2. How to configure project?
21-
--
22-
-- $ xmake f -p [macosx|linux|iphoneos ..] -a [x86_64|i386|arm64 ..] -m [debug|release]
23-
--
24-
-- 3. Where is the build output directory?
25-
--
26-
-- The default output directory is `./build` and you can configure the output directory.
27-
--
28-
-- $ xmake f -o outputdir
29-
-- $ xmake
30-
--
31-
-- 4. How to run and debug target after building project?
32-
--
33-
-- $ xmake run [targetname]
34-
-- $ xmake run -d [targetname]
35-
--
36-
-- 5. How to install target to the system directory or other output directory?
37-
--
38-
-- $ xmake install
39-
-- $ xmake install -o installdir
40-
--
41-
-- 6. Add some frequently-used compilation flags in xmake.lua
42-
--
43-
-- @code
44-
-- -- add debug and release modes
45-
-- add_rules("mode.debug", "mode.release")
46-
--
47-
-- -- add macro defination
48-
-- add_defines("NDEBUG", "_GNU_SOURCE=1")
49-
--
50-
-- -- set warning all as error
51-
-- set_warnings("all", "error")
52-
--
53-
-- -- set language: c99, c++11
54-
-- set_languages("c99", "c++11")
55-
--
56-
-- -- set optimization: none, faster, fastest, smallest
57-
-- set_optimize("fastest")
58-
--
59-
-- -- add include search directories
60-
-- add_includedirs("/usr/include", "/usr/local/include")
61-
--
62-
-- -- add link libraries and search directories
63-
-- add_links("tbox")
64-
-- add_linkdirs("/usr/local/lib", "/usr/lib")
65-
--
66-
-- -- add system link libraries
67-
-- add_syslinks("z", "pthread")
68-
--
69-
-- -- add compilation and link flags
70-
-- add_cxflags("-stdnolib", "-fno-strict-aliasing")
71-
-- add_ldflags("-L/usr/local/lib", "-lpthread", {force = true})
72-
--
73-
-- @endcode
74-
--
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+
7575

0 commit comments

Comments
 (0)