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']
|
|
|
|
|
2014-07-24 21:56:38 +04:00
|
|
|
XPIDL_SOURCES += [
|
|
|
|
'nsICollation.idl',
|
|
|
|
'nsILocale.idl',
|
|
|
|
'nsILocaleService.idl',
|
|
|
|
'nsIScriptableDateFormat.idl',
|
|
|
|
]
|
|
|
|
|
|
|
|
XPIDL_MODULE = 'locale'
|
|
|
|
|
2014-07-24 21:56:38 +04:00
|
|
|
EXPORTS += [
|
|
|
|
'nsCollation.h',
|
2014-07-24 21:56:38 +04:00
|
|
|
'nsCollationCID.h',
|
|
|
|
'nsDateTimeFormatCID.h',
|
|
|
|
'nsIDateTimeFormat.h',
|
|
|
|
'nsILanguageAtomService.h',
|
|
|
|
'nsIPlatformCharset.h',
|
|
|
|
'nsPosixLocale.h',
|
|
|
|
'nsWin32Locale.h',
|
2014-07-24 21:56:38 +04:00
|
|
|
]
|
|
|
|
|
|
|
|
UNIFIED_SOURCES += [
|
|
|
|
'nsCollation.cpp',
|
2015-12-05 18:30:53 +03:00
|
|
|
'nsIDateTimeFormat.cpp',
|
2014-07-24 21:56:38 +04:00
|
|
|
'nsLanguageAtomService.cpp',
|
|
|
|
'nsLocale.cpp',
|
|
|
|
'nsLocaleService.cpp',
|
|
|
|
'nsScriptableDateFormat.cpp',
|
|
|
|
'nsUConvPropertySearch.cpp',
|
|
|
|
]
|
|
|
|
|
|
|
|
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 += [
|
|
|
|
'langGroups.properties',
|
|
|
|
'language.properties',
|
|
|
|
]
|
2014-07-24 19:55:33 +04:00
|
|
|
|
2015-01-14 08:30:49 +03:00
|
|
|
GENERATED_FILES += [
|
|
|
|
'langGroups.properties.h',
|
|
|
|
]
|
2015-02-19 18:35:08 +03:00
|
|
|
langgroups = GENERATED_FILES['langGroups.properties.h']
|
|
|
|
langgroups.script = 'props2arrays.py'
|
|
|
|
langgroups.inputs = ['langGroups.properties']
|