[Github-comments] [geany/geany] Support gtk-mac-integration by meson build (PR #3194)
Thomas Martitz
notifications at github.com
Sun May 8 19:09:07 UTC 2022
@kugel- commented on this pull request.
> @@ -6,3 +6,4 @@ option('api-docs', type : 'feature', description : 'enable to generate API docum
option('gtkdoc', type : 'boolean', description : 'enable to generate gtk-doc compatible headers for the API')
option('python-command', type: 'string', description: 'the default Python command')
option('socket', type: 'boolean', description: 'enable if you want to detect a running instance')
+option('mac-integration', type: 'boolean', value: 'false', description: 'enable for improved macOS integration using the gtk-mac-integration library')
`get_option('mac-integration')` already returns a boolean. But actually you'd use a [feature](https://mesonbuild.com/Reference-manual_returned_feature.html).
Features are an easier way to implement optional dependencies. They can be disabled on the command line (thereby skipping related dependencies) and you can pass them directly as required.
`mac_integration = dependency(mac_integration_dep[0], version: '>= ' + mac_integration_dep[1], required: get_option('mac-integration'))`
--
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/3194#discussion_r867530654
You are receiving this because you are subscribed to this thread.
Message ID: <geany/geany/pull/3194/review/965472067 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20220508/4af3c025/attachment.htm>
More information about the Github-comments
mailing list