1 # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
2 # vim: set filetype=python:
3 # This Source Code Form is subject to the terms of the Mozilla Public
4 # License, v. 2.0. If a copy of the MPL was not distributed with this
5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 'nsIConsoleAPIStorage.idl',
10 'nsIDOMDOMRequest.idl',
11 'nsIEntropyCollector.idl',
12 'nsIScriptChannel.idl',
13 'nsISiteSpecificUserAgent.idl',
14 'nsISlowScriptDebug.idl',
21 'nsContentPermissionHelper.h',
23 'nsDOMClassInfoClasses.h',
26 'nsDOMNavigationTiming.h',
30 'nsIDOMScriptObjectFactory.h',
32 'nsIJSNativeInitializer.h',
34 'nsIScriptGlobalObject.h',
35 'nsIScriptNameSpaceManager.h',
36 'nsIScriptObjectPrincipal.h',
37 'nsIScriptTimeoutHandler.h',
43 'nsStructuredCloneContainer.h',
44 'nsWindowMemoryReporter.h',
46 'nsWrapperCacheInlines.h',
49 EXPORTS.mozilla.dom += [
59 'NameSpaceConstants.h',
64 'PerformanceResourceTiming.h',
65 'ScreenOrientation.h',
67 'StructuredCloneTags.h',
75 'CompositionStringSynthesizer.cpp',
83 'MessagePortList.cpp',
86 'nsContentPermissionHelper.cpp',
88 'nsDOMNavigationTiming.cpp',
89 'nsDOMScriptObjectFactory.cpp',
90 'nsDOMWindowList.cpp',
92 'nsGlobalWindowCommands.cpp',
94 'nsIGlobalObject.cpp',
95 'nsJSTimeoutHandler.cpp',
98 'nsMimeTypeArray.cpp',
100 'nsQueryContentEventResult.cpp',
102 'nsScriptNameSpaceManager.cpp',
103 'nsStructuredCloneContainer.cpp',
104 'nsWindowMemoryReporter.cpp',
106 'nsWrapperCache.cpp',
107 'PerformanceEntry.cpp',
108 'PerformanceResourceTiming.cpp',
109 'ScriptSettings.cpp',
112 'URLSearchParams.cpp',
113 'WindowNamedPropertiesHandler.cpp',
116 # these files couldn't be in UNIFIED_SOURCES for now for reasons given below:
118 # this file doesn't like windows.h
120 # this file doesn't like windows.h
121 'nsDOMWindowUtils.cpp',
122 # This file has a #error "Never include windows.h in this file!"
123 'nsGlobalWindow.cpp',
124 # This file forces NSPR logging.
125 'nsJSEnvironment.cpp',
126 # nsPluginArray.cpp includes npapi.h indirectly, and that includes a lot of system headers
130 EXTRA_COMPONENTS += [
131 'ConsoleAPI.manifest',
132 'ConsoleAPIStorage.js',
133 'SiteSpecificUserAgent.js',
134 'SiteSpecificUserAgent.manifest',
135 'SlowScriptDebug.js',
136 'SlowScriptDebug.manifest',
139 EXTRA_JS_MODULES += [
140 'DOMRequestHelper.jsm',
141 'IndexedDBHelper.jsm',
144 FAIL_ON_WARNINGS = True
146 MSVC_ENABLE_PGO = True
158 '/content/html/document/src',
159 '/content/xul/document/src',
169 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
175 include('/ipc/chromium/chromium-config.mozbuild')
177 FINAL_LIBRARY = 'xul'
181 '/js/xpconnect/wrappers',
184 for var in ('MOZ_B2G_RIL', 'MOZ_B2G_FM'):
188 if CONFIG['MOZ_BUILD_APP'] in ['browser', 'mobile/android', 'xulrunner']:
189 DEFINES['HAVE_SIDEBAR'] = True
191 MOCHITEST_MANIFESTS += ['test/mochitest.ini']
192 MOCHITEST_CHROME_MANIFESTS += ['test/chrome.ini']
194 if CONFIG['MOZ_X11']:
195 CXXFLAGS += CONFIG['TK_CFLAGS']