Imported Upstream version 1.72.0
[platform/upstream/boost.git] / libs / gil / test / extension / io / Jamfile
1 # Boost.GIL (Generic Image Library) - IO tests
2 #
3 # Copyright (c) 2012 Christian Henning
4 # Copyright (c) 2017 Stefan Seefeld
5 # Copyright (c) 2012-2018 Mateusz Loskot <mateusz@loskot.net>
6 #
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)
10
11 import ac ;
12
13 using libjpeg : : : : true ; # work around bug on master
14 using zlib ;
15 using libpng : : : : true ;
16 using libtiff : : : : true ;
17
18 lib raw : : <name>raw ;
19
20 project
21     : requirements
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
26     ;
27
28 alias headers : [ generate_self_contained_headers extension/io ] ;
29 explicit headers ;
30
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
34 alias simple
35   : [ run all_formats_test.cpp
36       : # args
37       : # input files
38       : # requirements
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 ]
45     ]
46 ;
47
48 alias full :
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
51       :
52       :
53           : [ ac.check-library /libjpeg//libjpeg : <library>/libjpeg//libjpeg : <build>no ] ]
54         #make.cpp
55     [ run png_test.cpp png_old_test.cpp png_file_format_test.cpp png_read_test.cpp
56       :
57       :
58       :
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 ]
62     ]
63     [ run pnm_test.cpp pnm_old_test.cpp pnm_read_test.cpp pnm_write_test.cpp ]
64     [ run raw_test.cpp
65       : # args
66       : # input files
67       : # requirements
68         <define>BOOST_GIL_IO_TEST_ALLOW_READING_IMAGES
69         <library>raw
70     ]
71     [ run targa_test.cpp targa_old_test.cpp targa_read_test.cpp targa_write_test.cpp ]
72     [ run
73           tiff_test.cpp
74           tiff_old_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
97           tiff_tiled_test.cpp
98           tiff_write_test.cpp
99       :
100       :
101           : [ ac.check-library /libtiff//libtiff : <library>/libtiff//libtiff : <build>no ]
102     ]
103     ;
104
105 explicit full ;