1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128
|
# -*- 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/.
XPIDL_SOURCES += ["nsIParserUtils.idl"]
XPIDL_MODULE = "html5"
EXPORTS += [
"jArray.h",
"nsAHtml5TreeBuilderState.h",
"nsAHtml5TreeOpSink.h",
"nsHtml5ArrayCopy.h",
"nsHtml5AtomTable.h",
"nsHtml5AttributeEntry.h",
"nsHtml5AttributeName.h",
"nsHtml5ByteReadable.h",
"nsHtml5ContentCreatorFunction.h",
"nsHtml5DependentUTF16Buffer.h",
"nsHtml5DocumentBuilder.h",
"nsHtml5DocumentMode.h",
"nsHtml5HtmlAttributes.h",
"nsHtml5Macros.h",
"nsHtml5Module.h",
"nsHtml5NamedCharacters.h",
"nsHtml5NamedCharactersAccel.h",
"nsHtml5OplessBuilder.h",
"nsHtml5OwningUTF16Buffer.h",
"nsHtml5Parser.h",
"nsHtml5PlainTextUtils.h",
"nsHtml5Portability.h",
"nsHtml5Speculation.h",
"nsHtml5SpeculativeLoad.h",
"nsHtml5StreamListener.h",
"nsHtml5StreamParser.h",
"nsHtml5StreamParserPtr.h",
"nsHtml5StreamParserReleaser.h",
"nsHtml5String.h",
"nsHtml5StringParser.h",
"nsHtml5SVGLoadDispatcher.h",
"nsHtml5TreeOperation.h",
"nsHtml5TreeOpExecutor.h",
"nsHtml5TreeOpStage.h",
"nsHtml5UTF16Buffer.h",
"nsHtml5UTF16BufferHSupplement.h",
"nsHtml5ViewSourceUtils.h",
"nsIContentHandle.h",
"nsParserUtils.h",
]
UNIFIED_SOURCES += [
"nsHtml5AtomTable.cpp",
"nsHtml5AttributeName.cpp",
"nsHtml5DependentUTF16Buffer.cpp",
"nsHtml5DocumentBuilder.cpp",
"nsHtml5ElementName.cpp",
"nsHtml5Highlighter.cpp",
"nsHtml5HtmlAttributes.cpp",
"nsHtml5Module.cpp",
"nsHtml5NamedCharacters.cpp",
"nsHtml5NamedCharactersAccel.cpp",
"nsHtml5OplessBuilder.cpp",
"nsHtml5OwningUTF16Buffer.cpp",
"nsHtml5Parser.cpp",
"nsHtml5PlainTextUtils.cpp",
"nsHtml5Portability.cpp",
"nsHtml5Speculation.cpp",
"nsHtml5SpeculativeLoad.cpp",
"nsHtml5StackNode.cpp",
"nsHtml5StateSnapshot.cpp",
"nsHtml5StreamListener.cpp",
"nsHtml5StreamParser.cpp",
"nsHtml5String.cpp",
"nsHtml5StringParser.cpp",
"nsHtml5SVGLoadDispatcher.cpp",
"nsHtml5Tokenizer.cpp",
"nsHtml5TreeBuilder.cpp",
"nsHtml5TreeOperation.cpp",
"nsHtml5TreeOpExecutor.cpp",
"nsHtml5TreeOpStage.cpp",
"nsHtml5UTF16Buffer.cpp",
"nsHtml5ViewSourceUtils.cpp",
"nsParserUtils.cpp",
]
# Each target needs to compile:
# (nsHtml5TokenizerALU.cpp XOR nsHtml5TokenizerALUStubs.cpp)
# AND
# (nsHtml5TokenizerSIMD.cpp XOR nsHtml5TokenizerSIMDStubs.cpp)
# AND
# (nsHtml5TokenizerALU.cpp OR nsHtml5TokenizerSIMD.cpp)
#
# Make sure the result is consistent with mozilla::htmlaccel::htmlaccelEnabled().
#
# Due to https://github.com/llvm/llvm-project/issues/160886, none of the
# code here actually ends up with SIMD instructions, and SIMD stays in
# htmlaccelNotInline.cpp instead. Once the LLVM bug is fixed, the functions
# in htmlaccelNotInline.cpp should becomed always inlined and
# nsHtml5TokenizerSIMD.cpp should be built with HTML_ACCEL_FLAGS.
if (CONFIG["TARGET_CPU"] == "x86_64") and (
CONFIG["CC_TYPE"] != "gcc" or int(CONFIG["CC_VERSION"].split(".")[0]) >= 12
):
UNIFIED_SOURCES += [
"nsHtml5TokenizerALU.cpp",
"nsHtml5TokenizerSIMD.cpp",
]
elif (
CONFIG["TARGET_CPU"] == "aarch64" and CONFIG["TARGET_ENDIANNESS"] == "little"
) and (CONFIG["CC_TYPE"] != "gcc" or int(CONFIG["CC_VERSION"].split(".")[0]) >= 12):
# aarch64 doesn't need special flags for SIMD.
UNIFIED_SOURCES += [
"nsHtml5TokenizerALUStubs.cpp",
"nsHtml5TokenizerSIMD.cpp",
]
else:
UNIFIED_SOURCES += [
"nsHtml5TokenizerALU.cpp",
"nsHtml5TokenizerSIMDStubs.cpp",
]
FINAL_LIBRARY = "xul"
LOCAL_INCLUDES += [
"/dom/base",
]
|