dom/base/moz.build

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/base/moz.build	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,183 @@
     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 +TEST_DIRS += ['test']
    1.11 +
    1.12 +XPIDL_SOURCES += [
    1.13 +    'nsIConsoleAPIStorage.idl',
    1.14 +    'nsIDOMDOMCursor.idl',
    1.15 +    'nsIDOMDOMRequest.idl',
    1.16 +    'nsIEntropyCollector.idl',
    1.17 +    'nsIScriptChannel.idl',
    1.18 +    'nsISiteSpecificUserAgent.idl',
    1.19 +]
    1.20 +
    1.21 +XPIDL_MODULE = 'dom'
    1.22 +
    1.23 +EXPORTS += [
    1.24 +    'Crypto.h',
    1.25 +    'nsContentPermissionHelper.h',
    1.26 +    'nsDOMCID.h',
    1.27 +    'nsDOMClassInfoClasses.h',
    1.28 +    'nsDOMClassInfoID.h',
    1.29 +    'nsDOMJSUtils.h',
    1.30 +    'nsDOMNavigationTiming.h',
    1.31 +    'nsDOMString.h',
    1.32 +    'nsFocusManager.h',
    1.33 +    'nsIDOMClassInfo.h',
    1.34 +    'nsIDOMScriptObjectFactory.h',
    1.35 +    'nsIGlobalObject.h',
    1.36 +    'nsIJSNativeInitializer.h',
    1.37 +    'nsIScriptContext.h',
    1.38 +    'nsIScriptExternalNameSet.h',
    1.39 +    'nsIScriptGlobalObject.h',
    1.40 +    'nsIScriptNameSpaceManager.h',
    1.41 +    'nsIScriptObjectPrincipal.h',
    1.42 +    'nsIScriptTimeoutHandler.h',
    1.43 +    'nsJSEnvironment.h',
    1.44 +    'nsJSUtils.h',
    1.45 +    'nsPerformance.h',
    1.46 +    'nsPIDOMWindow.h',
    1.47 +    'nsPIWindowRoot.h',
    1.48 +    'nsStructuredCloneContainer.h',
    1.49 +    'nsWindowMemoryReporter.h',
    1.50 +    'nsWrapperCache.h',
    1.51 +    'nsWrapperCacheInlines.h',
    1.52 +]
    1.53 +
    1.54 +EXPORTS.mozilla.dom += [
    1.55 +    'BarProps.h',
    1.56 +    'Console.h',
    1.57 +    'DOMCursor.h',
    1.58 +    'DOMError.h',
    1.59 +    'DOMException.h',
    1.60 +    'DOMRequest.h',
    1.61 +    'MessageChannel.h',
    1.62 +    'MessagePort.h',
    1.63 +    'MessagePortList.h',
    1.64 +    'Navigator.h',
    1.65 +    'PerformanceEntry.h',
    1.66 +    'PerformanceResourceTiming.h',
    1.67 +    'ScreenOrientation.h',
    1.68 +    'ScriptSettings.h',
    1.69 +    'StructuredCloneTags.h',
    1.70 +    'URL.h',
    1.71 +    'URLSearchParams.h',
    1.72 +]
    1.73 +
    1.74 +UNIFIED_SOURCES += [
    1.75 +    'BarProps.cpp',
    1.76 +    'CompositionStringSynthesizer.cpp',
    1.77 +    'Console.cpp',
    1.78 +    'Crypto.cpp',
    1.79 +    'DOMCursor.cpp',
    1.80 +    'DOMError.cpp',
    1.81 +    'DOMException.cpp',
    1.82 +    'DOMRequest.cpp',
    1.83 +    'MessageChannel.cpp',
    1.84 +    'MessagePortList.cpp',
    1.85 +    'Navigator.cpp',
    1.86 +    'nsContentPermissionHelper.cpp',
    1.87 +    'nsDOMClassInfo.cpp',
    1.88 +    'nsDOMNavigationTiming.cpp',
    1.89 +    'nsDOMScriptObjectFactory.cpp',
    1.90 +    'nsDOMWindowList.cpp',
    1.91 +    'nsFocusManager.cpp',
    1.92 +    'nsGlobalWindowCommands.cpp',
    1.93 +    'nsHistory.cpp',
    1.94 +    'nsIGlobalObject.cpp',
    1.95 +    'nsJSTimeoutHandler.cpp',
    1.96 +    'nsJSUtils.cpp',
    1.97 +    'nsLocation.cpp',
    1.98 +    'nsMimeTypeArray.cpp',
    1.99 +    'nsPerformance.cpp',
   1.100 +    'nsQueryContentEventResult.cpp',
   1.101 +    'nsScreen.cpp',
   1.102 +    'nsScriptNameSpaceManager.cpp',
   1.103 +    'nsStructuredCloneContainer.cpp',
   1.104 +    'nsWindowMemoryReporter.cpp',
   1.105 +    'nsWindowRoot.cpp',
   1.106 +    'nsWrapperCache.cpp',
   1.107 +    'PerformanceEntry.cpp',
   1.108 +    'PerformanceResourceTiming.cpp',
   1.109 +    'ScriptSettings.cpp',
   1.110 +    'URL.cpp',
   1.111 +    'URLSearchParams.cpp',
   1.112 +    'WindowNamedPropertiesHandler.cpp',
   1.113 +]
   1.114 +
   1.115 +# these files couldn't be in UNIFIED_SOURCES for now for reasons given below:
   1.116 +SOURCES += [
   1.117 +    # this file doesn't like windows.h
   1.118 +    'MessagePort.cpp',
   1.119 +    # this file doesn't like windows.h
   1.120 +    'nsDOMWindowUtils.cpp',
   1.121 +    # This file has a #error "Never include windows.h in this file!"
   1.122 +    'nsGlobalWindow.cpp',
   1.123 +    # This file forces NSPR logging.
   1.124 +    'nsJSEnvironment.cpp',
   1.125 +    # nsPluginArray.cpp includes npapi.h indirectly, and that includes a lot of system headers
   1.126 +    'nsPluginArray.cpp',
   1.127 +]
   1.128 +
   1.129 +EXTRA_COMPONENTS += [
   1.130 +    'ConsoleAPI.manifest',
   1.131 +    'ConsoleAPIStorage.js',
   1.132 +    'SiteSpecificUserAgent.js',
   1.133 +    'SiteSpecificUserAgent.manifest',
   1.134 +]
   1.135 +
   1.136 +EXTRA_JS_MODULES += [
   1.137 +    'DOMRequestHelper.jsm',
   1.138 +    'IndexedDBHelper.jsm',
   1.139 +    'ObjectWrapper.jsm',
   1.140 +]
   1.141 +
   1.142 +FAIL_ON_WARNINGS = True
   1.143 +
   1.144 +MSVC_ENABLE_PGO = True
   1.145 +
   1.146 +LOCAL_INCLUDES += [
   1.147 +    '../battery',
   1.148 +    '../bluetooth',
   1.149 +    '../events',
   1.150 +    '../media',
   1.151 +    '../network/src',
   1.152 +    '../src/geolocation',
   1.153 +    '../src/storage',
   1.154 +    '../time',
   1.155 +    '../workers',
   1.156 +    '../xbl',
   1.157 +    '/content/base/src',
   1.158 +    '/content/html/document/src',
   1.159 +    '/content/xul/document/src',
   1.160 +    '/layout/generic',
   1.161 +    '/layout/style',
   1.162 +    '/layout/xul',
   1.163 +    '/widget/shared',
   1.164 +]
   1.165 +
   1.166 +if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
   1.167 +    LOCAL_INCLUDES += [
   1.168 +        '../fmradio',
   1.169 +        '../system/gonk',
   1.170 +    ]
   1.171 +
   1.172 +include('/ipc/chromium/chromium-config.mozbuild')
   1.173 +
   1.174 +FINAL_LIBRARY = 'gklayout'
   1.175 +
   1.176 +LOCAL_INCLUDES += [
   1.177 +    '/js/xpconnect/src',
   1.178 +    '/js/xpconnect/wrappers',
   1.179 +]
   1.180 +
   1.181 +for var in ('MOZ_JSDEBUGGER', 'MOZ_B2G_RIL', 'MOZ_B2G_FM'):
   1.182 +    if CONFIG[var]:
   1.183 +        DEFINES[var] = True
   1.184 +
   1.185 +if CONFIG['MOZ_BUILD_APP'] in ['browser', 'mobile/android', 'xulrunner']:
   1.186 +    DEFINES['HAVE_SIDEBAR'] = True

mercurial