2013-04-01 11:36:59 -07:00
|
|
|
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-25 13:20:02 -08: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 10:17:46 -07:00
|
|
|
XPIDL_SOURCES += [
|
|
|
|
'nsIAsyncInputStream.idl',
|
|
|
|
'nsIAsyncOutputStream.idl',
|
|
|
|
'nsIBinaryInputStream.idl',
|
|
|
|
'nsIBinaryOutputStream.idl',
|
|
|
|
'nsIConverterInputStream.idl',
|
|
|
|
'nsIConverterOutputStream.idl',
|
|
|
|
'nsIDirectoryEnumerator.idl',
|
|
|
|
'nsIDirectoryService.idl',
|
|
|
|
'nsIFile.idl',
|
|
|
|
'nsIInputStream.idl',
|
|
|
|
'nsIInputStreamTee.idl',
|
2013-10-23 16:05:43 -07:00
|
|
|
'nsIIOUtil.idl',
|
2013-03-12 10:17:46 -07: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 14:57:01 -08:00
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
|
2013-03-12 10:20:41 -07:00
|
|
|
XPIDL_SOURCES += [
|
|
|
|
'nsILocalFileMac.idl',
|
|
|
|
]
|
|
|
|
|
2014-02-10 14:57:01 -08:00
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
|
2013-04-16 12:24:43 -07:00
|
|
|
EXPORTS += ['nsLocalFileWin.h']
|
2014-01-31 19:14:03 -08:00
|
|
|
EXPORTS.mozilla += [
|
|
|
|
'FileUtilsWin.h',
|
|
|
|
]
|
2013-10-24 16:23:05 -07:00
|
|
|
SOURCES += [
|
2014-01-31 19:14:03 -08:00
|
|
|
'FileUtilsWin.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
'nsLocalFileWin.cpp',
|
|
|
|
]
|
2013-04-16 12:24:43 -07:00
|
|
|
else:
|
|
|
|
EXPORTS += ['nsLocalFileUnix.h']
|
2013-10-24 16:23:05 -07:00
|
|
|
SOURCES += [
|
2013-04-23 14:54:15 -07:00
|
|
|
'nsLocalFileUnix.cpp',
|
|
|
|
]
|
2013-04-16 12:24:43 -07:00
|
|
|
|
2013-03-11 22:00:00 -07:00
|
|
|
XPIDL_MODULE = 'xpcom_io'
|
|
|
|
|
2013-04-16 12:24:43 -07:00
|
|
|
EXPORTS += [
|
|
|
|
'nsAnonymousTemporaryFile.h',
|
|
|
|
'nsAppDirectoryServiceDefs.h',
|
|
|
|
'nsDirectoryService.h',
|
|
|
|
'nsDirectoryServiceAtomList.h',
|
2013-07-01 14:24:53 -07:00
|
|
|
'nsDirectoryServiceDefs.h',
|
|
|
|
'nsDirectoryServiceUtils.h',
|
2013-04-16 12:24:43 -07: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 16:05:43 -07:00
|
|
|
'SpecialSystemDirectory.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
]
|
|
|
|
|
|
|
|
EXPORTS.mozilla += [
|
|
|
|
'Base64.h',
|
|
|
|
]
|
|
|
|
|
2013-11-18 18:34:00 -08:00
|
|
|
UNIFIED_SOURCES += [
|
2013-04-23 14:54:15 -07:00
|
|
|
'Base64.cpp',
|
|
|
|
'nsAnonymousTemporaryFile.cpp',
|
|
|
|
'nsAppFileLocationProvider.cpp',
|
|
|
|
'nsBinaryStream.cpp',
|
|
|
|
'nsDirectoryService.cpp',
|
|
|
|
'nsEscape.cpp',
|
|
|
|
'nsInputStreamTee.cpp',
|
2013-10-23 16:05:43 -07:00
|
|
|
'nsIOUtil.cpp',
|
2013-04-23 14:54:15 -07: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',
|
2013-10-23 16:05:43 -07:00
|
|
|
'SpecialSystemDirectory.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
]
|
|
|
|
|
2013-06-07 08:43:39 -07:00
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
|
2013-10-24 16:23:05 -07:00
|
|
|
SOURCES += [
|
2013-06-07 08:43:39 -07:00
|
|
|
'CocoaFileUtils.mm',
|
|
|
|
]
|
2013-08-21 23:56:01 -07:00
|
|
|
|
2013-11-26 09:53:54 -08:00
|
|
|
FAIL_ON_WARNINGS = True
|
|
|
|
|
2013-08-21 23:56:01 -07:00
|
|
|
MSVC_ENABLE_PGO = True
|
|
|
|
|
2013-10-02 10:17:55 -07:00
|
|
|
include('/ipc/chromium/chromium-config.mozbuild')
|
|
|
|
|
2014-07-22 16:37:51 -07:00
|
|
|
FINAL_LIBRARY = 'xul'
|
2013-11-27 05:55:07 -08:00
|
|
|
|
|
|
|
if CONFIG['OS_ARCH'] == 'Linux' and 'lib64' in CONFIG['libdir']:
|
|
|
|
DEFINES['HAVE_USR_LIB64_DIR'] = True
|
2014-02-18 06:01:06 -08:00
|
|
|
|
|
|
|
GENERATED_INCLUDES += ['..']
|