gecko-dev/dom/script/moz.build
Yulia Startsev d82f1773f0 Bug 1742438 - Part 8: Use mScriptData instead of custom load context field; r=arai,asuth
This is the most substantial change in the transition from ScriptLoadInfo to ScriptLoadRequest with
regards to data representation. ScriptLoadRequests can have their data incrementally loaded,
so it is already fully decoded and ready to go by the time that we create the source buffer for
worker scripts. This simplifies some of the code, and we can add incremental loading when we are ready.

Differential Revision: https://phabricator.services.mozilla.com/D146180
2022-07-14 17:07:27 +00:00

55 lines
1.2 KiB
Python

# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
# 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/.
with Files("**"):
BUG_COMPONENT = ("Core", "DOM: Core & HTML")
XPIDL_SOURCES += [
"nsIScriptLoaderObserver.idl",
]
XPIDL_MODULE = "dom"
EXPORTS += [
"nsIScriptElement.h",
]
EXPORTS.mozilla.dom += [
"AutoEntryScript.h",
"ModuleLoader.h",
"ScriptCompression.h",
"ScriptDecoding.h",
"ScriptElement.h",
"ScriptLoadContext.h",
"ScriptLoader.h",
"ScriptLoadHandler.h",
"ScriptSettings.h",
"ScriptTrace.h",
"ShadowRealmGlobalScope.h",
]
UNIFIED_SOURCES += [
"AutoEntryScript.cpp",
"ModuleLoader.cpp",
"nsIScriptElement.cpp",
"ScriptCompression.cpp",
"ScriptElement.cpp",
"ScriptLoadContext.cpp",
"ScriptLoader.cpp",
"ScriptLoadHandler.cpp",
"ScriptSettings.cpp",
"ShadowRealmGlobalScope.cpp",
]
LOCAL_INCLUDES += [
"/dom/base",
"/js/loader",
]
include("/ipc/chromium/chromium-config.mozbuild")
FINAL_LIBRARY = "xul"