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 692A74374A; Wed, 20 Dec 2023 15:22:08 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 184AC40A89; Wed, 20 Dec 2023 15:22:07 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.151]) by mails.dpdk.org (Postfix) with ESMTP id 8B435402DD for ; Wed, 20 Dec 2023 15:22:05 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1703082125; x=1734618125; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=kXOX+zOqQAXzNV75Ako3FxUsWLA73Uw7mVJxmaYscFc=; b=nqxqR92yuSV5Je456CKncZHUWAI8D4TXKX3E4hK1rHquv08HogcqTaLR 9AXNqMa8uz10xvBOEp3tICw0/DAXY7+r2IZCDrEtCHbwAGwwClFGHbMTH fUSU/RhBSxmsvJkR9E/xf2fyMxfMc7d9p1sKucF06EpeLMuEuTndQwnla 5p8HoWulIErXddOGNCfHAfkZLU/bBdFXWjvYiw7WH+4xpt1h+L5FYkeDb q/5APZyvFENJy7VigT0DStyrladZIjUIZXL74OEpNqvFifrgGZgUPrfsk aHrFuFsfXXz0Ha3b4fZ7bUBqntVcFkMcxOebaDJMZcxams7LDAqTkJHnf A==; X-IronPort-AV: E=McAfee;i="6600,9927,10930"; a="375974389" X-IronPort-AV: E=Sophos;i="6.04,291,1695711600"; d="scan'208";a="375974389" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Dec 2023 06:22:04 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10930"; a="899730840" X-IronPort-AV: E=Sophos;i="6.04,291,1695711600"; d="scan'208";a="899730840" Received: from unknown (HELO silpixa00401385.ir.intel.com) ([10.237.214.148]) by orsmga004.jf.intel.com with ESMTP; 20 Dec 2023 06:22:03 -0800 From: Bruce Richardson To: dev@dpdk.org Cc: mb@smartsharesystems.com, Bruce Richardson Subject: [PATCH v3 0/3] Improve optional lib support Date: Wed, 20 Dec 2023 14:21:49 +0000 Message-Id: <20231220142152.492556-1-bruce.richardson@intel.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20231103162830.593702-1-bruce.richardson@intel.com> References: <20231103162830.593702-1-bruce.richardson@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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 This patchset builds on the previous v1 and v2, and the discussion which followed about what libraries should be optional. While still a long way to go from the position suggested in the v2 discussion, this set moves us a bit further along the road. The first patch is a direct v3 from previous versions, changing the tracking from a list of optional libs to a list of mandatory ones. The second patch then knocks off another 5 libs off the mandatory list - all are libs which should have few dependencies in other components, but which some common sample apps like l3fwd depend upon. It should be possible to make other libs optional in future, but to do so likely requires code-changes to #ifdef out support in places. To that end, patch 3 is an RFC to add support for "optional libs" to the build system. For now, nothing uses this, but it may be useful if someone does want to take on the task of removing a hard dependency from one component on another and making it optional. Bruce Richardson (3): build: track mandatory rather than optional libs build: remove 5 libs from mandatory list build: RFC - add support for optional dependencies app/test/meson.build | 4 +-- drivers/meson.build | 7 +++++ lib/meson.build | 72 ++++++++++++++++---------------------------- 3 files changed, 35 insertions(+), 48 deletions(-) -- 2.40.1