{"id":18607,"url":"https://patchwork.libcamera.org/api/patches/18607/?format=json","web_url":"https://patchwork.libcamera.org/patch/18607/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/projects/1/?format=json","name":"libcamera","link_name":"libcamera","list_id":"libcamera_core","list_email":"libcamera-devel@lists.libcamera.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20230506111025.18669-2-laurent.pinchart@ideasonboard.com>","date":"2023-05-06T11:10:24","name":"[libcamera-devel,v1,1/2] Documentation: Add predefined macros from config.h to Doxyfile","commit_ref":null,"pull_url":null,"state":"accepted","archived":false,"hash":"cad1f1b9758fc21ee3c22d7ae8d53d10fcd3b0c9","submitter":{"id":2,"url":"https://patchwork.libcamera.org/api/people/2/?format=json","name":"Laurent Pinchart","email":"laurent.pinchart@ideasonboard.com"},"delegate":null,"mbox":"https://patchwork.libcamera.org/patch/18607/mbox/","series":[{"id":3868,"url":"https://patchwork.libcamera.org/api/series/3868/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=3868","date":"2023-05-06T11:10:23","name":"libcamera: Add an application to verify IPA module signatures","version":1,"mbox":"https://patchwork.libcamera.org/series/3868/mbox/"}],"comments":"https://patchwork.libcamera.org/api/patches/18607/comments/","check":"pending","checks":"https://patchwork.libcamera.org/api/patches/18607/checks/","tags":{},"headers":{"Return-Path":"<libcamera-devel-bounces@lists.libcamera.org>","X-Original-To":"parsemail@patchwork.libcamera.org","Delivered-To":"parsemail@patchwork.libcamera.org","Received":["from lancelot.ideasonboard.com (lancelot.ideasonboard.com\n\t[92.243.16.209])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id 0EFE6C0DA4\n\tfor <parsemail@patchwork.libcamera.org>;\n\tSat,  6 May 2023 11:10:21 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id C7228633B8;\n\tSat,  6 May 2023 13:10:20 +0200 (CEST)","from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id F2897633A8\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tSat,  6 May 2023 13:10:19 +0200 (CEST)","from pendragon.ideasonboard.com\n\t(133-32-181-51.west.xps.vectant.ne.jp [133.32.181.51])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 9744C9CE;\n\tSat,  6 May 2023 13:10:14 +0200 (CEST)"],"DKIM-Signature":["v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org;\n\ts=mail; t=1683371420;\n\tbh=R4z8Rb37UZIXdLc4vjE+c2cqWkxu+nXAEEqNXX/7B8E=;\n\th=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe:\n\tList-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:\n\tFrom;\n\tb=gHIQ1N9et+1putoZglsv+sD7EYgEJnqGWFZIoOi7ecS1EDksOrlQB8HffEAjhAxX8\n\tM9bzAwRxkKRsUq4KWO1mrqwW0vSRvLu1aRsYaryvfHIezgMjuh2jmJU7SQ8E7gCmLp\n\t1JoY2pQygqSFatXqzNqv+I49qUdS/d1/nPxlZi4RsefjuPKJsDTXENJ70G4u0t/xtr\n\tVSlkMOTygNnuBWLZDcwm2hU16zFdo0CvNx4lminvK5AFjzKQ/uVb1oo3OKW1wawkTX\n\tIPcImQMtVb+6SzO0fwT7HN5F66+OZ8qGUBj4KhyuzE+8qfKtglaDEd0KIuv+IGWB70\n\toM8KVaaoHzgrQ==","v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1683371415;\n\tbh=R4z8Rb37UZIXdLc4vjE+c2cqWkxu+nXAEEqNXX/7B8E=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=CvIPoRQn9PSlvNce0Ce6ETKbyvuwjR47WsUAEf5F4Z3Degv99dV4IRKKg64BuzNYA\n\tDYiRqAr/RBfTMK22GFue37aQXmzm1gcoyUltzRmTbAnE2qeyGycn1zgTP3VGqCriOg\n\t8ADmYQCE8ibEsmNnOU+Cw/QRvwHDEOoWzU2QqJrs="],"Authentication-Results":"lancelot.ideasonboard.com; dkim=pass (1024-bit key; \n\tunprotected) header.d=ideasonboard.com\n\theader.i=@ideasonboard.com\n\theader.b=\"CvIPoRQn\"; dkim-atps=neutral","To":"libcamera-devel@lists.libcamera.org","Date":"Sat,  6 May 2023 14:10:24 +0300","Message-Id":"<20230506111025.18669-2-laurent.pinchart@ideasonboard.com>","X-Mailer":"git-send-email 2.39.3","In-Reply-To":"<20230506111025.18669-1-laurent.pinchart@ideasonboard.com>","References":"<20230506111025.18669-1-laurent.pinchart@ideasonboard.com>","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","Subject":"[libcamera-devel] [PATCH v1 1/2] Documentation: Add predefined\n\tmacros from config.h to Doxyfile","X-BeenThere":"libcamera-devel@lists.libcamera.org","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"<libcamera-devel.lists.libcamera.org>","List-Unsubscribe":"<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>","List-Archive":"<https://lists.libcamera.org/pipermail/libcamera-devel/>","List-Post":"<mailto:libcamera-devel@lists.libcamera.org>","List-Help":"<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>","List-Subscribe":"<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>","From":"Laurent Pinchart via libcamera-devel\n\t<libcamera-devel@lists.libcamera.org>","Reply-To":"Laurent Pinchart <laurent.pinchart@ideasonboard.com>","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"},"content":"libcamera creates a config.h file with predefine macros, and instructs\nthe compiler to include it implicitly with the -include argument.\nDoxygen has no support for implicit inclusion of headers, but has a\nPREDEFINED configuration option for its preprocessor that lists\npredefined macros. Populate it with the values from the config_h\nconfiguration data object that is used for generate the config.h file,\nto ensure that documentation matches the configuration options libcamera\nhas been built with.\n\nSigned-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>\n---\n Documentation/Doxyfile.in | 3 ++-\n Documentation/meson.build | 7 +++++++\n 2 files changed, 9 insertions(+), 1 deletion(-)","diff":"diff --git a/Documentation/Doxyfile.in b/Documentation/Doxyfile.in\nindex 1447abdb7d8c..697a14d1dfe2 100644\n--- a/Documentation/Doxyfile.in\n+++ b/Documentation/Doxyfile.in\n@@ -80,6 +80,7 @@ INCLUDE_FILE_PATTERNS  = *.h\n \n PREDEFINED             = __DOXYGEN__ \\\n                          __cplusplus \\\n-                         __attribute__(x)=\n+                         __attribute__(x)= \\\n+\t\t\t @PREDEFINED@\n \n HAVE_DOT               = YES\ndiff --git a/Documentation/meson.build b/Documentation/meson.build\nindex 186461561f8d..ed581163345e 100644\n--- a/Documentation/meson.build\n+++ b/Documentation/meson.build\n@@ -16,6 +16,13 @@ if doxygen.found() and dot.found()\n     cdata.set('TOP_BUILDDIR', meson.project_build_root())\n     cdata.set('OUTPUT_DIR', meson.current_build_dir())\n \n+    doxygen_predefined = []\n+    foreach key : config_h.keys()\n+        doxygen_predefined += '@0@=@1@'.format(key, config_h.get(key))\n+    endforeach\n+\n+    cdata.set('PREDEFINED', ' '.join(doxygen_predefined))\n+\n     doxyfile = configure_file(input : 'Doxyfile.in',\n                               output : 'Doxyfile',\n                               configuration : cdata)\n","prefixes":["libcamera-devel","v1","1/2"]}