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