From patchwork Fri Jun 14 06:51:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neel Gandhi X-Patchwork-Id: 804408 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2066.outbound.protection.outlook.com [40.107.223.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5B5EA1482FC for ; Fri, 14 Jun 2024 06:52:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.223.66 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718347931; cv=fail; b=jgj8zYp5ERvphrn6OsaNp9KGz2iVa08cvAGRt8HHEddCfvlDFgwbRERgeAwbvLVMev2De4A+saCblOZBB2fZDb0q6WY0az2/fN/+T/IrXhvJxMKuEVP11hj34FkS7z8uuB1VTdKiOHaoqiOBipwzqT8UqW2JyYaeHZoGzqlrqSQ= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718347931; c=relaxed/simple; bh=5hDGx/BZ1B3XlewhF9Vk7IA5uVsA7iol0qkfLaf7q8E=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=D62Yd2e5w0SzJFDNCv7KynDHPl5ZIG1r3y2B5TtYetJzfkY8rsVS747vuLK92Oh6V59KFdGhwT6WX2PKQXNtxz5uYmn/wBniOgNsooDiQF1wuLQceKJbPQ7YSsQx4/UEtO7RMEYYZ2oCuUmzBDdZZaz6lHQXWHvMHlk5xjVk5mg= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com; spf=fail smtp.mailfrom=amd.com; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b=BbwoNRhm; arc=fail smtp.client-ip=40.107.223.66 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=amd.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="BbwoNRhm" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IHZdw7tDZBBg1Ys4eA7HGZRz9wYtua/LTjvsicG0kXS4VGeLInXLB3hi7kSdce2+5qviFJGjjcYNpNNUksSgn2dD/lMMU4WqPDoG3VQhpfHgwgIgRsrlXX6Ai80VxGoOtMSDCrouuqPGAetBhsON5Qyo+z7ha2JTUEaid/Yxwj6KqX2vP1AAT+C1iOpx2Og5tIYkURJSGVfCwQLIhobNPT/eEzqSEzZCHp4si70AUtJCPQ58tqM/Z24GwbZL8JdbgF8onXiXKQr9etGxDpe1zSDeHlCcQJSB7JaEumFsDs2FQLAbRETTgNRXA9tkW6GE8ixgOpnxEmVctngM8aVz2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=5oDTON2/5qjoBVQvrNcgyTl4aQOPbud15u8HPLKhDM4=; b=OjLndZcGgXXhs5LvGIyWfdzzpYK0hRFmfLqSkHzuXfbHCaa2g/nBfT9ocVSIvjUbsbxvWreuBZwQnWZeIFsIhNjfzLuAmhBypPaoDw58E4InamNjAnzxoYVyTK9jdU9QO313BSwl+6jXs5Ahr5/hYNxhddiSA/9kpK+zkRRJFLRDaZJGdQKGn02YkiBoqGZEchMsQAKIxUgLsQV6aujUgrvsY0Bo4zPTh9TdY5cnm3x2OMiVxFZ6HNCNFDLiAKUzPGG+LVBmB0xyc5xbgSOSV6xdkPpeVppPKvpicqrBBT1jR2WoaKosh57X+47rfhXk+mmcF8FOIV4YSMP9XkDpTQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=vger.kernel.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=5oDTON2/5qjoBVQvrNcgyTl4aQOPbud15u8HPLKhDM4=; b=BbwoNRhmCxbK/vymjbyeEVkkGzXI9nBav3ICIQTCp/1Li0mvIJ5pbYBLtZWIrnESscJqFf4NNqZVUTrSmLWA5yiXYYsHGMGKS9+KYdsthZwqp3Rkdk1b1vT0pIvxlDUPIg+zoFycYXWjnhAHCQCalZhZb6awsZBEU2euefZVNdQ= Received: from BL0PR02CA0071.namprd02.prod.outlook.com (2603:10b6:207:3d::48) by MW6PR12MB8958.namprd12.prod.outlook.com (2603:10b6:303:240::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.23; Fri, 14 Jun 2024 06:52:06 +0000 Received: from BL6PEPF0001AB52.namprd02.prod.outlook.com (2603:10b6:207:3d:cafe::d3) by BL0PR02CA0071.outlook.office365.com (2603:10b6:207:3d::48) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.21 via Frontend Transport; Fri, 14 Jun 2024 06:52:06 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by BL6PEPF0001AB52.mail.protection.outlook.com (10.167.241.4) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7677.15 via Frontend Transport; Fri, 14 Jun 2024 06:52:06 +0000 Received: from SATLEXMB05.amd.com (10.181.40.146) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Fri, 14 Jun 2024 01:52:04 -0500 Received: from SATLEXMB04.amd.com (10.181.40.145) by SATLEXMB05.amd.com (10.181.40.146) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Fri, 14 Jun 2024 01:52:04 -0500 Received: from xhdneelg40x.xilinx.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server id 15.1.2507.39 via Frontend Transport; Fri, 14 Jun 2024 01:52:02 -0500 From: Neel Gandhi To: CC: , , , , , , Subject: [v4l-utils] utils: media-ctl: Install media-ctl header and library files Date: Fri, 14 Jun 2024 12:21:20 +0530 Message-ID: <20240614065120.896247-1-neel.gandhi@amd.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-media@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Received-SPF: None (SATLEXMB05.amd.com: neel.gandhi@amd.com does not designate permitted sender hosts) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL6PEPF0001AB52:EE_|MW6PR12MB8958:EE_ X-MS-Office365-Filtering-Correlation-Id: 9447d072-0613-40db-5e5a-08dc8c3e8134 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230035|82310400021|376009|1800799019|36860700008; X-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SEHbw/IuMrX6jkNw+nEhvoE9WbZuIDR76OalzurbdOK7S8OvrZhO/XToPEKAMliRXiwa53IFvpHGc/k6ucIf0q+y6LuTnIIkFGIBFW81phZcfqcifpQ4LJyqLCNXwtphaGvZQDgNoJJAmYTRMmYTxxjzTwWK7Z5aBJGK4B0XX9DMV6WpUrJGQgE2ENg6JCbEP8umdruP7PhYva6MTIM/AREenX2jPDAIRVE8Ajo0OwKR6XBsrD2+am8JWiPB76iYJUUGHJbo/aAxJrVwy63FumHqrSWHkOcTDW1/Fs/r8SoBWRYPVhKMVBpaROGqjEfWatQ2q7VnXmEIdvACPPaXdBb3o/8cmnVNK9w== X-Forefront-Antispam-Report: CIP:165.204.84.17; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:SATLEXMB04.amd.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230035)(82310400021)(376009)(1800799019)(36860700008); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Jun 2024 06:52:06.1134 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9447d072-0613-40db-5e5a-08dc8c3e8134 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.17]; Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: BL6PEPF0001AB52.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW6PR12MB8958 Install mediactl and v4l2subdev header and library files, which may be required by 3rd party applications to populate and control v4l2subdev device node tree Signed-off-by: Neel Gandhi --- utils/media-ctl/meson.build | 28 +++++++++++++++++++++------- 1 file changed, 21 insertions(+), 7 deletions(-) diff --git a/utils/media-ctl/meson.build b/utils/media-ctl/meson.build index 3a7b0c9a..40669b4c 100644 --- a/utils/media-ctl/meson.build +++ b/utils/media-ctl/meson.build @@ -3,14 +3,24 @@ libmediactl_sources = files( 'mediactl-priv.h', ) +libmediactl_api = files( + 'mediactl.h', + 'v4l2subdev.h', +) + +install_headers(libmediactl_api, subdir: 'mediactl') + libmediactl_deps = [ dep_libudev, ] -libmediactl = static_library('mediactl', - libmediactl_sources, - dependencies : libmediactl_deps, - include_directories : v4l2_utils_incdir) +libmediactl = library('mediactl', + libmediactl_sources, + soversion: '0', + version: '0.0.0', + install : true, + dependencies : libmediactl_deps, + include_directories : v4l2_utils_incdir) dep_libmediactl = declare_dependency(link_with : libmediactl) @@ -18,9 +28,13 @@ libv4l2subdev_sources = files('libv4l2subdev.c') libv4l2subdev_sources += media_bus_format_names_h libv4l2subdev_sources += media_bus_format_codes_h -libv4l2subdev = static_library('v4l2subdev', - libv4l2subdev_sources, - include_directories : v4l2_utils_incdir) +libv4l2subdev = library('v4l2subdev', + libv4l2subdev_sources, + soversion: '0', + version: '0.0.0', + install : true, + dependencies : dep_libmediactl, + include_directories : v4l2_utils_incdir) dep_libv4l2subdev = declare_dependency(link_with : libv4l2subdev)