2016-07-14 16:16:42 +00:00
|
|
|
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-25 20:47:21 +00: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 04:20:23 +00:00
|
|
|
XPCSHELL_TESTS_MANIFESTS += ['tests/unit/xpcshell.ini']
|
2013-03-19 18:47:00 +00:00
|
|
|
|
2017-02-05 19:41:43 +00:00
|
|
|
if CONFIG['ENABLE_INTL_API']:
|
|
|
|
SOURCES += ['OSPreferences.cpp']
|
2017-02-08 21:12:14 +00:00
|
|
|
EXPORTS.mozilla.intl += [
|
|
|
|
'OSPreferences.h',
|
|
|
|
]
|
2017-02-05 19:41:43 +00:00
|
|
|
|
2014-07-24 17:56:38 +00:00
|
|
|
toolkit = CONFIG['MOZ_WIDGET_TOOLKIT']
|
|
|
|
|
|
|
|
if toolkit == 'windows':
|
|
|
|
DIRS += ['windows']
|
|
|
|
elif toolkit == 'cocoa':
|
|
|
|
DIRS += ['mac']
|
|
|
|
else:
|
|
|
|
DIRS += ['unix']
|
2017-02-09 01:17:51 +00:00
|
|
|
if 'gtk' in CONFIG['MOZ_WIDGET_TOOLKIT']:
|
|
|
|
DIRS += ['gtk']
|
2014-07-24 17:56:38 +00:00
|
|
|
|
2014-07-24 17:56:38 +00:00
|
|
|
XPIDL_SOURCES += [
|
2017-02-05 20:29:39 +00:00
|
|
|
'mozILocaleService.idl',
|
2017-02-09 01:17:51 +00:00
|
|
|
'mozIOSPreferences.idl',
|
2014-07-24 17:56:38 +00:00
|
|
|
'nsICollation.idl',
|
|
|
|
'nsILocale.idl',
|
|
|
|
'nsILocaleService.idl',
|
|
|
|
'nsIScriptableDateFormat.idl',
|
|
|
|
]
|
|
|
|
|
|
|
|
XPIDL_MODULE = 'locale'
|
|
|
|
|
2014-07-24 17:56:38 +00:00
|
|
|
EXPORTS += [
|
2016-11-21 23:58:37 +00:00
|
|
|
'DateTimeFormat.h',
|
2014-07-24 17:56:38 +00:00
|
|
|
'nsCollation.h',
|
2014-07-24 17:56:38 +00:00
|
|
|
'nsCollationCID.h',
|
|
|
|
'nsILanguageAtomService.h',
|
|
|
|
'nsIPlatformCharset.h',
|
|
|
|
'nsPosixLocale.h',
|
2016-09-16 19:38:00 +00:00
|
|
|
'nsUConvPropertySearch.h',
|
2014-07-24 17:56:38 +00:00
|
|
|
'nsWin32Locale.h',
|
2014-07-24 17:56:38 +00:00
|
|
|
]
|
|
|
|
|
2017-01-25 23:58:14 +00:00
|
|
|
EXPORTS.mozilla.intl += [
|
2017-02-08 21:12:14 +00:00
|
|
|
'LocaleService.h',
|
2017-01-25 23:58:14 +00:00
|
|
|
]
|
|
|
|
|
2014-07-24 17:56:38 +00:00
|
|
|
UNIFIED_SOURCES += [
|
2017-02-08 22:08:30 +00:00
|
|
|
'DateTimeFormat.cpp',
|
2017-01-25 23:58:14 +00:00
|
|
|
'LocaleService.cpp',
|
2014-07-24 17:56:38 +00:00
|
|
|
'nsCollation.cpp',
|
|
|
|
'nsLanguageAtomService.cpp',
|
|
|
|
'nsLocale.cpp',
|
|
|
|
'nsLocaleService.cpp',
|
|
|
|
'nsScriptableDateFormat.cpp',
|
|
|
|
'nsUConvPropertySearch.cpp',
|
|
|
|
]
|
|
|
|
|
|
|
|
EXTRA_JS_MODULES += [
|
|
|
|
'PluralForm.jsm',
|
|
|
|
]
|
|
|
|
|
|
|
|
FINAL_LIBRARY = 'xul'
|
|
|
|
|
|
|
|
LOCAL_INCLUDES += [
|
2014-07-24 17:56:39 +00:00
|
|
|
'/intl/uconv',
|
2014-07-24 17:56:38 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
RESOURCE_FILES += [
|
|
|
|
'langGroups.properties',
|
|
|
|
'language.properties',
|
|
|
|
]
|
2014-07-24 15:55:33 +00:00
|
|
|
|
2015-01-14 05:30:49 +00:00
|
|
|
GENERATED_FILES += [
|
|
|
|
'langGroups.properties.h',
|
|
|
|
]
|
2015-02-19 15:35:08 +00:00
|
|
|
langgroups = GENERATED_FILES['langGroups.properties.h']
|
|
|
|
langgroups.script = 'props2arrays.py'
|
|
|
|
langgroups.inputs = ['langGroups.properties']
|
2017-01-25 23:58:14 +00:00
|
|
|
|
|
|
|
if CONFIG['ENABLE_TESTS']:
|
|
|
|
DIRS += ['tests/gtest']
|