diff options
| author | ruki <[email protected]> | 2017-08-03 21:24:49 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2017-08-03 21:24:49 +0800 |
| commit | 5999664899b8135c667f580b23319d19206ee1bf (patch) | |
| tree | 0c48d313760c9f35e9b061658a6a0c834bf8bd50 | |
| parent | 2ab0a90c431f9cf80b5aa295e8d55d71c0ad7308 (diff) | |
modify manual
| -rw-r--r-- | docs/manual.md | 5 | ||||
| -rw-r--r-- | docs/zh/manual.md | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/docs/manual.md b/docs/manual.md index 625b6d6ec..98c26a8b5 100644 --- a/docs/manual.md +++ b/docs/manual.md @@ -3312,6 +3312,11 @@ target("test") add_defines("-DTEST=$(var)") ``` +<p class="tip"> +所有`xmake f --xxx=...`配置的参数值,都是可以通过内置变量获取到,例如:`xmake f --arch=x86`对应`$(arch)`,其他的还有`$(plat)`, `$(mode)`等等。 +具体有哪些参数,可以通过:`xmake f -h`才查看。 +</p> + 既然支持直接从配置选项中获取,那么当然也就能很方便的扩展自定义的选项,来获取自定义的变量了,具体如何自定义选项见:[option](#option) ##### var.$(os) diff --git a/docs/zh/manual.md b/docs/zh/manual.md index 6ab26dfd0..e7863db2a 100644 --- a/docs/zh/manual.md +++ b/docs/zh/manual.md @@ -3338,6 +3338,11 @@ target("test") add_defines("-DTEST=$(var)") ``` +<p class="tip"> +所有`xmake f --xxx=...`配置的参数值,都是可以通过内置变量获取到,例如:`xmake f --arch=x86`对应`$(arch)`,其他的还有`$(plat)`, `$(mode)`等等。 +具体有哪些参数,可以通过:`xmake f -h`才查看。 +</p> + 既然支持直接从配置选项中获取,那么当然也就能很方便的扩展自定义的选项,来获取自定义的变量了,具体如何自定义选项见:[option](#option) ##### var.$(os) |
