diff options
author | Daniel Eklöf <daniel@ekloef.se> | 2019-05-09 21:43:10 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2019-05-09 22:43:10 +0300 |
commit | c2ee82cc418d896935d4a96651ba9fa49a53b636 (patch) | |
tree | 84e86282e6e3f7550e6c7177739b978415d499c8 /docs/markdown | |
parent | b0f90a793f5ef3e08aa51549773581dff862ddb7 (diff) | |
download | meson-c2ee82cc418d896935d4a96651ba9fa49a53b636.zip meson-c2ee82cc418d896935d4a96651ba9fa49a53b636.tar.gz meson-c2ee82cc418d896935d4a96651ba9fa49a53b636.tar.bz2 |
add support for "target_type: 'shared_module'" in build_target()
Diffstat (limited to 'docs/markdown')
-rw-r--r-- | docs/markdown/Reference-manual.md | 14 | ||||
-rw-r--r-- | docs/markdown/snippets/target-type-shared-module.md | 16 |
2 files changed, 29 insertions, 1 deletions
diff --git a/docs/markdown/Reference-manual.md b/docs/markdown/Reference-manual.md index d86d825..01fa3c3 100644 --- a/docs/markdown/Reference-manual.md +++ b/docs/markdown/Reference-manual.md @@ -158,7 +158,19 @@ library. In addition it supports the following extra methods: ### build_target() Creates a build target whose type can be set dynamically with the -`target_type` keyword argument. This declaration: +`target_type` keyword argument. + +`target_type` may be set to one of: + +- `executable` +- `shared_library` +- `shared_module` +- `static_library` +- `both_libraries` +- `library` +- `jar` + +This declaration: ```meson executable(<arguments and keyword arguments>) diff --git a/docs/markdown/snippets/target-type-shared-module.md b/docs/markdown/snippets/target-type-shared-module.md new file mode 100644 index 0000000..e9364a1 --- /dev/null +++ b/docs/markdown/snippets/target-type-shared-module.md @@ -0,0 +1,16 @@ +## `target_type` in `build_targets` accepts the value 'shared_module' + +The `target_type` keyword argument in `build_target()` now accepts the +value `'shared_module'`. + +The statement + +```meson +build_target(..., target_type: 'shared_module') +``` + +is equivalent to this: + +```meson +shared_module(...) +``` |