Show a patch.

GET /api/patches/17036/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 17036,
    "url": "https://patchwork.libcamera.org/api/patches/17036/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/17036/",
    "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": "<20220809121044.2039635-1-kieran.bingham@ideasonboard.com>",
    "date": "2022-08-09T12:10:44",
    "name": "[libcamera-devel,SimpleCam] cmake: Provide a sample CMakeLists.txt",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "873ec41413090081a0e2a4c2c3b02a6ce2d7b457",
    "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/17036/mbox/",
    "series": [
        {
            "id": 3393,
            "url": "https://patchwork.libcamera.org/api/series/3393/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=3393",
            "date": "2022-08-09T12:10:44",
            "name": "[libcamera-devel,SimpleCam] cmake: Provide a sample CMakeLists.txt",
            "version": 1,
            "mbox": "https://patchwork.libcamera.org/series/3393/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/17036/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/17036/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 D5E5AC3272\n\tfor <parsemail@patchwork.libcamera.org>;\n\tTue,  9 Aug 2022 12:10:54 +0000 (UTC)",
            "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 09F3063328;\n\tTue,  9 Aug 2022 14:10:51 +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 D48CC600EA\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue,  9 Aug 2022 14:10:49 +0200 (CEST)",
            "from Monstersaurus.local\n\t(cpc89244-aztw30-2-0-cust3082.18-1.cable.virginm.net [86.31.172.11])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 50D5A481;\n\tTue,  9 Aug 2022 14:10:49 +0200 (CEST)"
        ],
        "DKIM-Signature": [
            "v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org;\n\ts=mail; t=1660047051;\n\tbh=cWExAJ15wXCEWL2VIdaExaj9cbJTDFM1aH4a/TSMfVg=;\n\th=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post:\n\tList-Help:List-Subscribe:From:Reply-To:From;\n\tb=PmnM3q99kn7Ll5sd5shbi7I1rMt0mHe9KWPBRTv3XpqanaSV43XU+hRgxH54fWAK9\n\toOgFrFvheTtsqouTqpGlVGdlj72GTzkEMoybM7OrQ7mIl36TwU18FkEX/uuD2Jysu5\n\t72TxnonNY8XG5J5mWJHEKU0fKiO79dSuoZS/bq3i8UyWsnlYmChFh8iHJO+O9NKYvy\n\tYHWitQdqJ2QDFQghEJRUWcR+5jlKdSAyPKkAGOaKMQvScYNkph0iv6L2KECyIWoBHG\n\tXhW2fIbnLdB4uOHKt1JVw7ZQH3HHx7+Da3AbOGuGKvZdtuE6xVL8t7c023vL8233IA\n\ttY/sXoFRXWFpg==",
            "v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1660047049;\n\tbh=cWExAJ15wXCEWL2VIdaExaj9cbJTDFM1aH4a/TSMfVg=;\n\th=From:To:Cc:Subject:Date:From;\n\tb=lebJgwMlS2dkGbjqz/PANSYC1flk07knbSICHcYRR3esjI63Yk8cZVQO+0qvhMnwo\n\t8lOuVxNH/XtEarTI3mKL3ocKK/ts5MDZkrLiqYm2X/FeeyoxiJ5rZhjiWZQAfsWKFX\n\tkG/6/8x2HgKe87WckDZOYZ+YYN523SHoRjoxVXZA="
        ],
        "Authentication-Results": "lancelot.ideasonboard.com; dkim=pass (1024-bit key; \n\tunprotected) header.d=ideasonboard.com\n\theader.i=@ideasonboard.com\n\theader.b=\"lebJgwMl\"; dkim-atps=neutral",
        "To": "libcamera devel <libcamera-devel@lists.libcamera.org>",
        "Date": "Tue,  9 Aug 2022 13:10:44 +0100",
        "Message-Id": "<20220809121044.2039635-1-kieran.bingham@ideasonboard.com>",
        "X-Mailer": "git-send-email 2.34.1",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[libcamera-devel] [SimpleCam PATCH] cmake: Provide a sample\n\tCMakeLists.txt",
        "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": "Kieran Bingham via libcamera-devel\n\t<libcamera-devel@lists.libcamera.org>",
        "Reply-To": "Kieran Bingham <kieran.bingham@ideasonboard.com>",
        "Errors-To": "libcamera-devel-bounces@lists.libcamera.org",
        "Sender": "\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"
    },
    "content": "While libcamera uses meson as its build infrastructure, applications are\nfree to use other make systems. CMake is widely used, so add an example\nCMakeLists.txt to support building simple-cam and linking against\nlibcamera using cmake.\n\nSigned-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>\n---\n CMakeLists.txt | 32 ++++++++++++++++++++++++++++++++\n 1 file changed, 32 insertions(+)\n create mode 100644 CMakeLists.txt",
    "diff": "diff --git a/CMakeLists.txt b/CMakeLists.txt\nnew file mode 100644\nindex 000000000000..fc8e734bdf59\n--- /dev/null\n+++ b/CMakeLists.txt\n@@ -0,0 +1,32 @@\n+cmake_minimum_required(VERSION 3.6)\n+\n+project(SimpleCam\n+\tVERSION 1.0\n+\tDESCRIPTION \"A small and documented example application for libcamera\"\n+\tLANGUAGES CXX)\n+\n+#set (CMAKE_EXPORT_COMPILE_COMMANDS ON)\n+set (CMAKE_CXX_STANDARD 17)\n+\n+find_package(PkgConfig)\n+\n+pkg_check_modules(LIBCAMERA REQUIRED IMPORTED_TARGET libcamera)\n+message(STATUS \"libcamera library found:\")\n+message(STATUS \"    version: ${LIBCAMERA_VERSION}\")\n+message(STATUS \"    libraries: ${LIBCAMERA_LINK_LIBRARIES}\")\n+message(STATUS \"    include path: ${LIBCAMERA_INCLUDE_DIRS}\")\n+\n+# libevent is used specifically by simple-cam as it's event loop.\n+# Applications may use a different event handling implementation.\n+pkg_check_modules(LIBEVENT REQUIRED IMPORTED_TARGET libevent_pthreads)\n+message(STATUS \"libevent_pthreads library found:\")\n+message(STATUS \"    version: ${LIBEVENT_VERSION}\")\n+message(STATUS \"    libraries: ${LIBEVENT_LINK_LIBRARIES}\")\n+message(STATUS \"    include path: ${LIBEVENT_INCLUDE_DIRS}\")\n+\n+include_directories(${CMAKE_SOURCE_DIR} ${LIBCAMERA_INCLUDE_DIRS} ${LIBEVENT_INCLUDE_DIRS})\n+\n+add_executable(simple-cam simple-cam.cpp event_loop.cpp)\n+\n+target_link_libraries(simple-cam PkgConfig::LIBEVENT)\n+target_link_libraries(simple-cam PkgConfig::LIBCAMERA)\n",
    "prefixes": [
        "libcamera-devel",
        "SimpleCam"
    ]
}