[oe] [meta-oe][PATCH v3] ceres-solver: add new recipe

Martin Jansa martin.jansa at gmail.com
Thu Sep 14 10:53:38 UTC 2017


Why do you prefer useless empty package to be installed together with the
${PN}-dev?

RDEPENDS_${PN}-dev = ""

was IMHO better.

On Thu, Sep 14, 2017 at 10:13 AM, Bartosz Golaszewski <brgl at bgdev.pl> wrote:

> From: Bartosz Golaszewski <brgl+baylibre at bgdev.pl>
>
> Ceres Solver is an open source C++ library for modeling and solving
> large, complicated optimization problems.
>
> It's often used in 3D computer vision applications.
>
> Signed-off-by: Bartosz Golaszewski <brgl+baylibre at bgdev.pl>
> ---
> v1 -> v2:
> - now fetching the source from git, not github archives
> - only add a specific directory (cmake files) to FILES_${PN}-dev
> - don't create the ${PN} package as the project is not building
>   a shared library
>
> v2 -> v3:
> - instead of not creating the ceres-solver package, just allow it to
>   be empty
>
>  .../ceres-solver/ceres-solver_1.13.bb                | 20
> ++++++++++++++++++++
>  1 file changed, 20 insertions(+)
>  create mode 100644 meta-oe/recipes-support/ceres-solver/
> ceres-solver_1.13.bb
>
> diff --git a/meta-oe/recipes-support/ceres-solver/ceres-solver_1.13.bb
> b/meta-oe/recipes-support/ceres-solver/ceres-solver_1.13.bb
> new file mode 100644
> index 0000000..e883c70
> --- /dev/null
> +++ b/meta-oe/recipes-support/ceres-solver/ceres-solver_1.13.bb
> @@ -0,0 +1,20 @@
> +DESCRIPTION = "Ceres Solver is an open source C++ library for modeling
> and solving large, complicated optimization problems."
> +AUTHOR = "Sameer Agarwal and Keir Mierle and Others"
> +HOMEPAGE = "http://ceres-solver.org/"
> +
> +LICENSE = "BSD-3-Clause"
> +LIC_FILES_CHKSUM = "file://LICENSE;md5=35e00f0c4c96a0820a03e0b31e6416be"
> +
> +SRC_URI = "git://github.com/ceres-solver/ceres-solver.git"
> +SRCREV = "19333b0f55c8462381038e70d42af43b52941128"
> +
> +S = "${WORKDIR}/git"
> +
> +DEPENDS = "libeigen glog"
> +
> +inherit cmake
> +
> +# Only a static library and headers are created
> +ALLOW_EMPTY_${PN} = "1"
> +
> +FILES_${PN}-dev += "${libdir}/cmake/*"
> --
> 2.7.4
>
>



More information about the Openembedded-devel mailing list