You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/posts/quickstart-12-custom-scripts.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ This article mainly explains in detail how to achieve more complex and flexible
18
18
19
19
xmake.lua uses the 80/20 principle to achieve two-layer separated configuration: description domain and script domain.
20
20
21
-
What is the 80/20 principle? Simply put, for most project configurations, 80% of the time, they are basic常规配置, such as: `add_cxflags`, `add_links`, etc.
21
+
What is the 80/20 principle? Simply put, for most project configurations, 80% of the time, they are basic regular configurations, such as: `add_cxflags`, `add_links`, etc.
22
22
Only the remaining less than 20% of places need additional complexity to meet some special configuration requirements.
23
23
24
24
And this remaining 20% of configurations are usually more complex. If they are directly filled throughout xmake.lua, it will make the entire project configuration very messy and unreadable.
@@ -74,7 +74,7 @@ However, it should be noted that although the description domain supports lua sc
74
74
:::
75
75
76
76
And in the description domain, the main purpose is to set configuration items, so xmake does not fully open all module interfaces. Many interfaces are prohibited from being called in the description domain.
77
-
Even some of the callable interfaces that are opened are completely read-only, non-time-consuming safe interfaces, such as: `os.getenv()` to read some常规系统信息, used for configuration logic control.
77
+
Even some of the callable interfaces that are opened are completely read-only, non-time-consuming safe interfaces, such as: `os.getenv()` to read some regular system information, used for configuration logic control.
78
78
79
79
:::note
80
80
Also note that xmake.lua will be parsed multiple times, used to parse different configuration domains at different stages: such as: `option()`, `target()` and other domains.
Copy file name to clipboardExpand all lines: docs/posts/quickstart-8-switch-build-mode.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -89,7 +89,7 @@ If it's release mode, it will enable compilation optimization and strip all debu
89
89
90
90
### Customized Mode Configuration
91
91
92
-
Of course, the compilation configurations set by these two built-in rules by default can only meet the常规需求 of most scenarios. If users want to customize some personal compilation configurations in different compilation modes, they need to make judgments in xmake.lua themselves.
92
+
Of course, the compilation configurations set by these two built-in rules by default can only meet the regular needs of most scenarios. If users want to customize some personal compilation configurations in different compilation modes, they need to make judgments in xmake.lua themselves.
93
93
94
94
For example, if we want to enable debugging symbols in release mode as well, we just need to:
If no parameters are configured, and only the test name is configured to `add_tests`, it will only test whether the target program will run and fail, judging whether the test passes based on the exit code.
The`pass_outputs`and`fail_outputs`passed in are a list of lua matching patterns, but the patterns have been slightly simplified, such as the handling of `*`.
373
373
374
-
如果要匹配成功,则测试通过,可以这么配置:
374
+
If the match is successful, the test passes. You can configure it like this:
0 commit comments