From patchwork Tue Nov 7 14:23:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 741897 Delivered-To: patch@linaro.org Received: by 2002:adf:fd90:0:b0:32d:baff:b0ca with SMTP id d16csp1648154wrr; Tue, 7 Nov 2023 06:27:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IG51ubIJQ8yD1N/GbaeOIQlihoXnwDIwkR6E5MK8ecSu1A8PBOSEzMc7bIDkYJ/jvsNvVC0 X-Received: by 2002:a5d:6051:0:b0:32d:a4c4:f700 with SMTP id j17-20020a5d6051000000b0032da4c4f700mr22871609wrt.38.1699367234183; Tue, 07 Nov 2023 06:27:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699367234; cv=none; d=google.com; s=arc-20160816; b=d1FMrXqTAr0G8h+ScAAVZ5N0RlZbH4GjPGdAFYYgwB4nPWa31STccMOvvdHu1d0J00 6He0vkzplEDaLEOdlubJ3NXSm1PdSCRAQM19qDsPBI3d00gGUwQQ50XanUepO8Rn0Iyl 7gLryju6+7Jid1eZqNyViWbSdm4/4lixMTuKQqez+bQs6HOmUZo3+uLozFJ5cl0yNibR iurNaT4Hx47PZckkiTImp+17j4qUVBRAD9nRODa3+4QcTAg+13lTbwgKhYn4rQnZf+Qy P8wNqcDxyAv8HAp17h2qfKvmx74XLfh1BMU+a4neI0fQZPMBaR66U/9OdgUcSq7lT9u2 jVEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=wH+UzP6R6aU8otN15bfPCxhN8TIF9sNRq1R7pMAWDew=; fh=h1RTgm7MTXOHlxP0CloJS7+ybKDHZN7YAi+qxF64bRE=; b=rr+dIUbbWXfUM0f6QXG0w+FyUQc56+3xMCozr0ye/0B3ihr1JhnUQAjI4JcBu2GXlZ 4J7PmhNkTAnpvtFgOI134eVdfMJ3fIyNffSN5ZnyckD8xsglNg6R0VdAVzLfxBHfdNv5 mdGoM/PpzPIxSQmaGrsQTTSKwQl3fl2RZDfROq/lw0MJYc2JJENtwL8n7b8JEmi6bJgf vq0RIB6iISzxbaB35qFrRo+eU7tK+2o306Uk6kQCvsF7vFttAn/fT/JrbIN0+exL3yUO IwQz7vMSnoqtlba0GfTCViAjhAE0zQg7qeO0pHzUVi3XB1iOt7+o0/1RGTIYIZtCDoAz OWmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="ipfa/Zis"; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id o10-20020a5d670a000000b0032161b92c35si1698923wru.489.2023.11.07.06.27.14 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 07 Nov 2023 06:27:14 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="ipfa/Zis"; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r0N0K-0004Tt-2x; Tue, 07 Nov 2023 09:24:32 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r0N03-0004GU-W7 for qemu-devel@nongnu.org; Tue, 07 Nov 2023 09:24:16 -0500 Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r0N02-0007ct-98 for qemu-devel@nongnu.org; Tue, 07 Nov 2023 09:24:15 -0500 Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-40906fc54fdso43946525e9.0 for ; Tue, 07 Nov 2023 06:24:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1699367051; x=1699971851; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=wH+UzP6R6aU8otN15bfPCxhN8TIF9sNRq1R7pMAWDew=; b=ipfa/ZisHgt7tKHn+CrTed737FhFIWb5ulOxw9gNsVDPbALldTd0jDM61kfItrIeP0 BluWCDhfRSBP6dTMeldJ6W59qC5LWtAzLnWOQcGXsbTCos9mgudCKjY+3pQ7LJiEDbNQ PJF1WURtttDCU0Hdo9EC7ZfCru8q3q+PtmTXssejaF0x53kNXc/aHXh2ESwG+UxTTBVj 3L1LCV+uDGzolQdaHdojqTyO5pr+BfN5MTiitJqbpIKiivwJ276yPVZxWxgVI4IOUNLJ jfhgszetNA0RHtu14FLbx6LpF1nJRuQQbJr4Nv3xtaWbx2Q52x8/JlzcoQK4VN7zo/yq sqQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699367051; x=1699971851; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=wH+UzP6R6aU8otN15bfPCxhN8TIF9sNRq1R7pMAWDew=; b=CvK48HFaKA0Ez/Wz8Sd3uj60vqU+cRd/+9CUYJBgJhISlGnRV+meJcAseoWdkHKGvi wQVXrfMrg/NEjmdozmc/MKN1nPw1SSaCqnl+/ZBwCWdkp1TJeJUWec/63pVnD2/eo6et 6VQEZ+bh/was7/kYrGr1Jb5J6rcVBk6TAH/vaHQf9hfvVpo7eOHacW3AUCOPumabXlfL Q+RrlEg/uhdQsCfninTWwdLrBV4ZGBvGBtzlenWLk9WirrI3x6h6wqJUtWRIpD/aPKGK 6yQ2ZgKCDztFRIckT1mgqfwFieKF+R/skpxw+SeaRCJ93PJBfzL2Gc13gIR4Nrdt6YaT ZaFg== X-Gm-Message-State: AOJu0YzrD3wQD5Hd1IDGWKoYGMoskMv2544qx7/vgGiKYx/8KhPuY/Y7 9NRA/qFJsQZ1n9WW4QMkCtbKeA== X-Received: by 2002:a05:600c:3112:b0:407:8ee2:9986 with SMTP id g18-20020a05600c311200b004078ee29986mr2445999wmo.26.1699367051178; Tue, 07 Nov 2023 06:24:11 -0800 (PST) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id bh7-20020a05600c3d0700b00401b242e2e6sm16058402wmb.47.2023.11.07.06.24.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Nov 2023 06:24:05 -0800 (PST) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 2370365765; Tue, 7 Nov 2023 14:23:56 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Greg Manning , =?utf-8?q?Alex_Benn=C3=A9e?= , =?utf-8?q?Philippe_M?= =?utf-8?q?athieu-Daud=C3=A9?= , Paolo Bonzini , Thomas Huth , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= Subject: [PULL 17/23] plugins: allow plugins to be enabled on windows Date: Tue, 7 Nov 2023 14:23:48 +0000 Message-Id: <20231107142354.3151266-18-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231107142354.3151266-1-alex.bennee@linaro.org> References: <20231107142354.3151266-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32b; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x32b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org From: Greg Manning allow plugins to be enabled in the configure script on windows. Also, add the qemu_plugin_api.lib to the installer. Signed-off-by: Greg Manning Reviewed-by: Alex Bennée Message-Id: <20231102172053.17692-5-gmanning@rapitasystems.com> Reviewed-by: Philippe Mathieu-Daudé [AJB: add check for dlltool to configure] Signed-off-by: Alex Bennée Message-Id: <20231106185112.2755262-17-alex.bennee@linaro.org> diff --git a/configure b/configure index e50ec99fe2..abcb199aa8 100755 --- a/configure +++ b/configure @@ -1011,9 +1011,9 @@ if test "$targetos" = "bogus"; then fi # test for any invalid configuration combinations -if test "$targetos" = "windows"; then +if test "$targetos" = "windows" && ! has "$dlltool"; then if test "$plugins" = "yes"; then - error_exit "TCG plugins not currently supported on Windows platforms" + error_exit "TCG plugins requires dlltool to build on Windows platforms" fi plugins="no" fi diff --git a/meson.build b/meson.build index 4848930680..d7d841e71e 100644 --- a/meson.build +++ b/meson.build @@ -3944,6 +3944,11 @@ endforeach if get_option('plugins') install_headers('include/qemu/qemu-plugin.h') + if targetos == 'windows' + # On windows, we want to deliver the qemu_plugin_api.lib file in the qemu installer, + # so that plugin authors can compile against it. + install_data(win32_qemu_plugin_api_lib, install_dir: 'lib') + endif endif subdir('qga')