Fri, 16 Jan 2015 18:13:44 +0100
Integrate suggestion from review to improve consistency with existing code.
michael@0 | 1 | # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- |
michael@0 | 2 | # vim: set filetype=python: |
michael@0 | 3 | # This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 4 | # License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 5 | # file, You can obtain one at http://mozilla.org/MPL/2.0/. |
michael@0 | 6 | |
michael@0 | 7 | SOURCES += [ |
michael@0 | 8 | 'nsCollationUnix.cpp', |
michael@0 | 9 | 'nsDateTimeFormatUnix.cpp', |
michael@0 | 10 | 'nsPosixLocale.cpp', |
michael@0 | 11 | ] |
michael@0 | 12 | |
michael@0 | 13 | if CONFIG['OS_TARGET'] == 'Android': |
michael@0 | 14 | SOURCES += [ |
michael@0 | 15 | 'nsAndroidCharset.cpp', |
michael@0 | 16 | ] |
michael@0 | 17 | else: |
michael@0 | 18 | SOURCES += [ |
michael@0 | 19 | 'nsUNIXCharset.cpp', |
michael@0 | 20 | ] |
michael@0 | 21 | |
michael@0 | 22 | FINAL_LIBRARY = 'i18n' |
michael@0 | 23 | |
michael@0 | 24 | GENERATED_FILES = [ |
michael@0 | 25 | 'unixcharset.properties.h', |
michael@0 | 26 | ] |
michael@0 | 27 | LOCAL_INCLUDES += [ |
michael@0 | 28 | '..', |
michael@0 | 29 | ] |
michael@0 | 30 | |
michael@0 | 31 | |
michael@0 | 32 | # CODESET is not automatically defined on some older versions of Redhat. |
michael@0 | 33 | # Define _XOPEN_SOURCE so CODESET will get defined and thus allow |
michael@0 | 34 | # nl_langinfo(CODESET) to compile on these systems. |
michael@0 | 35 | if CONFIG['OS_ARCH'] == 'Linux': |
michael@0 | 36 | DEFINES['_XOPEN_SOURCE'] = 500 |
michael@0 | 37 | |
michael@0 | 38 | DEFINES['OSTYPE'] = '"%s"' % CONFIG['OS_CONFIG'] |