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 B41054374A; Wed, 20 Dec 2023 15:22:12 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3624B410E4; Wed, 20 Dec 2023 15:22:10 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.151]) by mails.dpdk.org (Postfix) with ESMTP id D33A040EE4 for ; Wed, 20 Dec 2023 15:22:08 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1703082129; x=1734618129; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=L/8iQkGJxehxmmE1+JQelzs2Elo8OI74gyaFId/sFmY=; b=h/9Fj0I8DQP17GfS2QrqGmRYjIJQrIIzR9siYHt34V3Yq1om+rh31Lqh R7Qe4AasJAoJOwJrpy8h70pb4PFeUNj+6HGDSxlWpI8I+BJSXmnXWk3FJ h3w8KycrXQQHkyX85ZFDa0bGdORTDQggM2rJbwbgF23RFJBp3dXPalZXq yTZ6sOU2/HiQ6t7qpyRIn57w6Xw//bghWtjDfDbPAD1rhoz9fadRmPcrP VL08M+h9V65/0nVGTuYh+KOHTyrbyKqiGHQGCgy03u7O5VT3AzkatC2gT 5ZQUhJnKA8Z3/Toi/WMfibjGxJPPIas/Mg5EzE+gZyuFvJWB9tu62WbrQ Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10930"; a="375974396" X-IronPort-AV: E=Sophos;i="6.04,291,1695711600"; d="scan'208";a="375974396" 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:08 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10930"; a="899730849" X-IronPort-AV: E=Sophos;i="6.04,291,1695711600"; d="scan'208";a="899730849" Received: from unknown (HELO silpixa00401385.ir.intel.com) ([10.237.214.148]) by orsmga004.jf.intel.com with ESMTP; 20 Dec 2023 06:22:07 -0800 From: Bruce Richardson To: dev@dpdk.org Cc: mb@smartsharesystems.com, Bruce Richardson Subject: [PATCH v3 1/3] build: track mandatory rather than optional libs Date: Wed, 20 Dec 2023 14:21:50 +0000 Message-Id: <20231220142152.492556-2-bruce.richardson@intel.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20231220142152.492556-1-bruce.richardson@intel.com> References: <20231103162830.593702-1-bruce.richardson@intel.com> <20231220142152.492556-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 DPDK now has more optional libraries than mandatory ones, so invert the list stored in the meson.build file from the optional ones to the "always_enable" ones. As well as being a shorter list: * we can remove the loop building up the "always_enable" list dynamically from the optional list * it better aligns with the drivers/meson.build file which maintains an always_enable list. Signed-off-by: Bruce Richardson Acked-by: Morten Brørup --- lib/meson.build | 70 +++++++++++++++++-------------------------------- 1 file changed, 24 insertions(+), 46 deletions(-) diff --git a/lib/meson.build b/lib/meson.build index 6c143ce5a6..8c922d3097 100644 --- a/lib/meson.build +++ b/lib/meson.build @@ -75,52 +75,29 @@ if is_ms_compiler ] endif -optional_libs = [ - 'bbdev', - 'bitratestats', - 'bpf', - 'cfgfile', - 'compressdev', - 'cryptodev', - 'dispatcher', - 'distributor', - 'dmadev', - 'efd', - 'eventdev', - 'gpudev', - 'graph', - 'gro', - 'gso', - 'ip_frag', - 'ipsec', - 'jobstats', - 'latencystats', - 'member', - 'metrics', - 'mldev', - 'node', - 'pcapng', - 'pdcp', - 'pdump', - 'pipeline', - 'port', - 'power', - 'rawdev', - 'regexdev', - 'reorder', - 'sched', - 'security', - 'table', - 'vhost', +always_enable = [ + 'acl', + 'cmdline', + 'eal', + 'ethdev', + 'fib', + 'hash', + 'kvargs', + 'log', + 'lpm', + 'mbuf', + 'mempool', + 'meter', + 'net', + 'pci', + 'rcu', + 'rib', + 'ring', + 'stack', + 'telemetry', + 'timer', ] -always_enable = [] -foreach l:libraries - if not optional_libs.contains(l) - always_enable += l - endif -endforeach - enable_deprecated_libs = [] foreach l:run_command(list_dir_globs, get_option('enable_deprecated_libs'), check: true).stdout().split() @@ -136,9 +113,10 @@ enable_libs = run_command(list_dir_globs, get_option('enable_libs'), check: true require_libs = true if enable_libs.length() == 0 require_libs = false - enable_libs += optional_libs + enable_libs = libraries +else + enable_libs += always_enable endif -enable_libs += always_enable default_cflags = machine_args default_cflags += ['-DALLOW_EXPERIMENTAL_API'] -- 2.40.1