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