OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [packages/] [language/] [c/] [libc/] [i18n/] [current/] [cdl/] [i18n.cdl] - Blame information for rev 786

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 786 skrzyp
# ====================================================================
2
#
3
#      i18n.cdl
4
#
5
#      C library internationalization (i18n) related configuration data
6
#
7
# ====================================================================
8
## ####ECOSGPLCOPYRIGHTBEGIN####
9
## -------------------------------------------
10
## This file is part of eCos, the Embedded Configurable Operating System.
11
## Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
12
##
13
## eCos is free software; you can redistribute it and/or modify it under
14
## the terms of the GNU General Public License as published by the Free
15
## Software Foundation; either version 2 or (at your option) any later
16
## version.
17
##
18
## eCos is distributed in the hope that it will be useful, but WITHOUT
19
## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20
## FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
21
## for more details.
22
##
23
## You should have received a copy of the GNU General Public License
24
## along with eCos; if not, write to the Free Software Foundation, Inc.,
25
## 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
26
##
27
## As a special exception, if other files instantiate templates or use
28
## macros or inline functions from this file, or you compile this file
29
## and link it with other works to produce a work based on this file,
30
## this file does not by itself cause the resulting work to be covered by
31
## the GNU General Public License. However the source code for this file
32
## must still be made available in accordance with section (3) of the GNU
33
## General Public License v2.
34
##
35
## This exception does not invalidate any other reasons why a work based
36
## on this file might be covered by the GNU General Public License.
37
## -------------------------------------------
38
## ####ECOSGPLCOPYRIGHTEND####
39
# ====================================================================
40
######DESCRIPTIONBEGIN####
41
#
42
# Author(s):      jlarmour
43
# Contributors:   jjohnstn
44
# Date:           2000-04-14
45
#
46
#####DESCRIPTIONEND####
47
#
48
# ====================================================================
49
 
50
cdl_package CYGPKG_LIBC_I18N {
51
    display       "ISO C library internationalization functions"
52
    description   "
53
        This package provides internationalization functions specified by the
54
        ISO C standard - ISO/IEC 9899:1990. These include locale-related
55
        functionality and  functionality."
56
    doc           ref/libc.html
57
    include_dir   cyg/libc/i18n
58
    parent        CYGPKG_LIBC
59
    implements    CYGINT_ISO_LOCALE
60
    implements    CYGINT_ISO_CTYPE
61
    implements    CYGINT_ISO_STDLIB_MULTIBYTE
62
    requires      CYGPKG_ISOINFRA
63
    compile       ctype.cxx locale.cxx mblen.cxx mbtowc.cxx mbstowcs.cxx \
64
                  wctomb.cxx wcstombs.cxx mbtowc_jp.cxx wctomb_jp.cxx mbtowc_c.cxx
65
 
66
# ====================================================================
67
 
68
    cdl_component CYGPKG_LIBC_I18N_LOCALES {
69
        display       "Supported locales"
70
        flavor        none
71
        description   "
72
            These options determine which locales other than the \"C\" locale
73
            are supported and hence contribute to the size of the executable."
74
 
75
        cdl_interface CYGINT_LIBC_I18N_MB_REQUIRED {
76
            display       "Support for multiple locales required"
77
            flavor        booldata
78
            requires      { CYGBLD_ISO_STDLIB_MB_CUR_MAX_HEADER == \
79
                            "" }
80
        }
81
 
82
        cdl_option CYGFUN_LIBC_I18N_LOCALE_C_SJIS {
83
            display       "C-SJIS locale support"
84
            default_value 0
85
            implements    CYGINT_LIBC_I18N_MB_REQUIRED
86
            description    "
87
                This option controls if the \"C-SJIS\" locale will be
88
                supported by setlocale().  The locale is a hybrid locale
89
                that is mostly the \"C\" locale with Japanese SJIS multibyte
90
                support added."
91
        }
92
 
93
        cdl_option CYGFUN_LIBC_I18N_LOCALE_C_JIS {
94
            display       "C-JIS locale support"
95
            default_value 0
96
            implements    CYGINT_LIBC_I18N_MB_REQUIRED
97
            description    "
98
                This option controls if the \"C-JIS\" locale will be
99
                supported by setlocale().  The locale is a hybrid locale
100
                that is mostly the \"C\" locale with Japanese JIS multibyte
101
                support added."
102
        }
103
 
104
        cdl_option CYGFUN_LIBC_I18N_LOCALE_C_EUCJP {
105
            display       "C-EUCJP locale support"
106
            default_value 0
107
            implements    CYGINT_LIBC_I18N_MB_REQUIRED
108
            description    "
109
                This option controls if the \"C-EUCJP\" locale will be
110
                supported by setlocale().  The locale is a hybrid locale
111
                that is mostly the \"C\" locale with Japanese EUCJP multibyte
112
                support added."
113
        }
114
    }
115
 
116
# ====================================================================
117
 
118
    cdl_option CYGPKG_LIBC_I18N_NEWLIB_CTYPE {
119
        display       "Newlib's ctype implementation"
120
        default_value 0
121
        requires      { CYGBLD_ISO_CTYPE_HEADER == \
122
                        "" }
123
        description   "
124
            This option enables the implementation of the ctype functions
125
            that comes with newlib. It is table driven and therefore
126
            exhibits different performance characteristics. It also offers
127
            a limited amount of binary compatibility
128
            with newlib so that programs linked against newlib ctype/locale
129
            do not need to be recompiled when linked with eCos."
130
        compile       newlibctype.cxx
131
    }
132
 
133
    cdl_option CYGSEM_LIBC_I18N_PER_THREAD_MB    {
134
        display       "Per-thread multibyte state"
135
        active_if     CYGPKG_KERNEL
136
        requires      CYGVAR_KERNEL_THREADS_DATA
137
        default_value { CYGVAR_KERNEL_THREADS_DATA != 0 }
138
        description   "
139
            This option controls whether the multibyte character
140
            handling functions mblen(), mbtowc(), and wctomb(),
141
            have their state recorded on a per-thread
142
            basis rather than global. If this option is
143
            disabled, some per-thread space can be saved.
144
            Enabling this option will use three slots
145
            of kernel per-thread data. You should ensure you
146
            have enough slots configured for all your
147
            per-thread data."
148
    }
149
 
150
# ====================================================================
151
 
152
    cdl_option CYGNUM_LIBC_I18N_MAX_LOCALE_NAME_SIZE {
153
        display       "Size of locale name strings"
154
        flavor        data
155
        legal_values  { (CYGFUN_LIBC_I18N_LOCALE_C_EUCJP ? 8 : \
156
                        (CYGFUN_LIBC_I18N_LOCALE_C_SJIS ? 7 :  \
157
                          (CYGFUN_LIBC_I18N_LOCALE_C_JIS ? 6 : 2))) to 0x7fffffff }
158
        default_value { (CYGFUN_LIBC_I18N_LOCALE_C_EUCJP ? 8 : \
159
                        (CYGFUN_LIBC_I18N_LOCALE_C_SJIS ? 7 :  \
160
                          (CYGFUN_LIBC_I18N_LOCALE_C_JIS ? 6 : 2)))  }
161
        description   "
162
            This option controls the maximum size of
163
            locale names and is used, among other things
164
            to instantiate a static string used
165
            as a return value from the
166
            setlocale() function. When requesting the
167
            current locale settings with LC_ALL, a string
168
            must be constructed to contain this data, rather
169
            than just returning a constant string. This
170
            string data is stored in the static string.
171
            This depends on the length of locale names,
172
            hence this option. If just the C locale is
173
            present, this option can be set as low as 2."
174
    }
175
 
176
# ====================================================================
177
 
178
    cdl_option CYGIMP_LIBC_I18N_CTYPE_INLINES {
179
        display       "Inline versions of  functions"
180
        default_value 1
181
        requires      { CYGBLD_ISO_CTYPE_HEADER == \
182
                           "" }
183
        description   "
184
            This option chooses whether the simple character
185
            classification and conversion functions (e.g.
186
            isupper(), isalpha(), toupper(), etc.)
187
            from  are available as inline
188
            functions. This may improve performance and as
189
            the functions are small, may even improve code
190
            size."
191
    }
192
 
193
# ====================================================================
194
 
195
    cdl_component CYGPKG_LIBC_I18N_OPTIONS {
196
        display "C library i18n functions build options"
197
        flavor  none
198
        no_define
199
        description   "
200
            Package specific build options including control over
201
            compiler flags used only in building this package,
202
            and details of which tests are built."
203
 
204
 
205
        cdl_option CYGPKG_LIBC_I18N_CFLAGS_ADD {
206
            display "Additional compiler flags"
207
            flavor  data
208
            no_define
209
            default_value { "" }
210
            description   "
211
                This option modifies the set of compiler flags for
212
                building the C library. These flags are used in addition
213
                to the set of global flags."
214
        }
215
 
216
        cdl_option CYGPKG_LIBC_I18N_CFLAGS_REMOVE {
217
            display "Suppressed compiler flags"
218
            flavor  data
219
            no_define
220
            default_value { "" }
221
            description   "
222
                This option modifies the set of compiler flags for
223
                building the C library. These flags are removed from
224
                the set of global flags if present."
225
        }
226
 
227
        cdl_option CYGPKG_LIBC_I18N_TESTS {
228
            display "C library i18n function tests"
229
            flavor  data
230
            no_define
231
            calculated { "tests/ctype tests/setlocale tests/i18nmb" }
232
            description   "
233
                This option specifies the set of tests for the C library
234
                i18n functions."
235
        }
236
    }
237
}
238
 
239
# ====================================================================
240
# EOF i18n.cdl

powered by: WebSVN 2.1.0

© copyright 1999-2025 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.