From nobody Fri May 17 02:41:14 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) client-ip=63.128.21.124; envelope-from=philmd@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) smtp.mailfrom=philmd@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1611667604; cv=none; d=zohomail.com; s=zohoarc; b=lAtkEaOxPN5yuT790j/aYJYaEhtw0t+f92GH/IxpLttenmptov9hrzSH4riMUoDqQpgcQuNcLyyalDG94P40WhKoGMJLkRVnHE3Z43eMgahxmZzsiuaTjQtLbBrl3LzCJ09oo1VMqwKbWbMosYvobV4zok/gBraNBHYdMCCQOv4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1611667604; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:MIME-Version:Message-ID:Subject:To; bh=zjsffpBndkgZTC+XO50Qgbxt5f/ILUCDNfrjnHEciHw=; b=LYp8VOEAcq7RP7gfRMD7zubiCHerBJfJA+vCo9uF7mEwAZWKtAjtZxPZy3o5iK5PoeeaEk3WGpGXSGP469dllSnxyzD+yTfX2tcBcodoSiTGq9lrEwZlc1q4oVMG0iamcXpPCLeGJZeWZWEZX4RUk6Y7l8XTh8p0dg7g+Biicyk= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) smtp.mailfrom=philmd@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by mx.zohomail.com with SMTPS id 1611667604089902.0486789918576; Tue, 26 Jan 2021 05:26:44 -0800 (PST) Received: from mail-ed1-f70.google.com (mail-ed1-f70.google.com [209.85.208.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-422-vZ0If_8sPKW-CabXRJOCHQ-1; Tue, 26 Jan 2021 08:26:41 -0500 Received: by mail-ed1-f70.google.com with SMTP id f21so9404605edx.23 for ; Tue, 26 Jan 2021 05:26:41 -0800 (PST) Return-Path: Return-Path: Received: from x1w.redhat.com (13.red-83-57-169.dynamicip.rima-tde.net. [83.57.169.13]) by smtp.gmail.com with ESMTPSA id dm1sm12157481edb.72.2021.01.26.05.26.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Jan 2021 05:26:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1611667603; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=zjsffpBndkgZTC+XO50Qgbxt5f/ILUCDNfrjnHEciHw=; b=ONAqyXJJWgxhuN7Ky3oIiUrfXo2IOmkISUcIxpLSygEwMewmmJCeugGjZjnTL9RQuG9yiV u9S2HO+5quocUV5C+VcmLgV+BobN+xOINtPSJH43z0bffMWMcM4QBA2UgcK9baUqoSqPtP ATeY/ABuxabG+W7jRiuZBvhfeWbBKL0= X-MC-Unique: vZ0If_8sPKW-CabXRJOCHQ-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=zjsffpBndkgZTC+XO50Qgbxt5f/ILUCDNfrjnHEciHw=; b=NAJNCXoqXf4Sq9dkontOXR3g/P3YvCbJXAE4+kggHlyJx6cnq/Le9rAz/14w0ERMLr iKDxIGYtMTeDdj76vw8oCev+6Nz6GR/AonVzuux99py2I64EEDpXm/M+hyTNcqZB6Z31 7HtYEbcJNGSg/dbh/zGZL0FlH4YxBww0HfIGtgDoOFYOf5tAgttmgg8WLZ3SSCiZICa4 28KLfCrj7Xrn843W1qcvUdg48CNrDmfuvqzHmN56kv8d9mPwXhwUiG5ktzCEvIxuyHVo 8KKXepUUeZe36GlkGCwUZ9BANXAsb1+66BD4zVLGK1y7IkfV0/fqLBsN+YyXs9CHQRK2 xFHA== X-Gm-Message-State: AOAM533gkPxVuorUQi0PWrBQFGCbHrfm7PtzUntzEsqgCZy81Zh4Cw37 ZddRpzwEtkXJ2kYBR5y4I7brJQT4uQ6mb7DlqhB0L4C5AX4GKG1v4tANYQmS/6JSNEOwV8g4lrF oWz3TWWTiHDB9FA== X-Received: by 2002:a17:906:858f:: with SMTP id v15mr3385623ejx.238.1611667600031; Tue, 26 Jan 2021 05:26:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJz0+FmUodxMqt+evlLBipvydoLmzzOScZvPw32GWwtc7yo6ZhDjp46+r1aSE13seGhDN+npkg== X-Received: by 2002:a17:906:858f:: with SMTP id v15mr3385619ejx.238.1611667599910; Tue, 26 Jan 2021 05:26:39 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Gerd Hoffmann , Roman Bolshakov , Christophe de Dinechin , Paolo Bonzini , Peter Maydell , Brendan Shanks , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH] meson: Restrict Cocoa framework check to macOS Date: Tue, 26 Jan 2021 14:26:37 +0100 Message-Id: <20210126132637.3175037-1-philmd@redhat.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=philmd@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Do not check for Cocoa framework if the OS is not macOS. Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- meson.build | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 35a9eddf5cf..9a9ee5408b9 100644 --- a/meson.build +++ b/meson.build @@ -369,7 +369,10 @@ endif endif =20 -cocoa =3D dependency('appleframeworks', modules: 'Cocoa', required: get_op= tion('cocoa')) +cocoa =3D not_found +if targetos =3D=3D 'darwin' + cocoa =3D dependency('appleframeworks', modules: 'Cocoa', required: get_= option('cocoa')) +endif if cocoa.found() and get_option('sdl').enabled() error('Cocoa and SDL cannot be enabled at the same time') endif --=20 2.26.2