From patchwork Tue Jul 4 14:24:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kieran Bingham X-Patchwork-Id: 18779 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id B45FAC32AA for ; Tue, 4 Jul 2023 14:24:44 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id D4982628C9; Tue, 4 Jul 2023 16:24:42 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1688480682; bh=cD4Hvbmb2G50nTUJX/6r/N6t+dp3BBkvVFYGPZob4ZM=; h=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=oskWHZaQAYM4I7VC9pcVLsgllefvRVhF6Xf2HP6ljzm7RdzNdniyG7ql6a2+l8LGz iYjQm7318woG5LZbnpYfVtGWuFJIoDvkjhPtPel8W7aHj6E+Akjt1s++qxOqGw6PxR S8cHC9Dj62khP847YNY01gVEu6sz7Zv6H6XBL1iQ5x5lUl9vBJg1rjdt6ildrGiNyK Zp93Pos31yy/OIsGakbnfLDS/Zbrs5oxSOAizhgermopYWd23/LSpk3HSUKJeOLlp4 BPD8IqZOOJqaiKqpQ7MKZNP1DfHC2XSH9PQWY8+ZL+rwDKwEdcmUKf3zefldIUcPQD zyoFbKaD8GQfg== Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id DEAA6628C0 for ; Tue, 4 Jul 2023 16:24:39 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="KGCkIY5k"; dkim-atps=neutral Received: from Monstersaurus.local (aztw-30-b2-v4wan-166917-cust845.vm26.cable.virginm.net [82.37.23.78]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id A35536DF; Tue, 4 Jul 2023 16:23:55 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1688480635; bh=cD4Hvbmb2G50nTUJX/6r/N6t+dp3BBkvVFYGPZob4ZM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KGCkIY5kPFnuL7iZ0hfWUQPb8fCI0/GVWp3c4nlbXRNxwIM75/nOK4WwyZhHhDrQt IVZ+hPfE3pCySUW7gahDKzo64WpI9gcOj1+ZLg1BAUATYPa/spgU3Pn8/Fo1m4hGnv yX8nsekJtgzFJcI+5gV3cKLzUw/f0JSU0je/ASQ4= To: libcamera devel Date: Tue, 4 Jul 2023 15:24:35 +0100 Message-Id: <20230704142435.3490823-4-kieran.bingham@ideasonboard.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230704142435.3490823-1-kieran.bingham@ideasonboard.com> References: <20230704142435.3490823-1-kieran.bingham@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v3 3/3] meson: Use x.y soname versioning X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Kieran Bingham via libcamera-devel From: Kieran Bingham Reply-To: Kieran Bingham Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Now that we identify ABI breakages, provide incremental releases which can support backwards compatible linkage across release points that have a compatible ABI. Introduction of this commit does not convey that libcamera now has a stable API, but that patch releases with a common minor number (0.minor.patch) may potentially be used by applications without recompilation and linkage against new releases. Signed-off-by: Kieran Bingham Reviewed-by: Laurent Pinchart Reviewed-by: Umang Jain --- meson.build | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/meson.build b/meson.build index e1fd924307f7..9c1e708131eb 100644 --- a/meson.build +++ b/meson.build @@ -56,15 +56,13 @@ if libcamera_version != project_version libcamera_git_version += '-nvm' endif -# Until we make ABI compatible releases, the full libcamera version is used as -# the soname. No ABI/API compatibility is guaranteed between releases (x.y.z). -# -# When automatic ABI based detection is used to increment the version, this -# will bump the minor number (x.y). +# The major and minor libcamera version components are used as the soname. +# No ABI/API compatibility is guaranteed between releases (x.y). # # When we declare a stable ABI/API we will provide a 1.0 release and the # soversion at that point will be the 'major' release value (x). -libcamera_soversion = libcamera_version +semver = libcamera_version.split('.') +libcamera_soversion = semver[0] + '.' + semver[1] summary({ 'Sources': libcamera_git_version, }, section : 'Versions')