Bug 1867190 - Initialise the PHC allocate delay later r=glandium
[gecko.git] / xpcom / io / moz.build
blob91dca0cdd1851f4bf0b0aab2f8c1211fd29d9ce6
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/.
7 XPIDL_SOURCES += [
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",
17     "nsIFile.idl",
18     "nsIInputStream.idl",
19     "nsIInputStreamLength.idl",
20     "nsIInputStreamPriority.idl",
21     "nsIInputStreamTee.idl",
22     "nsIIOUtil.idl",
23     "nsILineInputStream.idl",
24     "nsILocalFileWin.idl",
25     "nsIMultiplexInputStream.idl",
26     "nsIObjectInputStream.idl",
27     "nsIObjectOutputStream.idl",
28     "nsIOutputStream.idl",
29     "nsIPipe.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":
45     XPIDL_SOURCES += [
46         "nsILocalFileMac.idl",
47     ]
49 if CONFIG["MOZ_WIDGET_TOOLKIT"] == "windows":
50     EXPORTS += ["nsLocalFileWin.h"]
51     EXPORTS.mozilla += [
52         "FileUtilsWin.h",
53     ]
54     UNIFIED_SOURCES += [
55         "FileUtilsWin.cpp",
56         "nsLocalFileWin.cpp",
57     ]
58 else:
59     EXPORTS += ["nsLocalFileUnix.h"]
60     UNIFIED_SOURCES += [
61         "nsLocalFileUnix.cpp",
62     ]
64 XPIDL_MODULE = "xpcom_io"
66 XPCOM_MANIFESTS += [
67     "components.conf",
70 EXPORTS += [
71     "FileDescriptorFile.h",
72     "nsAnonymousTemporaryFile.h",
73     "nsAppDirectoryServiceDefs.h",
74     "nsDirectoryService.h",
75     "nsDirectoryServiceDefs.h",
76     "nsDirectoryServiceUtils.h",
77     "nsEscape.h",
78     "nsLinebreakConverter.h",
79     "nsLocalFile.h",
80     "nsLocalFileCommon.h",
81     "nsMultiplexInputStream.h",
82     "nsNativeCharsetUtils.h",
83     "nsScriptableInputStream.h",
84     "nsStorageStream.h",
85     "nsStreamUtils.h",
86     "nsStringStream.h",
87     "nsUnicharInputStream.h",
88     "nsWildCard.h",
89     "SpecialSystemDirectory.h",
92 EXPORTS.mozilla += [
93     "Base64.h",
94     "FilePreferences.h",
95     "FixedBufferOutputStream.h",
96     "InputStreamLengthHelper.h",
97     "InputStreamLengthWrapper.h",
98     "NonBlockingAsyncInputStream.h",
99     "SlicedInputStream.h",
100     "SnappyCompressOutputStream.h",
101     "SnappyFrameUtils.h",
102     "SnappyUncompressInputStream.h",
103     "StreamBufferSink.h",
104     "StreamBufferSinkImpl.h",
105     "StreamBufferSource.h",
106     "StreamBufferSourceImpl.h",
109 UNIFIED_SOURCES += [
110     "Base64.cpp",
111     "crc32c.c",
112     "FileDescriptorFile.cpp",
113     "FilePreferences.cpp",
114     "FixedBufferOutputStream.cpp",
115     "InputStreamLengthHelper.cpp",
116     "InputStreamLengthWrapper.cpp",
117     "NonBlockingAsyncInputStream.cpp",
118     "nsAnonymousTemporaryFile.cpp",
119     "nsAppFileLocationProvider.cpp",
120     "nsBinaryStream.cpp",
121     "nsDirectoryService.cpp",
122     "nsEscape.cpp",
123     "nsInputStreamTee.cpp",
124     "nsIOUtil.cpp",
125     "nsLinebreakConverter.cpp",
126     "nsLocalFileCommon.cpp",
127     "nsMultiplexInputStream.cpp",
128     "nsNativeCharsetUtils.cpp",
129     "nsPipe3.cpp",
130     "nsScriptableBase64Encoder.cpp",
131     "nsScriptableInputStream.cpp",
132     "nsSegmentedBuffer.cpp",
133     "nsStorageStream.cpp",
134     "nsStreamUtils.cpp",
135     "nsStringStream.cpp",
136     "nsUnicharInputStream.cpp",
137     "nsWildCard.cpp",
138     "SlicedInputStream.cpp",
139     "SnappyCompressOutputStream.cpp",
140     "SnappyFrameUtils.cpp",
141     "SnappyUncompressInputStream.cpp",
142     "SpecialSystemDirectory.cpp",
145 if CONFIG["MOZ_WIDGET_TOOLKIT"] == "cocoa":
146     UNIFIED_SOURCES += [
147         "CocoaFileUtils.mm",
148     ]
150 DEFINES["MOZ_APP_BASENAME"] = '"%s"' % CONFIG["MOZ_APP_BASENAME"]
152 include("/ipc/chromium/chromium-config.mozbuild")
154 FINAL_LIBRARY = "xul"
156 if CONFIG["OS_ARCH"] == "Linux" and "lib64" in CONFIG["libdir"]:
157     DEFINES["HAVE_USR_LIB64_DIR"] = True
159 LOCAL_INCLUDES += [
160     "!..",
161     "../build",