Skip to content

Commit 931497b

Browse files
committed
Updated libtiff to 4.5.0.
1 parent ffbbadd commit 931497b

File tree

667 files changed

+110163
-178610
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

667 files changed

+110163
-178610
lines changed

Diff for: .appveyor.yml

+102
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
environment:
2+
AV_PROJECTS: 'c:\projects'
3+
AV_TIFF_DOWNLOAD: 'c:\projects\download'
4+
AV_TIFF_SOURCE: 'c:\projects\libtiff'
5+
AV_TIFF_BUILD: 'c:\projects\build'
6+
AV_TIFF_INSTALL: 'c:\projects\install'
7+
8+
matrix:
9+
- compiler: cygwin-cmake
10+
configuration: Release
11+
generator: Unix Makefiles
12+
shared: ON
13+
- compiler: cygwin-cmake
14+
configuration: Debug
15+
generator: Unix Makefiles
16+
shared: OFF
17+
- compiler: mingw-cmake
18+
configuration: Release
19+
generator: MinGW Makefiles
20+
shared: ON
21+
- compiler: mingw-cmake
22+
configuration: Debug
23+
generator: MinGW Makefiles
24+
shared: OFF
25+
- compiler: vc14-cmake
26+
configuration: Release
27+
arch: x64
28+
generator: Visual Studio 16 2019
29+
shared: ON
30+
- compiler: vc14-cmake
31+
configuration: Debug
32+
arch: Win32
33+
generator: Visual Studio 16 2019
34+
shared: OFF
35+
36+
37+
cache:
38+
#- 'c:\projects\download -> appveyor.yml'
39+
40+
# Operating system (build VM template)
41+
os: 'Visual Studio 2019'
42+
43+
# clone directory
44+
clone_folder: 'c:\projects\libtiff'
45+
clone_depth: 5
46+
47+
platform: x64
48+
49+
init:
50+
- git config --global core.autocrlf input
51+
52+
before_build:
53+
- 'FOR /F "tokens=* USEBACKQ" %%F IN (`C:\cygwin64\bin\cygpath -u %AV_TIFF_SOURCE%`) DO SET AV_TIFF_CYG_SOURCE=%%F'
54+
- 'FOR /F "tokens=* USEBACKQ" %%F IN (`C:\cygwin64\bin\cygpath -u %AV_TIFF_INSTALL%`) DO SET AV_TIFF_CYG_INSTALL=%%F'
55+
- 'if %compiler%==cygwin-cmake C:\cygwin64\setup-x86_64 -q -R C:\cygwin64 -s http://cygwin.mirror.constant.com -l %AV_TIFF_DOWNLOAD%\cygwin -P cmake,libjpeg-devel,zlib-devel'
56+
- 'if %compiler%==cygwin-cmake set "PATH=C:\cygwin64\bin;%PATH%"'
57+
- set
58+
- 'if %compiler%==cygwin-cmake cygpath --version || echo cygpath not found'
59+
- 'if %compiler%==cygwin-cmake cmake --version || echo CMake not found'
60+
- set "AV_CMAKE_ARGS=-DBUILD_SHARED_LIBS:BOOL=%shared%"
61+
- 'if %compiler%==cygwin-cmake set "AV_CMAKE_ARGS=%AV_CMAKE_ARGS% -Dfatal-warnings=ON"'
62+
- 'if %compiler%==mingw32-cmake set "AV_CMAKE_ARGS=%AV_CMAKE_ARGS% -Dfatal-warnings=ON"'
63+
- set "AV_TIFF_CMAKE_SOURCE=%AV_TIFF_SOURCE%"
64+
- set "AV_TIFF_CMAKE_INSTALL=%AV_TIFF_INSTALL%"
65+
- 'if %compiler%==cygwin-cmake set "AV_TIFF_CMAKE_SOURCE=%AV_TIFF_CYG_SOURCE%'
66+
- 'if %compiler%==cygwin-cmake set "AV_TIFF_CMAKE_INSTALL=%AV_TIFF_CYG_INSTALL%'
67+
- 'if %compiler%==mingw-cmake set "PATH=C:\MinGW\bin;%PATH%"'
68+
- mkdir %AV_TIFF_BUILD%
69+
- cd %AV_TIFF_BUILD%
70+
- echo Running cmake -G "%generator%" -DCMAKE_INSTALL_PREFIX=%AV_TIFF_CMAKE_INSTALL% -DCMAKE_BUILD_TYPE=%configuration% %AV_TIFF_CMAKE_SOURCE%
71+
- 'if %compiler%==cygwin-cmake bash -c "cmake -G \"%generator%\" -DCMAKE_INSTALL_PREFIX:PATH=%AV_TIFF_CMAKE_INSTALL% -DCMAKE_BUILD_TYPE=%configuration% %AV_CMAKE_ARGS% %AV_TIFF_CMAKE_SOURCE%"'
72+
- 'if %compiler%==mingw-cmake cmake -G "%generator%" -DCMAKE_INSTALL_PREFIX:PATH=%AV_TIFF_CMAKE_INSTALL% -DCMAKE_BUILD_TYPE=%configuration% %AV_CMAKE_ARGS% %AV_TIFF_CMAKE_SOURCE%'
73+
- 'if %compiler%==vc14-cmake cmake -G "%generator%" -A %arch% -DCMAKE_INSTALL_PREFIX:PATH=%AV_TIFF_CMAKE_INSTALL% -DCMAKE_BUILD_TYPE=%configuration% %AV_CMAKE_ARGS% %AV_TIFF_CMAKE_SOURCE%'
74+
75+
build_script:
76+
- cd %AV_TIFF_BUILD%
77+
- 'if %compiler%==cygwin-cmake bash -c "cmake --build . --config %configuration% --target install"'
78+
- 'if %compiler%==mingw-cmake cmake --build . --config %configuration% --target install'
79+
- 'if %compiler%==vc14-cmake cmake --build . --config %configuration% --target install'
80+
- 'if %compiler%==vc9-cmake cmake --build . --config %configuration% --target install'
81+
82+
# scripts to run after build
83+
after_build:
84+
- cd %AV_TIFF_BUILD%
85+
- '7z a %AV_TIFF_SOURCE%\libtiff-build.zip * -tzip'
86+
- cd %AV_TIFF_INSTALL%
87+
- '7z a %AV_TIFF_SOURCE%\libtiff.zip * -tzip'
88+
89+
before_test:
90+
- cd %AV_TIFF_BUILD%
91+
- 'if %compiler%==cygwin-cmake bash -c "ctest -V -C %configuration%"'
92+
- 'if %compiler%==mingw-cmake ctest -V -C %configuration%'
93+
- 'if %compiler%==vc14-cmake ctest -V -C %configuration%'
94+
- 'if %compiler%==vc9-cmake ctest -V -C %configuration%'
95+
96+
# AppVeyor don't yet have a configurable retention policy, so this will
97+
# eventually use up all the storage allowance.
98+
#artifacts:
99+
# - path: libtiff.zip
100+
# name: libtiff.zip
101+
# - path: libtiff-build.zip
102+
# name: libtiff-build.zip

Diff for: .clang-format

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
BasedOnStyle: llvm
3+
IndentWidth: 4
4+
ColumnLimit: 80
5+
BreakBeforeBraces: Allman
6+
IndentCaseLabels: true

Diff for: .git-blame-ignore-revs

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
42173d6ace476b5228d866640b5355f74e5a108d
2+
b0ae5d7071890160da67d2e833d84a400e0406d0
3+
dee020782c17c1388ca5774f9904d318b51b288b
4+
aee0113f5ec1fd39b97458539bd79a1447425ac4

Diff for: .gitignore

+82
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
aclocal.m4
2+
autom4te.cache
3+
configure
4+
Makefile.in
5+
config/compile
6+
config/config.guess
7+
config/config.h
8+
config/config.h.in
9+
config/config.sub
10+
config/depcomp
11+
config/install-sh
12+
config/ltmain.sh
13+
config/missing
14+
config/mkinstalldirs
15+
config/test-driver
16+
**/Makefile
17+
*.o
18+
*.la
19+
*.lo
20+
.deps
21+
.libs
22+
config.log
23+
config.status
24+
contrib/addtiffo/addtiffo
25+
contrib/dbs/tiff-bi
26+
contrib/dbs/tiff-grayscale
27+
contrib/dbs/tiff-palette
28+
contrib/dbs/tiff-rgb
29+
contrib/iptcutil/iptcutil
30+
libtiff-4.pc
31+
libtiff/mkg3states
32+
libtiff/stamp-h1
33+
libtiff/stamp-h2
34+
libtiff/tif_config.h
35+
libtiff/tiffconf.h
36+
libtool
37+
m4/libtool.m4
38+
m4/ltoptions.m4
39+
m4/ltsugar.m4
40+
m4/ltversion.m4
41+
m4/lt~obsolete.m4
42+
tools/fax2ps
43+
tools/fax2tiff
44+
tools/pal2rgb
45+
tools/ppm2tiff
46+
tools/raw2tiff
47+
tools/rgb2ycbcr
48+
tools/thumbnail
49+
tools/tiff2bw
50+
tools/tiff2pdf
51+
tools/tiff2ps
52+
tools/tiff2rgba
53+
tools/tiffcmp
54+
tools/tiffcp
55+
tools/tiffcrop
56+
tools/tiffdither
57+
tools/tiffdump
58+
tools/tiffgt
59+
tools/tiffinfo
60+
tools/tiffmedian
61+
tools/tiffset
62+
tools/tiffsplit
63+
test/ascii_tag
64+
test/custom_dir
65+
test/long_tag
66+
test/raw_decode
67+
test/rewrite
68+
test/short_tag
69+
test/strip_rw
70+
test/defer_strile_loading
71+
test/defer_strile_writing
72+
test/testtypes
73+
test/custom_dir_EXIF_231
74+
test/rational_precision2double
75+
test/*.log
76+
test/*.trs
77+
test/o-*
78+
*~
79+
.idea
80+
.vs
81+
cmake-build*
82+
build*

Diff for: .gitlab-ci.yml

+63
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
image: registry.gitlab.com/libtiff/libtiff-ci-ubuntu22.04:latest
2+
3+
stages:
4+
- build
5+
- static-analysis
6+
- pages
7+
8+
9+
autoconf-current:
10+
stage: build
11+
script:
12+
- sh build/gitlab-ci autoconf
13+
after_script:
14+
- 'cat autoconf-build/test/test-suite.log'
15+
artifacts:
16+
name: distribution
17+
paths:
18+
- distribution
19+
20+
autoconf-old:
21+
stage: build
22+
image: registry.gitlab.com/libtiff/libtiff-ci-ubuntu20.04:latest
23+
script:
24+
- sh build/gitlab-ci autoconf-minimal
25+
after_script:
26+
- 'cat autoconf-build/test/test-suite.log'
27+
28+
cmake-makefiles-current:
29+
stage: build
30+
script:
31+
- sh build/gitlab-ci cmake "Unix Makefiles" Release
32+
33+
cmake-ninja-current:
34+
stage: build
35+
script:
36+
- sh build/gitlab-ci cmake "Ninja" Debug
37+
38+
cmake-makefiles-old:
39+
stage: build
40+
image: registry.gitlab.com/libtiff/libtiff-ci-ubuntu20.04:latest
41+
script:
42+
- sh build/gitlab-ci cmake "Unix Makefiles" Release
43+
44+
coverity:
45+
stage: static-analysis
46+
image: registry.gitlab.com/libtiff/libtiff-ci-ubuntu22.04-coverity:latest
47+
script:
48+
- sh build/gitlab-ci coverity "Ninja" Debug
49+
only:
50+
refs:
51+
- master
52+
53+
pages:
54+
stage: pages
55+
script:
56+
- sh build/gitlab-ci cmake "Ninja" Debug
57+
- cp -r cmake-install/share/doc/tiff/manual/html public
58+
artifacts:
59+
name: $CI_PROJECT_NAME-$CI_JOB_NAME
60+
paths:
61+
- public
62+
only:
63+
- master

Diff for: .pre-commit-config.yaml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/mirrors-clang-format
3+
rev: 'v15.0.4'
4+
hooks:
5+
- id: clang-format
6+
# tif_fax3sm.c is a generated file
7+
# tiffvers.h as well, and its formatting is sensitive for
8+
# FindTIFF.cmake to detect the version number
9+
exclude: >
10+
(?x)^(
11+
libtiff/tif_fax3sm.c|
12+
libtiff/tiffvers.h
13+
)

0 commit comments

Comments
 (0)