[skip ci] docs: Add reference table for language args parameter names (#3126)

pull/3137/head
Hylke Bons 7 years ago committed by Jussi Pakkanen
parent e2a4cff76f
commit f1ce7af2d5
  1. 2
      docs/markdown/Adding-arguments.md
  2. 18
      docs/markdown/Reference-tables.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

@ -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 |

Loading…
Cancel
Save