|
14 | 14 | libname_libicu_common = 'libicu_common'
|
15 | 15 | libname_libicu_stubdata = 'libicu_stubdata'
|
16 | 16 | libname_libicu_i18n = 'libicu_i18n'
|
| 17 | +libname_libicu_io = 'libicu_io' |
17 | 18 |
|
18 | 19 |
|
19 | 20 | def needed(settings):
|
@@ -75,17 +76,27 @@ def create_libicu_i18n(lib_output):
|
75 | 76 | other_includes = [os.path.join(icu_source_path, 'common')]
|
76 | 77 | build_lib(lib_output, lib_src, other_includes, ['-DU_I18N_IMPLEMENTATION=1'])
|
77 | 78 |
|
| 79 | + # creator for libicu_io |
| 80 | + def create_libicu_io(lib_output): |
| 81 | + prepare_build() |
| 82 | + lib_src = os.path.join(icu_source_path, 'io') |
| 83 | + ports.install_headers(os.path.join(lib_src, 'unicode'), target='unicode') |
| 84 | + other_includes = [os.path.join(icu_source_path, 'common'), os.path.join(icu_source_path, 'i18n')] |
| 85 | + build_lib(lib_output, lib_src, other_includes, ['-DU_IO_IMPLEMENTATION=1']) |
| 86 | + |
78 | 87 | return [
|
79 | 88 | shared.cache.get_lib(get_lib_name(libname_libicu_common, settings), create_libicu_common), # this also prepares the build
|
80 | 89 | shared.cache.get_lib(get_lib_name(libname_libicu_stubdata, settings), create_libicu_stubdata),
|
81 |
| - shared.cache.get_lib(get_lib_name(libname_libicu_i18n, settings), create_libicu_i18n) |
| 90 | + shared.cache.get_lib(get_lib_name(libname_libicu_i18n, settings), create_libicu_i18n), |
| 91 | + shared.cache.get_lib(get_lib_name(libname_libicu_io, settings), create_libicu_io) |
82 | 92 | ]
|
83 | 93 |
|
84 | 94 |
|
85 | 95 | def clear(ports, settings, shared):
|
86 | 96 | shared.cache.erase_lib(get_lib_name(libname_libicu_common, settings))
|
87 | 97 | shared.cache.erase_lib(get_lib_name(libname_libicu_stubdata, settings))
|
88 | 98 | shared.cache.erase_lib(get_lib_name(libname_libicu_i18n, settings))
|
| 99 | + shared.cache.erase_lib(get_lib_name(libname_libicu_io, settings)) |
89 | 100 |
|
90 | 101 |
|
91 | 102 | def process_args(ports):
|
|
0 commit comments