mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-05 02:50:46 +00:00
7zip: install headers
This is needed for bit7z recipe. But in general, using 7-zip as a library also requires headers. Leave our Windows headers. Install also readme as it contains version information and is used by bit7z. Signed-off-by: Peter Marko <peter.marko@siemens.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
@@ -59,6 +59,15 @@ do_install() {
|
||||
install -d ${D}${libdir}
|
||||
install -m 0755 ${S}/CPP/7zip/Bundles/Format7zF/b/${INSTALLDIR}/7z.so ${D}${libdir}/lib7z.so
|
||||
ln -rsn ${D}${libdir}/lib7z.so ${D}${bindir}/7z.so
|
||||
|
||||
# install headers (for development) and readme (for version information)
|
||||
for header_file in $(find ${S}/CPP/${BPN} ${S}/CPP/Common ${S}/C -name "*.h"); do
|
||||
header_dir=$(dirname $(echo $header_file | sed "s|${S}/||"))
|
||||
install -d ${D}${includedir}/${BPN}/$header_dir
|
||||
install -m 0644 $header_file ${D}${includedir}/${BPN}/$header_dir
|
||||
done
|
||||
install -d ${D}${includedir}/${BPN}/DOC
|
||||
install -m 0644 ${S}/DOC/readme.txt ${D}${includedir}/${BPN}/DOC
|
||||
}
|
||||
|
||||
PROVIDES += "p7zip"
|
||||
|
||||
Reference in New Issue
Block a user