copy library licenses to linux bundles
This commit is contained in:
parent
34c449feab
commit
18861a5635
|
@ -153,6 +153,35 @@ create_linux_bundle() {
|
|||
install_pkg_config_file "libavcodec.pc"
|
||||
install_pkg_config_file "libavutil.pc"
|
||||
install_pkg_config_file "ffmpeg-kit.pc"
|
||||
|
||||
# COPY LIBRARY LICENSES
|
||||
LICENSE_BASEDIR="${BASEDIR}/prebuilt/$(get_bundle_directory)/ffmpeg-kit/lib"
|
||||
rm -f "${LICENSE_BASEDIR}"/*.txt 1>>"${BASEDIR}"/build.log 2>&1 || exit 1
|
||||
for library in {0..49}; do
|
||||
if [[ ${ENABLED_LIBRARIES[$library]} -eq 1 ]]; then
|
||||
ENABLED_LIBRARY=$(get_library_name ${library} | sed 's/-/_/g')
|
||||
LICENSE_FILE="${LICENSE_BASEDIR}/license_${ENABLED_LIBRARY}.txt"
|
||||
|
||||
RC=$(copy_external_library_license_file ${library} "${LICENSE_FILE}")
|
||||
|
||||
if [[ ${RC} -ne 0 ]]; then
|
||||
echo -e "DEBUG: Failed to copy the license file of ${ENABLED_LIBRARY}\n" 1>>"${BASEDIR}"/build.log 2>&1
|
||||
echo -e "failed\n\nSee build.log for details\n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo -e "DEBUG: Copied the license file of ${ENABLED_LIBRARY} successfully\n" 1>>"${BASEDIR}"/build.log 2>&1
|
||||
fi
|
||||
done
|
||||
|
||||
# COPY LIBRARY LICENSES
|
||||
if [[ ${GPL_ENABLED} == "yes" ]]; then
|
||||
cp "${BASEDIR}"/LICENSE.GPLv3 "${LICENSE_BASEDIR}"/license.txt 1>>"${BASEDIR}"/build.log 2>&1
|
||||
else
|
||||
cp "${BASEDIR}"/LICENSE.LGPLv3 "${LICENSE_BASEDIR}"/license.txt 1>>"${BASEDIR}"/build.log 2>&1
|
||||
fi
|
||||
|
||||
echo -e "DEBUG: Copied the ffmpeg-kit license successfully\n" 1>>"${BASEDIR}"/build.log 2>&1
|
||||
}
|
||||
|
||||
get_cmake_system_processor() {
|
||||
|
|
|
@ -57,12 +57,7 @@ if [ -d "${FFMPEG_KIT_LIBRARY_PATH}" ]; then
|
|||
rm -rf "${FFMPEG_KIT_LIBRARY_PATH}" 1>>"${BASEDIR}"/build.log 2>&1 || return 1
|
||||
fi
|
||||
|
||||
make -j$(get_cpu_count) 1>>"${BASEDIR}"/build.log 2>&1
|
||||
|
||||
make install 1>>"${BASEDIR}"/build.log 2>&1
|
||||
|
||||
# CREATE PACKAGE CONFIG MANUALLY
|
||||
create_ffmpegkit_package_config "$(get_ffmpeg_kit_version)" || return 1
|
||||
make -j$(get_cpu_count) install 1>>"${BASEDIR}"/build.log 2>&1
|
||||
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "ok"
|
||||
|
@ -70,3 +65,6 @@ else
|
|||
echo -e "failed\n\nSee build.log for details\n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# CREATE PACKAGE CONFIG MANUALLY
|
||||
create_ffmpegkit_package_config "$(get_ffmpeg_kit_version)" || return 1
|
||||
|
|
Loading…
Reference in New Issue
Block a user