2016-07-14 19:16:42 +03:00
|
|
|
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-26 00:47:21 +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/.
|
|
|
|
|
2014-09-26 08:20:23 +04:00
|
|
|
XPCSHELL_TESTS_MANIFESTS += ['tests/unit/xpcshell.ini']
|
2013-03-19 22:47:00 +04:00
|
|
|
|
2014-07-24 21:56:38 +04:00
|
|
|
toolkit = CONFIG['MOZ_WIDGET_TOOLKIT']
|
|
|
|
|
|
|
|
if toolkit == 'windows':
|
|
|
|
DIRS += ['windows']
|
|
|
|
elif toolkit == 'cocoa':
|
|
|
|
DIRS += ['mac']
|
2017-11-27 06:45:14 +03:00
|
|
|
elif 'gtk' in toolkit:
|
|
|
|
DIRS += ['gtk']
|
|
|
|
elif toolkit == 'android':
|
|
|
|
DIRS += ['android']
|
2014-07-24 21:56:38 +04:00
|
|
|
|
2014-07-24 21:56:38 +04:00
|
|
|
XPIDL_SOURCES += [
|
2017-02-05 23:29:39 +03:00
|
|
|
'mozILocaleService.idl',
|
2017-02-09 04:17:51 +03:00
|
|
|
'mozIOSPreferences.idl',
|
2014-07-24 21:56:38 +04:00
|
|
|
'nsICollation.idl',
|
|
|
|
]
|
|
|
|
|
|
|
|
XPIDL_MODULE = 'locale'
|
|
|
|
|
2014-07-24 21:56:38 +04:00
|
|
|
EXPORTS += [
|
2016-11-22 02:58:37 +03:00
|
|
|
'DateTimeFormat.h',
|
2014-07-24 21:56:38 +04:00
|
|
|
'nsCollationCID.h',
|
2015-04-03 22:39:23 +03:00
|
|
|
'nsLanguageAtomService.h',
|
2016-09-16 22:38:00 +03:00
|
|
|
'nsUConvPropertySearch.h',
|
2014-07-24 21:56:38 +04:00
|
|
|
]
|
|
|
|
|
2017-01-26 02:58:14 +03:00
|
|
|
EXPORTS.mozilla.intl += [
|
2017-02-09 00:12:14 +03:00
|
|
|
'LocaleService.h',
|
2018-01-06 11:23:09 +03:00
|
|
|
'MozLocale.h',
|
2017-03-06 05:03:46 +03:00
|
|
|
'OSPreferences.h',
|
2019-07-09 02:56:12 +03:00
|
|
|
'Quotes.h',
|
2017-01-26 02:58:14 +03:00
|
|
|
]
|
|
|
|
|
2014-07-24 21:56:38 +04:00
|
|
|
UNIFIED_SOURCES += [
|
2017-09-22 09:33:07 +03:00
|
|
|
'DateTimeFormat.cpp',
|
2017-01-26 02:58:14 +03:00
|
|
|
'LocaleService.cpp',
|
2018-01-06 11:23:09 +03:00
|
|
|
'MozLocale.cpp',
|
2017-09-22 09:33:07 +03:00
|
|
|
'nsCollation.cpp',
|
2017-03-23 07:42:00 +03:00
|
|
|
'nsCollationFactory.cpp',
|
2014-07-24 21:56:38 +04:00
|
|
|
'nsLanguageAtomService.cpp',
|
|
|
|
'nsUConvPropertySearch.cpp',
|
2017-03-06 05:03:46 +03:00
|
|
|
'OSPreferences.cpp',
|
2019-07-09 02:56:12 +03:00
|
|
|
'Quotes.cpp',
|
2014-07-24 21:56:38 +04:00
|
|
|
]
|
|
|
|
|
|
|
|
EXTRA_JS_MODULES += [
|
|
|
|
'PluralForm.jsm',
|
|
|
|
]
|
|
|
|
|
2019-01-25 02:58:31 +03:00
|
|
|
XPCOM_MANIFESTS += [
|
|
|
|
'components.conf',
|
|
|
|
]
|
|
|
|
|
2014-07-24 21:56:38 +04:00
|
|
|
FINAL_LIBRARY = 'xul'
|
|
|
|
|
|
|
|
LOCAL_INCLUDES += [
|
2014-07-24 21:56:39 +04:00
|
|
|
'/intl/uconv',
|
2014-07-24 21:56:38 +04:00
|
|
|
]
|
|
|
|
|
|
|
|
RESOURCE_FILES += [
|
|
|
|
'language.properties',
|
|
|
|
]
|
2014-07-24 19:55:33 +04:00
|
|
|
|
2017-06-17 05:54:40 +03:00
|
|
|
prefixes = (
|
|
|
|
'encodingsgroups',
|
|
|
|
)
|
|
|
|
|
|
|
|
for prefix in prefixes:
|
|
|
|
input_file = prefix + '.properties'
|
|
|
|
header = prefix + '.properties.h'
|
|
|
|
GENERATED_FILES += [header]
|
|
|
|
props = GENERATED_FILES[header]
|
|
|
|
props.script = 'props2arrays.py'
|
|
|
|
props.inputs = [input_file]
|
2017-01-26 02:58:14 +03:00
|
|
|
|
|
|
|
if CONFIG['ENABLE_TESTS']:
|
|
|
|
DIRS += ['tests/gtest']
|