Patch Detail
Show a patch.
GET /api/patches/745/?format=api
{ "id": 745, "url": "https://patchwork.libcamera.org/api/patches/745/?format=api", "web_url": "https://patchwork.libcamera.org/patch/745/", "project": { "id": 1, "url": "https://patchwork.libcamera.org/api/projects/1/?format=api", "name": "libcamera", "link_name": "libcamera", "list_id": "libcamera_core", "list_email": "libcamera-devel@lists.libcamera.org", "web_url": "", "scm_url": "", "webscm_url": "" }, "msgid": "<20190320154748.27326-1-kieran.bingham@ideasonboard.com>", "date": "2019-03-20T15:47:48", "name": "[libcamera-devel] meson: Provide options to disable test/docs", "commit_ref": "945478dbc0198fed27ce885d3ec33c95c77bc69f", "pull_url": null, "state": "accepted", "archived": false, "hash": "63a698711025a2f6195ee554960cb61e0439a669", "submitter": { "id": 4, "url": "https://patchwork.libcamera.org/api/people/4/?format=api", "name": "Kieran Bingham", "email": "kieran.bingham@ideasonboard.com" }, "delegate": null, "mbox": "https://patchwork.libcamera.org/patch/745/mbox/", "series": [ { "id": 213, "url": "https://patchwork.libcamera.org/api/series/213/?format=api", "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=213", "date": "2019-03-20T15:47:48", "name": "[libcamera-devel] meson: Provide options to disable test/docs", "version": 1, "mbox": "https://patchwork.libcamera.org/series/213/mbox/" } ], "comments": "https://patchwork.libcamera.org/api/patches/745/comments/", "check": "pending", "checks": "https://patchwork.libcamera.org/api/patches/745/checks/", "tags": {}, "headers": { "Return-Path": "<kieran.bingham@ideasonboard.com>", "Received": [ "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 9229D610BF\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed, 20 Mar 2019 16:47:53 +0100 (CET)", "from localhost.localdomain\n\t(cpc89242-aztw30-2-0-cust488.18-1.cable.virginm.net [86.31.129.233])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id E984A2D0;\n\tWed, 20 Mar 2019 16:47:52 +0100 (CET)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1553096873;\n\tbh=9dwPVAGPXhq9o/LEQ632QkCrsreIb2X5VWIft8t6+2E=;\n\th=From:To:Cc:Subject:Date:From;\n\tb=IAN9t0HLkl6+dVg9e5t43QZkSj6/hHTGILgbbcQ/qdqmuWLPE1oXmy0umLoa3fcpy\n\th66tIypzrke3lL6pIxBgvZQhn4aplKNgzxLlMrfYtKimDyfIkDD5MR5K5pctypbeuZ\n\taW5YoKESSH343IRsUu9m3Rmllnwfc+9uC5x9xNWg=", "From": "Kieran Bingham <kieran.bingham@ideasonboard.com>", "To": "LibCamera Devel <libcamera-devel@lists.libcamera.org>", "Date": "Wed, 20 Mar 2019 15:47:48 +0000", "Message-Id": "<20190320154748.27326-1-kieran.bingham@ideasonboard.com>", "X-Mailer": "git-send-email 2.19.1", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[libcamera-devel] [PATCH] meson: Provide options to disable\n\ttest/docs", "X-BeenThere": "libcamera-devel@lists.libcamera.org", "X-Mailman-Version": "2.1.23", "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>", "X-List-Received-Date": "Wed, 20 Mar 2019 15:47:53 -0000" }, "content": "It can be desirable to disable the compilation and processing of both\nthe test suite and documentation for use cases such as packaging to an\nembedded target.\n\nProvide a new meson_options.txt file to allow disabling either or both\nof the tests and documentation components of libcamera.\n\nThese options can be provided at the initial configuration time, for\nexample:\n\n meson build -Dtests=false -Ddocumentation=false\n\nor by reconfiguring an existing build tree:\n\n cd build\n meson configure -Ddocumentation=false\n meson configure -Dtests=false\n\nSigned-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>\n---\n meson.build | 10 ++++++++--\n meson_options.txt | 2 ++\n 2 files changed, 10 insertions(+), 2 deletions(-)\n create mode 100644 meson_options.txt", "diff": "diff --git a/meson.build b/meson.build\nindex 4465a3851a30..43d4a57602bb 100644\n--- a/meson.build\n+++ b/meson.build\n@@ -27,9 +27,15 @@ libcamera_includes = include_directories('include')\n \n subdir('include')\n subdir('src')\n-subdir('test')\n subdir('utils')\n-subdir('Documentation')\n+\n+if get_option('tests')\n+\tsubdir('test')\n+endif\n+\n+if get_option('documentation')\n+\tsubdir('Documentation')\n+endif\n \n pkg_mod = import('pkgconfig')\n pkg_mod.generate(libraries : libcamera,\ndiff --git a/meson_options.txt b/meson_options.txt\nnew file mode 100644\nindex 000000000000..c5df661a2286\n--- /dev/null\n+++ b/meson_options.txt\n@@ -0,0 +1,2 @@\n+option('tests', type : 'boolean')\n+option('documentation', type : 'boolean')\n", "prefixes": [ "libcamera-devel" ] }