dom/base/moz.build

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     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/.
     7 TEST_DIRS += ['test']
     9 XPIDL_SOURCES += [
    10     'nsIConsoleAPIStorage.idl',
    11     'nsIDOMDOMCursor.idl',
    12     'nsIDOMDOMRequest.idl',
    13     'nsIEntropyCollector.idl',
    14     'nsIScriptChannel.idl',
    15     'nsISiteSpecificUserAgent.idl',
    16 ]
    18 XPIDL_MODULE = 'dom'
    20 EXPORTS += [
    21     'Crypto.h',
    22     'nsContentPermissionHelper.h',
    23     'nsDOMCID.h',
    24     'nsDOMClassInfoClasses.h',
    25     'nsDOMClassInfoID.h',
    26     'nsDOMJSUtils.h',
    27     'nsDOMNavigationTiming.h',
    28     'nsDOMString.h',
    29     'nsFocusManager.h',
    30     'nsIDOMClassInfo.h',
    31     'nsIDOMScriptObjectFactory.h',
    32     'nsIGlobalObject.h',
    33     'nsIJSNativeInitializer.h',
    34     'nsIScriptContext.h',
    35     'nsIScriptExternalNameSet.h',
    36     'nsIScriptGlobalObject.h',
    37     'nsIScriptNameSpaceManager.h',
    38     'nsIScriptObjectPrincipal.h',
    39     'nsIScriptTimeoutHandler.h',
    40     'nsJSEnvironment.h',
    41     'nsJSUtils.h',
    42     'nsPerformance.h',
    43     'nsPIDOMWindow.h',
    44     'nsPIWindowRoot.h',
    45     'nsStructuredCloneContainer.h',
    46     'nsWindowMemoryReporter.h',
    47     'nsWrapperCache.h',
    48     'nsWrapperCacheInlines.h',
    49 ]
    51 EXPORTS.mozilla.dom += [
    52     'BarProps.h',
    53     'Console.h',
    54     'DOMCursor.h',
    55     'DOMError.h',
    56     'DOMException.h',
    57     'DOMRequest.h',
    58     'MessageChannel.h',
    59     'MessagePort.h',
    60     'MessagePortList.h',
    61     'Navigator.h',
    62     'PerformanceEntry.h',
    63     'PerformanceResourceTiming.h',
    64     'ScreenOrientation.h',
    65     'ScriptSettings.h',
    66     'StructuredCloneTags.h',
    67     'URL.h',
    68     'URLSearchParams.h',
    69 ]
    71 UNIFIED_SOURCES += [
    72     'BarProps.cpp',
    73     'CompositionStringSynthesizer.cpp',
    74     'Console.cpp',
    75     'Crypto.cpp',
    76     'DOMCursor.cpp',
    77     'DOMError.cpp',
    78     'DOMException.cpp',
    79     'DOMRequest.cpp',
    80     'MessageChannel.cpp',
    81     'MessagePortList.cpp',
    82     'Navigator.cpp',
    83     'nsContentPermissionHelper.cpp',
    84     'nsDOMClassInfo.cpp',
    85     'nsDOMNavigationTiming.cpp',
    86     'nsDOMScriptObjectFactory.cpp',
    87     'nsDOMWindowList.cpp',
    88     'nsFocusManager.cpp',
    89     'nsGlobalWindowCommands.cpp',
    90     'nsHistory.cpp',
    91     'nsIGlobalObject.cpp',
    92     'nsJSTimeoutHandler.cpp',
    93     'nsJSUtils.cpp',
    94     'nsLocation.cpp',
    95     'nsMimeTypeArray.cpp',
    96     'nsPerformance.cpp',
    97     'nsQueryContentEventResult.cpp',
    98     'nsScreen.cpp',
    99     'nsScriptNameSpaceManager.cpp',
   100     'nsStructuredCloneContainer.cpp',
   101     'nsWindowMemoryReporter.cpp',
   102     'nsWindowRoot.cpp',
   103     'nsWrapperCache.cpp',
   104     'PerformanceEntry.cpp',
   105     'PerformanceResourceTiming.cpp',
   106     'ScriptSettings.cpp',
   107     'URL.cpp',
   108     'URLSearchParams.cpp',
   109     'WindowNamedPropertiesHandler.cpp',
   110 ]
   112 # these files couldn't be in UNIFIED_SOURCES for now for reasons given below:
   113 SOURCES += [
   114     # this file doesn't like windows.h
   115     'MessagePort.cpp',
   116     # this file doesn't like windows.h
   117     'nsDOMWindowUtils.cpp',
   118     # This file has a #error "Never include windows.h in this file!"
   119     'nsGlobalWindow.cpp',
   120     # This file forces NSPR logging.
   121     'nsJSEnvironment.cpp',
   122     # nsPluginArray.cpp includes npapi.h indirectly, and that includes a lot of system headers
   123     'nsPluginArray.cpp',
   124 ]
   126 EXTRA_COMPONENTS += [
   127     'ConsoleAPI.manifest',
   128     'ConsoleAPIStorage.js',
   129     'SiteSpecificUserAgent.js',
   130     'SiteSpecificUserAgent.manifest',
   131 ]
   133 EXTRA_JS_MODULES += [
   134     'DOMRequestHelper.jsm',
   135     'IndexedDBHelper.jsm',
   136     'ObjectWrapper.jsm',
   137 ]
   139 FAIL_ON_WARNINGS = True
   141 MSVC_ENABLE_PGO = True
   143 LOCAL_INCLUDES += [
   144     '../battery',
   145     '../bluetooth',
   146     '../events',
   147     '../media',
   148     '../network/src',
   149     '../src/geolocation',
   150     '../src/storage',
   151     '../time',
   152     '../workers',
   153     '../xbl',
   154     '/content/base/src',
   155     '/content/html/document/src',
   156     '/content/xul/document/src',
   157     '/layout/generic',
   158     '/layout/style',
   159     '/layout/xul',
   160     '/widget/shared',
   161 ]
   163 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
   164     LOCAL_INCLUDES += [
   165         '../fmradio',
   166         '../system/gonk',
   167     ]
   169 include('/ipc/chromium/chromium-config.mozbuild')
   171 FINAL_LIBRARY = 'gklayout'
   173 LOCAL_INCLUDES += [
   174     '/js/xpconnect/src',
   175     '/js/xpconnect/wrappers',
   176 ]
   178 for var in ('MOZ_JSDEBUGGER', 'MOZ_B2G_RIL', 'MOZ_B2G_FM'):
   179     if CONFIG[var]:
   180         DEFINES[var] = True
   182 if CONFIG['MOZ_BUILD_APP'] in ['browser', 'mobile/android', 'xulrunner']:
   183     DEFINES['HAVE_SIDEBAR'] = True

mercurial