This allows checking for tools that may not be available in older version of qt or avoiding requesting tools that may not be necessary for a given project Co-authored-by: Nirbheek Chauhan <nirbheek@centricular.com>pull/13712/head
parent
c572879bc9
commit
6797f9bc15
6 changed files with 74 additions and 21 deletions
@ -0,0 +1,12 @@ |
||||
## Tools can be selected when calling `has_tools()` on the Qt modules |
||||
|
||||
When checking for the presence of Qt tools, you can now explictly ask Meson |
||||
which tools you need. This is particularly useful when you do not need |
||||
`lrelease` because you are not shipping any translations. For example: |
||||
|
||||
```meson |
||||
qt6_mod = import('qt6') |
||||
qt6_mod.has_tools(required: true, tools: ['moc', 'uic', 'rcc']) |
||||
``` |
||||
|
||||
valid tools are `moc`, `uic`, `rcc` and `lrelease`. |
@ -1,2 +1,3 @@ |
||||
option('method', type : 'string', value : 'auto', description : 'The method to use to find Qt') |
||||
option('required', type : 'string', value : 'qt5', description : 'The version of Qt which is required to be present') |
||||
option('expect_lrelease', type: 'boolean', value: true) |
||||
|
Loading…
Reference in new issue