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 CB430440B4; Fri, 24 May 2024 10:37:12 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8806C402F2; Fri, 24 May 2024 10:37:08 +0200 (CEST) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mails.dpdk.org (Postfix) with ESMTP id 9BEF2402BF for ; Fri, 24 May 2024 10:37:06 +0200 (CEST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id E4730DA7; Fri, 24 May 2024 01:37:29 -0700 (PDT) Received: from ampere-altra-2-1.usa.Arm.com (ampere-altra-2-1.usa.arm.com [10.118.91.158]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 972323F766; Fri, 24 May 2024 01:37:05 -0700 (PDT) From: Paul Szczepanek To: dev@dpdk.org Cc: mb@smartsharesystems.com, Paul Szczepanek , Honnappa Nagarahalli , Jack Bond-Preston , Bruce Richardson Subject: [PATCH v11 1/6] lib: allow libraries with no sources Date: Fri, 24 May 2024 08:36:46 +0000 Message-Id: <20240524083651.482541-2-paul.szczepanek@arm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240524083651.482541-1-paul.szczepanek@arm.com> References: <20230927150854.3670391-2-paul.szczepanek@arm.com> <20240524083651.482541-1-paul.szczepanek@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Allow header only libraries. Signed-off-by: Paul Szczepanek Reviewed-by: Honnappa Nagarahalli Reviewed-by: Jack Bond-Preston Acked-by: Bruce Richardson --- lib/meson.build | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/lib/meson.build b/lib/meson.build index 179a272932..7c90602bf5 100644 --- a/lib/meson.build +++ b/lib/meson.build @@ -222,6 +222,22 @@ foreach l:libraries includes += include_directories(l) dpdk_includes += include_directories(l) + # special case for header only libraries + if sources.length() == 0 + shared_dep = declare_dependency(include_directories: includes, + dependencies: shared_deps) + static_dep = declare_dependency(include_directories: includes, + dependencies: static_deps) + set_variable('shared_rte_' + name, shared_dep) + set_variable('static_rte_' + name, static_dep) + dpdk_shared_lib_deps += shared_dep + dpdk_static_lib_deps += static_dep + if developer_mode + message('lib/@0@: Defining dependency "@1@"'.format(l, name)) + endif + continue + endif + if developer_mode and is_windows and use_function_versioning message('@0@: Function versioning is not supported by Windows.'.format(name)) endif -- 2.25.1