aboutsummaryrefslogtreecommitdiff
path: root/docs/yaml
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2023-07-19 13:22:20 -0700
committerXavier Claessens <xclaesse@gmail.com>2023-07-20 14:20:46 -0400
commitd7acccd36dcf1b62f144eb7389a5e221fe824be4 (patch)
treef3a3dd25423dd52e44c12f0df994f3bd22be96e9 /docs/yaml
parenta62a42b272923f95b7aeb30f0196cfdf3b251264 (diff)
downloadmeson-d7acccd36dcf1b62f144eb7389a5e221fe824be4.zip
meson-d7acccd36dcf1b62f144eb7389a5e221fe824be4.tar.gz
meson-d7acccd36dcf1b62f144eb7389a5e221fe824be4.tar.bz2
interpreter: deprecate 'jar' value of build_target(target_type)
Jar has a very low set of overlap with other target types, including that jar sources *must* be .java, and no other target allows .java sources. As such, the difficulty in crafting a useful `build_target` invocation that allows both `jar` and anything else is high, and the usefulness is dubious. Just use `jar()` directly instead. This depends on the changes to make all of the jar() specific keyword arguments be handled by typed_kwargs so that the deprecation messages are correct and consistent.
Diffstat (limited to 'docs/yaml')
-rw-r--r--docs/yaml/functions/build_target.yaml7
1 files changed, 5 insertions, 2 deletions
diff --git a/docs/yaml/functions/build_target.yaml b/docs/yaml/functions/build_target.yaml
index 48385f2..74d45f0 100644
--- a/docs/yaml/functions/build_target.yaml
+++ b/docs/yaml/functions/build_target.yaml
@@ -12,7 +12,7 @@ description: |
- `static_library` (see [[static_library]])
- `both_libraries` (see [[both_libraries]])
- `library` (see [[library]])
- - `jar` (see [[jar]])
+ - `jar` (see [[jar]])*
This declaration:
@@ -32,6 +32,9 @@ description: |
The returned object also has methods that are documented in [[@build_tgt]].
+ *"jar" is deprecated because it is fundementally a different thing than the
+ other build_target types.
+
posargs_inherit: _build_target_base
varargs_inherit: _build_target_base
kwargs_inherit:
@@ -42,4 +45,4 @@ kwargs_inherit:
kwargs:
target_type:
type: str
- description: The actual target to build
+ description: The actual target type to build