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