mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-08-11 09:18:12 +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:
parent
92b6825a87
commit
db58edbed8
@ -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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user