mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-04 02:57:38 +00:00
4a00f61720
intl/component is already linked with Javascript. However, segmenter is still backed by lwbrk, which highly couples with xpcom APIs, so we cannnot add it under intl/component until we integrate ICU4X segmenter. I added it under intl/lwbrk for now. The enum `WordBreakRule` and `LineBreakRule` are named after their counterpart in ICU4X. https://unicode-org.github.io/icu4x-docs/doc/icu_segmenter/index.html#enums Differential Revision: https://phabricator.services.mozilla.com/D129193
48 lines
1.0 KiB
Python
48 lines
1.0 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/.
|
|
|
|
TEST_DIRS += ["gtest"]
|
|
|
|
EXPORTS.mozilla.intl += [
|
|
"LineBreaker.h",
|
|
"nsComplexBreaker.h",
|
|
"Segmenter.h",
|
|
"WordBreaker.h",
|
|
]
|
|
|
|
UNIFIED_SOURCES += [
|
|
"LineBreaker.cpp",
|
|
"Segmenter.cpp",
|
|
"WordBreaker.cpp",
|
|
]
|
|
|
|
SOURCES += [
|
|
"nsComplexBreaker.cpp",
|
|
]
|
|
|
|
if CONFIG["MOZ_WIDGET_TOOLKIT"] == "gtk":
|
|
SOURCES += [
|
|
"nsPangoBreaker.cpp",
|
|
]
|
|
CXXFLAGS += CONFIG["MOZ_PANGO_CFLAGS"]
|
|
elif CONFIG["MOZ_WIDGET_TOOLKIT"] == "windows":
|
|
SOURCES += [
|
|
"nsUniscribeBreaker.cpp",
|
|
]
|
|
elif CONFIG["MOZ_WIDGET_TOOLKIT"] == "cocoa":
|
|
UNIFIED_SOURCES += [
|
|
"nsCarbonBreaker.cpp",
|
|
]
|
|
else:
|
|
SOURCES += [
|
|
"nsRuleBreaker.cpp",
|
|
"rulebrk.c",
|
|
]
|
|
|
|
FINAL_LIBRARY = "xul"
|
|
|
|
REQUIRES_UNIFIED_BUILD = True
|