Bug 496271, automation config for Tb2.0.0.22 build1, p=joduinn, r=me
[mozilla-1.9.git] / xpcom / io / Makefile.in
blob6691d65b6edef6833dc400568eb5a702e87f4f93
1 #
2 # ***** BEGIN LICENSE BLOCK *****
3 # Version: MPL 1.1/GPL 2.0/LGPL 2.1
5 # The contents of this file are subject to the Mozilla Public License Version
6 # 1.1 (the "License"); you may not use this file except in compliance with
7 # the License. You may obtain a copy of the License at
8 # http://www.mozilla.org/MPL/
10 # Software distributed under the License is distributed on an "AS IS" basis,
11 # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
12 # for the specific language governing rights and limitations under the
13 # License.
15 # The Original Code is mozilla.org code.
17 # The Initial Developer of the Original Code is
18 # Netscape Communications Corporation.
19 # Portions created by the Initial Developer are Copyright (C) 1998
20 # the Initial Developer. All Rights Reserved.
22 # Contributor(s):
24 # Alternatively, the contents of this file may be used under the terms of
25 # either of the GNU General Public License Version 2 or later (the "GPL"),
26 # or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
27 # in which case the provisions of the GPL or the LGPL are applicable instead
28 # of those above. If you wish to allow use of your version of this file only
29 # under the terms of either the GPL or the LGPL, and not to allow others to
30 # use your version of this file under the terms of the MPL, indicate your
31 # decision by deleting the provisions above and replace them with the notice
32 # and other provisions required by the GPL or the LGPL. If you do not delete
33 # the provisions above, a recipient may use your version of this file under
34 # the terms of any one of the MPL, the GPL or the LGPL.
36 # ***** END LICENSE BLOCK *****
38 DEPTH = ../..
39 topsrcdir = @top_srcdir@
40 srcdir = @srcdir@
41 VPATH = @srcdir@
43 include $(DEPTH)/config/autoconf.mk
45 MODULE = xpcom
46 XPIDL_MODULE = xpcom_io
47 LIBRARY_NAME = xpcomio_s
48 GRE_MODULE = 1
49 MOZILLA_INTERNAL_API = 1
50 REQUIRES = string \
51 $(NULL)
53 # work around bug 408258
54 ifdef GNU_CC
55 ifneq ($(OS_ARCH), Darwin)
56 MODULE_OPTIMIZE_FLAGS = -Os -fno-strict-aliasing $(MOZ_OPTIMIZE_SIZE_TWEAK)
57 endif
58 endif
60 ifeq ($(MOZ_WIDGET_TOOLKIT),cocoa)
61 REQUIRES += macmorefiles
62 endif
64 CPPSRCS = \
65 nsAppFileLocationProvider.cpp \
66 nsBinaryStream.cpp \
67 nsDirectoryService.cpp \
68 nsEscape.cpp \
69 nsInputStreamTee.cpp \
70 nsLinebreakConverter.cpp \
71 nsLocalFileCommon.cpp \
72 nsMultiplexInputStream.cpp \
73 nsPipe3.cpp \
74 nsStreamUtils.cpp \
75 nsScriptableInputStream.cpp \
76 nsSegmentedBuffer.cpp \
77 SpecialSystemDirectory.cpp \
78 nsStorageStream.cpp \
79 nsStringStream.cpp \
80 nsUnicharInputStream.cpp \
81 nsNativeCharsetUtils.cpp \
82 $(NULL)
84 ifndef MOZ_NO_FAST_LOAD
85 CPPSRCS += \
86 nsFastLoadFile.cpp \
87 nsFastLoadService.cpp \
88 $(NULL)
89 endif
91 ifeq ($(MOZ_WIDGET_TOOLKIT),os2)
92 CPPSRCS += nsLocalFileOS2.cpp
93 else
94 ifeq ($(MOZ_WIDGET_TOOLKIT),cocoa)
95 CMMSRCS = nsLocalFileOSX.mm
96 else
97 ifeq ($(MOZ_WIDGET_TOOLKIT),windows)
98 CPPSRCS += nsLocalFileWin.cpp
99 else
100 CPPSRCS += nsLocalFileUnix.cpp
101 endif # windows
102 endif # mac
103 endif # OS2
105 EXPORTS = \
106 nsAppDirectoryServiceDefs.h \
107 nsDirectoryService.h \
108 nsEscape.h \
109 nsFastLoadService.h \
110 nsLinebreakConverter.h \
111 nsLocalFile.h \
112 nsMultiplexInputStream.h \
113 nsScriptableInputStream.h \
114 nsStorageStream.h \
115 nsStringStream.h \
116 nsStreamUtils.h \
117 nsNativeCharsetUtils.h \
118 $(NULL)
120 ifeq ($(MOZ_WIDGET_TOOLKIT),os2)
121 EXPORTS += nsLocalFileOS2.h
122 else
123 ifeq ($(MOZ_WIDGET_TOOLKIT),cocoa)
124 EXPORTS += nsLocalFileOSX.h
125 else
126 ifeq ($(MOZ_WIDGET_TOOLKIT),windows)
127 EXPORTS += nsLocalFileWin.h
128 else
129 EXPORTS += nsLocalFileUnix.h
130 endif # windows
131 endif # cocoa
132 endif # os2
134 XPIDLSRCS = \
135 nsIBinaryInputStream.idl \
136 nsIBinaryOutputStream.idl \
137 nsIDirectoryEnumerator.idl \
138 nsIFastLoadFileControl.idl \
139 nsIFastLoadService.idl \
140 nsIInputStreamTee.idl \
141 nsILocalFileWin.idl \
142 nsILineInputStream.idl \
143 nsIUnicharLineInputStream.idl \
144 nsISimpleUnicharStreamFactory.idl \
145 nsIMultiplexInputStream.idl \
146 nsIObjectInputStream.idl \
147 nsIObjectOutputStream.idl \
148 nsIPipe.idl \
149 nsISeekableStream.idl \
150 nsIStorageStream.idl \
151 nsIStringStream.idl \
152 nsIStreamBufferAccess.idl \
153 nsIAsyncInputStream.idl \
154 nsIAsyncOutputStream.idl \
155 nsIUnicharInputStream.idl \
156 nsIUnicharOutputStream.idl \
157 nsIConverterInputStream.idl \
158 nsIConverterOutputStream.idl \
159 $(NULL)
161 ifeq ($(MOZ_WIDGET_TOOLKIT),os2)
162 XPIDLSRCS += nsILocalFileOS2.idl
163 else
164 ifeq ($(MOZ_WIDGET_TOOLKIT),cocoa)
165 XPIDLSRCS += nsILocalFileMac.idl
166 endif # cocoa
167 endif # os2
169 SDK_XPIDLSRCS = \
170 nsIDirectoryService.idl \
171 nsIFile.idl \
172 nsILocalFile.idl \
173 nsIInputStream.idl \
174 nsIOutputStream.idl \
175 nsIScriptableInputStream.idl \
176 $(NULL)
178 SDK_HEADERS = \
179 nsDirectoryServiceDefs.h \
180 nsDirectoryServiceUtils.h \
181 $(NULL)
183 EXPORTS := $(addprefix $(srcdir)/, $(EXPORTS))
185 # we don't want the shared lib, but we want to force the creation of a static lib.
186 FORCE_STATIC_LIB = 1
188 # Force use of PIC
189 FORCE_USE_PIC = 1
191 include $(topsrcdir)/config/rules.mk
193 DEFINES += -D_IMPL_NS_COM
195 LOCAL_INCLUDES = -I..