1 # -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
2 # vim: set filetype=python:
3 # This Source Code Form is subject to the terms of the Mozilla Public
4 # License, v. 2.0. If a copy of the MPL was not distributed with this
5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 "nsIAsyncInputStream.idl",
9 "nsIAsyncOutputStream.idl",
10 "nsIBinaryInputStream.idl",
11 "nsIBinaryOutputStream.idl",
12 "nsICloneableInputStream.idl",
13 "nsIConverterInputStream.idl",
14 "nsIConverterOutputStream.idl",
15 "nsIDirectoryEnumerator.idl",
16 "nsIDirectoryService.idl",
19 "nsIInputStreamLength.idl",
20 "nsIInputStreamPriority.idl",
21 "nsIInputStreamTee.idl",
23 "nsILineInputStream.idl",
24 "nsILocalFileWin.idl",
25 "nsIMultiplexInputStream.idl",
26 "nsIObjectInputStream.idl",
27 "nsIObjectOutputStream.idl",
28 "nsIOutputStream.idl",
30 "nsIRandomAccessStream.idl",
31 "nsISafeOutputStream.idl",
32 "nsIScriptableBase64Encoder.idl",
33 "nsIScriptableInputStream.idl",
34 "nsISeekableStream.idl",
35 "nsIStorageStream.idl",
36 "nsIStreamBufferAccess.idl",
37 "nsIStringStream.idl",
38 "nsITellableStream.idl",
39 "nsIUnicharInputStream.idl",
40 "nsIUnicharLineInputStream.idl",
41 "nsIUnicharOutputStream.idl",
44 if CONFIG["MOZ_WIDGET_TOOLKIT"] == "cocoa":
46 "nsILocalFileMac.idl",
49 if CONFIG["MOZ_WIDGET_TOOLKIT"] == "windows":
50 EXPORTS += ["nsLocalFileWin.h"]
59 EXPORTS += ["nsLocalFileUnix.h"]
61 "nsLocalFileUnix.cpp",
63 CXXFLAGS += CONFIG["MOZ_GTK3_CFLAGS"]
65 XPIDL_MODULE = "xpcom_io"
72 "FileDescriptorFile.h",
73 "nsAnonymousTemporaryFile.h",
74 "nsAppDirectoryServiceDefs.h",
75 "nsDirectoryService.h",
76 "nsDirectoryServiceDefs.h",
77 "nsDirectoryServiceUtils.h",
79 "nsLinebreakConverter.h",
81 "nsLocalFileCommon.h",
82 "nsMultiplexInputStream.h",
83 "nsNativeCharsetUtils.h",
84 "nsScriptableInputStream.h",
88 "nsUnicharInputStream.h",
90 "SpecialSystemDirectory.h",
96 "FixedBufferOutputStream.h",
97 "InputStreamLengthHelper.h",
98 "InputStreamLengthWrapper.h",
99 "NonBlockingAsyncInputStream.h",
100 "SlicedInputStream.h",
101 "SnappyCompressOutputStream.h",
102 "SnappyFrameUtils.h",
103 "SnappyUncompressInputStream.h",
104 "StreamBufferSink.h",
105 "StreamBufferSinkImpl.h",
106 "StreamBufferSource.h",
107 "StreamBufferSourceImpl.h",
113 "FileDescriptorFile.cpp",
114 "FilePreferences.cpp",
115 "FixedBufferOutputStream.cpp",
116 "InputStreamLengthHelper.cpp",
117 "InputStreamLengthWrapper.cpp",
118 "NonBlockingAsyncInputStream.cpp",
119 "nsAnonymousTemporaryFile.cpp",
120 "nsAppFileLocationProvider.cpp",
121 "nsBinaryStream.cpp",
122 "nsDirectoryService.cpp",
124 "nsInputStreamTee.cpp",
126 "nsLinebreakConverter.cpp",
127 "nsLocalFileCommon.cpp",
128 "nsMultiplexInputStream.cpp",
129 "nsNativeCharsetUtils.cpp",
131 "nsScriptableBase64Encoder.cpp",
132 "nsScriptableInputStream.cpp",
133 "nsSegmentedBuffer.cpp",
134 "nsStorageStream.cpp",
136 "nsStringStream.cpp",
137 "nsUnicharInputStream.cpp",
139 "SlicedInputStream.cpp",
140 "SnappyCompressOutputStream.cpp",
141 "SnappyFrameUtils.cpp",
142 "SnappyUncompressInputStream.cpp",
143 "SpecialSystemDirectory.cpp",
146 if CONFIG["MOZ_WIDGET_TOOLKIT"] == "cocoa":
151 DEFINES["MOZ_APP_BASENAME"] = '"%s"' % CONFIG["MOZ_APP_BASENAME"]
153 include("/ipc/chromium/chromium-config.mozbuild")
155 FINAL_LIBRARY = "xul"
157 if CONFIG["OS_ARCH"] == "Linux" and "lib64" in CONFIG["libdir"]:
158 DEFINES["HAVE_USR_LIB64_DIR"] = True