michael@0: # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- michael@0: # vim: set filetype=python: michael@0: # This Source Code Form is subject to the terms of the Mozilla Public michael@0: # License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: # file, You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: michael@0: XPIDL_SOURCES += [ michael@0: 'nsIAsyncInputStream.idl', michael@0: 'nsIAsyncOutputStream.idl', michael@0: 'nsIBinaryInputStream.idl', michael@0: 'nsIBinaryOutputStream.idl', michael@0: 'nsIConverterInputStream.idl', michael@0: 'nsIConverterOutputStream.idl', michael@0: 'nsIDirectoryEnumerator.idl', michael@0: 'nsIDirectoryService.idl', michael@0: 'nsIFile.idl', michael@0: 'nsIInputStream.idl', michael@0: 'nsIInputStreamTee.idl', michael@0: 'nsIIOUtil.idl', michael@0: 'nsILineInputStream.idl', michael@0: 'nsILocalFile.idl', michael@0: 'nsILocalFileWin.idl', michael@0: 'nsIMultiplexInputStream.idl', michael@0: 'nsIObjectInputStream.idl', michael@0: 'nsIObjectOutputStream.idl', michael@0: 'nsIOutputStream.idl', michael@0: 'nsIPipe.idl', michael@0: 'nsISafeOutputStream.idl', michael@0: 'nsIScriptableBase64Encoder.idl', michael@0: 'nsIScriptableInputStream.idl', michael@0: 'nsISeekableStream.idl', michael@0: 'nsISimpleUnicharStreamFactory.idl', michael@0: 'nsIStorageStream.idl', michael@0: 'nsIStreamBufferAccess.idl', michael@0: 'nsIStringStream.idl', michael@0: 'nsIUnicharInputStream.idl', michael@0: 'nsIUnicharLineInputStream.idl', michael@0: 'nsIUnicharOutputStream.idl', michael@0: ] michael@0: michael@0: if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa': michael@0: XPIDL_SOURCES += [ michael@0: 'nsILocalFileMac.idl', michael@0: ] michael@0: michael@0: if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows': michael@0: EXPORTS += ['nsLocalFileWin.h'] michael@0: EXPORTS.mozilla += [ michael@0: 'FileUtilsWin.h', michael@0: ] michael@0: SOURCES += [ michael@0: 'FileUtilsWin.cpp', michael@0: 'nsLocalFileWin.cpp', michael@0: ] michael@0: else: michael@0: EXPORTS += ['nsLocalFileUnix.h'] michael@0: SOURCES += [ michael@0: 'nsLocalFileUnix.cpp', michael@0: ] michael@0: michael@0: XPIDL_MODULE = 'xpcom_io' michael@0: michael@0: EXPORTS += [ michael@0: 'nsAnonymousTemporaryFile.h', michael@0: 'nsAppDirectoryServiceDefs.h', michael@0: 'nsDirectoryService.h', michael@0: 'nsDirectoryServiceAtomList.h', michael@0: 'nsDirectoryServiceDefs.h', michael@0: 'nsDirectoryServiceUtils.h', michael@0: 'nsEscape.h', michael@0: 'nsLinebreakConverter.h', michael@0: 'nsLocalFile.h', michael@0: 'nsMultiplexInputStream.h', michael@0: 'nsNativeCharsetUtils.h', michael@0: 'nsScriptableInputStream.h', michael@0: 'nsStorageStream.h', michael@0: 'nsStreamUtils.h', michael@0: 'nsStringStream.h', michael@0: 'nsUnicharInputStream.h', michael@0: 'nsWildCard.h', michael@0: 'SpecialSystemDirectory.h', michael@0: ] michael@0: michael@0: EXPORTS.mozilla += [ michael@0: 'Base64.h', michael@0: ] michael@0: michael@0: UNIFIED_SOURCES += [ michael@0: 'Base64.cpp', michael@0: 'nsAnonymousTemporaryFile.cpp', michael@0: 'nsAppFileLocationProvider.cpp', michael@0: 'nsBinaryStream.cpp', michael@0: 'nsDirectoryService.cpp', michael@0: 'nsEscape.cpp', michael@0: 'nsInputStreamTee.cpp', michael@0: 'nsIOUtil.cpp', michael@0: 'nsLinebreakConverter.cpp', michael@0: 'nsLocalFileCommon.cpp', michael@0: 'nsMultiplexInputStream.cpp', michael@0: 'nsNativeCharsetUtils.cpp', michael@0: 'nsPipe3.cpp', michael@0: 'nsScriptableBase64Encoder.cpp', michael@0: 'nsScriptableInputStream.cpp', michael@0: 'nsSegmentedBuffer.cpp', michael@0: 'nsStorageStream.cpp', michael@0: 'nsStreamUtils.cpp', michael@0: 'nsStringStream.cpp', michael@0: 'nsUnicharInputStream.cpp', michael@0: 'nsWildCard.cpp', michael@0: 'SpecialSystemDirectory.cpp', michael@0: ] michael@0: michael@0: if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa': michael@0: SOURCES += [ michael@0: 'CocoaFileUtils.mm', michael@0: ] michael@0: michael@0: FAIL_ON_WARNINGS = True michael@0: michael@0: MSVC_ENABLE_PGO = True michael@0: michael@0: include('/ipc/chromium/chromium-config.mozbuild') michael@0: michael@0: FINAL_LIBRARY = 'xpcom_core' michael@0: michael@0: if CONFIG['OS_ARCH'] == 'Linux' and 'lib64' in CONFIG['libdir']: michael@0: DEFINES['HAVE_USR_LIB64_DIR'] = True michael@0: michael@0: LOCAL_INCLUDES += [ michael@0: '../build' michael@0: ] michael@0: michael@0: GENERATED_INCLUDES += ['..']