mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-26 19:47:17 +00:00
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 <joe.slater@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
@@ -10,11 +10,17 @@ S = "${WORKDIR}/git"
|
|||||||
SRCREV = "f8d7d77c06936315286eb55f8de22cd23c188571"
|
SRCREV = "f8d7d77c06936315286eb55f8de22cd23c188571"
|
||||||
SRC_URI = "git://github.com/google/googletest.git;branch=main;protocol=https"
|
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} = "1"
|
||||||
ALLOW_EMPTY:${PN}-dbg = "1"
|
ALLOW_EMPTY:${PN}-dbg = "1"
|
||||||
|
|
||||||
|
ALLOW_EMPTY:${PN}-staticdev = "1"
|
||||||
RDEPENDS:${PN}-dev += "${PN}-staticdev"
|
RDEPENDS:${PN}-dev += "${PN}-staticdev"
|
||||||
|
|
||||||
BBCLASSEXTEND = "native nativesdk"
|
BBCLASSEXTEND = "native nativesdk"
|
||||||
|
|||||||
Reference in New Issue
Block a user