]>
git.saurik.com Git - apple/icu.git/blob - icuSources/common/unicode/uconfig.h
2 **********************************************************************
3 * Copyright (C) 2002-2008, 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
21 * \brief Switches for excluding parts of ICU library code modules.
23 * Allows to build partial, smaller libraries for special purposes.
24 * By default, all modules are built.
25 * The switches are fairly coarse, controlling large modules.
26 * Basic services cannot be turned off.
28 * Building with any of these options does not guarantee that the
29 * ICU build process will completely work. It is recommended that
30 * the ICU libraries and data be built using the normal build.
31 * At that time you should remove the data used by those services.
32 * After building the ICU data library, you should rebuild the ICU
33 * libraries with these switches customized to your needs.
39 * \def UCONFIG_USE_LOCAL
40 * If this switch is defined, ICU will attempt to load a header file named "uconfig_local.h"
41 * prior to determining default settings for uconfig variables.
46 #if defined(UCONFIG_USE_LOCAL)
47 #include "uconfig_local.h"
51 * \def UCONFIG_ONLY_COLLATION
52 * This switch turns off modules that are not needed for collation.
54 * It does not turn off legacy conversion because that is necessary
55 * for ICU to work on EBCDIC platforms (for the default converter).
56 * If you want "only collation" and do not build for EBCDIC,
57 * then you can define UCONFIG_NO_LEGACY_CONVERSION 1 as well.
61 #ifndef UCONFIG_ONLY_COLLATION
62 # define UCONFIG_ONLY_COLLATION 0
65 #if UCONFIG_ONLY_COLLATION
67 # define UCONFIG_NO_BREAK_ITERATION 1
68 # define UCONFIG_NO_IDNA 1
71 # if UCONFIG_NO_COLLATION
72 # error Contradictory collation switches in uconfig.h.
74 # define UCONFIG_NO_FORMATTING 1
75 # define UCONFIG_NO_TRANSLITERATION 1
76 # define UCONFIG_NO_REGULAR_EXPRESSIONS 1
79 /* common library switches -------------------------------------------------- */
82 * \def UCONFIG_NO_FILE_IO
83 * This switch turns off all file access in the common library
84 * where file access is only used for data loading.
85 * ICU data must then be provided in the form of a data DLL (or with an
86 * equivalent way to link to the data residing in an executable,
87 * as in building a combined library with both the common library's code and
88 * the data), or via udata_setCommonData().
89 * Application data must be provided via udata_setAppData() or by using
90 * "open" functions that take pointers to data, for example ucol_openBinary().
92 * File access is not used at all in the i18n library.
94 * File access cannot be turned off for the icuio library or for the ICU
95 * test suites and ICU tools.
99 #ifndef UCONFIG_NO_FILE_IO
100 # define UCONFIG_NO_FILE_IO 0
104 * \def UCONFIG_NO_CONVERSION
105 * ICU will not completely build with this switch turned on.
106 * This switch turns off all converters.
110 #ifndef UCONFIG_NO_CONVERSION
111 # define UCONFIG_NO_CONVERSION 0
114 #if UCONFIG_NO_CONVERSION
115 # define UCONFIG_NO_LEGACY_CONVERSION 1
119 * \def UCONFIG_NO_LEGACY_CONVERSION
120 * This switch turns off all converters except for
121 * - Unicode charsets (UTF-7/8/16/32, CESU-8, SCSU, BOCU-1)
125 * Turning off legacy conversion is not possible on EBCDIC platforms
126 * because they need ibm-37 or ibm-1047 default converters.
130 #ifndef UCONFIG_NO_LEGACY_CONVERSION
131 # define UCONFIG_NO_LEGACY_CONVERSION 0
135 * \def UCONFIG_NO_NORMALIZATION
136 * This switch turns off normalization.
137 * It implies turning off several other services as well, for example
138 * collation and IDNA.
142 #ifndef UCONFIG_NO_NORMALIZATION
143 # define UCONFIG_NO_NORMALIZATION 0
144 #elif UCONFIG_NO_NORMALIZATION
146 # define UCONFIG_NO_IDNA 1
149 # if UCONFIG_ONLY_COLLATION
150 # error Contradictory collation switches in uconfig.h.
152 # define UCONFIG_NO_COLLATION 1
153 # define UCONFIG_NO_TRANSLITERATION 1
157 * \def UCONFIG_NO_BREAK_ITERATION
158 * This switch turns off break iteration.
162 #ifndef UCONFIG_NO_BREAK_ITERATION
163 # define UCONFIG_NO_BREAK_ITERATION 0
167 * \def UCONFIG_NO_IDNA
168 * This switch turns off IDNA.
172 #ifndef UCONFIG_NO_IDNA
173 # define UCONFIG_NO_IDNA 0
176 /* i18n library switches ---------------------------------------------------- */
179 * \def UCONFIG_NO_COLLATION
180 * This switch turns off collation and collation-based string search.
184 #ifndef UCONFIG_NO_COLLATION
185 # define UCONFIG_NO_COLLATION 0
189 * \def UCONFIG_NO_FORMATTING
190 * This switch turns off formatting and calendar/timezone services.
194 #ifndef UCONFIG_NO_FORMATTING
195 # define UCONFIG_NO_FORMATTING 0
199 * \def UCONFIG_NO_TRANSLITERATION
200 * This switch turns off transliteration.
204 #ifndef UCONFIG_NO_TRANSLITERATION
205 # define UCONFIG_NO_TRANSLITERATION 0
209 * \def UCONFIG_NO_REGULAR_EXPRESSIONS
210 * This switch turns off regular expressions.
214 #ifndef UCONFIG_NO_REGULAR_EXPRESSIONS
215 # define UCONFIG_NO_REGULAR_EXPRESSIONS 0
219 * \def UCONFIG_NO_SERVICE
220 * This switch turns off service registration.
224 #ifndef UCONFIG_NO_SERVICE
225 # define UCONFIG_NO_SERVICE 0