-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
qt module: allow has_tools to specify which tools to check
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>
- Loading branch information
Showing
6 changed files
with
74 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters