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