summaryrefslogtreecommitdiff
path: root/docs/yaml
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2024-10-01 14:13:49 -0700
committerJussi Pakkanen <jpakkane@gmail.com>2024-10-02 21:10:34 +0300
commit3ee9e358b4be10d982a59fabf6e247cd16ac94f5 (patch)
tree2179f307a3fccf2069dc6875e30afecc4ba66a96 /docs/yaml
parent3b248c2ab73cd6780552815b8e3e547587f8dcd7 (diff)
downloadmeson-3ee9e358b4be10d982a59fabf6e247cd16ac94f5.tar.gz
Document the .kernel() and .subsystem() methods
Which were added in Meson 1.2, but don't have entires in the reference manual.
Diffstat (limited to 'docs/yaml')
-rw-r--r--docs/yaml/builtins/build_machine.yaml21
1 files changed, 21 insertions, 0 deletions
diff --git a/docs/yaml/builtins/build_machine.yaml b/docs/yaml/builtins/build_machine.yaml
index 83e0aaf3e..b79525fd5 100644
--- a/docs/yaml/builtins/build_machine.yaml
+++ b/docs/yaml/builtins/build_machine.yaml
@@ -35,3 +35,24 @@ methods:
- name: endian
returns: str
description: returns `'big'` on big-endian systems and `'little'` on little-endian systems.
+
+- name: kernel
+ returns: str
+ since: 1.2.0
+ description: |
+ Returns the name of the Operating System Kernel, such as `linux`, `xnu`, and
+ `nt`. [See here for more complete
+ list](Reference-tables.md#kernel-names-since-120) These are more specific
+ than `system`. If this cannot be detected (for the build machine), or is not
+ set in the cross file (for the host machine when cross compiling), calling
+ this method is fatal.
+
+- name: subsystem
+ returns: str
+ since: 1.2.0
+ description: |
+ Returns the variant of the operating system, such as `ios` and `tvos`. [See
+ here for more complete list](Reference-tables.md#kernel-names-since-120)
+ These are more specific than `system`. If this cannot be detected (for the
+ build machine), or is not set in the cross file (for the host machine when
+ cross compiling), calling this method is fatal.