From patchwork Mon May 1 11:44:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kieran Bingham X-Patchwork-Id: 18576 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 4241BBDCBD for ; Mon, 1 May 2023 11:44:58 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id C2A7B633B4; Mon, 1 May 2023 13:44:57 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1682941497; bh=8elFZ1gQQPR5NM5cenhJhGzUiqIyJeFoX3/4nMM62Rw=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=QBH7kpCkmtDobDBrr80n/sjnYgDRaASSK10oP1lCmr0JXbFMmnFUsgvnpLXWQMEjp +OWjVRM8+JCd8x1966w2hHVGwjgdX7rL6PRP2UxoRKs0KLyRoBY5SDsqG15SrnIJOa XWhQMD4v+DydSlvBbZooHJ8p8xpCwNK3FKNacPj3xQ1KWyup2RQ4Kasf25UvT/betP soGP8jyodhhynkchwzbMTRGdNizTtitCq1HkSD/YwaF8mmHY0E7t3xz6LVtO9wraGt ZL3RjQZuPOVmrRHeChP6b7PkPrOavhS/ZEFpe8egXEL5COtLAF0qxjaCMphYy5OrSW KF0YPmoMf8/7Q== Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 3F4E5633A8 for ; Mon, 1 May 2023 13:44:57 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="ZRwT8Ppx"; dkim-atps=neutral Received: from Monstersaurus.tail69b4.ts.net (aztw-30-b2-v4wan-166917-cust845.vm26.cable.virginm.net [82.37.23.78]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id AF0C96B8; Mon, 1 May 2023 13:44:55 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1682941495; bh=8elFZ1gQQPR5NM5cenhJhGzUiqIyJeFoX3/4nMM62Rw=; h=From:To:Cc:Subject:Date:From; b=ZRwT8PpxA+eUvQROJ3c3yLsTt0w7PbfnZ1rrR63cY/afFVfP7zacbvobuq2w0tFFq Ii176ARESTNzYHeLTn+aT46u+WGegO4ESnWMcbBtT82eochdwP1SvYjKRVDzzmH8JM sI4VfYpykXzOS0vXi4xIikee2IrBGkYe4T6ELQQ0= To: libcamera devel Date: Mon, 1 May 2023 12:44:52 +0100 Message-Id: <20230501114452.1224167-1-kieran.bingham@ideasonboard.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH] 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 --- meson.build | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/meson.build b/meson.build index 6e363a906c69..4afe7d1624a7 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')