mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-27 07:57:27 +00:00
googletest: allow for shared libraries
Change the -dev RDEPENDS because -staticdev is not created if shared 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:
@@ -21,8 +21,10 @@ CXXFLAGS:append = " -fPIC"
|
|||||||
ALLOW_EMPTY:${PN} = "1"
|
ALLOW_EMPTY:${PN} = "1"
|
||||||
ALLOW_EMPTY:${PN}-dbg = "1"
|
ALLOW_EMPTY:${PN}-dbg = "1"
|
||||||
|
|
||||||
ALLOW_EMPTY:${PN}-staticdev = "1"
|
# -staticdev will not be implicitly put into an SDK, so we add an rdepend
|
||||||
RDEPENDS:${PN}-dev += "${PN}-staticdev"
|
# if we are not building shared libraries
|
||||||
|
#
|
||||||
|
RDEPENDS:${PN}-dev += "${@bb.utils.contains("PACKAGECONFIG","shared","","${PN}-staticdev",d)}"
|
||||||
|
|
||||||
BBCLASSEXTEND = "native nativesdk"
|
BBCLASSEXTEND = "native nativesdk"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user