Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/44148/?format=api
http://patchwork.dpdk.org/api/patches/44148/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20180831182055.30772-5-bluca@debian.org/", "project": { "id": 1, "url": "http://patchwork.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": "<20180831182055.30772-5-bluca@debian.org>", "list_archive_url": "https://inbox.dpdk.org/dev/20180831182055.30772-5-bluca@debian.org", "date": "2018-08-31T18:20:55", "name": "[4/4] build: generate API documentation with Meson", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "ef36258f31597265a1eba015cea1d55e26545f65", "submitter": { "id": 823, "url": "http://patchwork.dpdk.org/api/people/823/?format=api", "name": "Luca Boccassi", "email": "bluca@debian.org" }, "delegate": { "id": 1, "url": "http://patchwork.dpdk.org/api/users/1/?format=api", "username": "tmonjalo", "first_name": "Thomas", "last_name": "Monjalon", "email": "thomas@monjalon.net" }, "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20180831182055.30772-5-bluca@debian.org/mbox/", "series": [ { "id": 1148, "url": "http://patchwork.dpdk.org/api/series/1148/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=1148", "date": "2018-08-31T18:20:51", "name": "Meson: build Doxygen documentation", "version": 1, "mbox": "http://patchwork.dpdk.org/series/1148/mbox/" } ], "comments": "http://patchwork.dpdk.org/api/patches/44148/comments/", "check": "success", "checks": "http://patchwork.dpdk.org/api/patches/44148/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 AD06B1B072;\n\tFri, 31 Aug 2018 20:21:16 +0200 (CEST)", "from mail-wr1-f67.google.com (mail-wr1-f67.google.com\n\t[209.85.221.67]) by dpdk.org (Postfix) with ESMTP id AAE131B04E\n\tfor <dev@dpdk.org>; Fri, 31 Aug 2018 20:21:13 +0200 (CEST)", "by mail-wr1-f67.google.com with SMTP id 20-v6so12007927wrb.12\n\tfor <dev@dpdk.org>; Fri, 31 Aug 2018 11:21:13 -0700 (PDT)", "from localhost ([2a01:4b00:f419:6f00:8361:8946:ba2b:d556])\n\tby smtp.gmail.com with ESMTPSA id\n\tb144-v6sm6612749wmd.23.2018.08.31.11.21.11\n\t(version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);\n\tFri, 31 Aug 2018 11:21:12 -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=K6g4ywri+XFLsXqz5B2WjDh9vUAJwVcw/qLZws5416E=;\n\tb=egaYNk8q9b3ESKKHSs0bt31l9CxFVtw6vama9trEI57S616Pw4B0SGJiNvkM56ykqn\n\t++UXL4WbOrjcMkkBpeOLIU0IjttOO8P9bs5yCb3TiPuiWlugg/x7S9eCsa8Uq1Wld5sa\n\tFHiGKk/fkNKkDQd6KUhPTEsI7wd0w+g8EYh62YlJc73qvovMfShJWeY/xdDo9L9lPrzN\n\tnmUdFaot1jqTvRigb28Vef8qSYTJjGrEcUCtRWbpmHacxc+9RBScE8/LGn7cgy7wNnGf\n\twK4PZCe+R8uu9J8KgJ0a/OAi5KWyi678nwuc7gAleimQ5RKNFvayiaplxzEwUo87/T+q\n\tY4zA==", "X-Gm-Message-State": "APzg51Bf3piweQM7voytBV1Fv1Hhf4jno/x0phxR0szacklVHG/uzxV6\n\t53hZ07ivikFdpaQw957A7RTzmIMX", "X-Google-Smtp-Source": "ANB0VdZAy94FZaGtYw2SDk8QWUWcDXY71Y7dzbGEb/T7SJuzyHHik0eeh2+QdmrA6qZvK89WlPjvDg==", "X-Received": "by 2002:adf:f24e:: with SMTP id\n\tb14-v6mr10908425wrp.184.1535739673098; \n\tFri, 31 Aug 2018 11:21:13 -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, 31 Aug 2018 19:20:55 +0100", "Message-Id": "<20180831182055.30772-5-bluca@debian.org>", "X-Mailer": "git-send-email 2.18.0", "In-Reply-To": "<20180831182055.30772-1-bluca@debian.org>", "References": "<20180831182055.30772-1-bluca@debian.org>", "Subject": "[dpdk-dev] [PATCH 4/4] build: generate API documentation with Meson", "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": "Both a configuration-time \"enable_docs\" boolean option and an optional\n'ninja doc' target are available. Note that due to a Meson bug for now\nthe latter will only build, but not install the files.\n\nSigned-off-by: Luca Boccassi <bluca@debian.org>\n---\n doc/api/generate_doxygen.sh | 10 ++++++++\n doc/api/meson.build | 51 +++++++++++++++++++++++++++++++++++++\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, 72 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..e44963e4a9\n--- /dev/null\n+++ b/doc/api/meson.build\n@@ -0,0 +1,51 @@\n+# SPDX-License-Identifier: BSD-3-Clause\n+# Copyright(c) 2018 Luca Boccassi <bluca@debian.org>\n+\n+# due to the CSS customisation script, which needs to run on a file that\n+# is in a subdirectory that is created at build time and thus it cannot\n+# be an individual custom_target, we need to wrap the doxygen call in a\n+# script to run the CSS modification afterwards\n+generate_doxygen = find_program('generate_doxygen.sh')\n+generate_examples = find_program('generate_examples.sh')\n+generate_css = find_program('doxy-html-custom.sh')\n+doxygen = find_program('doxygen')\n+\n+inputdir = join_paths(meson.source_root(), 'examples')\n+htmldir = join_paths('doc', 'html')\n+\n+# due to the following bug: https://github.com/mesonbuild/meson/issues/4107\n+# if install is set to true it will override build_by_default and it will\n+# cause the target to always be built. If install were to be always set to\n+# false it would be impossible to install the docs.\n+# So use a configure option for now.\n+example = custom_target('examples.dox',\n+\tinput: inputdir,\n+\toutput: 'examples.dox',\n+\tcommand: [generate_examples, '@INPUT@', '@OUTPUT@'],\n+\tinstall: get_option('enable_docs'),\n+\tinstall_dir: htmldir,\n+\tbuild_by_default: false)\n+\n+cdata = configuration_data()\n+cdata.set('VERSION', meson.project_version())\n+cdata.set('API_EXAMPLES', join_paths(meson.build_root(), 'doc', 'api', 'examples.dox'))\n+cdata.set('OUTPUT', join_paths(meson.build_root(), 'doc', 'api'))\n+cdata.set('HTML_OUTPUT', 'api')\n+cdata.set('TOPDIR', meson.source_root())\n+cdata.set('STRIP_FROM_PATH', meson.source_root())\n+\n+doxy_conf = configure_file(input: 'doxy-api.conf.in',\n+\toutput: 'doxy-api.conf',\n+\tconfiguration: cdata,\n+\tinstall: false)\n+\n+doxy_build = custom_target('doxygen',\n+\tdepends: example,\n+\tinput: doxy_conf,\n+\toutput: 'api',\n+\tcommand: [generate_doxygen, '@INPUT@', '@OUTPUT@', generate_css],\n+\tinstall: get_option('enable_docs'),\n+\tinstall_dir: htmldir,\n+\tbuild_by_default: false)\n+\n+run_target('doc', command: 'true', depends: doxy_build)\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": [ "4/4" ] }{ "id": 44148, "url": "