2016-07-14 19:16:42 +03:00
|
|
|
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-26 00:47:20 +04:00
|
|
|
# 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/.
|
|
|
|
|
2017-03-01 16:20:25 +03:00
|
|
|
with Files("**"):
|
|
|
|
BUG_COMPONENT = ("Core", "Internationalization")
|
|
|
|
|
2013-04-16 23:24:43 +04:00
|
|
|
EXPORTS.mozilla.dom += [
|
2013-11-04 15:24:33 +04:00
|
|
|
'FallbackEncoding.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
'TextDecoder.h',
|
|
|
|
'TextEncoder.h',
|
|
|
|
]
|
|
|
|
|
2013-12-04 18:42:49 +04:00
|
|
|
UNIFIED_SOURCES += [
|
2013-11-04 15:24:33 +04:00
|
|
|
'FallbackEncoding.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
'TextDecoder.cpp',
|
|
|
|
'TextEncoder.cpp',
|
|
|
|
]
|
|
|
|
|
2014-07-23 03:37:51 +04:00
|
|
|
FINAL_LIBRARY = 'xul'
|
2013-11-11 12:04:11 +04:00
|
|
|
LOCAL_INCLUDES += [
|
2014-07-24 21:56:38 +04:00
|
|
|
'/intl/locale',
|
2013-11-11 12:04:11 +04:00
|
|
|
]
|
|
|
|
|
2017-11-15 16:56:08 +03:00
|
|
|
props2arrays = 'encodings2arrays.py'
|
2015-02-19 18:35:08 +03:00
|
|
|
prefixes = (
|
|
|
|
'domainsfallbacks',
|
|
|
|
'labelsencodings',
|
|
|
|
'localesfallbacks',
|
|
|
|
)
|
|
|
|
|
|
|
|
for prefix in prefixes:
|
|
|
|
input_file = prefix + '.properties'
|
|
|
|
header = prefix + '.properties.h'
|
|
|
|
GENERATED_FILES += [header]
|
|
|
|
props = GENERATED_FILES[header]
|
|
|
|
props.script = props2arrays
|
|
|
|
props.inputs = [input_file]
|
2014-07-26 10:17:24 +04:00
|
|
|
|
2017-11-15 16:56:08 +03:00
|
|
|
input_file = 'nonparticipatingdomains.properties'
|
|
|
|
header = input_file + '.h'
|
|
|
|
GENERATED_FILES += [header]
|
|
|
|
props = GENERATED_FILES[header]
|
|
|
|
props.script = '../../intl/locale/props2arrays.py'
|
|
|
|
props.inputs = [input_file]
|
|
|
|
|
2014-07-26 10:17:24 +04:00
|
|
|
MOCHITEST_MANIFESTS += [
|
|
|
|
'test/mochitest.ini',
|
|
|
|
]
|
|
|
|
MOCHITEST_CHROME_MANIFESTS += ['test/chrome.ini']
|
|
|
|
XPCSHELL_TESTS_MANIFESTS += ['test/unit/xpcshell.ini']
|