| 1 |
# -*- Mode: python; 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/. |
| 6 |
EXPORTS.mozilla.intl = [ |
| 7 |
"src/Bidi.h", |
| 8 |
"src/BidiClass.h", |
| 9 |
"src/BidiEmbeddingLevel.h", |
| 10 |
"src/Calendar.h", |
| 11 |
"src/Collator.h", |
| 12 |
"src/Currency.h", |
| 13 |
"src/DateIntervalFormat.h", |
| 14 |
"src/DateTimeFormat.h", |
| 15 |
"src/DateTimePart.h", |
| 16 |
"src/DateTimePatternGenerator.h", |
| 17 |
"src/DisplayNames.h", |
| 18 |
"src/FormatBuffer.h", |
| 19 |
"src/GeneralCategory.h", |
| 20 |
"src/ICU4CGlue.h", |
| 21 |
"src/ICU4CLibrary.h", |
| 22 |
"src/ICU4XGeckoDataProvider.h", |
| 23 |
"src/ICUError.h", |
| 24 |
"src/ListFormat.h", |
| 25 |
"src/Locale.h", |
| 26 |
"src/LocaleCanonicalizer.h", |
| 27 |
"src/MeasureUnit.h", |
| 28 |
"src/MeasureUnitGenerated.h", |
| 29 |
"src/NumberFormat.h", |
| 30 |
"src/NumberingSystem.h", |
| 31 |
"src/NumberParser.h", |
| 32 |
"src/NumberPart.h", |
| 33 |
"src/NumberRangeFormat.h", |
| 34 |
"src/PluralRules.h", |
| 35 |
"src/RelativeTimeFormat.h", |
| 36 |
"src/String.h", |
| 37 |
"src/TimeZone.h", |
| 38 |
"src/UnicodeProperties.h", |
| 39 |
"src/UnicodeScriptCodes.h", |
| 40 |
] |
| 41 |
|
| 42 |
UNIFIED_SOURCES += [ |
| 43 |
"src/Bidi.cpp", |
| 44 |
"src/BidiEmbeddingLevel.cpp", |
| 45 |
"src/Calendar.cpp", |
| 46 |
"src/Collator.cpp", |
| 47 |
"src/Currency.cpp", |
| 48 |
"src/DateIntervalFormat.cpp", |
| 49 |
"src/DateTimeFormat.cpp", |
| 50 |
"src/DateTimeFormatUtils.cpp", |
| 51 |
"src/DateTimePatternGenerator.cpp", |
| 52 |
"src/DisplayNames.cpp", |
| 53 |
"src/ICU4CGlue.cpp", |
| 54 |
"src/ICU4CLibrary.cpp", |
| 55 |
"src/ICU4XGeckoDataProvider.cpp", |
| 56 |
"src/ListFormat.cpp", |
| 57 |
"src/Locale.cpp", |
| 58 |
"src/LocaleCanonicalizer.cpp", |
| 59 |
"src/LocaleGenerated.cpp", |
| 60 |
"src/MeasureUnit.cpp", |
| 61 |
"src/NumberFormat.cpp", |
| 62 |
"src/NumberFormatFields.cpp", |
| 63 |
"src/NumberFormatterSkeleton.cpp", |
| 64 |
"src/NumberingSystem.cpp", |
| 65 |
"src/NumberParser.cpp", |
| 66 |
"src/NumberRangeFormat.cpp", |
| 67 |
"src/PluralRules.cpp", |
| 68 |
"src/RelativeTimeFormat.cpp", |
| 69 |
"src/String.cpp", |
| 70 |
"src/TimeZone.cpp", |
| 71 |
] |
| 72 |
|
| 73 |
if not CONFIG["JS_STANDALONE"]: |
| 74 |
TEST_DIRS += ["gtest"] |
| 75 |
|
| 76 |
LOCAL_INCLUDES += [ |
| 77 |
"/intl/icu_capi/bindings/c", |
| 78 |
] |
| 79 |
|
| 80 |
if not CONFIG["MOZ_SYSTEM_ICU"]: |
| 81 |
DIRS += ["src/calendar"] |
| 82 |
|
| 83 |
# At the time of this writing the MOZ_HAS_MOZGLUE define must be true in order to |
| 84 |
# correctly include ConvertUtf8toUtf16 in certain include paths, otherwise it results |
| 85 |
# in a compile time "undeclared identifier" error. See: |
| 86 |
# https://searchfox.org/mozilla-central/rev/6371054f6260a5f8844846439297547f7cfeeedd/mfbt/Utf8.h#277 |
| 87 |
DEFINES["MOZ_HAS_MOZGLUE"] = True |
| 88 |
|
| 89 |
Library("intlcomponents") |