From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-f65.google.com (mail-wr1-f65.google.com [209.85.221.65]) by dpdk.org (Postfix) with ESMTP id 8D1C756A3 for ; Fri, 7 Sep 2018 18:56:02 +0200 (CEST) Received: by mail-wr1-f65.google.com with SMTP id z96-v6so15625881wrb.8 for ; Fri, 07 Sep 2018 09:56:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:content-transfer-encoding:mime-version; bh=AkotmO3XX9ZHLXf28jDavh2EJQoWOUVZz0jNM0btydc=; b=sME05FeFgPxlI5bASP1LnThljuUElG4blREct7KBkIv1ObvDk9EiXm+ZWqL+iMIijG p5AfgHgSWERsBlMqb6ShuHPuLnL3lfzN+htd1rmZRSNSaaEGniQJQZ87QQB4DNI9Uom1 KoqkmC1j9F8N4kv2CL4nOGUDtmM5nc0JPH4l6+9wsNFuqPrPpNmJ7yYSzbKp4hW3De3L wXiWxfVZUlRH5FigRpUT5152Nrk09QrC3RzPYt3Q1QqeYVNGEmqNMOpA0/9Rw3dJpYFZ hJw9EqBeWFGu+MTYQ2JihYUTmpZlZUKeSMStxv5O8ipnicSiQ+j4IQjYaCFKVQvF7w3t nwig== X-Gm-Message-State: APzg51CtIghjbtkg8t/lJsi9d029HpFzm8x4T7KGRPWFh8IVgdqNET64 H58r3me0QoXdJUnq0XXJNYwbaW2DVAQ= X-Google-Smtp-Source: ANB0VdZWBKkDLB0d12ty8D6dOVOtNyPIhT96QpWrcJ19AVwv/A7iZGRHCw/yvuYWKpLM8h/vBgu0Hw== X-Received: by 2002:adf:9464:: with SMTP id 91-v6mr6834219wrq.231.1536339362255; Fri, 07 Sep 2018 09:56:02 -0700 (PDT) Received: from localhost ([2a01:4b00:f419:6f00:8361:8946:ba2b:d556]) by smtp.gmail.com with ESMTPSA id s2-v6sm10351303wrn.83.2018.09.07.09.56.01 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 07 Sep 2018 09:56:01 -0700 (PDT) Message-ID: <1536339360.12545.17.camel@debian.org> From: Luca Boccassi To: Bruce Richardson Cc: dev@dpdk.org, john.mcnamara@intel.com, marko.kovacevic@intel.com, thomas@monjalon.net Date: Fri, 07 Sep 2018 17:56:00 +0100 In-Reply-To: <20180907163139.GB24984@bricha3-MOBL.ger.corp.intel.com> References: <20180831182055.30772-1-bluca@debian.org> <20180831182055.30772-5-bluca@debian.org> <20180907163139.GB24984@bricha3-MOBL.ger.corp.intel.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Evolution 3.22.6-1+deb9u1 Mime-Version: 1.0 Subject: Re: [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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Sep 2018 16:56:02 -0000 On Fri, 2018-09-07 at 17:31 +0100, Bruce Richardson wrote: > On Fri, Aug 31, 2018 at 07:20:55PM +0100, Luca Boccassi wrote: > > Both a configuration-time "enable_docs" boolean option and an > > optional > > 'ninja doc' target are available. Note that due to a Meson bug for > > now > > the latter will only build, but not install the files. > >=20 > > Signed-off-by: Luca Boccassi > > --- > > =C2=A0doc/api/generate_doxygen.sh | 10 ++++++++ > > =C2=A0doc/api/meson.build=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0| 51 > > +++++++++++++++++++++++++++++++++++++ > > =C2=A0doc/build-sdk-meson.txt=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0|=C2=A0=C2= =A02 ++ > > =C2=A0doc/meson.build=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0|=C2=A0=C2=A04 +++ > > =C2=A0meson.build=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0|=C2=A0=C2=A03 +++ > > =C2=A0meson_options.txt=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0|=C2=A0=C2=A02 ++ > > =C2=A06 files changed, 72 insertions(+) > > =C2=A0create mode 100755 doc/api/generate_doxygen.sh > > =C2=A0create mode 100644 doc/api/meson.build > > =C2=A0create mode 100644 doc/meson.build > >=20 > > diff --git a/doc/api/generate_doxygen.sh > > b/doc/api/generate_doxygen.sh > > new file mode 100755 > > index 0000000000..ab57660958 > > --- /dev/null > > +++ b/doc/api/generate_doxygen.sh > > @@ -0,0 +1,10 @@ > > +#! /bin/sh -e > > +# SPDX-License-Identifier: BSD-3-Clause > > +# Copyright 2018 Luca Boccassi > > + > > +DOXYCONF=3D$1 > > +OUTDIR=3D$2 > > +SCRIPTCSS=3D$3 > > + > > +doxygen "${DOXYCONF}" > > +"${SCRIPTCSS}" "${OUTDIR}"/doxygen.css > > diff --git a/doc/api/meson.build b/doc/api/meson.build > > new file mode 100644 > > index 0000000000..e44963e4a9 > > --- /dev/null > > +++ b/doc/api/meson.build > > @@ -0,0 +1,51 @@ > > +# SPDX-License-Identifier: BSD-3-Clause > > +# Copyright(c) 2018 Luca Boccassi > > + > > +# due to the CSS customisation script, which needs to run on a > > file that > > +# is in a subdirectory that is created at build time and thus it > > cannot > > +# be an individual custom_target, we need to wrap the doxygen call > > in a > > +# script to run the CSS modification afterwards > > +generate_doxygen =3D find_program('generate_doxygen.sh') > > +generate_examples =3D find_program('generate_examples.sh') > > +generate_css =3D find_program('doxy-html-custom.sh') > > +doxygen =3D find_program('doxygen') >=20 > This needs to be inside a conditional if we are not building docs. > Otherwise overall build will error out if doxygen is missing - even > if > unused. >=20 > /Bruce Good point, forgot about that, done in v2 --=20 Kind regards, Luca Boccassi