xpcom/io/moz.build

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/xpcom/io/moz.build	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,133 @@
     1.4 +# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
     1.5 +# vim: set filetype=python:
     1.6 +# This Source Code Form is subject to the terms of the Mozilla Public
     1.7 +# License, v. 2.0. If a copy of the MPL was not distributed with this
     1.8 +# file, You can obtain one at http://mozilla.org/MPL/2.0/.
     1.9 +
    1.10 +XPIDL_SOURCES += [
    1.11 +    'nsIAsyncInputStream.idl',
    1.12 +    'nsIAsyncOutputStream.idl',
    1.13 +    'nsIBinaryInputStream.idl',
    1.14 +    'nsIBinaryOutputStream.idl',
    1.15 +    'nsIConverterInputStream.idl',
    1.16 +    'nsIConverterOutputStream.idl',
    1.17 +    'nsIDirectoryEnumerator.idl',
    1.18 +    'nsIDirectoryService.idl',
    1.19 +    'nsIFile.idl',
    1.20 +    'nsIInputStream.idl',
    1.21 +    'nsIInputStreamTee.idl',
    1.22 +    'nsIIOUtil.idl',
    1.23 +    'nsILineInputStream.idl',
    1.24 +    'nsILocalFile.idl',
    1.25 +    'nsILocalFileWin.idl',
    1.26 +    'nsIMultiplexInputStream.idl',
    1.27 +    'nsIObjectInputStream.idl',
    1.28 +    'nsIObjectOutputStream.idl',
    1.29 +    'nsIOutputStream.idl',
    1.30 +    'nsIPipe.idl',
    1.31 +    'nsISafeOutputStream.idl',
    1.32 +    'nsIScriptableBase64Encoder.idl',
    1.33 +    'nsIScriptableInputStream.idl',
    1.34 +    'nsISeekableStream.idl',
    1.35 +    'nsISimpleUnicharStreamFactory.idl',
    1.36 +    'nsIStorageStream.idl',
    1.37 +    'nsIStreamBufferAccess.idl',
    1.38 +    'nsIStringStream.idl',
    1.39 +    'nsIUnicharInputStream.idl',
    1.40 +    'nsIUnicharLineInputStream.idl',
    1.41 +    'nsIUnicharOutputStream.idl',
    1.42 +]
    1.43 +
    1.44 +if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
    1.45 +    XPIDL_SOURCES += [
    1.46 +        'nsILocalFileMac.idl',
    1.47 +    ]
    1.48 +
    1.49 +if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
    1.50 +    EXPORTS += ['nsLocalFileWin.h']
    1.51 +    EXPORTS.mozilla += [
    1.52 +      'FileUtilsWin.h',
    1.53 +    ]
    1.54 +    SOURCES += [
    1.55 +        'FileUtilsWin.cpp',
    1.56 +        'nsLocalFileWin.cpp',
    1.57 +    ]
    1.58 +else:
    1.59 +    EXPORTS += ['nsLocalFileUnix.h']
    1.60 +    SOURCES += [
    1.61 +        'nsLocalFileUnix.cpp',
    1.62 +    ]
    1.63 +
    1.64 +XPIDL_MODULE = 'xpcom_io'
    1.65 +
    1.66 +EXPORTS += [
    1.67 +    'nsAnonymousTemporaryFile.h',
    1.68 +    'nsAppDirectoryServiceDefs.h',
    1.69 +    'nsDirectoryService.h',
    1.70 +    'nsDirectoryServiceAtomList.h',
    1.71 +    'nsDirectoryServiceDefs.h',
    1.72 +    'nsDirectoryServiceUtils.h',
    1.73 +    'nsEscape.h',
    1.74 +    'nsLinebreakConverter.h',
    1.75 +    'nsLocalFile.h',
    1.76 +    'nsMultiplexInputStream.h',
    1.77 +    'nsNativeCharsetUtils.h',
    1.78 +    'nsScriptableInputStream.h',
    1.79 +    'nsStorageStream.h',
    1.80 +    'nsStreamUtils.h',
    1.81 +    'nsStringStream.h',
    1.82 +    'nsUnicharInputStream.h',
    1.83 +    'nsWildCard.h',
    1.84 +    'SpecialSystemDirectory.h',
    1.85 +]
    1.86 +
    1.87 +EXPORTS.mozilla += [
    1.88 +    'Base64.h',
    1.89 +]
    1.90 +
    1.91 +UNIFIED_SOURCES += [
    1.92 +    'Base64.cpp',
    1.93 +    'nsAnonymousTemporaryFile.cpp',
    1.94 +    'nsAppFileLocationProvider.cpp',
    1.95 +    'nsBinaryStream.cpp',
    1.96 +    'nsDirectoryService.cpp',
    1.97 +    'nsEscape.cpp',
    1.98 +    'nsInputStreamTee.cpp',
    1.99 +    'nsIOUtil.cpp',
   1.100 +    'nsLinebreakConverter.cpp',
   1.101 +    'nsLocalFileCommon.cpp',
   1.102 +    'nsMultiplexInputStream.cpp',
   1.103 +    'nsNativeCharsetUtils.cpp',
   1.104 +    'nsPipe3.cpp',
   1.105 +    'nsScriptableBase64Encoder.cpp',
   1.106 +    'nsScriptableInputStream.cpp',
   1.107 +    'nsSegmentedBuffer.cpp',
   1.108 +    'nsStorageStream.cpp',
   1.109 +    'nsStreamUtils.cpp',
   1.110 +    'nsStringStream.cpp',
   1.111 +    'nsUnicharInputStream.cpp',
   1.112 +    'nsWildCard.cpp',
   1.113 +    'SpecialSystemDirectory.cpp',
   1.114 +]
   1.115 +
   1.116 +if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
   1.117 +    SOURCES += [
   1.118 +        'CocoaFileUtils.mm',
   1.119 +    ]
   1.120 +
   1.121 +FAIL_ON_WARNINGS = True
   1.122 +
   1.123 +MSVC_ENABLE_PGO = True
   1.124 +
   1.125 +include('/ipc/chromium/chromium-config.mozbuild')
   1.126 +
   1.127 +FINAL_LIBRARY = 'xpcom_core'
   1.128 +
   1.129 +if CONFIG['OS_ARCH'] == 'Linux' and 'lib64' in CONFIG['libdir']:
   1.130 +    DEFINES['HAVE_USR_LIB64_DIR'] = True
   1.131 +
   1.132 +LOCAL_INCLUDES += [
   1.133 +    '../build'
   1.134 +]
   1.135 +
   1.136 +GENERATED_INCLUDES += ['..']

mercurial