Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
31 lines (23 sloc) 1019 Bytes
# GTest developers recommend to use source code instead of linking
# against a prebuilt library.
BBCLASSEXTEND += " native"
RDEPENDS_${PN}-dev = ""
EXTRA_OECMAKE += "-DBUILD_GTEST=ON"
do_install() {
_incdir=${includedir}/gtest
_srcdir=${prefix}/src/gtest
install -d ${D}${_incdir}/internal
install -d ${D}${_srcdir}/src
install -d ${D}${_srcdir}/cmake
mkdir -p ${D}${_incdir}/internal/custom
install -v -m 0644 ${S}/googletest/include/gtest/*.h ${D}${_incdir}
install -v -m 0644 ${S}/googletest/include/gtest/internal/*.h ${D}${_incdir}/internal
install -v -m 0644 ${S}/googletest/include/gtest/internal/custom/*.h ${D}${_incdir}/internal/custom
install -v -m 0644 ${S}/googletest/src/* ${D}${_srcdir}/src
install -v -m 0644 ${S}/CMakeLists.txt ${D}${_srcdir}
install -v -m 0644 ${S}/googletest/cmake/* ${D}${_srcdir}/cmake
}
sysroot_stage_all_append() {
sysroot_stage_dir ${D}${prefix}/src ${SYSROOT_DESTDIR}${prefix}/src
}
FILES_${PN}-dev += "${prefix}/src"