<p></p>
<p><b>@kugel-</b> commented on this pull request.</p>

<hr>

<p>In <a href="https://github.com/geany/geany/pull/3194#discussion_r867530654">meson_options.txt</a>:</p>
<pre style='color:#555'>> @@ -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')
</pre>
<p dir="auto"><code class="notranslate">get_option('mac-integration')</code> already returns a boolean. But actually you'd use a <a href="https://mesonbuild.com/Reference-manual_returned_feature.html" rel="nofollow">feature</a>.</p>
<p dir="auto">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.</p>
<p dir="auto"><code class="notranslate">mac_integration = dependency(mac_integration_dep[0], version: '>= ' + mac_integration_dep[1],        required: get_option('mac-integration'))</code></p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/geany/geany/pull/3194#discussion_r867530654">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJY5NTNHNQA7JQMM3HLVJAGNHANCNFSM5VGPSQQA">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAIOWJ3O32VCQC6Y3JLPN6LVJAGNHA5CNFSM5VGPSQQKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOHGF66QY.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><geany/geany/pull/3194/review/965472067</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/pull/3194#discussion_r867530654",
"url": "https://github.com/geany/geany/pull/3194#discussion_r867530654",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>