From db58edbed86931fdb75046cdd0426eb1931a40f3 Mon Sep 17 00:00:00 2001 From: Joe Slater Date: Mon, 4 Mar 2024 13:50:14 -0800 Subject: googletest: allow for shared libraries Add a PACKAGECONFIG option to produce shared libraries. Allow staticdev to be empty if no static libraries are built. Signed-off-by: Joe Slater Signed-off-by: Khem Raj --- meta-oe/recipes-test/googletest/googletest_1.14.0.bb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'meta-oe/recipes-test/googletest') diff --git a/meta-oe/recipes-test/googletest/googletest_1.14.0.bb b/meta-oe/recipes-test/googletest/googletest_1.14.0.bb index 8c75f936de..1b05f3d336 100644 --- a/meta-oe/recipes-test/googletest/googletest_1.14.0.bb +++ b/meta-oe/recipes-test/googletest/googletest_1.14.0.bb @@ -10,11 +10,17 @@ S = "${WORKDIR}/git" SRCREV = "f8d7d77c06936315286eb55f8de22cd23c188571" SRC_URI = "git://github.com/google/googletest.git;branch=main;protocol=https" -inherit cmake +inherit cmake pkgconfig + +# allow for shared libraries, but do not default to them +# +PACKAGECONFIG[shared] = "-DBUILD_SHARED_LIBS=ON,-DBUILD_SHARED_LIBS=OFF,," + ALLOW_EMPTY:${PN} = "1" ALLOW_EMPTY:${PN}-dbg = "1" +ALLOW_EMPTY:${PN}-staticdev = "1" RDEPENDS:${PN}-dev += "${PN}-staticdev" BBCLASSEXTEND = "native nativesdk" -- cgit v1.2.3-54-g00ecf