libmediainfo: add shared library build

Currently libmediainfo only builds the static library.  Allow creation of shared library for applications that need it, including service.nextpvr Tested with service.nextpvr, standalone mediainfo unchanged.
This commit is contained in:
Martin Vallevand 2024-09-23 11:05:58 -04:00
parent 0f7e211b8e
commit eb952e7746

View File

@ -20,7 +20,7 @@ configure_target() {
--host=${TARGET_NAME} \
--build=${HOST_NAME} \
--enable-static \
--disable-shared \
--enable-shared \
--prefix=/usr \
--enable-visibility
}
@ -36,6 +36,8 @@ makeinstall_target() {
mkdir -p ${INSTALL}/usr/include/MediaInfo/${i}/
cp -aP ../../../Source/MediaInfo/${i}/*.h ${INSTALL}/usr/include/MediaInfo/${i}/
done
cp -P .libs/* ${INSTALL}/usr/lib
# only install static library, so mediainfo does not build with shared library
cp -P .libs/libmediainfo.a ${INSTALL}/usr/lib
cp -P libmediainfo.pc ${INSTALL}/usr/lib/pkgconfig
}