]> git.saurik.com Git - wxWidgets.git/blame - src/tiff/nmake.opt
Updated wxWidgets icons in art to use the new official logo.
[wxWidgets.git] / src / tiff / nmake.opt
CommitLineData
8414a40c
VZ
1# $Id: nmake.opt,v 1.16 2006/03/23 14:54:01 dron Exp $\r
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
62#\r
63# Uncomment following lines to enable Old JPEG support\r
64# (modified IJG JPEG library required, read the contrib\ojpeg\README first).\r
65#\r
66#OJPEG_SUPPORT = 1\r
67\r
68#\r
69# Uncomment and edit following lines to enable ZIP support\r
70# (required for Deflate compression and Pixar log-format)\r
71#\r
72#ZIP_SUPPORT = 1\r
73#ZLIBDIR = d:/projects/zlib-1.2.1\r
74#ZLIB_INCLUDE = -I$(ZLIBDIR)\r
75#ZLIB_LIB = $(ZLIBDIR)/zlib.lib\r
76\r
77#\r
78# Uncomment following line to enable Pixar log-format algorithm\r
79# (Zlib required).\r
80#\r
81#PIXARLOG_SUPPORT = 1\r
82\r
83#\r
84# Comment out the following lines to disable strip chopping\r
85# (whether or not to convert single-strip uncompressed images to mutiple\r
86# strips of specified size to reduce memory usage). Default strip size\r
87# is 8192 bytes, it can be configured via the STRIP_SIZE_DEFAULT parameter\r
88#\r
89STRIPCHOP_SUPPORT = 1\r
90STRIP_SIZE_DEFAULT = 8192\r
91\r
92#\r
93# Comment out the following lines to disable treating the fourth sample with\r
94# no EXTRASAMPLE_ value as being ASSOCALPHA. Many packages produce RGBA\r
95# files but don't mark the alpha properly.\r
96#\r
97EXTRASAMPLE_AS_ALPHA_SUPPORT = 1\r
98\r
99#\r
100# Comment out the following lines to disable picking up YCbCr subsampling\r
101# info from the JPEG data stream to support files lacking the tag.\r
102# See Bug 168 in Bugzilla, and JPEGFixupTestSubsampling() for details.\r
103#\r
104CHECK_JPEG_YCBCR_SUBSAMPLING = 1\r
105\r
106#\r
107####################### Compiler related options. #######################\r
108#\r
109\r
110#\r
111# Pick debug or optimized build flags. We default to an optimized build\r
112# with no debugging information.\r
113# NOTE: /GX option required if you want to build the C++ stream API\r
114#\r
115OPTFLAGS = /Ox /MD /GX /W3\r
116#OPTFLAGS = /Zi \r
117\r
118#\r
119# Uncomment following line to enable using Windows Common RunTime Library\r
120# instead of Windows specific system calls. See notes on top of tif_unix.c\r
121# module for details.\r
122#\r
123USE_WIN_CRT_LIB = 1\r
124\r
125# Compiler specific options. You may probably want to adjust compilation\r
126# parameters in CFLAGS variable. Refer to your compiler documentation\r
127# for the option reference.\r
128#\r
129MAKE = nmake /nologo\r
130CC = cl /nologo\r
131CXX = cl /nologo\r
132AR = lib /nologo\r
133LD = link /nologo\r
134\r
135CFLAGS = $(OPTFLAGS) $(INCL) $(EXTRAFLAGS)\r
136CXXFLAGS = $(OPTFLAGS) $(INCL) $(EXTRAFLAGS)\r
137EXTRAFLAGS =\r
138LIBS =\r
139\r
140# Name of the output shared library\r
141DLLNAME = libtiff.dll\r
142\r
143#\r
144########### There is nothing to edit below this line normally. ###########\r
145#\r
146\r
147# Set the native cpu bit order\r
148EXTRAFLAGS = -DFILLODER_LSB2MSB $(EXTRAFLAGS)\r
149\r
150!IFDEF WINMODE_WINDOWED\r
151EXTRAFLAGS = -DTIF_PLATFORM_WINDOWED $(EXTRAFLAGS)\r
152LIBS = user32.lib $(LIBS)\r
153!ELSE\r
154EXTRAFLAGS = -DTIF_PLATFORM_CONSOLE $(EXTRAFLAGS)\r
155!ENDIF\r
156\r
157# Codec stuff\r
158!IFDEF CCITT_SUPPORT\r
159EXTRAFLAGS = -DCCITT_SUPPORT $(EXTRAFLAGS)\r
160!ENDIF\r
161\r
162!IFDEF PACKBITS_SUPPORT\r
163EXTRAFLAGS = -DPACKBITS_SUPPORT $(EXTRAFLAGS)\r
164!ENDIF\r
165\r
166!IFDEF LZW_SUPPORT\r
167EXTRAFLAGS = -DLZW_SUPPORT $(EXTRAFLAGS)\r
168!ENDIF\r
169\r
170!IFDEF THUNDER_SUPPORT\r
171EXTRAFLAGS = -DTHUNDER_SUPPORT $(EXTRAFLAGS)\r
172!ENDIF\r
173\r
174!IFDEF NEXT_SUPPORT\r
175EXTRAFLAGS = -DNEXT_SUPPORT $(EXTRAFLAGS)\r
176!ENDIF\r
177\r
178!IFDEF LOGLUV_SUPPORT\r
179EXTRAFLAGS = -DLOGLUV_SUPPORT $(EXTRAFLAGS)\r
180!ENDIF\r
181\r
182!IFDEF JPEG_SUPPORT\r
183LIBS = $(LIBS) $(JPEG_LIB)\r
184EXTRAFLAGS = -DJPEG_SUPPORT $(EXTRAFLAGS)\r
185!IFDEF OJPEG_SUPPORT\r
186EXTRAFLAGS = -DOJPEG_SUPPORT $(EXTRAFLAGS)\r
187!ENDIF\r
188!ENDIF\r
189\r
190!IFDEF ZIP_SUPPORT\r
191LIBS = $(LIBS) $(ZLIB_LIB)\r
192EXTRAFLAGS = -DZIP_SUPPORT $(EXTRAFLAGS)\r
193!IFDEF PIXARLOG_SUPPORT\r
194EXTRAFLAGS = -DPIXARLOG_SUPPORT $(EXTRAFLAGS)\r
195!ENDIF\r
196!ENDIF\r
197\r
198!IFDEF STRIPCHOP_SUPPORT\r
199EXTRAFLAGS = -DSTRIPCHOP_DEFAULT=TIFF_STRIPCHOP -DSTRIP_SIZE_DEFAULT=$(STRIP_SIZE_DEFAULT) $(EXTRAFLAGS)\r
200!ENDIF\r
201\r
202!IFDEF EXTRASAMPLE_AS_ALPHA_SUPPORT\r
203EXTRAFLAGS = -DDEFAULT_EXTRASAMPLE_AS_ALPHA $(EXTRAFLAGS)\r
204!ENDIF\r
205\r
206!IFDEF CHECK_JPEG_YCBCR_SUBSAMPLING\r
207EXTRAFLAGS = -DCHECK_JPEG_YCBCR_SUBSAMPLING $(EXTRAFLAGS)\r
208!ENDIF\r
209\r
210!IFDEF USE_WIN_CRT_LIB\r
211EXTRAFLAGS = -DAVOID_WIN32_FILEIO $(EXTRAFLAGS)\r
212!ELSE\r
213EXTRAFLAGS = -DUSE_WIN32_FILEIO $(EXTRAFLAGS)\r
214!ENDIF\r