gecko-dev/mfbt/moz.build

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

201 lines
4.4 KiB
Plaintext
Raw Normal View History

# -*- 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", "MFBT")
Library("mfbt")
EXPORTS += [
"../third_party/rust/encoding_c_mem/include/encoding_rs_mem.h",
]
EXPORTS.mozilla = [
"Algorithm.h",
"Alignment.h",
"AllocPolicy.h",
"AlreadyAddRefed.h",
"Array.h",
"ArrayUtils.h",
"Assertions.h",
"AtomicBitfields.h",
"Atomics.h",
"Attributes.h",
"BinarySearch.h",
"BitSet.h",
"BloomFilter.h",
"Buffer.h",
"BufferList.h",
"Casting.h",
"ChaosMode.h",
"Char16.h",
"CheckedInt.h",
"CompactPair.h",
"Compiler.h",
"Compression.h",
"DbgMacro.h",
"DebugOnly.h",
"DefineEnum.h",
"DoublyLinkedList.h",
"EndianUtils.h",
"EnumeratedArray.h",
"EnumeratedRange.h",
"EnumSet.h",
"EnumTypeTraits.h",
"fallible.h",
"FastBernoulliTrial.h",
"FloatingPoint.h",
"FStream.h",
"FunctionRef.h",
"FunctionTypeTraits.h",
"HashFunctions.h",
"HashTable.h",
"HelperMacros.h",
"InitializedOnce.h",
"IntegerRange.h",
"IntegerTypeTraits.h",
"JSONWriter.h",
"JsRust.h",
"Latin1.h",
"Likely.h",
"LinkedList.h",
"MacroArgs.h",
"MacroForEach.h",
"MathAlgorithms.h",
"Maybe.h",
"MaybeOneOf.h",
"MaybeStorageBase.h",
"MemoryChecking.h",
"MemoryReporting.h",
"NonDereferenceable.h",
"NotNull.h",
"Opaque.h",
"OperatorNewExtensions.h",
"PairHash.h",
"Path.h",
"PodOperations.h",
"Poison.h",
"RandomNum.h",
"Range.h",
"RangedArray.h",
"RangedPtr.h",
"ReentrancyGuard.h",
"RefCounted.h",
"RefCountType.h",
Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat The bulk of this commit was generated with a script, executed at the top level of a typical source code checkout. The only non-machine-generated part was modifying MFBT's moz.build to reflect the new naming. CLOSED TREE makes big refactorings like this a piece of cake. # The main substitution. find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \ xargs perl -p -i -e ' s/nsRefPtr\.h/RefPtr\.h/g; # handle includes s/nsRefPtr ?</RefPtr</g; # handle declarations and variables ' # Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h. perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h # Handle nsRefPtr.h itself, a couple places that define constructors # from nsRefPtr, and code generators specially. We do this here, rather # than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename # things like nsRefPtrHashtable. perl -p -i -e 's/nsRefPtr/RefPtr/g' \ mfbt/nsRefPtr.h \ xpcom/glue/nsCOMPtr.h \ xpcom/base/OwningNonNull.h \ ipc/ipdl/ipdl/lower.py \ ipc/ipdl/ipdl/builtin.py \ dom/bindings/Codegen.py \ python/lldbutils/lldbutils/utils.py # In our indiscriminate substitution above, we renamed # nsRefPtrGetterAddRefs, the class behind getter_AddRefs. Fix that up. find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \ xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g' if [ -d .git ]; then git mv mfbt/nsRefPtr.h mfbt/RefPtr.h else hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h fi --HG-- rename : mfbt/nsRefPtr.h => mfbt/RefPtr.h
2015-10-18 05:24:48 +00:00
"RefPtr.h",
"Result.h",
"ResultExtensions.h",
"ResultVariant.h",
"ReverseIterator.h",
"RollingMean.h",
"Saturate.h",
"Scoped.h",
"ScopeExit.h",
"SegmentedVector.h",
"SHA1.h",
"SharedLibrary.h",
"SmallPointerArray.h",
"Span.h",
"SplayTree.h",
"SPSCQueue.h",
"StaticAnalysisFunctions.h",
"TaggedAnonymousMemory.h",
"Tainting.h",
"TemplateLib.h",
"TextUtils.h",
"ThreadLocal.h",
"ThreadSafeWeakPtr.h",
"ToString.h",
"Tuple.h",
"TypedEnumBits.h",
"Types.h",
"TypeTraits.h",
"UniquePtr.h",
"UniquePtrExtensions.h",
"Unused.h",
"Utf8.h",
"Variant.h",
"Vector.h",
"WeakPtr.h",
"WrappingOperations.h",
"XorShift128PlusRNG.h",
]
Bug 1402344 - Update mfbt-double-conversion to the latest upstream rev. r=froydnj --HG-- rename : mfbt/double-conversion/source/LICENSE => mfbt/double-conversion/double-conversion/LICENSE rename : mfbt/double-conversion/source/README.md => mfbt/double-conversion/double-conversion/README.md rename : mfbt/double-conversion/source/bignum-dtoa.cc => mfbt/double-conversion/double-conversion/bignum-dtoa.cc rename : mfbt/double-conversion/source/bignum-dtoa.h => mfbt/double-conversion/double-conversion/bignum-dtoa.h rename : mfbt/double-conversion/source/bignum.cc => mfbt/double-conversion/double-conversion/bignum.cc rename : mfbt/double-conversion/source/bignum.h => mfbt/double-conversion/double-conversion/bignum.h rename : mfbt/double-conversion/source/cached-powers.cc => mfbt/double-conversion/double-conversion/cached-powers.cc rename : mfbt/double-conversion/source/cached-powers.h => mfbt/double-conversion/double-conversion/cached-powers.h rename : mfbt/double-conversion/source/diy-fp.cc => mfbt/double-conversion/double-conversion/diy-fp.cc rename : mfbt/double-conversion/source/diy-fp.h => mfbt/double-conversion/double-conversion/diy-fp.h rename : mfbt/double-conversion/source/double-conversion.cc => mfbt/double-conversion/double-conversion/double-conversion.cc rename : mfbt/double-conversion/source/double-conversion.h => mfbt/double-conversion/double-conversion/double-conversion.h rename : mfbt/double-conversion/source/fast-dtoa.cc => mfbt/double-conversion/double-conversion/fast-dtoa.cc rename : mfbt/double-conversion/source/fast-dtoa.h => mfbt/double-conversion/double-conversion/fast-dtoa.h rename : mfbt/double-conversion/source/fixed-dtoa.cc => mfbt/double-conversion/double-conversion/fixed-dtoa.cc rename : mfbt/double-conversion/source/fixed-dtoa.h => mfbt/double-conversion/double-conversion/fixed-dtoa.h rename : mfbt/double-conversion/source/ieee.h => mfbt/double-conversion/double-conversion/ieee.h rename : mfbt/double-conversion/source/strtod.cc => mfbt/double-conversion/double-conversion/strtod.cc rename : mfbt/double-conversion/source/strtod.h => mfbt/double-conversion/double-conversion/strtod.h rename : mfbt/double-conversion/source/utils.h => mfbt/double-conversion/double-conversion/utils.h extra : rebase_source : 2d03850dcd1db749f0debecffec2e870acd1b958
2017-10-10 05:15:37 +00:00
EXPORTS["double-conversion"] = [
"double-conversion/double-conversion/double-conversion.h",
"double-conversion/double-conversion/double-to-string.h",
"double-conversion/double-conversion/string-to-double.h",
Bug 1402344 - Update mfbt-double-conversion to the latest upstream rev. r=froydnj --HG-- rename : mfbt/double-conversion/source/LICENSE => mfbt/double-conversion/double-conversion/LICENSE rename : mfbt/double-conversion/source/README.md => mfbt/double-conversion/double-conversion/README.md rename : mfbt/double-conversion/source/bignum-dtoa.cc => mfbt/double-conversion/double-conversion/bignum-dtoa.cc rename : mfbt/double-conversion/source/bignum-dtoa.h => mfbt/double-conversion/double-conversion/bignum-dtoa.h rename : mfbt/double-conversion/source/bignum.cc => mfbt/double-conversion/double-conversion/bignum.cc rename : mfbt/double-conversion/source/bignum.h => mfbt/double-conversion/double-conversion/bignum.h rename : mfbt/double-conversion/source/cached-powers.cc => mfbt/double-conversion/double-conversion/cached-powers.cc rename : mfbt/double-conversion/source/cached-powers.h => mfbt/double-conversion/double-conversion/cached-powers.h rename : mfbt/double-conversion/source/diy-fp.cc => mfbt/double-conversion/double-conversion/diy-fp.cc rename : mfbt/double-conversion/source/diy-fp.h => mfbt/double-conversion/double-conversion/diy-fp.h rename : mfbt/double-conversion/source/double-conversion.cc => mfbt/double-conversion/double-conversion/double-conversion.cc rename : mfbt/double-conversion/source/double-conversion.h => mfbt/double-conversion/double-conversion/double-conversion.h rename : mfbt/double-conversion/source/fast-dtoa.cc => mfbt/double-conversion/double-conversion/fast-dtoa.cc rename : mfbt/double-conversion/source/fast-dtoa.h => mfbt/double-conversion/double-conversion/fast-dtoa.h rename : mfbt/double-conversion/source/fixed-dtoa.cc => mfbt/double-conversion/double-conversion/fixed-dtoa.cc rename : mfbt/double-conversion/source/fixed-dtoa.h => mfbt/double-conversion/double-conversion/fixed-dtoa.h rename : mfbt/double-conversion/source/ieee.h => mfbt/double-conversion/double-conversion/ieee.h rename : mfbt/double-conversion/source/strtod.cc => mfbt/double-conversion/double-conversion/strtod.cc rename : mfbt/double-conversion/source/strtod.h => mfbt/double-conversion/double-conversion/strtod.h rename : mfbt/double-conversion/source/utils.h => mfbt/double-conversion/double-conversion/utils.h extra : rebase_source : 2d03850dcd1db749f0debecffec2e870acd1b958
2017-10-10 05:15:37 +00:00
"double-conversion/double-conversion/utils.h",
]
LOCAL_INCLUDES += [
"/mfbt/double-conversion",
]
if CONFIG["OS_ARCH"] == "WINNT":
EXPORTS.mozilla += [
"WindowsVersion.h",
]
if CONFIG["OS_ARCH"] == "WASI":
EXPORTS.mozilla += [
"WasiAtomic.h",
]
if CONFIG["MOZ_TSAN"]:
EXPORTS.mozilla += [
"TsanOptions.h",
]
UNIFIED_SOURCES += [
"Assertions.cpp",
"ChaosMode.cpp",
"Compression.cpp",
"double-conversion/double-conversion/bignum-dtoa.cc",
"double-conversion/double-conversion/bignum.cc",
"double-conversion/double-conversion/cached-powers.cc",
"double-conversion/double-conversion/double-to-string.cc",
"double-conversion/double-conversion/fast-dtoa.cc",
"double-conversion/double-conversion/fixed-dtoa.cc",
"double-conversion/double-conversion/string-to-double.cc",
"double-conversion/double-conversion/strtod.cc",
"FloatingPoint.cpp",
"HashFunctions.cpp",
"JSONWriter.cpp",
"Poison.cpp",
"RandomNum.cpp",
"SHA1.cpp",
"TaggedAnonymousMemory.cpp",
"UniquePtrExtensions.cpp",
"Unused.cpp",
"Utf8.cpp",
]
if CONFIG["MOZ_BUILD_APP"] not in (
"memory",
"tools/update-programs",
):
# Building MFBT tests adds a large overhead when building.
TEST_DIRS += ["tests"]
DEFINES["IMPL_MFBT"] = True
SOURCES += [
"lz4/lz4.c",
"lz4/lz4frame.c",
"lz4/lz4hc.c",
"lz4/xxhash.c",
]
SOURCES["lz4/xxhash.c"].flags += ["-Wno-unused-function"]
DisableStlWrapping()
if CONFIG["MOZ_NEEDS_LIBATOMIC"]:
OS_LIBS += ["atomic"]
DEFINES["LZ4LIB_VISIBILITY"] = ""