diff options
| author | ruki <waruqi@gmail.com> | 2018-09-11 00:40:47 +0800 |
|---|---|---|
| committer | ruki <waruqi@gmail.com> | 2018-09-10 22:04:44 +0800 |
| commit | da46cbb9f0f2e96df2e18e475ab1c468df6de88f (patch) | |
| tree | e593a02eafb54ec06858309595a79fa771d2cee4 /manual.md | |
| parent | 1fe139dd8d098f2439e93a9a19aea4da5481157c (diff) | |
| download | xmake-docs-da46cbb9f0f2e96df2e18e475ab1c468df6de88f.tar.gz xmake-docs-da46cbb9f0f2e96df2e18e475ab1c468df6de88f.zip | |
update manual
Diffstat (limited to 'manual.md')
| -rw-r--r-- | manual.md | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -39,6 +39,7 @@ Conditions are generally used to handle some special compilation platforms. | [is_option](#is_option) | Is the given options enabled? | >= 2.0.1 < 2.2.2 deprecated | | [is_config](#is_config) | Is the given config values? | >= 2.2.2 | | [has_config](#has_config) | Is the given configs enabled? | >= 2.2.2 | +| [get_config](#get_config) | Get the configuration value | >= 2.2.2 | ##### is_os @@ -314,6 +315,18 @@ This interface can determine not only the built-in global and local configs, but also the custom options defined through the [option](#option). </p> +##### get_config + +###### Get the configuration value + +This interface is introduced from version 2.2.2 to get the configuration value from the given name. + +```lua +if get_config("myconfig") == "xxx" then + add_defines("HELLO") +end +``` + #### Global Interfaces The global interface affects the whole project description scope and all sub-project files. |
