• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Boost.GIL (Generic Image Library) - examples
2#
3# Copyright (c) 2018 Mateusz Loskot <mateusz@loskot.net>
4#
5# Use, modification and distribution is subject to the Boost Software License,
6# Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
7# http://www.boost.org/LICENSE_1_0.txt)
8
9import ac ;
10import regex ;
11import testing ;
12
13using libjpeg : : : : true ; # work around bug on master
14
15project
16    : # requirements
17    ;
18
19# TODO: Add missing examples
20
21local sources =
22    adaptive_threshold.cpp
23    affine.cpp
24    convolution.cpp
25    convolve2d.cpp
26    dynamic_image.cpp
27    harris.cpp
28    hessian.cpp
29    histogram.cpp
30    interleaved_ptr.cpp
31    mandelbrot.cpp
32    packed_pixel.cpp
33    resize.cpp
34    sobel_scharr.cpp
35    threshold.cpp
36    x_gradient.cpp
37    ;
38
39local targets ;
40
41for local s in $(sources)
42{
43    targets +=
44        [ compile $(s) :
45            [ ac.check-library /libjpeg//libjpeg : <library>/libjpeg//libjpeg : <build>no ]
46        ]
47        ;
48}
49
50alias examples : $(targets) ;
51