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