1 | # $Id: SConstruct,v 1.2 2006/03/23 14:54:00 dron Exp $
|
---|
2 |
|
---|
3 | # Tag Image File Format (TIFF) Software
|
---|
4 | #
|
---|
5 | # Copyright (C) 2005, Andrey Kiselev <[email protected]>
|
---|
6 | #
|
---|
7 | # Permission to use, copy, modify, distribute, and sell this software and
|
---|
8 | # its documentation for any purpose is hereby granted without fee, provided
|
---|
9 | # that (i) the above copyright notices and this permission notice appear in
|
---|
10 | # all copies of the software and related documentation, and (ii) the names of
|
---|
11 | # Sam Leffler and Silicon Graphics may not be used in any advertising or
|
---|
12 | # publicity relating to the software without the specific, prior written
|
---|
13 | # permission of Sam Leffler and Silicon Graphics.
|
---|
14 | #
|
---|
15 | # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
|
---|
16 | # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
|
---|
17 | # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
|
---|
18 | #
|
---|
19 | # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
|
---|
20 | # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
|
---|
21 | # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
---|
22 | # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
|
---|
23 | # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
|
---|
24 | # OF THIS SOFTWARE.
|
---|
25 |
|
---|
26 | # This file contains rules to build software with the SCons tool
|
---|
27 | # (see the http://www.scons.org/ for details on SCons).
|
---|
28 |
|
---|
29 | import os
|
---|
30 |
|
---|
31 | env = Environment()
|
---|
32 |
|
---|
33 | # Read the user supplied options
|
---|
34 | opts = Options('libtiff.conf')
|
---|
35 | opts.Add(PathOption('PREFIX', \
|
---|
36 | 'install architecture-independent files in this directory', \
|
---|
37 | '/usr/local', PathOption.PathIsDirCreate))
|
---|
38 | opts.Add(BoolOption('ccitt', \
|
---|
39 | 'enable support for CCITT Group 3 & 4 algorithms', \
|
---|
40 | 'yes'))
|
---|
41 | opts.Add(BoolOption('packbits', \
|
---|
42 | 'enable support for Macintosh PackBits algorithm', \
|
---|
43 | 'yes'))
|
---|
44 | opts.Add(BoolOption('lzw', \
|
---|
45 | 'enable support for LZW algorithm', \
|
---|
46 | 'yes'))
|
---|
47 | opts.Add(BoolOption('thunder', \
|
---|
48 | 'enable support for ThunderScan 4-bit RLE algorithm', \
|
---|
49 | 'yes'))
|
---|
50 | opts.Add(BoolOption('next', \
|
---|
51 | 'enable support for NeXT 2-bit RLE algorithm', \
|
---|
52 | 'yes'))
|
---|
53 | opts.Add(BoolOption('logluv', \
|
---|
54 | 'enable support for LogLuv high dynamic range encoding', \
|
---|
55 | 'yes'))
|
---|
56 | opts.Add(BoolOption('strip_chopping', \
|
---|
57 | 'support for strip chopping (whether or not to convert single-strip uncompressed images to mutiple strips of ~8Kb to reduce memory usage)', \
|
---|
58 | 'yes'))
|
---|
59 | opts.Add(BoolOption('extrasample_as_alpha', \
|
---|
|
---|