Debian Codegraph @

modules/text_server_adv/text_server_adv_builders.py

raw symbols SCIP
1 """Functions used to generate source files during build time"""
2
3 import methods
4
5
6 def make_icu_data(target, source, env):
7 buffer = methods.get_buffer(str(source[0]))
8 with methods.generated_wrapper(str(target[0])) as file:
9 file.write(f"""\
10 /* (C) 2016 and later: Unicode, Inc. and others. */
11 /* License & terms of use: https://www.unicode.org/copyright.html */
12
13 #include <unicode/utypes.h>
14 #include <unicode/udata.h>
15 #include <unicode/uversion.h>
16
17 extern "C" U_EXPORT const size_t U_ICUDATA_SIZE = {len(buffer)};
18 extern "C" U_EXPORT const unsigned char U_ICUDATA_ENTRY_POINT[] = {{
19 {methods.format_buffer(buffer, 1)}
20 }};
21 """)