|
From: | Paolo Bonzini |
Subject: | Re: [PATCH v2 1/2] Replacing CONFIG_VNC_PNG with CONFIG_PNG |
Date: | Tue, 15 Mar 2022 10:17:18 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 |
On 3/15/22 05:47, Kshitij Suri wrote:
+png = dependency('libpng', required: get_option('png'), + method: 'pkg-config', kwargs: static_kwargs)
The full way to write it would be: png = not_found if get_option('png').allowed() and have_system png = dependency('libpng', required: get_option('png'), method: 'pkg-config', kwargs: static_kwargs) endif but we can now also use png = dependency('libpng', required: get_option('png').disable_auto_if(not have_system), method: 'pkg-config', kwargs: static_kwargs) Use the one that you prefer. Paolo
[Prev in Thread] | Current Thread | [Next in Thread] |