intl/locale/src/unix/moz.build

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/intl/locale/src/unix/moz.build	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,38 @@
     1.4 +# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
     1.5 +# vim: set filetype=python:
     1.6 +# This Source Code Form is subject to the terms of the Mozilla Public
     1.7 +# License, v. 2.0. If a copy of the MPL was not distributed with this
     1.8 +# file, You can obtain one at http://mozilla.org/MPL/2.0/.
     1.9 +
    1.10 +SOURCES += [
    1.11 +    'nsCollationUnix.cpp',
    1.12 +    'nsDateTimeFormatUnix.cpp',
    1.13 +    'nsPosixLocale.cpp',
    1.14 +]
    1.15 +
    1.16 +if CONFIG['OS_TARGET'] == 'Android':
    1.17 +    SOURCES += [
    1.18 +        'nsAndroidCharset.cpp',
    1.19 +    ]
    1.20 +else:
    1.21 +    SOURCES += [
    1.22 +        'nsUNIXCharset.cpp',
    1.23 +    ]
    1.24 +
    1.25 +FINAL_LIBRARY = 'i18n'
    1.26 +
    1.27 +GENERATED_FILES = [
    1.28 +    'unixcharset.properties.h',
    1.29 +]
    1.30 +LOCAL_INCLUDES += [
    1.31 +    '..',
    1.32 +]
    1.33 +
    1.34 +
    1.35 +# CODESET is not automatically defined on some older versions of Redhat.
    1.36 +# Define _XOPEN_SOURCE so CODESET will get defined and thus allow
    1.37 +# nl_langinfo(CODESET) to compile on these systems.
    1.38 +if CONFIG['OS_ARCH'] == 'Linux':
    1.39 +    DEFINES['_XOPEN_SOURCE'] = 500
    1.40 +
    1.41 +DEFINES['OSTYPE'] = '"%s"' % CONFIG['OS_CONFIG']

mercurial