1 # Boost.GIL (Generic Image Library) - IO tests
3 # Copyright (c) 2012 Christian Henning
4 # Copyright (c) 2017 Stefan Seefeld
5 # Copyright (c) 2012-2018 Mateusz Loskot <mateusz@loskot.net>
7 # Distributed under the Boost Software License, Version 1.0.
8 # (See accompanying file LICENSE_1_0.txt or
9 # copy at http://www.boost.org/LICENSE_1_0.txt)
13 using libjpeg : : : : true ; # work around bug on master
15 using libpng : : : : true ;
16 using libtiff : : : : true ;
18 lib raw : : <name>raw ;
22 <library>/boost/test//boost_unit_test_framework
23 <library>/boost/system//boost_system
24 <library>/boost/filesystem//boost_filesystem
25 <link>shared:<define>BOOST_TEST_DYN_LINK=1
28 alias headers : [ generate_self_contained_headers extension/io ] ;
31 # The `simple` in names of targets, somewhat misleading, means two things:
32 # - minimal set of tests
33 # - set of tests that require third-party libraries which are de-facto ubiquitous
35 : [ run all_formats_test.cpp
39 <define>BOOST_GIL_IO_TEST_ALLOW_READING_IMAGES
40 <define>BOOST_GIL_IO_TEST_ALLOW_WRITING_IMAGES
41 [ ac.check-library /libjpeg//libjpeg : <library>/libjpeg//libjpeg : <build>no ]
42 [ ac.check-library /zlib//zlib : <library>/zlib//zlib : <build>no ]
43 [ ac.check-library /libpng//libpng : <library>/libpng//libpng : <build>no ]
44 [ ac.check-library /libtiff//libtiff : <library>/libtiff//libtiff : <build>no ]
49 [ run bmp_test.cpp bmp_old_test.cpp bmp_read_test.cpp bmp_write_test.cpp ]
50 [ run jpeg_test.cpp jpeg_old_test.cpp jpeg_read_test.cpp jpeg_write_test.cpp
53 : [ ac.check-library /libjpeg//libjpeg : <library>/libjpeg//libjpeg : <build>no ] ]
55 [ run png_test.cpp png_old_test.cpp png_file_format_test.cpp png_read_test.cpp
59 <define>BOOST_GIL_IO_TEST_ALLOW_READING_IMAGES
60 [ ac.check-library /zlib//zlib : <library>/zlib//zlib : <build>no ]
61 [ ac.check-library /libpng//libpng : <library>/libpng//libpng : <build>no ]
63 [ run pnm_test.cpp pnm_old_test.cpp pnm_read_test.cpp pnm_write_test.cpp ]
68 <define>BOOST_GIL_IO_TEST_ALLOW_READING_IMAGES
71 [ run targa_test.cpp targa_old_test.cpp targa_read_test.cpp targa_write_test.cpp ]
75 tiff_file_format_test.cpp
76 tiff_subimage_test.cpp
77 tiff_tiled_float_test.cpp
78 tiff_tiled_minisblack_test_1-10.cpp
79 tiff_tiled_minisblack_test_11-20.cpp
80 tiff_tiled_minisblack_test_21-31_32-64.cpp
81 tiff_tiled_minisblack_write_test_1-10.cpp
82 tiff_tiled_minisblack_write_test_11-20.cpp
83 tiff_tiled_minisblack_write_test_21-31_32-64.cpp
84 tiff_tiled_palette_test_1-8.cpp
85 tiff_tiled_palette_test_8-16.cpp
86 tiff_tiled_palette_write_test_1-8.cpp
87 tiff_tiled_palette_write_test_8-16.cpp
88 tiff_tiled_rgb_contig_test_1-10.cpp
89 tiff_tiled_rgb_contig_test_11-20.cpp
90 tiff_tiled_rgb_contig_test_21-31_32_64.cpp
91 tiff_tiled_rgb_contig_write_test_1-10.cpp
92 tiff_tiled_rgb_contig_write_test_11-20.cpp
93 tiff_tiled_rgb_contig_write_test_21-31_32_64.cpp
94 tiff_tiled_rgb_planar_test_1-10.cpp
95 tiff_tiled_rgb_planar_test_11-20.cpp
96 tiff_tiled_rgb_planar_test_21-31_32_64.cpp
101 : [ ac.check-library /libtiff//libtiff : <library>/libtiff//libtiff : <build>no ]