aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown
diff options
context:
space:
mode:
authorHylke Bons <hi@planetpeanut.uk>2018-02-25 12:02:34 +0000
committerJussi Pakkanen <jpakkane@gmail.com>2018-02-25 14:02:34 +0200
commitf1ce7af2d5866b5207c1f4036477a175f433655c (patch)
tree7b391a07f8e22da6d6f2907302bbc25f38ef1457 /docs/markdown
parente2a4cff76f35b7c666a0bcaa087bcdef579ef19f (diff)
downloadmeson-f1ce7af2d5866b5207c1f4036477a175f433655c.zip
meson-f1ce7af2d5866b5207c1f4036477a175f433655c.tar.gz
meson-f1ce7af2d5866b5207c1f4036477a175f433655c.tar.bz2
[skip ci] docs: Add reference table for language args parameter names (#3126)
Diffstat (limited to 'docs/markdown')
-rw-r--r--docs/markdown/Adding-arguments.md2
-rw-r--r--docs/markdown/Reference-tables.md18
2 files changed, 20 insertions, 0 deletions
diff --git a/docs/markdown/Adding-arguments.md b/docs/markdown/Adding-arguments.md
index e314102..117622b 100644
--- a/docs/markdown/Adding-arguments.md
+++ b/docs/markdown/Adding-arguments.md
@@ -49,6 +49,8 @@ executable('prog', 'prog.cc', cpp_args : '-DCPPTHING')
Here we create a C++ executable with an extra argument that is used
during compilation but not for linking.
+You can find the parameter name for other languages in the [reference tables](Reference-tables.md).
+
Specifying extra linker arguments is done in the same way:
```meson
diff --git a/docs/markdown/Reference-tables.md b/docs/markdown/Reference-tables.md
index 5ee0db1..4b7006e 100644
--- a/docs/markdown/Reference-tables.md
+++ b/docs/markdown/Reference-tables.md
@@ -63,3 +63,21 @@ These are provided by the `.system()` method call.
Any string not listed above is not guaranteed to remain stable in
future releases.
+
+
+## Language arguments parameter names
+
+These are the parameter names for passing language specific arguments to your build target.
+
+| Language | Parameter name |
+| ----- | -----
+| C | c_args |
+| C++ | cpp_args |
+| C# | cs_args |
+| D | d_args |
+| Fortran | fortran_args |
+| Java | java_args |
+| Objective C | objc_args |
+| Objective C++ | objcpp_args |
+| Rust | rust_args |
+| Vala | vala_args |