Document how to set the default name_prefix and name_suffix [skip ci]

Else people (like me) try to use the old behaviour where
setting it to `''` would use the default.

https://gitlab.gnome.org/GNOME/glib-networking/issues/33
pull/3644/head
Nirbheek Chauhan 7 years ago committed by GitHub
parent a87496addd
commit c87c42b736
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      docs/markdown/Reference-manual.md

@ -473,7 +473,8 @@ be passed to [shared and static libraries](#library).
target, **never** use this for object files that you build yourself. target, **never** use this for object files that you build yourself.
- `name_suffix` the string that will be used as the extension for the - `name_suffix` the string that will be used as the extension for the
target by overriding the default. By default on Windows this is target by overriding the default. By default on Windows this is
`exe` and on other platforms it is omitted. `exe` and on other platforms it is omitted. Set this to `[]`, or omit
the keyword argument for the default behaviour.
- `override_options` takes an array of strings in the same format as - `override_options` takes an array of strings in the same format as
`project`'s `default_options` overriding the values of these options `project`'s `default_options` overriding the values of these options
for this target only, since 0.40.0 for this target only, since 0.40.0
@ -945,6 +946,8 @@ The keyword arguments for this are the same as for [`executable`](#executable) w
`static_library`, `shared_library` and `both_libraries` also accept these keyword `static_library`, `shared_library` and `both_libraries` also accept these keyword
arguments. arguments.
Note: You can set `name_prefix` and `name_suffix` to `[]`, or omit them for the default behaviour for each platform.
### message() ### message()
``` meson ``` meson

Loading…
Cancel
Save