Add win_subsystem kwarg. Closes #7765.
parent
8b20852b0f
commit
1a0603835e
9 changed files with 94 additions and 11 deletions
@ -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') |
||||||
|
``` |
Loading…
Reference in new issue