summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-core/sdbus-c++/sdbus-c++-0.8.3/0001-Do-not-download-gtest-automatically.patch44
-rw-r--r--meta-oe/recipes-core/sdbus-c++/sdbus-c++-0.8.3/0001-test-Check-for-googletest-on-system-first.patch41
-rwxr-xr-xmeta-oe/recipes-core/sdbus-c++/sdbus-c++-1.0.0/run-ptest (renamed from meta-oe/recipes-core/sdbus-c++/sdbus-c++-0.8.3/run-ptest)0
-rw-r--r--meta-oe/recipes-core/sdbus-c++/sdbus-c++-tools_1.0.0.bb (renamed from meta-oe/recipes-core/sdbus-c++/sdbus-c++-tools_0.8.3.bb)2
-rw-r--r--meta-oe/recipes-core/sdbus-c++/sdbus-c++_1.0.0.bb (renamed from meta-oe/recipes-core/sdbus-c++/sdbus-c++_0.8.3.bb)11
5 files changed, 4 insertions, 94 deletions
diff --git a/meta-oe/recipes-core/sdbus-c++/sdbus-c++-0.8.3/0001-Do-not-download-gtest-automatically.patch b/meta-oe/recipes-core/sdbus-c++/sdbus-c++-0.8.3/0001-Do-not-download-gtest-automatically.patch
deleted file mode 100644
index 5bd3801f38..0000000000
--- a/meta-oe/recipes-core/sdbus-c++/sdbus-c++-0.8.3/0001-Do-not-download-gtest-automatically.patch
+++ /dev/null
@@ -1,44 +0,0 @@
1From af91a20ee201f13e56f225df536a56e5d8d259e8 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 27 May 2021 09:56:49 -0700
4Subject: [PATCH] Do not download gtest automatically
5
6Signed-off-by: Khem Raj <raj.khem@gmail.com>
7---
8 tests/CMakeLists.txt | 9 +--------
9 tests/googletest-download/CMakeLists.txt.in | 3 ---
10 2 files changed, 1 insertion(+), 11 deletions(-)
11
12--- a/tests/googletest-download/CMakeLists.txt.in
13+++ b/tests/googletest-download/CMakeLists.txt.in
14@@ -7,10 +7,7 @@ project(googletest-download NONE)
15 include(ExternalProject)
16
17 ExternalProject_Add(googletest
18- GIT_REPOSITORY https://github.com/google/googletest.git
19- GIT_TAG master
20- GIT_SHALLOW 1
21- SOURCE_DIR "${CMAKE_CURRENT_BINARY_DIR}/googletest-src"
22+ SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/googletest-src"
23 BINARY_DIR "${CMAKE_CURRENT_BINARY_DIR}/googletest-build"
24 UPDATE_COMMAND ""
25 CONFIGURE_COMMAND ""
26--- a/tests/CMakeLists.txt
27+++ b/tests/CMakeLists.txt
28@@ -6,9 +6,7 @@ include(FetchContent)
29
30 message("Fetching googletest...")
31 FetchContent_Declare(googletest
32- GIT_REPOSITORY https://github.com/google/googletest.git
33- GIT_TAG master
34- GIT_SHALLOW 1
35+ SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/googletest-src
36 UPDATE_COMMAND "")
37
38 #FetchContent_MakeAvailable(googletest) # Not available in CMake 3.13 :-( Let's do it manually:
39@@ -144,4 +142,4 @@ endif()
40 if(NOT CMAKE_CROSSCOMPILING)
41 add_test(NAME sdbus-c++-unit-tests COMMAND sdbus-c++-unit-tests)
42 add_test(NAME sdbus-c++-integration-tests COMMAND sdbus-c++-integration-tests)
43-endif()
44+endif()
diff --git a/meta-oe/recipes-core/sdbus-c++/sdbus-c++-0.8.3/0001-test-Check-for-googletest-on-system-first.patch b/meta-oe/recipes-core/sdbus-c++/sdbus-c++-0.8.3/0001-test-Check-for-googletest-on-system-first.patch
deleted file mode 100644
index 8a6aceac87..0000000000
--- a/meta-oe/recipes-core/sdbus-c++/sdbus-c++-0.8.3/0001-test-Check-for-googletest-on-system-first.patch
+++ /dev/null
@@ -1,41 +0,0 @@
1From dc5fa7a4b342ef80cda533cdb821841d8183287c Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sun, 23 May 2021 09:01:09 -0700
4Subject: [PATCH] test: Check for googletest on system first
5
6This ensures if googletest is instslled already then use that version
7before downloading and building own copy
8
9Upstream-Status: Pending
10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11---
12 tests/CMakeLists.txt | 6 +++++-
13 1 file changed, 5 insertions(+), 1 deletion(-)
14
15diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
16index 97f7c1a..3dfdd1c 100644
17--- a/tests/CMakeLists.txt
18+++ b/tests/CMakeLists.txt
19@@ -2,6 +2,10 @@
20 # DOWNLOAD AND BUILD OF GOOGLETEST
21 #-------------------------------
22
23+find_package(GTest)
24+
25+if(NOT GTest_FOUND)
26+
27 include(FetchContent)
28
29 message("Fetching googletest...")
30@@ -23,7 +27,7 @@ if(NOT googletest_POPULATED)
31 add_subdirectory(${googletest_SOURCE_DIR} ${googletest_BINARY_DIR})
32 set(BUILD_SHARED_LIBS ${BUILD_SHARED_LIBS_BAK})
33 endif()
34-
35+endif()
36 #-------------------------------
37 # SOURCE FILES CONFIGURATION
38 #-------------------------------
39--
402.31.1
41
diff --git a/meta-oe/recipes-core/sdbus-c++/sdbus-c++-0.8.3/run-ptest b/meta-oe/recipes-core/sdbus-c++/sdbus-c++-1.0.0/run-ptest
index f6ade0c7e4..f6ade0c7e4 100755
--- a/meta-oe/recipes-core/sdbus-c++/sdbus-c++-0.8.3/run-ptest
+++ b/meta-oe/recipes-core/sdbus-c++/sdbus-c++-1.0.0/run-ptest
diff --git a/meta-oe/recipes-core/sdbus-c++/sdbus-c++-tools_0.8.3.bb b/meta-oe/recipes-core/sdbus-c++/sdbus-c++-tools_1.0.0.bb
index 3b87c22653..35e9401607 100644
--- a/meta-oe/recipes-core/sdbus-c++/sdbus-c++-tools_0.8.3.bb
+++ b/meta-oe/recipes-core/sdbus-c++/sdbus-c++-tools_1.0.0.bb
@@ -8,7 +8,7 @@ inherit cmake
8 8
9DEPENDS += "expat" 9DEPENDS += "expat"
10 10
11SRCREV = "6e8e5aadb674cccea5bdd55141db5dad887fbacd" 11SRCREV = "65782bbf435d91e5eb6af9ddab110df406a824a9"
12SRC_URI = "git://github.com/Kistler-Group/sdbus-cpp.git;protocol=https;branch=master;subpath=tools" 12SRC_URI = "git://github.com/Kistler-Group/sdbus-cpp.git;protocol=https;branch=master;subpath=tools"
13 13
14S = "${WORKDIR}/tools" 14S = "${WORKDIR}/tools"
diff --git a/meta-oe/recipes-core/sdbus-c++/sdbus-c++_0.8.3.bb b/meta-oe/recipes-core/sdbus-c++/sdbus-c++_1.0.0.bb
index 12eae5c7d5..79373f8e03 100644
--- a/meta-oe/recipes-core/sdbus-c++/sdbus-c++_0.8.3.bb
+++ b/meta-oe/recipes-core/sdbus-c++/sdbus-c++_1.0.0.bb
@@ -12,18 +12,13 @@ PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'with-exte
12 ${@bb.utils.contains('PTEST_ENABLED', '1', 'with-tests', '', d)}" 12 ${@bb.utils.contains('PTEST_ENABLED', '1', 'with-tests', '', d)}"
13PACKAGECONFIG[with-builtin-libsystemd] = ",,sdbus-c++-libsystemd,libcap" 13PACKAGECONFIG[with-builtin-libsystemd] = ",,sdbus-c++-libsystemd,libcap"
14PACKAGECONFIG[with-external-libsystemd] = ",,systemd,libsystemd" 14PACKAGECONFIG[with-external-libsystemd] = ",,systemd,libsystemd"
15PACKAGECONFIG[with-tests] = "-DBUILD_TESTS=ON -DTESTS_INSTALL_PATH=${libdir}/${BPN}/tests,-DBUILD_TESTS=OFF" 15PACKAGECONFIG[with-tests] = "-DBUILD_TESTS=ON -DTESTS_INSTALL_PATH=${libdir}/${BPN}/tests,-DBUILD_TESTS=OFF,googletest gmock"
16 16
17DEPENDS += "expat" 17DEPENDS += "expat"
18 18
19SRCREV = "6e8e5aadb674cccea5bdd55141db5dad887fbacd" 19SRCREV = "65782bbf435d91e5eb6af9ddab110df406a824a9"
20SRCREV_gtest = "a3460d1aeeaa43fdf137a6adefef10ba0b59fe4b"
21SRCREV_FORMAT = "default_gtest"
22 20
23SRC_URI = "git://github.com/Kistler-Group/sdbus-cpp.git;protocol=https;branch=master \ 21SRC_URI = "git://github.com/Kistler-Group/sdbus-cpp.git;protocol=https;branch=master"
24 git://github.com/google/googletest.git;protocol=https;branch=master;name=gtest;destsuffix=git/tests/googletest-src \
25 file://0001-Do-not-download-gtest-automatically.patch \
26"
27SRC_URI += "file://run-ptest" 22SRC_URI += "file://run-ptest"
28 23
29EXTRA_OECMAKE = "-DBUILD_CODE_GEN=ON \ 24EXTRA_OECMAKE = "-DBUILD_CODE_GEN=ON \