From patchwork Wed Oct 23 21:28:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 837824 Delivered-To: patch@linaro.org Received: by 2002:adf:a399:0:b0:37d:45d0:187 with SMTP id l25csp44055wrb; Wed, 23 Oct 2024 14:29:14 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUEtDXrKOjjyuumu8oRnYXk19BFz9f4dCWakDjGKRtmhPXiN31vKwPs8a9+QPth/m3v4cl5gg==@linaro.org X-Google-Smtp-Source: AGHT+IFH2MLraXl5WPkwLz66ndxPOcD4pVu2BVg7j0IABAuuqkM4vUm9io/wkWgZ4GwK5bUhKrW1 X-Received: by 2002:a05:620a:248c:b0:7b1:50ba:76e8 with SMTP id af79cd13be357-7b17e56a2e2mr513825585a.23.1729718954430; Wed, 23 Oct 2024 14:29:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1729718954; cv=none; d=google.com; s=arc-20240605; b=HuletgkN8nL8CdtrhSqE27qeQcaL3497KBL74wp1nrjuXRXM4F7Km0Qdo0rsKY5Zif G5rs4h2A9IJcj48Ya9FwKL/Kbv29rGsN5aC+7IH31NxwoJdfo3V6/GjjrMauqWihflOp hufAzFOiEl5FkjYRw4ikvL1x3TaBoUZNrsg7k2YO3qCzXEOzeRF72MvTO78icQjap38G JJnIbkzIz5Q6KrtYjRtXpPbMxW6KyJwWyeECc/0zwH9GeiVGnPheNVe8+e6X2zB/ZOze y9NF/squjjVpMi+aMXg7q/1YEkjAWdvIufPHQuiCFS6cFSwArdtcleJY4u52Ftco/5pT luuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; 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=AlBPxw/KrsdqzVVePdKmZM4R4b6YL6msvYP62z27iUY=; fh=bcRMKJcfkonkiwGTYHppKOfk02CuaOwEhVTi+cv7RfA=; b=R5U7O6Ofqel7Sb/MKrjuLKnyQF2OhBO0afCXttV3vAjz2+YBGhPJ9RW2cnvhOHzSBO KoYJ6p5Ql34pbafjhRTEkcAmsMB3K7M5IlsBpVRut38gW7nq9jmqcKTAToyEAL8Ze0st qCgRe1B/RGshJfI4byafwz962yLz2nml/fdLCiFbDOlApMojJBy2SUonoNChFFYbhRg0 1NcElSGSDUdFs3GQ8dxNjUSG1FqWgRyjzeyX8BD9xx9kxBoh0nfNuHnj1PpXjDLSy7km ZNKchZsUTvrjoRc7P4qM+D7x6hmbClQzgIGpN37dcuhkwjINrhLUyi6aNWZfL1dWriL9 r1GQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xNqVJKpE; 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; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id af79cd13be357-7b1659fb25dsi985622985a.174.2024.10.23.14.29.13 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 23 Oct 2024 14:29:14 -0700 (PDT) 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=xNqVJKpE; 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; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t3iu3-0000np-OE; Wed, 23 Oct 2024 17:28:31 -0400 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 1t3iu0-0000n1-Mz for qemu-devel@nongnu.org; Wed, 23 Oct 2024 17:28:24 -0400 Received: from mail-il1-x12a.google.com ([2607:f8b0:4864:20::12a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t3ity-0007cv-Sg for qemu-devel@nongnu.org; Wed, 23 Oct 2024 17:28:24 -0400 Received: by mail-il1-x12a.google.com with SMTP id e9e14a558f8ab-3a4dacfda3eso1083595ab.2 for ; Wed, 23 Oct 2024 14:28:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1729718902; x=1730323702; 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=AlBPxw/KrsdqzVVePdKmZM4R4b6YL6msvYP62z27iUY=; b=xNqVJKpE1VuyB82Pw0udfAJbbS+CTUHPsVJdnkXRv38sbx/XnWpUVi68a6G/bkLgLp fToE6HGmD+KT53f3OVUdctobGIRYpVF76ZMLudqjyy4SHtuqCXSQ4c80PLdtLGgaA9x1 nvu82y/E/2t1PiXfyYJYyO5M3G8HAqEpqk/Awlw06zC8cv0y1SLFisSfsKJ5Sywrdgjy IC/W9Mo0NCPeMziq9XQ7mDtUN1LeRQlW/xs7eOZl+zbduoKZjw9CudKjVruWoDkoeOUO CQCGUApS9kQbz9a/MSexvzhboQcktpHevd+FOiaDoTsA2/tHuTxs+DZOMpHyUbSnkIH0 mACw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729718902; x=1730323702; 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=AlBPxw/KrsdqzVVePdKmZM4R4b6YL6msvYP62z27iUY=; b=SQVWmQBqE4rsqiDdN4lxm5A/a65wxXei5XdW+4NRkvxK6loEJQWEpxdfk3Edn0vvbx I5GX1oK2af6RCoFnEUl9/OXd5CPK5baxzwKUrrN85WsJLo/jpYHWOo9eGRlSCwPy8c7B erLwdoFSEAKqeYEoocVLwCHZh3i5Qqjg6C1uuAe/tDqje41ULvsCnCz47Q9gjlHmlHlD R2N5zb2LnjaCMKqwRBHHc/oFrUZfTi006gncEKUgkh2osog9mfZyDULR0ztPOev+ILTY g+5hwjyFrd6gtyFs5CrZgyK384+wZiBtZE5ueJUVRsM8Ze/3T77GmQ2CeIr7uGyl7fQY pKPQ== X-Gm-Message-State: AOJu0YyIEk41V1dBhH/ebcw7eoGnckxE+iJJEb0fZ3fbE9KW6+5y1sMD 1aVDIHTleknmR48SC7KfuN/tllkcXqXwZ/J1NAwlB8TV+Tb+AXw5IGTiTb/40ZiP//LOPV2a8Tg 6bcSs2A== X-Received: by 2002:a05:6e02:164d:b0:3a0:9238:d38 with SMTP id e9e14a558f8ab-3a4d5961cccmr42474985ab.10.1729718901676; Wed, 23 Oct 2024 14:28:21 -0700 (PDT) Received: from linaro.. (216-180-64-156.dyn.novuscom.net. [216.180.64.156]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-7eaeaafab5esm7228137a12.17.2024.10.23.14.28.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Oct 2024 14:28:21 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , Pierrick Bouvier , Alexandre Iooss , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , =?utf-8?q?Alex?= =?utf-8?q?_Benn=C3=A9e?= , =?utf-8?q?Philippe_Mathi?= =?utf-8?q?eu-Daud=C3=A9?= , Paolo Bonzini , Thomas Huth , Mahmoud Mandour Subject: [PATCH v3 2/3] meson: build contrib/plugins with meson Date: Wed, 23 Oct 2024 14:28:11 -0700 Message-Id: <20241023212812.1376972-3-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20241023212812.1376972-1-pierrick.bouvier@linaro.org> References: <20241023212812.1376972-1-pierrick.bouvier@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::12a; envelope-from=pierrick.bouvier@linaro.org; helo=mail-il1-x12a.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 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 Tried to unify this meson.build with tests/tcg/plugins/meson.build but the resulting modules are not output in the right directory. Originally proposed by Anton Kochkov, thank you! Solves: https://gitlab.com/qemu-project/qemu/-/issues/1710 Signed-off-by: Pierrick Bouvier --- meson.build | 4 ++++ contrib/plugins/meson.build | 28 ++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 contrib/plugins/meson.build diff --git a/meson.build b/meson.build index bdd67a2d6d1..3ea03c451ba 100644 --- a/meson.build +++ b/meson.build @@ -3678,6 +3678,10 @@ subdir('accel') subdir('plugins') subdir('ebpf') +if 'CONFIG_TCG' in config_all_accel + subdir('contrib/plugins') +endif + common_user_inc = [] subdir('common-user') diff --git a/contrib/plugins/meson.build b/contrib/plugins/meson.build new file mode 100644 index 00000000000..63a32c2b4f0 --- /dev/null +++ b/contrib/plugins/meson.build @@ -0,0 +1,28 @@ +contrib_plugins = ['bbv', 'cache', 'cflow', 'drcov', 'execlog', 'hotblocks', + 'hotpages', 'howvec', 'hwprofile', 'ips', 'stoptrigger'] +if host_os != 'windows' + # lockstep uses socket.h + contrib_plugins += 'lockstep' +endif + +t = [] +if get_option('plugins') + foreach i : contrib_plugins + if host_os == 'windows' + t += shared_module(i, files(i + '.c') + 'win32_linker.c', + include_directories: '../../include/qemu', + link_depends: [win32_qemu_plugin_api_lib], + link_args: ['-Lplugins', '-lqemu_plugin_api'], + dependencies: glib) + else + t += shared_module(i, files(i + '.c'), + include_directories: '../../include/qemu', + dependencies: glib) + endif + endforeach +endif +if t.length() > 0 + alias_target('contrib-plugins', t) +else + run_target('contrib-plugins', command: find_program('true')) +endif