Bug 1910362 - Create new Nimbus helper r=aaronmt,ohorvath
[gecko.git] / xpcom / io / moz.build
blobf137529b5b0d7fdac73189438f55bfa8fd4d527c
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     ]
63     CXXFLAGS += CONFIG["MOZ_GTK3_CFLAGS"]
65 XPIDL_MODULE = "xpcom_io"
67 XPCOM_MANIFESTS += [
68     "components.conf",
71 EXPORTS += [
72     "FileDescriptorFile.h",
73     "nsAnonymousTemporaryFile.h",
74     "nsAppDirectoryServiceDefs.h",
75     "nsDirectoryService.h",
76     "nsDirectoryServiceDefs.h",
77     "nsDirectoryServiceUtils.h",
78     "nsEscape.h",
79     "nsLinebreakConverter.h",
80     "nsLocalFile.h",
81     "nsLocalFileCommon.h",
82     "nsMultiplexInputStream.h",
83     "nsNativeCharsetUtils.h",
84     "nsScriptableInputStream.h",
85     "nsStorageStream.h",
86     "nsStreamUtils.h",
87     "nsStringStream.h",
88     "nsUnicharInputStream.h",
89     "nsWildCard.h",
90     "SpecialSystemDirectory.h",
93 EXPORTS.mozilla += [
94     "Base64.h",
95     "FilePreferences.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",
110 UNIFIED_SOURCES += [
111     "Base64.cpp",
112     "crc32c.c",
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",
123     "nsEscape.cpp",
124     "nsInputStreamTee.cpp",
125     "nsIOUtil.cpp",
126     "nsLinebreakConverter.cpp",
127     "nsLocalFileCommon.cpp",
128     "nsMultiplexInputStream.cpp",
129     "nsNativeCharsetUtils.cpp",
130     "nsPipe3.cpp",
131     "nsScriptableBase64Encoder.cpp",
132     "nsScriptableInputStream.cpp",
133     "nsSegmentedBuffer.cpp",
134     "nsStorageStream.cpp",
135     "nsStreamUtils.cpp",
136     "nsStringStream.cpp",
137     "nsUnicharInputStream.cpp",
138     "nsWildCard.cpp",
139     "SlicedInputStream.cpp",
140     "SnappyCompressOutputStream.cpp",
141     "SnappyFrameUtils.cpp",
142     "SnappyUncompressInputStream.cpp",
143     "SpecialSystemDirectory.cpp",
146 if CONFIG["MOZ_WIDGET_TOOLKIT"] == "cocoa":
147     UNIFIED_SOURCES += [
148         "CocoaFileUtils.mm",
149     ]
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
160 LOCAL_INCLUDES += [
161     "!..",
162     "../build",