Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Paulo Neves <ptsneves@gmail.com>
To: openembedded-core@lists.openembedded.org
Subject: [meta-oe][PATCH] gtest, gmock: Created a git version of gtest.
Date: Mon,  2 Jul 2018 17:03:03 +0200	[thread overview]
Message-ID: <20180702150303.12778-1-ptsneves@gmail.com> (raw)

There are no new tag releases of the googletest
repositories for 2 years, while development
continued.
Created a new recipe for non tagged release
hash. This new recipe does not require the
package config patch as it is supported by
upstream.

Refactored common recipe data in an include
file.
---
 meta-oe/recipes-test/gtest/gtest.inc      | 19 +++++++++++++++++++
 meta-oe/recipes-test/gtest/gtest_1.8.0.bb | 20 +-------------------
 meta-oe/recipes-test/gtest/gtest_git.bb   |  6 ++++++
 3 files changed, 26 insertions(+), 19 deletions(-)
 create mode 100644 meta-oe/recipes-test/gtest/gtest.inc
 create mode 100644 meta-oe/recipes-test/gtest/gtest_git.bb

diff --git a/meta-oe/recipes-test/gtest/gtest.inc b/meta-oe/recipes-test/gtest/gtest.inc
new file mode 100644
index 000000000..7a834ef25
--- /dev/null
+++ b/meta-oe/recipes-test/gtest/gtest.inc
@@ -0,0 +1,19 @@
+DESCRIPTION = "Google's framework for writing C++ tests"
+HOMEPAGE = "https://github.com/google/googletest"
+SECTION = "libs"
+LICENSE = "BSD-3-Clause"
+LIC_FILES_CHKSUM = "file://googlemock/LICENSE;md5=cbbd27594afd089daa160d3a16dd515a \
+                    file://googletest/LICENSE;md5=cbbd27594afd089daa160d3a16dd515a"
+
+PROVIDES += "gmock"
+
+S = "${WORKDIR}/git"
+
+inherit cmake
+
+ALLOW_EMPTY_${PN} = "1"
+ALLOW_EMPTY_${PN}-dbg = "1"
+
+RDEPENDS_${PN}-dev += "${PN}-staticdev"
+
+BBCLASSEXTEND = "native nativesdk"
diff --git a/meta-oe/recipes-test/gtest/gtest_1.8.0.bb b/meta-oe/recipes-test/gtest/gtest_1.8.0.bb
index 48cf4e04b..b264862f1 100644
--- a/meta-oe/recipes-test/gtest/gtest_1.8.0.bb
+++ b/meta-oe/recipes-test/gtest/gtest_1.8.0.bb
@@ -1,24 +1,6 @@
-DESCRIPTION = "Google's framework for writing C++ tests"
-HOMEPAGE = "https://github.com/google/googletest"
-SECTION = "libs"
-LICENSE = "BSD-3-Clause"
-LIC_FILES_CHKSUM = "file://googlemock/LICENSE;md5=cbbd27594afd089daa160d3a16dd515a \
-                    file://googletest/LICENSE;md5=cbbd27594afd089daa160d3a16dd515a"
-
-PROVIDES += "gmock"
-
-S = "${WORKDIR}/git"
+require gtest.inc
 SRCREV = "ec44c6c1675c25b9827aacd08c02433cccde7780"
 SRC_URI = "\
     git://github.com/google/googletest.git;protocol=https; \
     file://Add-pkg-config-support.patch \
 "
-
-inherit cmake
-
-ALLOW_EMPTY_${PN} = "1"
-ALLOW_EMPTY_${PN}-dbg = "1"
-
-RDEPENDS_${PN}-dev += "${PN}-staticdev"
-
-BBCLASSEXTEND = "native nativesdk"
diff --git a/meta-oe/recipes-test/gtest/gtest_git.bb b/meta-oe/recipes-test/gtest/gtest_git.bb
new file mode 100644
index 000000000..2f091b2c7
--- /dev/null
+++ b/meta-oe/recipes-test/gtest/gtest_git.bb
@@ -0,0 +1,6 @@
+require gtest.inc
+SRCREV = "ba96d0b1161f540656efdaed035b3c062b60e006"
+SRC_URI = "\
+    git://github.com/google/googletest.git;protocol=https; \
+"
+
-- 
2.14.1



             reply	other threads:[~2018-07-02 15:03 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-02 15:03 Paulo Neves [this message]
2018-07-02 18:23 ` [meta-oe][PATCH] gtest, gmock: Created a git version of gtest Khem Raj

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180702150303.12778-1-ptsneves@gmail.com \
    --to=ptsneves@gmail.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox