2013-04-01 22:36:59 +04:00
|
|
|
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-26 00:47:20 +04: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/.
|
|
|
|
|
|
|
|
TEST_DIRS += ['test']
|
2013-03-12 21:17:46 +04:00
|
|
|
|
|
|
|
XPIDL_SOURCES += [
|
2014-02-28 03:38:54 +04:00
|
|
|
'nsIConsoleAPIStorage.idl',
|
2013-03-12 21:17:46 +04:00
|
|
|
'nsIDOMDOMCursor.idl',
|
|
|
|
'nsIDOMDOMRequest.idl',
|
|
|
|
'nsIEntropyCollector.idl',
|
|
|
|
'nsIScriptChannel.idl',
|
|
|
|
'nsISiteSpecificUserAgent.idl',
|
|
|
|
]
|
|
|
|
|
2013-11-19 06:47:43 +04:00
|
|
|
XPIDL_MODULE = 'dom'
|
2013-03-19 22:47:00 +04:00
|
|
|
|
2013-04-16 23:24:43 +04:00
|
|
|
EXPORTS += [
|
|
|
|
'Crypto.h',
|
|
|
|
'nsContentPermissionHelper.h',
|
|
|
|
'nsDOMCID.h',
|
|
|
|
'nsDOMClassInfoClasses.h',
|
|
|
|
'nsDOMClassInfoID.h',
|
|
|
|
'nsDOMJSUtils.h',
|
2013-06-21 07:14:18 +04:00
|
|
|
'nsDOMNavigationTiming.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
'nsDOMString.h',
|
|
|
|
'nsFocusManager.h',
|
|
|
|
'nsIDOMClassInfo.h',
|
|
|
|
'nsIDOMScriptObjectFactory.h',
|
|
|
|
'nsIGlobalObject.h',
|
|
|
|
'nsIJSNativeInitializer.h',
|
|
|
|
'nsIScriptContext.h',
|
|
|
|
'nsIScriptExternalNameSet.h',
|
|
|
|
'nsIScriptGlobalObject.h',
|
|
|
|
'nsIScriptNameSpaceManager.h',
|
|
|
|
'nsIScriptObjectPrincipal.h',
|
|
|
|
'nsIScriptTimeoutHandler.h',
|
|
|
|
'nsJSEnvironment.h',
|
|
|
|
'nsJSUtils.h',
|
2013-10-24 03:05:43 +04:00
|
|
|
'nsPerformance.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
'nsPIDOMWindow.h',
|
|
|
|
'nsPIWindowRoot.h',
|
|
|
|
'nsStructuredCloneContainer.h',
|
|
|
|
'nsWindowMemoryReporter.h',
|
|
|
|
'nsWrapperCache.h',
|
|
|
|
'nsWrapperCacheInlines.h',
|
|
|
|
]
|
|
|
|
|
|
|
|
EXPORTS.mozilla.dom += [
|
2013-05-31 14:30:00 +04:00
|
|
|
'BarProps.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
'DOMCursor.h',
|
|
|
|
'DOMError.h',
|
2013-09-09 07:28:50 +04:00
|
|
|
'DOMException.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
'DOMRequest.h',
|
2013-09-03 16:38:49 +04:00
|
|
|
'MessageChannel.h',
|
|
|
|
'MessagePort.h',
|
2013-09-11 18:10:01 +04:00
|
|
|
'MessagePortList.h',
|
2013-11-19 23:10:15 +04:00
|
|
|
'Navigator.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
'ScreenOrientation.h',
|
2013-12-12 05:51:57 +04:00
|
|
|
'ScriptSettings.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
'StructuredCloneTags.h',
|
|
|
|
'URL.h',
|
2013-12-12 23:30:10 +04:00
|
|
|
'URLSearchParams.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
]
|
|
|
|
|
2013-11-20 20:29:03 +04:00
|
|
|
UNIFIED_SOURCES += [
|
2013-05-31 14:30:00 +04:00
|
|
|
'BarProps.cpp',
|
2013-09-12 19:19:00 +04:00
|
|
|
'CompositionStringSynthesizer.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
'Crypto.cpp',
|
|
|
|
'DOMCursor.cpp',
|
|
|
|
'DOMError.cpp',
|
2013-09-09 07:28:50 +04:00
|
|
|
'DOMException.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
'DOMRequest.cpp',
|
2013-09-03 16:38:49 +04:00
|
|
|
'MessageChannel.cpp',
|
2013-09-11 18:10:01 +04:00
|
|
|
'MessagePortList.cpp',
|
2013-10-24 03:00:23 +04:00
|
|
|
'Navigator.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
'nsContentPermissionHelper.cpp',
|
|
|
|
'nsDOMClassInfo.cpp',
|
|
|
|
'nsDOMNavigationTiming.cpp',
|
|
|
|
'nsDOMScriptObjectFactory.cpp',
|
|
|
|
'nsDOMWindowList.cpp',
|
|
|
|
'nsFocusManager.cpp',
|
|
|
|
'nsGlobalWindowCommands.cpp',
|
|
|
|
'nsHistory.cpp',
|
2014-01-07 22:53:31 +04:00
|
|
|
'nsIGlobalObject.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
'nsJSTimeoutHandler.cpp',
|
|
|
|
'nsJSUtils.cpp',
|
|
|
|
'nsLocation.cpp',
|
|
|
|
'nsMimeTypeArray.cpp',
|
|
|
|
'nsPerformance.cpp',
|
|
|
|
'nsQueryContentEventResult.cpp',
|
|
|
|
'nsScreen.cpp',
|
|
|
|
'nsScriptNameSpaceManager.cpp',
|
|
|
|
'nsStructuredCloneContainer.cpp',
|
|
|
|
'nsWindowMemoryReporter.cpp',
|
2013-06-23 11:15:10 +04:00
|
|
|
'nsWindowRoot.cpp',
|
|
|
|
'nsWrapperCache.cpp',
|
2013-12-12 05:51:57 +04:00
|
|
|
'ScriptSettings.cpp',
|
2013-10-24 03:05:43 +04:00
|
|
|
'URL.cpp',
|
2013-12-12 23:30:10 +04:00
|
|
|
'URLSearchParams.cpp',
|
2013-10-24 03:05:43 +04:00
|
|
|
'WindowNamedPropertiesHandler.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
]
|
|
|
|
|
2013-11-20 20:29:03 +04: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',
|
2013-11-24 10:29:24 +04:00
|
|
|
# This file forces NSPR logging.
|
|
|
|
'nsJSEnvironment.cpp',
|
2013-11-20 20:29:03 +04:00
|
|
|
# nsPluginArray.cpp includes npapi.h indirectly, and that includes a lot of system headers
|
|
|
|
'nsPluginArray.cpp',
|
|
|
|
]
|
|
|
|
|
2013-06-10 19:19:28 +04:00
|
|
|
EXTRA_COMPONENTS += [
|
|
|
|
'ConsoleAPI.js',
|
|
|
|
'ConsoleAPI.manifest',
|
2014-02-28 03:38:54 +04:00
|
|
|
'ConsoleAPIStorage.js',
|
2013-06-10 19:19:28 +04:00
|
|
|
'SiteSpecificUserAgent.js',
|
|
|
|
'SiteSpecificUserAgent.manifest',
|
|
|
|
]
|
2013-06-10 20:08:47 +04:00
|
|
|
|
|
|
|
EXTRA_JS_MODULES += [
|
|
|
|
'DOMRequestHelper.jsm',
|
|
|
|
'IndexedDBHelper.jsm',
|
|
|
|
'ObjectWrapper.jsm',
|
|
|
|
]
|
2013-08-22 10:55:59 +04:00
|
|
|
|
|
|
|
FAIL_ON_WARNINGS = True
|
|
|
|
|
2013-08-22 10:56:01 +04:00
|
|
|
MSVC_ENABLE_PGO = True
|
|
|
|
|
2013-10-24 01:20:55 +04:00
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'../battery',
|
|
|
|
'../bluetooth',
|
2014-01-10 07:03:25 +04:00
|
|
|
'../events',
|
2013-10-24 01:20:55 +04:00
|
|
|
'../media',
|
|
|
|
'../network/src',
|
|
|
|
'../src/geolocation',
|
|
|
|
'../src/storage',
|
|
|
|
'../time',
|
2014-01-10 07:03:25 +04:00
|
|
|
'../xbl',
|
2013-10-24 01:20:55 +04:00
|
|
|
'/content/base/src',
|
|
|
|
'/content/html/document/src',
|
|
|
|
'/content/xul/document/src',
|
|
|
|
'/layout/generic',
|
|
|
|
'/layout/style',
|
2013-12-04 05:06:16 +04:00
|
|
|
'/layout/xul',
|
2014-01-28 20:09:34 +04:00
|
|
|
'/widget/shared',
|
2013-10-24 01:20:55 +04:00
|
|
|
]
|
2013-10-02 21:17:55 +04:00
|
|
|
|
2013-10-29 12:12:45 +04:00
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
|
2013-10-24 01:20:55 +04:00
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'../fmradio',
|
|
|
|
'../system/gonk',
|
|
|
|
]
|
|
|
|
|
|
|
|
include('/ipc/chromium/chromium-config.mozbuild')
|
2013-11-11 12:04:11 +04:00
|
|
|
|
2013-11-19 06:47:14 +04:00
|
|
|
FINAL_LIBRARY = 'gklayout'
|
|
|
|
|
2013-11-11 12:04:11 +04:00
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'/js/xpconnect/src',
|
|
|
|
'/js/xpconnect/wrappers',
|
|
|
|
'/xpcom/ds',
|
|
|
|
]
|
|
|
|
|
2013-11-27 17:55:07 +04:00
|
|
|
for var in ('MOZ_JSDEBUGGER', 'MOZ_B2G_RIL', 'MOZ_B2G_FM'):
|
|
|
|
if CONFIG[var]:
|
|
|
|
DEFINES[var] = True
|