michael@0: # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- michael@0: # vim: set filetype=python: michael@0: # This Source Code Form is subject to the terms of the Mozilla Public michael@0: # License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: # file, You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: michael@0: SOURCES += [ michael@0: 'nsCollationUnix.cpp', michael@0: 'nsDateTimeFormatUnix.cpp', michael@0: 'nsPosixLocale.cpp', michael@0: ] michael@0: michael@0: if CONFIG['OS_TARGET'] == 'Android': michael@0: SOURCES += [ michael@0: 'nsAndroidCharset.cpp', michael@0: ] michael@0: else: michael@0: SOURCES += [ michael@0: 'nsUNIXCharset.cpp', michael@0: ] michael@0: michael@0: FINAL_LIBRARY = 'i18n' michael@0: michael@0: GENERATED_FILES = [ michael@0: 'unixcharset.properties.h', michael@0: ] michael@0: LOCAL_INCLUDES += [ michael@0: '..', michael@0: ] michael@0: michael@0: michael@0: # CODESET is not automatically defined on some older versions of Redhat. michael@0: # Define _XOPEN_SOURCE so CODESET will get defined and thus allow michael@0: # nl_langinfo(CODESET) to compile on these systems. michael@0: if CONFIG['OS_ARCH'] == 'Linux': michael@0: DEFINES['_XOPEN_SOURCE'] = 500 michael@0: michael@0: DEFINES['OSTYPE'] = '"%s"' % CONFIG['OS_CONFIG']