diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2020-09-27 20:21:59 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2020-10-05 22:21:09 +0300 |
commit | 1a330d9ef5d222cea9294a01ec63774093109207 (patch) | |
tree | 57bce239edf59fd4674d99a66312c7cb9f3130b2 /docs/markdown/snippets | |
parent | 962ea8053b2113c2ea8372ed27476bf73119bd65 (diff) | |
download | meson-winsubsystem.tar.gz |
Add win_subsystem kwarg. Closes #7765.winsubsystem
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 000000000..a7d589fe9 --- /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') +``` |