]>
git.saurik.com Git - apple/icu.git/blob - icuSources/common/unicode/uconfig.h
2 **********************************************************************
3 * Copyright (C) 2002-2006, International Business Machines
4 * Corporation and others. All Rights Reserved.
5 **********************************************************************
8 * tab size: 8 (not used)
11 * created on: 2002sep19
12 * created by: Markus W. Scherer
20 * \brief Switches for excluding parts of ICU library code modules.
22 * Allows to build partial, smaller libraries for special purposes.
23 * By default, all modules are built.
24 * The switches are fairly coarse, controlling large modules.
25 * Basic services cannot be turned off.
27 * Building with any of these options does not guarantee that the
28 * ICU build process will completely work. It is recommended that
29 * the ICU libraries and data be built using the normal build.
30 * At that time you should remove the data used by those services.
31 * After building the ICU data library, you should rebuild the ICU
32 * libraries with these switches customized to your needs.
38 * \def UCONFIG_ONLY_COLLATION
39 * This switch turns off modules that are not needed for collation.
41 * It does not turn off legacy conversion because that is necessary
42 * for ICU to work on EBCDIC platforms (for the default converter).
43 * If you want "only collation" and do not build for EBCDIC,
44 * then you can define UCONFIG_NO_LEGACY_CONVERSION 1 as well.
48 #ifndef UCONFIG_ONLY_COLLATION
49 # define UCONFIG_ONLY_COLLATION 0
52 #if UCONFIG_ONLY_COLLATION
54 # define UCONFIG_NO_BREAK_ITERATION 1
55 # define UCONFIG_NO_IDNA 1
58 # if UCONFIG_NO_COLLATION
59 # error Contradictory collation switches in uconfig.h.
61 # define UCONFIG_NO_FORMATTING 1
62 # define UCONFIG_NO_TRANSLITERATION 1
63 # define UCONFIG_NO_REGULAR_EXPRESSIONS 1
66 /* common library switches -------------------------------------------------- */
69 * \def UCONFIG_NO_FILE_IO
70 * This switch turns off all file access in the common library
71 * where file access is only used for data loading.
72 * ICU data must then be provided in the form of a data DLL (or with an
73 * equivalent way to link to the data residing in an executable,
74 * as in building a combined library with both the common library's code and
75 * the data), or via udata_setCommonData().
76 * Application data must be provided via udata_setAppData() or by using
77 * "open" functions that take pointers to data, for example ucol_openBinary().
79 * File access is not used at all in the i18n library.
81 * File access cannot be turned off for the icuio library or for the ICU
82 * test suites and ICU tools.
86 #ifndef UCONFIG_NO_FILE_IO
87 # define UCONFIG_NO_FILE_IO 0
91 * \def UCONFIG_NO_CONVERSION
92 * ICU will not completely build with this switch turned on.
93 * This switch turns off all converters.
97 #ifndef UCONFIG_NO_CONVERSION
98 # define UCONFIG_NO_CONVERSION 0
101 #if UCONFIG_NO_CONVERSION
102 # define UCONFIG_NO_LEGACY_CONVERSION 1
106 * \def UCONFIG_NO_LEGACY_CONVERSION
107 * This switch turns off all converters except for
108 * - Unicode charsets (UTF-7/8/16/32, CESU-8, SCSU, BOCU-1)
112 * Turning off legacy conversion is not possible on EBCDIC platforms
113 * because they need ibm-37 or ibm-1047 default converters.
117 #ifndef UCONFIG_NO_LEGACY_CONVERSION
118 # define UCONFIG_NO_LEGACY_CONVERSION 0
122 * \def UCONFIG_NO_NORMALIZATION
123 * This switch turns off normalization.
124 * It implies turning off several other services as well, for example
125 * collation and IDNA.
129 #ifndef UCONFIG_NO_NORMALIZATION
130 # define UCONFIG_NO_NORMALIZATION 0
131 #elif UCONFIG_NO_NORMALIZATION
133 # define UCONFIG_NO_IDNA 1
136 # if UCONFIG_ONLY_COLLATION
137 # error Contradictory collation switches in uconfig.h.
139 # define UCONFIG_NO_COLLATION 1
140 # define UCONFIG_NO_TRANSLITERATION 1
144 * \def UCONFIG_NO_BREAK_ITERATION
145 * This switch turns off break iteration.
149 #ifndef UCONFIG_NO_BREAK_ITERATION
150 # define UCONFIG_NO_BREAK_ITERATION 0
154 * \def UCONFIG_NO_IDNA
155 * This switch turns off IDNA.
159 #ifndef UCONFIG_NO_IDNA
160 # define UCONFIG_NO_IDNA 0
163 /* i18n library switches ---------------------------------------------------- */
166 * \def UCONFIG_NO_COLLATION
167 * This switch turns off collation and collation-based string search.
171 #ifndef UCONFIG_NO_COLLATION
172 # define UCONFIG_NO_COLLATION 0
176 * \def UCONFIG_NO_FORMATTING
177 * This switch turns off formatting and calendar/timezone services.
181 #ifndef UCONFIG_NO_FORMATTING
182 # define UCONFIG_NO_FORMATTING 0
186 * \def UCONFIG_NO_TRANSLITERATION
187 * This switch turns off transliteration.
191 #ifndef UCONFIG_NO_TRANSLITERATION
192 # define UCONFIG_NO_TRANSLITERATION 0
196 * \def UCONFIG_NO_REGULAR_EXPRESSIONS
197 * This switch turns off regular expressions.
201 #ifndef UCONFIG_NO_REGULAR_EXPRESSIONS
202 # define UCONFIG_NO_REGULAR_EXPRESSIONS 0
206 * \def UCONFIG_NO_SERVICE
207 * This switch turns off service registration.
211 #ifndef UCONFIG_NO_SERVICE
212 # define UCONFIG_NO_SERVICE 0