diff options
author | Eirik Aavitsland <eirik.aavitsland@qt.io> | 2022-03-02 10:43:34 +0100 |
---|---|---|
committer | Eirik Aavitsland <eirik.aavitsland@qt.io> | 2022-03-02 17:58:07 +0100 |
commit | 03b930470365bd32f93d761bc823d456e8de6853 (patch) | |
tree | 83a8efec1fbcc58aa9335fcf32c601da164a2bc8 /src/3rdparty/libjpeg/import_from_libjpeg_tarball.sh | |
parent | ea3a7aaf2bf0e0e067423a7e19c457a4f26516cc (diff) |
Update bundled libjpeg-turbo to version 2.1.3
[ChangeLog][Third-Party Code] libjpeg-turbo was updated to version 2.1.3
Pick-to: 6.3 6.2 5.15
Change-Id: I69ebd10641b07af324f6ae056cddb65cc0b5ce82
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'src/3rdparty/libjpeg/import_from_libjpeg_tarball.sh')
-rwxr-xr-x | src/3rdparty/libjpeg/import_from_libjpeg_tarball.sh | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/3rdparty/libjpeg/import_from_libjpeg_tarball.sh b/src/3rdparty/libjpeg/import_from_libjpeg_tarball.sh index 2153eca35a..4184cc2769 100755 --- a/src/3rdparty/libjpeg/import_from_libjpeg_tarball.sh +++ b/src/3rdparty/libjpeg/import_from_libjpeg_tarball.sh @@ -158,11 +158,22 @@ FILES=" jsimddct.h jstdhuff.c jutils.c - jversion.h " for i in $FILES; do copy_file "$i" "src/$i" done +copy_file "jversion.h.in" "src/jversion.h" + +cyear=$(grep COPYRIGHT_YEAR $LIBJPEG_DIR/CMakeLists.txt | sed -e 's/.*"\(.*\)".*/\1/') +sed -i -e "s/@COPYRIGHT_YEAR@/$cyear/" $TARGET_DIR/src/jversion.h + +sed -n -e 's/^[ ]*"// + s/\(\\n\)*"[ ]*\\*$// + /JCOPYRIGHT\ /,/^[ ]*$/ { + /Copyright/p + } + ' $TARGET_DIR/src/jversion.h > $TARGET_DIR/COPYRIGHT.txt + echo Done. $TARGET_DIR/src/jconfig.h and jconfigint.h may need manual updating. |