Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/44424/?format=api
http://patches.dpdk.org/api/patches/44424/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20180907165524.23982-4-bluca@debian.org/", "project": { "id": 1, "url": "http://patches.dpdk.org/api/projects/1/?format=api", "name": "DPDK", "link_name": "dpdk", "list_id": "dev.dpdk.org", "list_email": "dev@dpdk.org", "web_url": "http://core.dpdk.org", "scm_url": "git://dpdk.org/dpdk", "webscm_url": "http://git.dpdk.org/dpdk", "list_archive_url": "https://inbox.dpdk.org/dev", "list_archive_url_format": "https://inbox.dpdk.org/dev/{}", "commit_url_format": "" }, "msgid": "<20180907165524.23982-4-bluca@debian.org>", "list_archive_url": "https://inbox.dpdk.org/dev/20180907165524.23982-4-bluca@debian.org", "date": "2018-09-07T16:55:24", "name": "[v2,4/4] build: generate API documentation with Meson", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "59c1aa831b8f0acd59132ce652cb2120afac7287", "submitter": { "id": 823, "url": "http://patches.dpdk.org/api/people/823/?format=api", "name": "Luca Boccassi", "email": "bluca@debian.org" }, "delegate": { "id": 1, "url": "http://patches.dpdk.org/api/users/1/?format=api", "username": "tmonjalo", "first_name": "Thomas", "last_name": "Monjalon", "email": "thomas@monjalon.net" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20180907165524.23982-4-bluca@debian.org/mbox/", "series": [ { "id": 1232, "url": "http://patches.dpdk.org/api/series/1232/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=1232", "date": "2018-09-07T16:55:21", "name": "[v2,1/4] mk: use script to generate examples.dox", "version": 2, "mbox": "http://patches.dpdk.org/series/1232/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/44424/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/44424/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@dpdk.org", "Delivered-To": "patchwork@dpdk.org", "Received": [ "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 3B8A55A6A;\n\tFri, 7 Sep 2018 18:55:40 +0200 (CEST)", "from mail-wr1-f65.google.com (mail-wr1-f65.google.com\n\t[209.85.221.65]) by dpdk.org (Postfix) with ESMTP id 673D74C93\n\tfor <dev@dpdk.org>; Fri, 7 Sep 2018 18:55:38 +0200 (CEST)", "by mail-wr1-f65.google.com with SMTP id k5-v6so15613743wre.10\n\tfor <dev@dpdk.org>; Fri, 07 Sep 2018 09:55:38 -0700 (PDT)", "from localhost ([2a01:4b00:f419:6f00:8361:8946:ba2b:d556])\n\tby smtp.gmail.com with ESMTPSA id\n\tj11-v6sm10231896wrr.37.2018.09.07.09.55.36\n\t(version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);\n\tFri, 07 Sep 2018 09:55:36 -0700 (PDT)" ], "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=JEWojzToo21awoipsHpBjzKBT6b97u76ztlZX/nf5Lo=;\n\tb=OaqdvwFLBeE4Z8CWAuhsGRJyWB1IZ4g2KRnK8VoGD+PnkX8H/qPQXDPM/TuWFDKnEW\n\t/XVK8s0yrP1G1g4RLkGgcAOiehL34aV8RKK6rGBXQ/HoIT+5Gz/RnvhvWd7owkz5l5K2\n\tzQEnSNdw5J2/cfEwF3IP2SuKoGrzzFu3Atxn8YQGVYSHShiEVrxQv85IBPVUj7PycxQw\n\tM1IWODuszsmRtXUDRzR0p5pfuKSiiJ1NW4YJnVuVo84VxzbNPQRcdFWf1MyeiYUMYQix\n\tA55gnN4rwYGGhj1McfZZHgYebRMlkRvw6pxNLml+Mp1+FJwb1AwcopsiB8Y9MwFDL9OB\n\t3hOw==", "X-Gm-Message-State": "APzg51CNVnsGXsI+Y/CPkBwx9/IuMJPHB9uVNRpQzRazyIP/MGfYrcg5\n\tBMUKr/IAeBqy5+THFVbsvPr+2OAhstk=", "X-Google-Smtp-Source": "ANB0VdZqiDhDQnooPrKZPGZPx8La/GLybeCKbJRyBsjYBpzNAy+qTZNGqsF9MACrz1z1LpinweDqOQ==", "X-Received": "by 2002:a5d:404a:: with SMTP id\n\tw10-v6mr6554132wrp.147.1536339337841; \n\tFri, 07 Sep 2018 09:55:37 -0700 (PDT)", "From": "Luca Boccassi <bluca@debian.org>", "To": "dev@dpdk.org", "Cc": "bruce.richardson@intel.com, john.mcnamara@intel.com,\n\tmarko.kovacevic@intel.com, thomas@monjalon.net", "Date": "Fri, 7 Sep 2018 17:55:24 +0100", "Message-Id": "<20180907165524.23982-4-bluca@debian.org>", "X-Mailer": "git-send-email 2.18.0", "In-Reply-To": "<20180907165524.23982-1-bluca@debian.org>", "References": "<20180831182055.30772-1-bluca@debian.org>\n\t<20180907165524.23982-1-bluca@debian.org>", "Subject": "[dpdk-dev] [PATCH v2 4/4] build: generate API documentation with\n\tMeson", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://mails.dpdk.org/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "Signed-off-by: Luca Boccassi <bluca@debian.org>\n---\nv2: made doxygen dependency optional, skip doxygen build when not found\n\n doc/api/generate_doxygen.sh | 10 +++++++\n doc/api/meson.build | 54 +++++++++++++++++++++++++++++++++++++\n doc/build-sdk-meson.txt | 2 ++\n doc/meson.build | 4 +++\n meson.build | 3 +++\n meson_options.txt | 2 ++\n 6 files changed, 75 insertions(+)\n create mode 100755 doc/api/generate_doxygen.sh\n create mode 100644 doc/api/meson.build\n create mode 100644 doc/meson.build", "diff": "diff --git a/doc/api/generate_doxygen.sh b/doc/api/generate_doxygen.sh\nnew file mode 100755\nindex 0000000000..ab57660958\n--- /dev/null\n+++ b/doc/api/generate_doxygen.sh\n@@ -0,0 +1,10 @@\n+#! /bin/sh -e\n+# SPDX-License-Identifier: BSD-3-Clause\n+# Copyright 2018 Luca Boccassi <bluca@debian.org>\n+\n+DOXYCONF=$1\n+OUTDIR=$2\n+SCRIPTCSS=$3\n+\n+doxygen \"${DOXYCONF}\"\n+\"${SCRIPTCSS}\" \"${OUTDIR}\"/doxygen.css\ndiff --git a/doc/api/meson.build b/doc/api/meson.build\nnew file mode 100644\nindex 0000000000..5dfa0fe044\n--- /dev/null\n+++ b/doc/api/meson.build\n@@ -0,0 +1,54 @@\n+# SPDX-License-Identifier: BSD-3-Clause\n+# Copyright(c) 2018 Luca Boccassi <bluca@debian.org>\n+\n+doxygen = find_program('doxygen', required: false)\n+\n+if doxygen.found()\n+\t# due to the CSS customisation script, which needs to run on a file that\n+\t# is in a subdirectory that is created at build time and thus it cannot\n+\t# be an individual custom_target, we need to wrap the doxygen call in a\n+\t# script to run the CSS modification afterwards\n+\tgenerate_doxygen = find_program('generate_doxygen.sh')\n+\tgenerate_examples = find_program('generate_examples.sh')\n+\tgenerate_css = find_program('doxy-html-custom.sh')\n+\n+\tinputdir = join_paths(meson.source_root(), 'examples')\n+\thtmldir = join_paths('doc', 'html')\n+\n+\t# due to the following bug: https://github.com/mesonbuild/meson/issues/4107\n+\t# if install is set to true it will override build_by_default and it will\n+\t# cause the target to always be built. If install were to be always set to\n+\t# false it would be impossible to install the docs.\n+\t# So use a configure option for now.\n+\texample = custom_target('examples.dox',\n+\t\tinput: inputdir,\n+\t\toutput: 'examples.dox',\n+\t\tcommand: [generate_examples, '@INPUT@', '@OUTPUT@'],\n+\t\tinstall: get_option('enable_docs'),\n+\t\tinstall_dir: htmldir,\n+\t\tbuild_by_default: false)\n+\n+\tcdata = configuration_data()\n+\tcdata.set('VERSION', meson.project_version())\n+\tcdata.set('API_EXAMPLES', join_paths(meson.build_root(), 'doc', 'api', 'examples.dox'))\n+\tcdata.set('OUTPUT', join_paths(meson.build_root(), 'doc', 'api'))\n+\tcdata.set('HTML_OUTPUT', 'api')\n+\tcdata.set('TOPDIR', meson.source_root())\n+\tcdata.set('STRIP_FROM_PATH', meson.source_root())\n+\n+\tdoxy_conf = configure_file(input: 'doxy-api.conf.in',\n+\t\toutput: 'doxy-api.conf',\n+\t\tconfiguration: cdata,\n+\t\tinstall: false)\n+\n+\tdoxy_build = custom_target('doxygen',\n+\t\tdepends: example,\n+\t\tinput: doxy_conf,\n+\t\toutput: 'api',\n+\t\tcommand: [generate_doxygen, '@INPUT@', '@OUTPUT@', generate_css],\n+\t\tinstall: get_option('enable_docs'),\n+\t\tinstall_dir: htmldir,\n+\t\tbuild_by_default: false)\n+\n+\trun_target('doc', command: 'true', depends: doxy_build)\n+endif\ndiff --git a/doc/build-sdk-meson.txt b/doc/build-sdk-meson.txt\nindex 9618e759ea..508e2cb642 100644\n--- a/doc/build-sdk-meson.txt\n+++ b/doc/build-sdk-meson.txt\n@@ -85,6 +85,8 @@ Project-specific options are passed used -Doption=value::\n \n \tmeson -Dmax_lcores=8 smallbuild # scale build for smaller systems\n \n+\tmeson -Denable_docs=true fullbuild # build and install docs\n+\n Examples of setting the same options using meson configure::\n \n \tmeson configure -Dwerror=true\ndiff --git a/doc/meson.build b/doc/meson.build\nnew file mode 100644\nindex 0000000000..afca2e7133\n--- /dev/null\n+++ b/doc/meson.build\n@@ -0,0 +1,4 @@\n+# SPDX-License-Identifier: BSD-3-Clause\n+# Copyright(c) 2018 Luca Boccassi <bluca@debian.org>\n+\n+subdir('api')\ndiff --git a/meson.build b/meson.build\nindex 9999e8640a..09506ec48c 100644\n--- a/meson.build\n+++ b/meson.build\n@@ -34,6 +34,9 @@ subdir('usertools')\n subdir('app')\n subdir('test')\n \n+# build docs\n+subdir('doc')\n+\n # build any examples explicitly requested - useful for developers\n if get_option('examples') != ''\n \tsubdir('examples')\ndiff --git a/meson_options.txt b/meson_options.txt\nindex f20887212a..d38ba56e29 100644\n--- a/meson_options.txt\n+++ b/meson_options.txt\n@@ -2,6 +2,8 @@ option('allow_invalid_socket_id', type: 'boolean', value: false,\n \tdescription: 'allow out-of-range NUMA socket id\\'s for platforms that don\\'t report the value correctly')\n option('enable_kmods', type: 'boolean', value: true,\n \tdescription: 'build kernel modules')\n+option('enable_docs', type: 'boolean', value: false,\n+\tdescription: 'build documentation')\n option('examples', type: 'string', value: '',\n \tdescription: 'Comma-separated list of examples to build by default')\n option('include_subdir_arch', type: 'string', value: '',\n", "prefixes": [ "v2", "4/4" ] }{ "id": 44424, "url": "