From f1ce7af2d5866b5207c1f4036477a175f433655c Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Sun, 25 Feb 2018 12:02:34 +0000 Subject: [skip ci] docs: Add reference table for language args parameter names (#3126) --- docs/markdown/Adding-arguments.md | 2 ++ docs/markdown/Reference-tables.md | 18 ++++++++++++++++++ 2 files changed, 20 insertions(+) (limited to 'docs/markdown') 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 | -- cgit v1.1