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']
|
|
|
|
else:
|
|
|
|
DIRS += ['unix']
|
2017-02-09 04:17:51 +03:00
|
|
|
if 'gtk' in CONFIG['MOZ_WIDGET_TOOLKIT']:
|
|
|
|
DIRS += ['gtk']
|
2017-03-09 10:35:27 +03:00
|
|
|
elif CONFIG['MOZ_WIDGET_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',
|
|
|
|
'nsIPlatformCharset.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',
|
2017-03-06 05:03:46 +03:00
|
|
|
'OSPreferences.h',
|
2017-01-26 02:58:14 +03:00
|
|
|
]
|
|
|
|
|
2014-07-24 21:56:38 +04:00
|
|
|
UNIFIED_SOURCES += [
|
2017-01-26 02:58:14 +03:00
|
|
|
'LocaleService.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',
|
2014-07-24 21:56:38 +04:00
|
|
|
]
|
|
|
|
|
2017-05-26 01:04:13 +03:00
|
|
|
|
2017-03-10 06:58:21 +03:00
|
|
|
if CONFIG['ENABLE_INTL_API']:
|
|
|
|
UNIFIED_SOURCES += [
|
|
|
|
'DateTimeFormat.cpp',
|
2017-03-23 07:43:38 +03:00
|
|
|
'nsCollation.cpp',
|
2017-03-10 06:58:21 +03:00
|
|
|
]
|
|
|
|
else:
|
|
|
|
UNIFIED_SOURCES += [
|
|
|
|
'DateTimeFormatAndroid.cpp',
|
2017-03-23 07:43:38 +03:00
|
|
|
'nsCollationAndroid.cpp',
|
2017-03-10 06:58:21 +03:00
|
|
|
]
|
|
|
|
|
2014-07-24 21:56:38 +04:00
|
|
|
EXTRA_JS_MODULES += [
|
|
|
|
'PluralForm.jsm',
|
|
|
|
]
|
|
|
|
|
|
|
|
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',
|
|
|
|
'langGroups',
|
|
|
|
)
|
|
|
|
|
|
|
|
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']
|