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 3B676A0093; Thu, 13 Oct 2022 17:31:52 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AF2D243005; Thu, 13 Oct 2022 17:31:50 +0200 (CEST) Received: from smail.rz.tu-ilmenau.de (smail.rz.tu-ilmenau.de [141.24.186.67]) by mails.dpdk.org (Postfix) with ESMTP id 3129142F7F for ; Thu, 13 Oct 2022 17:31:47 +0200 (CEST) Received: from localhost.localdomain (dialin-ip-23-165.ilmenau.net [80.88.23.165]) by smail.rz.tu-ilmenau.de (Postfix) with ESMTPA id CCE36580099; Thu, 13 Oct 2022 17:31:46 +0200 (CEST) From: Markus Theil To: dev@dpdk.org Cc: Bruce Richardson , Thorben Roemer Subject: [PATCH v2 2/2] build: export dpdk_includes for subproject usage. Date: Thu, 13 Oct 2022 17:31:35 +0200 Message-Id: <20221013153135.7420-2-markus.theil@tu-ilmenau.de> X-Mailer: git-send-email 2.38.0 In-Reply-To: <20221013153135.7420-1-markus.theil@tu-ilmenau.de> References: <20221012144704.77973-1-markus.theil@tu-ilmenau.de> <20221013153135.7420-1-markus.theil@tu-ilmenau.de> 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 From: Thorben Roemer In order to perform things like LTO more easily in our DPDK applications, we use DPDK as a meson subproject. Also export includes in order to be usable in this context. Signed-off-by: Thorben Roemer --- lib/meson.build | 1 + meson.build | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/meson.build b/lib/meson.build index f858844fa2..85113d0b47 100644 --- a/lib/meson.build +++ b/lib/meson.build @@ -190,6 +190,7 @@ foreach l:libraries libname = 'rte_' + name includes += include_directories(l) + dpdk_includes += include_directories(l) if developer_mode and is_windows and use_function_versioning message('@0@: Function versioning is not supported by Windows.'.format(name)) diff --git a/meson.build b/meson.build index 1d35a255c3..d1cf039297 100644 --- a/meson.build +++ b/meson.build @@ -32,6 +32,7 @@ cc = meson.get_compiler('c') dpdk_source_root = meson.current_source_dir() dpdk_build_root = meson.current_build_dir() dpdk_conf = configuration_data() +dpdk_includes = [] dpdk_libraries = [] dpdk_static_libraries = [] dpdk_shared_lib_deps = [] -- 2.38.0