{"id":4003,"url":"https://patchwork.libcamera.org/api/1.1/patches/4003/?format=json","web_url":"https://patchwork.libcamera.org/patch/4003/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/1.1/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":"<20200609143601.9050-2-scerveau@collabora.com>","date":"2020-06-09T14:36:01","name":"[libcamera-devel,1/1] linux: install missing drm includes","commit_ref":null,"pull_url":null,"state":"rejected","archived":false,"hash":"b16809aa9164425de3118130f1f826671c25af70","submitter":{"id":54,"url":"https://patchwork.libcamera.org/api/1.1/people/54/?format=json","name":"Stéphane Cerveau","email":"scerveau@collabora.com"},"delegate":null,"mbox":"https://patchwork.libcamera.org/patch/4003/mbox/","series":[{"id":980,"url":"https://patchwork.libcamera.org/api/1.1/series/980/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=980","date":"2020-06-09T14:36:00","name":"linux: install missing drm includes","version":1,"mbox":"https://patchwork.libcamera.org/series/980/mbox/"}],"comments":"https://patchwork.libcamera.org/api/patches/4003/comments/","check":"pending","checks":"https://patchwork.libcamera.org/api/patches/4003/checks/","tags":{},"headers":{"Return-Path":"<scerveau@collabora.com>","Received":["from bhuna.collabora.co.uk (bhuna.collabora.co.uk\n\t[IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 042F5603C5\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue,  9 Jun 2020 16:36:34 +0200 (CEST)","from [127.0.0.1] (localhost [127.0.0.1])\n\t(Authenticated sender: scerveau) with ESMTPSA id 2EFD52A058E"],"From":"=?utf-8?q?St=C3=A9phane_Cerveau?= <scerveau@collabora.com>","To":"libcamera-devel@lists.libcamera.org","Date":"Tue,  9 Jun 2020 16:36:01 +0200","Message-Id":"<20200609143601.9050-2-scerveau@collabora.com>","X-Mailer":"git-send-email 2.17.1","In-Reply-To":"<20200609143601.9050-1-scerveau@collabora.com>","References":"<20200609143601.9050-1-scerveau@collabora.com>","MIME-Version":"1.0","Content-Type":"text/plain; charset=UTF-8","Content-Transfer-Encoding":"8bit","Subject":"[libcamera-devel] [PATCH 1/1] linux: install missing drm includes","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>","X-List-Received-Date":"Tue, 09 Jun 2020 14:36:34 -0000"},"content":"When using libcamera in a third party, the build needs\n3 missing drm includes such as:\n- drm_fourcc.h\n- drm.h\n- drm_mode.h\n\ninstall those in libcamera/include/linux\n\nSigned-off-by: Stéphane Cerveau <scerveau@collabora.com>\n---\n include/linux/meson.build | 12 ++++++++++++\n include/meson.build       |  1 +\n 2 files changed, 13 insertions(+)\n create mode 100644 include/linux/meson.build","diff":"diff --git a/include/linux/meson.build b/include/linux/meson.build\nnew file mode 100644\nindex 0000000..a39faab\n--- /dev/null\n+++ b/include/linux/meson.build\n@@ -0,0 +1,12 @@\n+# SPDX-License-Identifier: CC0-1.0\n+\n+linux_public_headers = files([\n+    'drm_fourcc.h',\n+    'drm.h',\n+    'drm_mode.h',\n+])\n+\n+linux_include_dir = join_paths(libcamera_include_dir, 'linux')\n+\n+install_headers(linux_public_headers,\n+                subdir : linux_include_dir)\ndiff --git a/include/meson.build b/include/meson.build\nindex 2ac9a3a..90339a7 100644\n--- a/include/meson.build\n+++ b/include/meson.build\n@@ -4,3 +4,4 @@ libcamera_include_dir = 'libcamera'\n \n subdir('android')\n subdir('libcamera')\n+subdir('linux')\n","prefixes":["libcamera-devel","1/1"]}