1 | #
|
---|
2 | # ***** BEGIN LICENSE BLOCK *****
|
---|
3 | # Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
---|
4 | #
|
---|
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/
|
---|
9 | #
|
---|
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.
|
---|
14 | #
|
---|
15 | # The Original Code is mozilla.org code.
|
---|
16 | #
|
---|
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.
|
---|
21 | #
|
---|
22 | # Contributor(s):
|
---|
23 | #
|
---|
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.
|
---|
35 | #
|
---|
36 | # ***** END LICENSE BLOCK *****
|
---|
37 |
|
---|
38 | DEPTH = ../..
|
---|
39 | topsrcdir = @top_srcdir@
|
---|
40 | srcdir = @srcdir@
|
---|
41 | VPATH = @srcdir@
|
---|
42 |
|
---|
43 | include $(DEPTH)/config/autoconf.mk
|
---|
44 |
|
---|
45 | MODULE = xpcom
|
---|
46 | XPIDL_MODULE = xpcom_io
|
---|
47 | LIBRARY_NAME = xpcomio_s
|
---|
48 | GRE_MODULE = 1
|
---|
49 | REQUIRES = string \
|
---|
50 | $(NULL)
|
---|
51 |
|
---|
52 | ifneq (,$(filter mac cocoa,$(MOZ_WIDGET_TOOLKIT)))
|
---|
53 | REQUIRES += macmorefiles
|
---|
54 | endif
|
---|
55 |
|
---|
56 | CPPSRCS = \
|
---|
57 | nsAppFileLocationProvider.cpp \
|
---|
58 | nsBinaryStream.cpp \
|
---|
59 | nsByteArrayInputStream.cpp \
|
---|
60 | nsDirectoryService.cpp \
|
---|
61 | nsEscape.cpp \
|
---|
62 | nsFastLoadFile.cpp \
|
---|
63 | nsFastLoadService.cpp \
|
---|
64 | nsInputStreamTee.cpp \
|
---|
65 | nsLinebreakConverter.cpp \
|
---|
66 | nsLocalFileCommon.cpp \
|
---|
67 | nsMultiplexInputStream.cpp \
|
---|
68 | nsPipe3.cpp \
|
---|
69 | nsStreamUtils.cpp \
|
---|
70 | nsScriptableInputStream.cpp \
|
---|
71 | nsSegmentedBuffer.cpp \
|
---|
72 | SpecialSystemDirectory.cpp \
|
---|
73 | nsStorageStream.cpp \
|
---|
74 | nsStringStream.cpp \
|
---|
75 | nsUnicharInputStream.cpp \
|
---|
76 | nsNativeCharsetUtils.cpp \
|
---|
77 | $(NULL)
|
---|
78 |
|
---|
79 | ifeq ($(MOZ_WIDGET_TOOLKIT),os2)
|
---|
80 | CPPSRCS += nsLocalFileOS2.cpp
|
---|
81 | else
|
---|
82 | ifneq (,$(filter mac cocoa,$(MOZ_WIDGET_TOOLKIT)))
|
---|
83 | CPPSRCS += nsLocalFileOSX.cpp
|
---|
84 | else
|
---|
85 | ifeq ($(MOZ_WIDGET_TOOLKIT),windows)
|
---|
86 | CPPSRCS += nsLocalFileWin.cpp
|
---|
87 | else
|
---|
88 | CPPSRCS += nsLocalFileUnix.cpp
|
---|
89 | endif # windows
|
---|
90 | endif # mac
|
---|
91 | endif # OS2
|
---|
92 |
|
---|
93 | EXPORTS = \
|
---|
94 | nsAppDirectoryServiceDefs.h \
|
---|
95 | nsDirectoryService.h \
|
---|
96 | nsDirectoryServiceUtils.h \
|
---|
97 | nsEscape.h \
|
---|
98 | nsFastLoadPtr.h \
|
---|
99 | nsFastLoadService.h \
|
---|
100 | nsIUnicharInputStream.h \
|
---|
101 | nsLinebreakConverter.h \
|
---|
102 | nsLocalFile.h \
|
---|
103 | nsMultiplexInputStream.h \
|
---|
104 | nsScriptableInputStream.h \
|
---|
105 | nsStorageStream.h \
|
---|
106 | nsStringIO.h \
|
---|
107 | nsStringStream.h \
|
---|
108 | nsStreamUtils.h \
|
---|
109 | nsNativeCharsetUtils.h \
|
---|
110 | $(NULL)
|
---|
111 |
|
---|
112 | ifeq ($(MOZ_WIDGET_TOOLKIT),os2)
|
---|
113 | EXPORTS += nsLocalFileOS2.h
|
---|
114 | else
|
---|
115 | ifneq (,$(filter mac cocoa,$(MOZ_WIDGET_TOOLKIT)))
|
---|
116 | EXPORTS += nsLocalFileOSX.h
|
---|
117 | else
|
---|
118 | ifeq ($(MOZ_WIDGET_TOOLKIT),windows)
|
---|
119 | EXPORTS += nsLocalFileWin.h
|
---|
120 | else
|
---|
121 | EXPORTS += nsLocalFileUnix.h
|
---|
122 | endif # windows
|
---|
123 | endif # mac
|
---|
124 | endif # os2
|
---|
125 |
|
---|
126 | XPIDLSRCS = \
|
---|
127 | nsIBinaryInputStream.idl \
|
---|
128 | nsIBinaryOutputStream.idl \
|
---|
129 | nsIByteArrayInputStream.idl \
|
---|
130 | nsIFastLoadFileControl.idl \
|
---|
131 | nsIFastLoadService.idl \
|
---|
132 | nsIInputStreamTee.idl \
|
---|
133 | nsILineInputStream.idl \
|
---|
134 | nsIMultiplexInputStream.idl \
|
---|
135 | nsIObjectInputStream.idl \
|
---|
136 | nsIObjectOutputStream.idl \
|
---|
137 | nsIPipe.idl \
|
---|
138 | nsISeekableStream.idl \
|
---|
139 | nsIStorageStream.idl \
|
---|
140 | nsIStringStream.idl \
|
---|
141 | nsIStreamBufferAccess.idl \
|
---|
142 | nsIAsyncInputStream.idl \
|
---|
143 | nsIAsyncOutputStream.idl \
|
---|
144 | $(NULL)
|
---|
145 |
|
---|
146 | ifneq (,$(filter mac cocoa,$(MOZ_WIDGET_TOOLKIT)))
|
---|
147 | XPIDLSRCS += nsILocalFileMac.idl
|
---|
148 | endif
|
---|
149 |
|
---|
150 | SDK_XPIDLSRCS = \
|
---|
151 | nsIDirectoryService.idl \
|
---|
152 | nsIFile.idl \
|
---|
153 | nsILocalFile.idl \
|
---|
154 | nsIInputStream.idl \
|
---|
155 | nsIOutputStream.idl \
|
---|
156 | nsIScriptableInputStream.idl \
|
---|
157 | $(NULL)
|
---|
158 |
|
---|
159 | SDK_HEADERS = \
|
---|
160 | nsDirectoryServiceDefs.h \
|
---|
161 | $(NULL)
|
---|
162 |
|
---|
163 | EXPORTS := $(addprefix $(srcdir)/, $(EXPORTS))
|
---|
164 |
|
---|
165 | # we don't want the shared lib, but we want to force the creation of a static lib.
|
---|
166 | FORCE_STATIC_LIB = 1
|
---|
167 |
|
---|
168 | # Force use of PIC
|
---|
169 | FORCE_USE_PIC = 1
|
---|
170 |
|
---|
171 | include $(topsrcdir)/config/rules.mk
|
---|
172 |
|
---|
173 | DEFINES += -D_IMPL_NS_COM
|
---|
174 |
|
---|
175 | LOCAL_INCLUDES = -I..
|
---|