2013-04-01 18:36:59 +00:00
|
|
|
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-25 21:20:02 +00:00
|
|
|
# vim: set filetype=python:
|
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
|
2013-03-12 17:17:46 +00:00
|
|
|
XPIDL_SOURCES += [
|
|
|
|
'nsIAsyncInputStream.idl',
|
|
|
|
'nsIAsyncOutputStream.idl',
|
|
|
|
'nsIBinaryInputStream.idl',
|
|
|
|
'nsIBinaryOutputStream.idl',
|
2015-02-11 04:55:43 +00:00
|
|
|
'nsICloneableInputStream.idl',
|
2013-03-12 17:17:46 +00:00
|
|
|
'nsIConverterInputStream.idl',
|
|
|
|
'nsIConverterOutputStream.idl',
|
|
|
|
'nsIDirectoryEnumerator.idl',
|
|
|
|
'nsIDirectoryService.idl',
|
|
|
|
'nsIFile.idl',
|
|
|
|
'nsIInputStream.idl',
|
|
|
|
'nsIInputStreamTee.idl',
|
2013-10-23 23:05:43 +00:00
|
|
|
'nsIIOUtil.idl',
|
2013-03-12 17:17:46 +00:00
|
|
|
'nsILineInputStream.idl',
|
|
|
|
'nsILocalFile.idl',
|
|
|
|
'nsILocalFileWin.idl',
|
|
|
|
'nsIMultiplexInputStream.idl',
|
|
|
|
'nsIObjectInputStream.idl',
|
|
|
|
'nsIObjectOutputStream.idl',
|
|
|
|
'nsIOutputStream.idl',
|
|
|
|
'nsIPipe.idl',
|
|
|
|
'nsISafeOutputStream.idl',
|
|
|
|
'nsIScriptableBase64Encoder.idl',
|
|
|
|
'nsIScriptableInputStream.idl',
|
|
|
|
'nsISeekableStream.idl',
|
|
|
|
'nsISimpleUnicharStreamFactory.idl',
|
|
|
|
'nsIStorageStream.idl',
|
|
|
|
'nsIStreamBufferAccess.idl',
|
|
|
|
'nsIStringStream.idl',
|
|
|
|
'nsIUnicharInputStream.idl',
|
|
|
|
'nsIUnicharLineInputStream.idl',
|
|
|
|
'nsIUnicharOutputStream.idl',
|
|
|
|
]
|
|
|
|
|
2014-02-10 22:57:01 +00:00
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
|
2013-03-12 17:20:41 +00:00
|
|
|
XPIDL_SOURCES += [
|
|
|
|
'nsILocalFileMac.idl',
|
|
|
|
]
|
|
|
|
|
2014-02-10 22:57:01 +00:00
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
|
2013-04-16 19:24:43 +00:00
|
|
|
EXPORTS += ['nsLocalFileWin.h']
|
2014-02-01 03:14:03 +00:00
|
|
|
EXPORTS.mozilla += [
|
|
|
|
'FileUtilsWin.h',
|
|
|
|
]
|
2013-10-24 23:23:05 +00:00
|
|
|
SOURCES += [
|
2014-02-01 03:14:03 +00:00
|
|
|
'FileUtilsWin.cpp',
|
2013-04-23 21:54:15 +00:00
|
|
|
'nsLocalFileWin.cpp',
|
|
|
|
]
|
2013-04-16 19:24:43 +00:00
|
|
|
else:
|
|
|
|
EXPORTS += ['nsLocalFileUnix.h']
|
2013-10-24 23:23:05 +00:00
|
|
|
SOURCES += [
|
2013-04-23 21:54:15 +00:00
|
|
|
'nsLocalFileUnix.cpp',
|
|
|
|
]
|
2013-04-16 19:24:43 +00:00
|
|
|
|
2013-03-12 05:00:00 +00:00
|
|
|
XPIDL_MODULE = 'xpcom_io'
|
|
|
|
|
2013-04-16 19:24:43 +00:00
|
|
|
EXPORTS += [
|
|
|
|
'nsAnonymousTemporaryFile.h',
|
|
|
|
'nsAppDirectoryServiceDefs.h',
|
|
|
|
'nsDirectoryService.h',
|
|
|
|
'nsDirectoryServiceAtomList.h',
|
2013-07-01 21:24:53 +00:00
|
|
|
'nsDirectoryServiceDefs.h',
|
|
|
|
'nsDirectoryServiceUtils.h',
|
2013-04-16 19:24:43 +00:00
|
|
|
'nsEscape.h',
|
|
|
|
'nsLinebreakConverter.h',
|
|
|
|
'nsLocalFile.h',
|
|
|
|
'nsMultiplexInputStream.h',
|
|
|
|
'nsNativeCharsetUtils.h',
|
|
|
|
'nsScriptableInputStream.h',
|
|
|
|
'nsStorageStream.h',
|
|
|
|
'nsStreamUtils.h',
|
|
|
|
'nsStringStream.h',
|
|
|
|
'nsUnicharInputStream.h',
|
|
|
|
'nsWildCard.h',
|
2013-10-23 23:05:43 +00:00
|
|
|
'SpecialSystemDirectory.h',
|
2013-04-16 19:24:43 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
EXPORTS.mozilla += [
|
|
|
|
'Base64.h',
|
2014-12-12 19:12:27 +00:00
|
|
|
'SnappyCompressOutputStream.h',
|
|
|
|
'SnappyFrameUtils.h',
|
|
|
|
'SnappyUncompressInputStream.h',
|
2013-04-16 19:24:43 +00:00
|
|
|
]
|
|
|
|
|
2013-11-19 02:34:00 +00:00
|
|
|
UNIFIED_SOURCES += [
|
2013-04-23 21:54:15 +00:00
|
|
|
'Base64.cpp',
|
2014-12-12 19:12:27 +00:00
|
|
|
'crc32c.c',
|
2013-04-23 21:54:15 +00:00
|
|
|
'nsAnonymousTemporaryFile.cpp',
|
|
|
|
'nsAppFileLocationProvider.cpp',
|
|
|
|
'nsBinaryStream.cpp',
|
|
|
|
'nsDirectoryService.cpp',
|
|
|
|
'nsEscape.cpp',
|
|
|
|
'nsInputStreamTee.cpp',
|
2013-10-23 23:05:43 +00:00
|
|
|
'nsIOUtil.cpp',
|
2013-04-23 21:54:15 +00:00
|
|
|
'nsLinebreakConverter.cpp',
|
|
|
|
'nsLocalFileCommon.cpp',
|
|
|
|
'nsMultiplexInputStream.cpp',
|
|
|
|
'nsNativeCharsetUtils.cpp',
|
|
|
|
'nsPipe3.cpp',
|
|
|
|
'nsScriptableBase64Encoder.cpp',
|
|
|
|
'nsScriptableInputStream.cpp',
|
|
|
|
'nsSegmentedBuffer.cpp',
|
|
|
|
'nsStorageStream.cpp',
|
|
|
|
'nsStreamUtils.cpp',
|
|
|
|
'nsStringStream.cpp',
|
|
|
|
'nsUnicharInputStream.cpp',
|
|
|
|
'nsWildCard.cpp',
|
2014-12-12 19:12:27 +00:00
|
|
|
'SnappyCompressOutputStream.cpp',
|
|
|
|
'SnappyFrameUtils.cpp',
|
|
|
|
'SnappyUncompressInputStream.cpp',
|
2013-10-23 23:05:43 +00:00
|
|
|
'SpecialSystemDirectory.cpp',
|
2013-04-23 21:54:15 +00:00
|
|
|
]
|
|
|
|
|
2013-06-07 15:43:39 +00:00
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
|
2013-10-24 23:23:05 +00:00
|
|
|
SOURCES += [
|
2013-06-07 15:43:39 +00:00
|
|
|
'CocoaFileUtils.mm',
|
|
|
|
]
|
2013-08-22 06:56:01 +00:00
|
|
|
|
2015-08-25 16:14:38 +00:00
|
|
|
if CONFIG['GNU_CC']:
|
|
|
|
CFLAGS += ['-Wshadow']
|
|
|
|
|
2013-11-26 17:53:54 +00:00
|
|
|
FAIL_ON_WARNINGS = True
|
|
|
|
|
2013-10-02 17:17:55 +00:00
|
|
|
include('/ipc/chromium/chromium-config.mozbuild')
|
|
|
|
|
2014-07-22 23:37:51 +00:00
|
|
|
FINAL_LIBRARY = 'xul'
|
2013-11-27 13:55:07 +00:00
|
|
|
|
|
|
|
if CONFIG['OS_ARCH'] == 'Linux' and 'lib64' in CONFIG['libdir']:
|
|
|
|
DEFINES['HAVE_USR_LIB64_DIR'] = True
|
2014-02-18 14:01:06 +00:00
|
|
|
|
|
|
|
GENERATED_INCLUDES += ['..']
|