diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2020-09-27 20:21:59 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2020-10-07 18:55:25 +0300 |
commit | 1a0603835e3c9f1047d9b7694efc996219a422e4 (patch) | |
tree | 17262dcb1829ebad6a9817ce8571beb342eaad75 /docs/markdown/snippets | |
parent | 8b20852b0ff35a9e19b3b26c04decdef35036fd5 (diff) | |
download | meson-1a0603835e3c9f1047d9b7694efc996219a422e4.zip meson-1a0603835e3c9f1047d9b7694efc996219a422e4.tar.gz meson-1a0603835e3c9f1047d9b7694efc996219a422e4.tar.bz2 |
Add win_subsystem kwarg. Closes #7765.
Diffstat (limited to 'docs/markdown/snippets')
-rw-r--r-- | docs/markdown/snippets/winsubsystem.md | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/docs/markdown/snippets/winsubsystem.md b/docs/markdown/snippets/winsubsystem.md new file mode 100644 index 0000000..a7d589f --- /dev/null +++ b/docs/markdown/snippets/winsubsystem.md @@ -0,0 +1,22 @@ +## Add support for all Windows subsystem types + +It is now possible to build things like Windows kernel drivers with +the new `win_subsystem` keyword argument. This replaces the old +`gui_app` keyword argument, which is now deprecated. You should update +your project to use the new style like this: + +```meson +# Old way +executable(..., gui_app: 'true') +# New way +executable(..., win_subsystem: 'windows') +``` + +The argument supports versioning [as described on MSDN +documentation](https://docs.microsoft.com/en-us/cpp/build/reference/subsystem-specify-subsystem). +Thus to build a Windows kernel driver with a specific version you'd +write something like this: + +```meson +executable(..., win_subsystem: 'native,6.02') +``` |