From patchwork Mon May 15 09:58:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kieran Bingham X-Patchwork-Id: 18628 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 6B81FC3285 for ; Mon, 15 May 2023 09:58:21 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 83C5D62867; Mon, 15 May 2023 11:58:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1684144699; bh=FSzC/IMwHM62qtb+i6aNdngHiuaFX2QkIWzj/DG7dRY=; 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=LOLsT7pHCUDKNJSASZasha+Ieo3OXgEdKxuQ6bwLhu4miNfeLBRQDLGqVfmqLX+jl R4/Nzo231ktepp8018gv9jKia/rnXbxzBKOtc6e9oBdZPBZSgBIeBwyNPo1r7U8YWW uFeUDmSg13TzQKSLLAOQR95mRwrH6pHApDUtfQb3XlTrUiPwzIe2s8phAyPUjbVoiY 2Njl8rcM1oZLYQ6SmDWEd75NFq+ruta+X46E0XZlsp1pRBphYxAWEmC/p5jlyrwQTG 2yYdMbNB/gttarGh0S4hf1QsnZW5BXYt/bOPz1hivZE/u4yRvvtdta+dIs/K+nBqD3 +aOSL8b0hDrBA== Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 506336039A for ; Mon, 15 May 2023 11:58:17 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="gNjvOQeP"; 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 A8FD16CF; Mon, 15 May 2023 11:58:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1684144686; bh=FSzC/IMwHM62qtb+i6aNdngHiuaFX2QkIWzj/DG7dRY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gNjvOQePm6R/wDJISTEeC7k37G4DP/l2aJGjy5RfXbO0oJ12wh29Kh3GuT71GmI9f 4dJCACtzy3qI5QT5ldVQUsQBCJM8Y1IFQB4BzrO7oN54RLy1M8p+iqAe/jGsMV4uPP A2nSQRHmXa8RVknJgSS/X9bb2/M8De0Wi3CfCy4k= To: libcamera devel Date: Mon, 15 May 2023 10:58:12 +0100 Message-Id: <20230515095812.3409747-3-kieran.bingham@ideasonboard.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230515095812.3409747-1-kieran.bingham@ideasonboard.com> References: <20230515095812.3409747-1-kieran.bingham@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v2 2/2] 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 --- 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')