README
1Copyright (C) 2016 and later: Unicode, Inc. and others. License & terms of use: http://www.unicode.org/copyright.html
2Copyright (c) 2002-2011, International Business Machines Corporation and others. All Rights Reserved.
3
4The genren.pl script is used to generate source/common/unicode/urename.h header file, which is needed for renaming the ICU exported names.
5
6This script is intended to be used on Linux, although it should work on any platform that has Perl and nm command. Makefile may need to be updated, it's not 100% portable.
7
8It also does not currently work well in an out-of-source situation.
9
10The following instructions are for Linux version.
11- urename.h file should be generated after implementation is complete for a release.
12- the version number for a release should be set according to the list in source/common/unicode/uvernum.h
13- Note: If you are running the script in a clean checkout, you must run the runConfigureICU at least once before
14 running the make install-header command below.
15
16Before generating urename.h, the layout engine header files must be installed from the harfbuzz project.
17This is prerequisite for the icu layoutex (Paragraph Layout) project, which is subject to renaming.
18(Using the svn command is the simplest way of getting just the files from one subdirectory of the git project.)
19
20 cd icu4c/source
21 svn export https://github.com/behdad/icu-le-hb/trunk/src layout
22
23(As an alternative to the above handling of layout engine header files, you can do the following:
241. In the Makefile in this directory, temporarily delete $(LEX) from the list of objects for LIBS
25 before running make install-header
262. After running make install-header, restore the deleted $(LEX) in the Makefile
273. Then when comparing the old urename.h to the newly generated one, copy all of the lines beginning
28 "#define pl_" from the old version to the new one.
29 - Peter E)
30
31- Regenerate urename.h
32
33 cd icu4c/source/tools/genren
34 make install-header
35
36- urename.h will be updated in icu/source/common/unicode/urename.h **in your original source directory**
37- Warnings concerning bad namespace (not 'icu') on UCaseMap can be ignored.
38- The defines for "__bss_start", "_edata", and "_end" should be ignored/removed (See ICU-20176).
39- Eyeball the new file for errors
40
41 cd icu4c/source
42 git diff common/unicode/urename.h
43
44- Other make targets here
45
46 clean - cleans out intermediate files
47 urename.h -just builds ./urename.h
48