gecko-dev/intl/moz.build
Henri Sivonen c562792b2e Bug 1490593 - Move FFI for encoding_rs::mem to a vendored crate. r=froydnj
Also remove most C++-side optimizations for avoiding calls to Rust
for short strings now that we have LTO between C++ and Rust. Since
LTO still leaves the overhead of one function call layer, inlined
function call avoidance optimization is left in place in the
IsUTF8 and in the 8-bit IsASCII cases for which perfherder flags
the difference as significant for the length 15.

Differential Revision: https://phabricator.services.mozilla.com/D40999

--HG--
extra : moz-landing-system : lando
2019-08-14 07:53:34 +00:00

58 lines
1.4 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',
]
DIRS += [
'hyphenation/hyphen',
'hyphenation/glue',
'locale',
'locales',
'lwbrk',
'strres',
'unicharutil',
'l10n',
]
DIRS += [
'uconv',
'build',
]
EXPORTS.mozilla += [
'Encoding.h',
'JapaneseDetector.h',
]
EXPORTS += [
'../third_party/rust/encoding_c/include/encoding_rs.h',
'../third_party/rust/encoding_c/include/encoding_rs_statics.h',
'../third_party/rust/encoding_c_mem/include/encoding_rs_mem.h',
'../third_party/rust/shift_or_euc_c/include/shift_or_euc.h',
]
with Files("**"):
BUG_COMPONENT = ("Core", "Internationalization")
with Files("icu/**"):
BUG_COMPONENT = ("Core", "JavaScript: Internationalization API")
with Files("icu-patches/**"):
BUG_COMPONENT = ("Core", "JavaScript: Internationalization API")
with Files("tzdata/**"):
BUG_COMPONENT = ("Core", "JavaScript: Internationalization API")
with Files("update*"):
BUG_COMPONENT = ("Core", "JavaScript: Internationalization API")
with Files("icu_sources_data.py"):
BUG_COMPONENT = ("Firefox Build System", "General")
SPHINX_TREES['/intl'] = 'docs'