]> git.saurik.com Git - wxWidgets.git/blob - src/tiff/nmake.opt
Use Cocoa by default under OS X in configure.
[wxWidgets.git] / src / tiff / nmake.opt
1 # $Id: nmake.opt,v 1.18 2006/06/07 16:33:45 dron Exp $
2 #
3 # Copyright (C) 2004, Andrey Kiselev <dron@ak4719.spb.edu>
4 #
5 # Permission to use, copy, modify, distribute, and sell this software and
6 # its documentation for any purpose is hereby granted without fee, provided
7 # that (i) the above copyright notices and this permission notice appear in
8 # all copies of the software and related documentation, and (ii) the names of
9 # Sam Leffler and Silicon Graphics may not be used in any advertising or
10 # publicity relating to the software without the specific, prior written
11 # permission of Sam Leffler and Silicon Graphics.
12 #
13 # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
14 # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
15 # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
16 #
17 # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
18 # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
19 # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
20 # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
21 # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
22 # OF THIS SOFTWARE.
23
24 # Compile time parameters for MS Visual C++ compiler.
25 # You may edit this file to specify building options.
26
27 #
28 ###### Edit the following lines to choose a feature set you need. #######
29 #
30
31 #
32 # Select WINMODE_CONSOLE to build a library which reports errors to stderr, or
33 # WINMODE_WINDOWED to build such that errors are reported via MessageBox().
34 #
35 WINMODE_CONSOLE = 1
36 #WINMODE_WINDOWED = 1
37
38 #
39 # Comment out the following lines to disable internal codecs.
40 #
41 # Support for CCITT Group 3 & 4 algorithms
42 CCITT_SUPPORT = 1
43 # Support for Macintosh PackBits algorithm
44 PACKBITS_SUPPORT = 1
45 # Support for LZW algorithm
46 LZW_SUPPORT = 1
47 # Support for ThunderScan 4-bit RLE algorithm
48 THUNDER_SUPPORT = 1
49 # Support for NeXT 2-bit RLE algorithm
50 NEXT_SUPPORT = 1
51 # Support for LogLuv high dynamic range encoding
52 LOGLUV_SUPPORT = 1
53
54 #
55 # Uncomment and edit following lines to enable JPEG support.
56 #
57 #JPEG_SUPPORT = 1
58 #JPEGDIR = d:/projects/jpeg-6b
59 #JPEG_INCLUDE = -I$(JPEGDIR)
60 #JPEG_LIB = $(JPEGDIR)/Release/jpeg.lib
61
62 #
63 # Uncomment and edit following lines to enable ZIP support
64 # (required for Deflate compression and Pixar log-format)
65 #
66 #ZIP_SUPPORT = 1
67 #ZLIBDIR = d:/projects/zlib-1.2.1
68 #ZLIB_INCLUDE = -I$(ZLIBDIR)
69 #ZLIB_LIB = $(ZLIBDIR)/zlib.lib
70
71 #
72 # Uncomment and edit following lines to enable ISO JBIG support
73 #
74 #JBIG_SUPPORT = 1
75 #JBIGDIR = d:/projects/jbigkit
76 #JBIG_INCLUDE = -I$(JBIGDIR)/libjbig
77 #JBIG_LIB = $(JBIGDIR)/libjbig/jbig.lib
78
79 #
80 # Uncomment following line to enable Pixar log-format algorithm
81 # (Zlib required).
82 #
83 #PIXARLOG_SUPPORT = 1
84
85 #
86 # Comment out the following lines to disable strip chopping
87 # (whether or not to convert single-strip uncompressed images to mutiple
88 # strips of specified size to reduce memory usage). Default strip size
89 # is 8192 bytes, it can be configured via the STRIP_SIZE_DEFAULT parameter
90 #
91 STRIPCHOP_SUPPORT = 1
92 STRIP_SIZE_DEFAULT = 8192
93
94 #
95 # Comment out the following lines to disable treating the fourth sample with
96 # no EXTRASAMPLE_ value as being ASSOCALPHA. Many packages produce RGBA
97 # files but don't mark the alpha properly.
98 #
99 EXTRASAMPLE_AS_ALPHA_SUPPORT = 1
100
101 #
102 # Comment out the following lines to disable picking up YCbCr subsampling
103 # info from the JPEG data stream to support files lacking the tag.
104 # See Bug 168 in Bugzilla, and JPEGFixupTestSubsampling() for details.
105 #
106 CHECK_JPEG_YCBCR_SUBSAMPLING = 1
107
108 #
109 ####################### Compiler related options. #######################
110 #
111
112 #
113 # Pick debug or optimized build flags. We default to an optimized build
114 # with no debugging information.
115 # NOTE: /EHsc option required if you want to build the C++ stream API
116 #
117 OPTFLAGS = /Ox /MD /EHsc /W3 /D_CRT_SECURE_NO_DEPRECATE
118 #OPTFLAGS = /Zi
119
120 #
121 # Uncomment following line to enable using Windows Common RunTime Library
122 # instead of Windows specific system calls. See notes on top of tif_unix.c
123 # module for details.
124 #
125 USE_WIN_CRT_LIB = 1
126
127 # Compiler specific options. You may probably want to adjust compilation
128 # parameters in CFLAGS variable. Refer to your compiler documentation
129 # for the option reference.
130 #
131 MAKE = nmake /nologo
132 CC = cl /nologo
133 CXX = cl /nologo
134 AR = lib /nologo
135 LD = link /nologo
136
137 CFLAGS = $(OPTFLAGS) $(INCL) $(EXTRAFLAGS)
138 CXXFLAGS = $(OPTFLAGS) $(INCL) $(EXTRAFLAGS)
139 EXTRAFLAGS =
140 LIBS =
141
142 # Name of the output shared library
143 DLLNAME = libtiff.dll
144
145 #
146 ########### There is nothing to edit below this line normally. ###########
147 #
148
149 # Set the native cpu bit order
150 EXTRAFLAGS = -DFILLODER_LSB2MSB $(EXTRAFLAGS)
151
152 !IFDEF WINMODE_WINDOWED
153 EXTRAFLAGS = -DTIF_PLATFORM_WINDOWED $(EXTRAFLAGS)
154 LIBS = user32.lib $(LIBS)
155 !ELSE
156 EXTRAFLAGS = -DTIF_PLATFORM_CONSOLE $(EXTRAFLAGS)
157 !ENDIF
158
159 # Codec stuff
160 !IFDEF CCITT_SUPPORT
161 EXTRAFLAGS = -DCCITT_SUPPORT $(EXTRAFLAGS)
162 !ENDIF
163
164 !IFDEF PACKBITS_SUPPORT
165 EXTRAFLAGS = -DPACKBITS_SUPPORT $(EXTRAFLAGS)
166 !ENDIF
167
168 !IFDEF LZW_SUPPORT
169 EXTRAFLAGS = -DLZW_SUPPORT $(EXTRAFLAGS)
170 !ENDIF
171
172 !IFDEF THUNDER_SUPPORT
173 EXTRAFLAGS = -DTHUNDER_SUPPORT $(EXTRAFLAGS)
174 !ENDIF
175
176 !IFDEF NEXT_SUPPORT
177 EXTRAFLAGS = -DNEXT_SUPPORT $(EXTRAFLAGS)
178 !ENDIF
179
180 !IFDEF LOGLUV_SUPPORT
181 EXTRAFLAGS = -DLOGLUV_SUPPORT $(EXTRAFLAGS)
182 !ENDIF
183
184 !IFDEF JPEG_SUPPORT
185 LIBS = $(LIBS) $(JPEG_LIB)
186 EXTRAFLAGS = -DJPEG_SUPPORT -DOJPEG_SUPPORT $(EXTRAFLAGS)
187 !ENDIF
188
189 !IFDEF ZIP_SUPPORT
190 LIBS = $(LIBS) $(ZLIB_LIB)
191 EXTRAFLAGS = -DZIP_SUPPORT $(EXTRAFLAGS)
192 !IFDEF PIXARLOG_SUPPORT
193 EXTRAFLAGS = -DPIXARLOG_SUPPORT $(EXTRAFLAGS)
194 !ENDIF
195 !ENDIF
196
197 !IFDEF JBIG_SUPPORT
198 LIBS = $(LIBS) $(JBIG_LIB)
199 EXTRAFLAGS = -DJBIG_SUPPORT $(EXTRAFLAGS)
200 !ENDIF
201
202 !IFDEF STRIPCHOP_SUPPORT
203 EXTRAFLAGS = -DSTRIPCHOP_DEFAULT=TIFF_STRIPCHOP -DSTRIP_SIZE_DEFAULT=$(STRIP_SIZE_DEFAULT) $(EXTRAFLAGS)
204 !ENDIF
205
206 !IFDEF EXTRASAMPLE_AS_ALPHA_SUPPORT
207 EXTRAFLAGS = -DDEFAULT_EXTRASAMPLE_AS_ALPHA $(EXTRAFLAGS)
208 !ENDIF
209
210 !IFDEF CHECK_JPEG_YCBCR_SUBSAMPLING
211 EXTRAFLAGS = -DCHECK_JPEG_YCBCR_SUBSAMPLING $(EXTRAFLAGS)
212 !ENDIF
213
214 !IFDEF USE_WIN_CRT_LIB
215 EXTRAFLAGS = -DAVOID_WIN32_FILEIO $(EXTRAFLAGS)
216 !ELSE
217 EXTRAFLAGS = -DUSE_WIN32_FILEIO $(EXTRAFLAGS)
218 !ENDIF