From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 7D66B43CA6; Fri, 15 Mar 2024 07:30:26 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id EAB9642E6B; Fri, 15 Mar 2024 07:30:25 +0100 (CET) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id 6710842DCA for ; Fri, 15 Mar 2024 07:30:24 +0100 (CET) Received: by linux.microsoft.com (Postfix, from userid 1086) id ABF8520B74C3; Thu, 14 Mar 2024 23:30:23 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com ABF8520B74C3 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1710484223; bh=+xrHICIioWpl4hd7AA+EgZS16wE6KICDIS1nz3zN+uw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=crx/mjr4TXqQxnMSext/RK0RnN/Pnxl8YGgRRL3UmQGa6FAzRLpBPc4OmN7ZPQDG4 axs8SlxFHm5aNiV4Try0vB7l7DCkf5fgvrbFBRs+8pertPx5MM3ez7WVCGeQK/OEWT tBgNjGZNR1QHngP19iWI6IIA9zyd52rxVbc39Ejg= From: Tyler Retzlaff To: dev@dpdk.org Cc: Bruce Richardson , Harman Kalra , Tyler Retzlaff Subject: [PATCH v2 2/2] buildtools: when building static library use static deps Date: Thu, 14 Mar 2024 23:30:22 -0700 Message-Id: <1710484222-17310-3-git-send-email-roretzla@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1710484222-17310-1-git-send-email-roretzla@linux.microsoft.com> References: <1710445477-23848-1-git-send-email-roretzla@linux.microsoft.com> <1710484222-17310-1-git-send-email-roretzla@linux.microsoft.com> X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Use static deps when default_library=static and use shared deps when using default_library=shared. Signed-off-by: Tyler Retzlaff --- buildtools/chkincs/meson.build | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/buildtools/chkincs/meson.build b/buildtools/chkincs/meson.build index f2dadca..66245a5 100644 --- a/buildtools/chkincs/meson.build +++ b/buildtools/chkincs/meson.build @@ -20,11 +20,19 @@ sources += gen_c_files.process(dpdk_chkinc_headers) # some driver SDK headers depend on these two buses, which are mandatory in build # so we always include them in deps list -deps = [get_variable('shared_rte_bus_vdev'), get_variable('shared_rte_bus_pci')] -# add the rest of the libs to the dependencies -foreach l:dpdk_libs_enabled - deps += get_variable('shared_rte_' + l) -endforeach +if is_shared_enabled + deps = [get_variable('shared_rte_bus_vdev'), get_variable('shared_rte_bus_pci')] + # add the rest of the libs to the dependencies + foreach l:dpdk_libs_enabled + deps += get_variable('shared_rte_' + l) + endforeach +else + deps = [get_variable('static_rte_bus_vdev'), get_variable('static_rte_bus_pci')] + # add the rest of the libs to the dependencies + foreach l:dpdk_libs_enabled + deps += get_variable('static_rte_' + l) + endforeach +endif executable('chkincs', sources, c_args: cflags, -- 1.8.3.1