forked from mirrors/gecko-dev
Time zone functions being part of `UCalendar` is an internal implementation detail of ICU4C. For the public unified Intl API we should rather follow Temporal (or ICU4C's C++ API) and have a separate `TimeZone` class. The files were moved using `hg cp` to preserve the file history. Differential Revision: https://phabricator.services.mozilla.com/D125574
57 lines
1.7 KiB
Python
57 lines
1.7 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/.
|
|
EXPORTS.mozilla.intl = [
|
|
"src/Calendar.h",
|
|
"src/Collator.h",
|
|
"src/Currency.h",
|
|
"src/DateTimeFormat.h",
|
|
"src/DateTimePatternGenerator.h",
|
|
"src/ICU4CGlue.h",
|
|
"src/ICUError.h",
|
|
"src/ListFormat.h",
|
|
"src/LocaleCanonicalizer.h",
|
|
"src/MeasureUnit.h",
|
|
"src/NumberFormat.h",
|
|
"src/NumberingSystem.h",
|
|
"src/NumberPart.h",
|
|
"src/NumberRangeFormat.h",
|
|
"src/PluralRules.h",
|
|
"src/RelativeTimeFormat.h",
|
|
"src/TimeZone.h",
|
|
]
|
|
|
|
UNIFIED_SOURCES += [
|
|
"src/Calendar.cpp",
|
|
"src/Collator.cpp",
|
|
"src/Currency.cpp",
|
|
"src/DateTimeFormat.cpp",
|
|
"src/DateTimePatternGenerator.cpp",
|
|
"src/ICU4CGlue.cpp",
|
|
"src/ListFormat.cpp",
|
|
"src/LocaleCanonicalizer.cpp",
|
|
"src/MeasureUnit.cpp",
|
|
"src/NumberFormat.cpp",
|
|
"src/NumberFormatFields.cpp",
|
|
"src/NumberFormatterSkeleton.cpp",
|
|
"src/NumberingSystem.cpp",
|
|
"src/NumberRangeFormat.cpp",
|
|
"src/PluralRules.cpp",
|
|
"src/RelativeTimeFormat.cpp",
|
|
"src/TimeZone.cpp",
|
|
]
|
|
|
|
if not CONFIG["JS_STANDALONE"]:
|
|
TEST_DIRS += ["gtest"]
|
|
|
|
# At the time of this writing the MOZ_HAS_MOZGLUE define must be true in order to
|
|
# correctly include ConvertUtf8toUtf16 in certain include paths, otherwise it results
|
|
# in a compile time "undeclared identifier" error. See:
|
|
# https://searchfox.org/mozilla-central/rev/6371054f6260a5f8844846439297547f7cfeeedd/mfbt/Utf8.h#277
|
|
DEFINES["MOZ_HAS_MOZGLUE"] = True
|
|
|
|
Library("intlcomponents")
|
|
|
|
REQUIRES_UNIFIED_BUILD = True
|