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 E4A1C44101; Wed, 29 May 2024 12:23:11 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7B86E402CD; Wed, 29 May 2024 12:23:11 +0200 (CEST) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mails.dpdk.org (Postfix) with ESMTP id 137FE402F1 for ; Wed, 29 May 2024 12:23:10 +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 82F551596; Wed, 29 May 2024 03:23:33 -0700 (PDT) Received: from ampere-altra-2-3.austin.arm.com (ampere-altra-2-3.austin.arm.com [10.118.14.97]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 499C23F7B4; Wed, 29 May 2024 03:23:09 -0700 (PDT) From: Paul Szczepanek To: dev@dpdk.org Cc: mb@smartsharesystems.com, Paul Szczepanek , Honnappa Nagarahalli , Bruce Richardson Subject: [PATCH v12 1/6] lib: allow libraries with no sources Date: Wed, 29 May 2024 10:22:37 +0000 Message-Id: <20240529102242.1137076-2-paul.szczepanek@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240529102242.1137076-1-paul.szczepanek@arm.com> References: <20230927150854.3670391-2-paul.szczepanek@arm.com> <20240529102242.1137076-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 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