2013-04-01 11:36:59 -07:00
|
|
|
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-25 12:47:20 -08: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 10:17:46 -07:00
|
|
|
XPIDL_SOURCES += [
|
2014-02-27 15:38:54 -08:00
|
|
|
'nsIConsoleAPIStorage.idl',
|
2013-03-12 10:17:46 -07:00
|
|
|
'nsIDOMDOMCursor.idl',
|
|
|
|
'nsIDOMDOMRequest.idl',
|
|
|
|
'nsIEntropyCollector.idl',
|
|
|
|
'nsIScriptChannel.idl',
|
|
|
|
'nsISiteSpecificUserAgent.idl',
|
2014-05-20 18:27:24 -07:00
|
|
|
'nsISlowScriptDebug.idl',
|
2013-03-12 10:17:46 -07:00
|
|
|
]
|
|
|
|
|
2013-11-18 18:47:43 -08:00
|
|
|
XPIDL_MODULE = 'dom'
|
2013-03-19 11:47:00 -07:00
|
|
|
|
2013-04-16 12:24:43 -07:00
|
|
|
EXPORTS += [
|
|
|
|
'Crypto.h',
|
|
|
|
'nsContentPermissionHelper.h',
|
|
|
|
'nsDOMCID.h',
|
|
|
|
'nsDOMClassInfoClasses.h',
|
|
|
|
'nsDOMClassInfoID.h',
|
|
|
|
'nsDOMJSUtils.h',
|
2013-06-20 20:14:18 -07:00
|
|
|
'nsDOMNavigationTiming.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
'nsDOMString.h',
|
|
|
|
'nsFocusManager.h',
|
|
|
|
'nsIDOMClassInfo.h',
|
|
|
|
'nsIDOMScriptObjectFactory.h',
|
|
|
|
'nsIGlobalObject.h',
|
|
|
|
'nsIScriptContext.h',
|
|
|
|
'nsIScriptGlobalObject.h',
|
|
|
|
'nsIScriptNameSpaceManager.h',
|
|
|
|
'nsIScriptObjectPrincipal.h',
|
|
|
|
'nsIScriptTimeoutHandler.h',
|
|
|
|
'nsJSEnvironment.h',
|
|
|
|
'nsJSUtils.h',
|
2013-10-23 16:05:43 -07:00
|
|
|
'nsPerformance.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
'nsPIDOMWindow.h',
|
|
|
|
'nsPIWindowRoot.h',
|
|
|
|
'nsStructuredCloneContainer.h',
|
|
|
|
'nsWindowMemoryReporter.h',
|
|
|
|
'nsWrapperCache.h',
|
|
|
|
'nsWrapperCacheInlines.h',
|
|
|
|
]
|
|
|
|
|
|
|
|
EXPORTS.mozilla.dom += [
|
2013-05-31 03:30:00 -07:00
|
|
|
'BarProps.h',
|
2014-02-27 15:39:00 -08:00
|
|
|
'Console.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
'DOMCursor.h',
|
|
|
|
'DOMError.h',
|
2013-09-08 20:28:50 -07:00
|
|
|
'DOMException.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
'DOMRequest.h',
|
2014-09-03 17:08:00 -07:00
|
|
|
'ImageEncoder.h',
|
2013-09-03 05:38:49 -07:00
|
|
|
'MessageChannel.h',
|
|
|
|
'MessagePort.h',
|
2013-09-11 07:10:01 -07:00
|
|
|
'MessagePortList.h',
|
2014-06-19 19:01:40 -07:00
|
|
|
'NameSpaceConstants.h',
|
2013-11-19 11:10:15 -08:00
|
|
|
'Navigator.h',
|
2014-06-19 19:01:40 -07:00
|
|
|
'NodeInfo.h',
|
|
|
|
'NodeInfoInlines.h',
|
2013-10-15 18:35:44 -07:00
|
|
|
'PerformanceEntry.h',
|
|
|
|
'PerformanceResourceTiming.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
'ScreenOrientation.h',
|
2013-12-11 17:51:57 -08:00
|
|
|
'ScriptSettings.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
'StructuredCloneTags.h',
|
2014-05-15 03:20:00 -07:00
|
|
|
'SubtleCrypto.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
'URL.h',
|
2013-12-12 11:30:10 -08:00
|
|
|
'URLSearchParams.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
]
|
|
|
|
|
2013-11-20 08:29:03 -08:00
|
|
|
UNIFIED_SOURCES += [
|
2013-05-31 03:30:00 -07:00
|
|
|
'BarProps.cpp',
|
2013-09-12 08:19:00 -07:00
|
|
|
'CompositionStringSynthesizer.cpp',
|
2014-02-27 15:39:00 -08:00
|
|
|
'Console.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
'Crypto.cpp',
|
|
|
|
'DOMCursor.cpp',
|
|
|
|
'DOMError.cpp',
|
2013-09-08 20:28:50 -07:00
|
|
|
'DOMException.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
'DOMRequest.cpp',
|
2014-09-03 17:08:00 -07:00
|
|
|
'ImageEncoder.cpp',
|
2013-09-03 05:38:49 -07:00
|
|
|
'MessageChannel.cpp',
|
2013-09-11 07:10:01 -07:00
|
|
|
'MessagePortList.cpp',
|
2013-10-23 16:00:23 -07:00
|
|
|
'Navigator.cpp',
|
2014-06-19 19:01:40 -07:00
|
|
|
'NodeInfo.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
'nsContentPermissionHelper.cpp',
|
|
|
|
'nsDOMClassInfo.cpp',
|
|
|
|
'nsDOMNavigationTiming.cpp',
|
|
|
|
'nsDOMScriptObjectFactory.cpp',
|
|
|
|
'nsDOMWindowList.cpp',
|
|
|
|
'nsFocusManager.cpp',
|
|
|
|
'nsGlobalWindowCommands.cpp',
|
|
|
|
'nsHistory.cpp',
|
2014-01-07 10:53:31 -08:00
|
|
|
'nsIGlobalObject.cpp',
|
2014-10-08 13:19:14 -07:00
|
|
|
'nsJSEnvironment.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
'nsJSTimeoutHandler.cpp',
|
|
|
|
'nsJSUtils.cpp',
|
|
|
|
'nsLocation.cpp',
|
|
|
|
'nsMimeTypeArray.cpp',
|
|
|
|
'nsPerformance.cpp',
|
|
|
|
'nsQueryContentEventResult.cpp',
|
|
|
|
'nsScreen.cpp',
|
|
|
|
'nsScriptNameSpaceManager.cpp',
|
|
|
|
'nsStructuredCloneContainer.cpp',
|
|
|
|
'nsWindowMemoryReporter.cpp',
|
2013-06-23 00:15:10 -07:00
|
|
|
'nsWindowRoot.cpp',
|
|
|
|
'nsWrapperCache.cpp',
|
2013-10-15 18:35:44 -07:00
|
|
|
'PerformanceEntry.cpp',
|
|
|
|
'PerformanceResourceTiming.cpp',
|
2013-12-11 17:51:57 -08:00
|
|
|
'ScriptSettings.cpp',
|
2014-05-15 03:20:00 -07:00
|
|
|
'SubtleCrypto.cpp',
|
2013-10-23 16:05:43 -07:00
|
|
|
'URL.cpp',
|
2013-12-12 11:30:10 -08:00
|
|
|
'URLSearchParams.cpp',
|
2013-10-23 16:05:43 -07:00
|
|
|
'WindowNamedPropertiesHandler.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
]
|
|
|
|
|
2013-11-20 08:29:03 -08:00
|
|
|
# these files couldn't be in UNIFIED_SOURCES for now for reasons given below:
|
|
|
|
SOURCES += [
|
|
|
|
# this file doesn't like windows.h
|
|
|
|
'MessagePort.cpp',
|
|
|
|
# this file doesn't like windows.h
|
|
|
|
'nsDOMWindowUtils.cpp',
|
|
|
|
# This file has a #error "Never include windows.h in this file!"
|
|
|
|
'nsGlobalWindow.cpp',
|
|
|
|
# nsPluginArray.cpp includes npapi.h indirectly, and that includes a lot of system headers
|
|
|
|
'nsPluginArray.cpp',
|
|
|
|
]
|
|
|
|
|
2013-06-10 08:19:28 -07:00
|
|
|
EXTRA_COMPONENTS += [
|
|
|
|
'ConsoleAPI.manifest',
|
2014-02-27 15:38:54 -08:00
|
|
|
'ConsoleAPIStorage.js',
|
2013-06-10 08:19:28 -07:00
|
|
|
'SiteSpecificUserAgent.js',
|
|
|
|
'SiteSpecificUserAgent.manifest',
|
2014-05-20 18:27:24 -07:00
|
|
|
'SlowScriptDebug.js',
|
|
|
|
'SlowScriptDebug.manifest',
|
2013-06-10 08:19:28 -07:00
|
|
|
]
|
2013-06-10 09:08:47 -07:00
|
|
|
|
|
|
|
EXTRA_JS_MODULES += [
|
|
|
|
'DOMRequestHelper.jsm',
|
|
|
|
'IndexedDBHelper.jsm',
|
|
|
|
]
|
2013-08-21 23:55:59 -07:00
|
|
|
|
|
|
|
FAIL_ON_WARNINGS = True
|
|
|
|
|
2013-08-21 23:56:01 -07:00
|
|
|
MSVC_ENABLE_PGO = True
|
|
|
|
|
2013-10-23 14:20:55 -07:00
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'../battery',
|
|
|
|
'../bluetooth',
|
2014-01-09 19:03:25 -08:00
|
|
|
'../events',
|
2013-10-23 14:20:55 -07:00
|
|
|
'../media',
|
2014-08-27 10:13:39 -07:00
|
|
|
'../network',
|
2013-10-23 14:20:55 -07:00
|
|
|
'../time',
|
2014-02-27 15:39:30 -08:00
|
|
|
'../workers',
|
2014-01-09 19:03:25 -08:00
|
|
|
'../xbl',
|
2013-10-23 14:20:55 -07:00
|
|
|
'/content/base/src',
|
|
|
|
'/content/html/document/src',
|
2014-10-22 14:51:00 -07:00
|
|
|
'/docshell/base',
|
2014-08-30 21:43:45 -07:00
|
|
|
'/dom/geolocation',
|
2014-08-30 21:43:46 -07:00
|
|
|
'/dom/storage',
|
2014-10-25 10:21:03 -07:00
|
|
|
'/dom/xul',
|
2014-07-09 02:43:33 -07:00
|
|
|
'/layout/base',
|
2013-10-23 14:20:55 -07:00
|
|
|
'/layout/generic',
|
|
|
|
'/layout/style',
|
2013-12-03 17:06:16 -08:00
|
|
|
'/layout/xul',
|
2014-10-23 10:16:45 -07:00
|
|
|
'/widget',
|
2013-10-23 14:20:55 -07:00
|
|
|
]
|
2013-10-02 10:17:55 -07:00
|
|
|
|
2013-10-29 01:12:45 -07:00
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
|
2013-10-23 14:20:55 -07:00
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'../fmradio',
|
|
|
|
'../system/gonk',
|
|
|
|
]
|
|
|
|
|
|
|
|
include('/ipc/chromium/chromium-config.mozbuild')
|
2013-11-11 00:04:11 -08:00
|
|
|
|
2014-07-22 16:37:51 -07:00
|
|
|
FINAL_LIBRARY = 'xul'
|
2013-11-18 18:47:14 -08:00
|
|
|
|
2013-11-11 00:04:11 -08:00
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'/js/xpconnect/src',
|
|
|
|
'/js/xpconnect/wrappers',
|
|
|
|
]
|
|
|
|
|
2014-06-27 11:05:08 -07:00
|
|
|
for var in ('MOZ_B2G_RIL', 'MOZ_B2G_FM'):
|
2013-11-27 05:55:07 -08:00
|
|
|
if CONFIG[var]:
|
|
|
|
DEFINES[var] = True
|
2014-03-27 21:03:03 -07:00
|
|
|
|
|
|
|
if CONFIG['MOZ_BUILD_APP'] in ['browser', 'mobile/android', 'xulrunner']:
|
|
|
|
DEFINES['HAVE_SIDEBAR'] = True
|
2014-07-25 23:17:24 -07:00
|
|
|
|
|
|
|
MOCHITEST_MANIFESTS += ['test/mochitest.ini']
|
|
|
|
MOCHITEST_CHROME_MANIFESTS += ['test/chrome.ini']
|
2014-07-24 08:55:33 -07:00
|
|
|
|
|
|
|
if CONFIG['MOZ_X11']:
|
|
|
|
CXXFLAGS += CONFIG['TK_CFLAGS']
|