michael@0: # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- michael@0: # vim: set filetype=python: michael@0: # This Source Code Form is subject to the terms of the Mozilla Public michael@0: # License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: # file, You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: michael@0: TEST_DIRS += ['test'] michael@0: michael@0: XPIDL_SOURCES += [ michael@0: 'nsIConsoleAPIStorage.idl', michael@0: 'nsIDOMDOMCursor.idl', michael@0: 'nsIDOMDOMRequest.idl', michael@0: 'nsIEntropyCollector.idl', michael@0: 'nsIScriptChannel.idl', michael@0: 'nsISiteSpecificUserAgent.idl', michael@0: ] michael@0: michael@0: XPIDL_MODULE = 'dom' michael@0: michael@0: EXPORTS += [ michael@0: 'Crypto.h', michael@0: 'nsContentPermissionHelper.h', michael@0: 'nsDOMCID.h', michael@0: 'nsDOMClassInfoClasses.h', michael@0: 'nsDOMClassInfoID.h', michael@0: 'nsDOMJSUtils.h', michael@0: 'nsDOMNavigationTiming.h', michael@0: 'nsDOMString.h', michael@0: 'nsFocusManager.h', michael@0: 'nsIDOMClassInfo.h', michael@0: 'nsIDOMScriptObjectFactory.h', michael@0: 'nsIGlobalObject.h', michael@0: 'nsIJSNativeInitializer.h', michael@0: 'nsIScriptContext.h', michael@0: 'nsIScriptExternalNameSet.h', michael@0: 'nsIScriptGlobalObject.h', michael@0: 'nsIScriptNameSpaceManager.h', michael@0: 'nsIScriptObjectPrincipal.h', michael@0: 'nsIScriptTimeoutHandler.h', michael@0: 'nsJSEnvironment.h', michael@0: 'nsJSUtils.h', michael@0: 'nsPerformance.h', michael@0: 'nsPIDOMWindow.h', michael@0: 'nsPIWindowRoot.h', michael@0: 'nsStructuredCloneContainer.h', michael@0: 'nsWindowMemoryReporter.h', michael@0: 'nsWrapperCache.h', michael@0: 'nsWrapperCacheInlines.h', michael@0: ] michael@0: michael@0: EXPORTS.mozilla.dom += [ michael@0: 'BarProps.h', michael@0: 'Console.h', michael@0: 'DOMCursor.h', michael@0: 'DOMError.h', michael@0: 'DOMException.h', michael@0: 'DOMRequest.h', michael@0: 'MessageChannel.h', michael@0: 'MessagePort.h', michael@0: 'MessagePortList.h', michael@0: 'Navigator.h', michael@0: 'PerformanceEntry.h', michael@0: 'PerformanceResourceTiming.h', michael@0: 'ScreenOrientation.h', michael@0: 'ScriptSettings.h', michael@0: 'StructuredCloneTags.h', michael@0: 'URL.h', michael@0: 'URLSearchParams.h', michael@0: ] michael@0: michael@0: UNIFIED_SOURCES += [ michael@0: 'BarProps.cpp', michael@0: 'CompositionStringSynthesizer.cpp', michael@0: 'Console.cpp', michael@0: 'Crypto.cpp', michael@0: 'DOMCursor.cpp', michael@0: 'DOMError.cpp', michael@0: 'DOMException.cpp', michael@0: 'DOMRequest.cpp', michael@0: 'MessageChannel.cpp', michael@0: 'MessagePortList.cpp', michael@0: 'Navigator.cpp', michael@0: 'nsContentPermissionHelper.cpp', michael@0: 'nsDOMClassInfo.cpp', michael@0: 'nsDOMNavigationTiming.cpp', michael@0: 'nsDOMScriptObjectFactory.cpp', michael@0: 'nsDOMWindowList.cpp', michael@0: 'nsFocusManager.cpp', michael@0: 'nsGlobalWindowCommands.cpp', michael@0: 'nsHistory.cpp', michael@0: 'nsIGlobalObject.cpp', michael@0: 'nsJSTimeoutHandler.cpp', michael@0: 'nsJSUtils.cpp', michael@0: 'nsLocation.cpp', michael@0: 'nsMimeTypeArray.cpp', michael@0: 'nsPerformance.cpp', michael@0: 'nsQueryContentEventResult.cpp', michael@0: 'nsScreen.cpp', michael@0: 'nsScriptNameSpaceManager.cpp', michael@0: 'nsStructuredCloneContainer.cpp', michael@0: 'nsWindowMemoryReporter.cpp', michael@0: 'nsWindowRoot.cpp', michael@0: 'nsWrapperCache.cpp', michael@0: 'PerformanceEntry.cpp', michael@0: 'PerformanceResourceTiming.cpp', michael@0: 'ScriptSettings.cpp', michael@0: 'URL.cpp', michael@0: 'URLSearchParams.cpp', michael@0: 'WindowNamedPropertiesHandler.cpp', michael@0: ] michael@0: michael@0: # these files couldn't be in UNIFIED_SOURCES for now for reasons given below: michael@0: SOURCES += [ michael@0: # this file doesn't like windows.h michael@0: 'MessagePort.cpp', michael@0: # this file doesn't like windows.h michael@0: 'nsDOMWindowUtils.cpp', michael@0: # This file has a #error "Never include windows.h in this file!" michael@0: 'nsGlobalWindow.cpp', michael@0: # This file forces NSPR logging. michael@0: 'nsJSEnvironment.cpp', michael@0: # nsPluginArray.cpp includes npapi.h indirectly, and that includes a lot of system headers michael@0: 'nsPluginArray.cpp', michael@0: ] michael@0: michael@0: EXTRA_COMPONENTS += [ michael@0: 'ConsoleAPI.manifest', michael@0: 'ConsoleAPIStorage.js', michael@0: 'SiteSpecificUserAgent.js', michael@0: 'SiteSpecificUserAgent.manifest', michael@0: ] michael@0: michael@0: EXTRA_JS_MODULES += [ michael@0: 'DOMRequestHelper.jsm', michael@0: 'IndexedDBHelper.jsm', michael@0: 'ObjectWrapper.jsm', michael@0: ] michael@0: michael@0: FAIL_ON_WARNINGS = True michael@0: michael@0: MSVC_ENABLE_PGO = True michael@0: michael@0: LOCAL_INCLUDES += [ michael@0: '../battery', michael@0: '../bluetooth', michael@0: '../events', michael@0: '../media', michael@0: '../network/src', michael@0: '../src/geolocation', michael@0: '../src/storage', michael@0: '../time', michael@0: '../workers', michael@0: '../xbl', michael@0: '/content/base/src', michael@0: '/content/html/document/src', michael@0: '/content/xul/document/src', michael@0: '/layout/generic', michael@0: '/layout/style', michael@0: '/layout/xul', michael@0: '/widget/shared', michael@0: ] michael@0: michael@0: if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk': michael@0: LOCAL_INCLUDES += [ michael@0: '../fmradio', michael@0: '../system/gonk', michael@0: ] michael@0: michael@0: include('/ipc/chromium/chromium-config.mozbuild') michael@0: michael@0: FINAL_LIBRARY = 'gklayout' michael@0: michael@0: LOCAL_INCLUDES += [ michael@0: '/js/xpconnect/src', michael@0: '/js/xpconnect/wrappers', michael@0: ] michael@0: michael@0: for var in ('MOZ_JSDEBUGGER', 'MOZ_B2G_RIL', 'MOZ_B2G_FM'): michael@0: if CONFIG[var]: michael@0: DEFINES[var] = True michael@0: michael@0: if CONFIG['MOZ_BUILD_APP'] in ['browser', 'mobile/android', 'xulrunner']: michael@0: DEFINES['HAVE_SIDEBAR'] = True