2009-06-16 05:56:50 +00:00
|
|
|
********************************************************************************
|
2010-02-02 21:49:58 +00:00
|
|
|
* Copyright (C) 2008-2010, International Business Machines Corporation *
|
2009-07-17 22:57:26 +00:00
|
|
|
* and others. All Rights Reserved. *
|
|
|
|
* *
|
2009-06-16 05:56:50 +00:00
|
|
|
* 6/26/08 - Created by Brian Rower - heavy copying from ICU4J readme & others *
|
2009-07-17 22:57:26 +00:00
|
|
|
* *
|
2009-06-16 05:56:50 +00:00
|
|
|
********************************************************************************
|
|
|
|
|
2009-07-17 22:57:26 +00:00
|
|
|
Procedures for building ICU4J data from ICU4C data:
|
|
|
|
|
|
|
|
*Setup*
|
2009-06-16 05:56:50 +00:00
|
|
|
|
2009-07-17 22:57:26 +00:00
|
|
|
In the following,
|
|
|
|
$icu4c_root is the ICU4C root directory
|
|
|
|
$icu4j_root is the ICU4J root directory
|
|
|
|
$jdk_bin is the JDK bin directory (for the jar tool)
|
2009-06-16 05:56:50 +00:00
|
|
|
|
|
|
|
1. Download and build ICU4C. For more instructions on downloading and building
|
2009-07-17 22:57:26 +00:00
|
|
|
ICU4C, see the ICU4C readme at:
|
|
|
|
http://source.icu-project.org/repos/icu/icu/trunk/readme.html#HowToBuild
|
2010-02-05 02:02:43 +00:00
|
|
|
(Windows: build as x86, Release otherwise you will have to set 'CFG' differently below.)
|
|
|
|
|
2010-02-05 19:04:13 +00:00
|
|
|
*NOTE* You should do a full rebuild after any data changes.
|
|
|
|
|
2009-07-17 22:57:26 +00:00
|
|
|
|
2010-02-02 21:49:58 +00:00
|
|
|
2. Step 2 depends on whether you are on a Windows or a Unix-type
|
|
|
|
platform.
|
2009-07-17 22:57:26 +00:00
|
|
|
|
2010-02-05 02:02:43 +00:00
|
|
|
*Windows*
|
2009-07-17 22:57:26 +00:00
|
|
|
|
2010-02-02 21:49:58 +00:00
|
|
|
2a. On the command line, cd to $icu4c_root\source\data.
|
|
|
|
|
2010-02-05 02:02:43 +00:00
|
|
|
2b. On the command line,
|
2010-02-02 21:49:58 +00:00
|
|
|
nmake -f makedata.mak ICUMAKE=$icu4c_root\source\data\ CFG=x86\Release JAR="$jdk_bin\jar" ICU4J_ROOT=$icu4j_root icu4j-data-install
|
|
|
|
|
2010-02-05 02:02:43 +00:00
|
|
|
Continue with step 3 below, in Java:
|
2009-07-17 22:57:26 +00:00
|
|
|
|
|
|
|
|
|
|
|
*Linux*
|
|
|
|
|
|
|
|
$icu4c_build is the ICU4C root build directory,
|
|
|
|
which is $icu4c_root/source in an in-source build
|
|
|
|
|
2010-02-02 21:49:58 +00:00
|
|
|
2c. On the command line, cd to $icu4c_build
|
|
|
|
|
|
|
|
2d. Do
|
|
|
|
make JAR=$jdk_bin/jar ICU4J_ROOT=$icu4j_root icu4j-data-install
|
2009-07-17 22:57:26 +00:00
|
|
|
|
2010-02-02 21:49:58 +00:00
|
|
|
(You can omit the JAR if it's just jar.)
|
2009-07-17 22:57:26 +00:00
|
|
|
|
2010-02-05 02:02:43 +00:00
|
|
|
Continue with step 3, in Java:
|
2009-07-17 22:57:26 +00:00
|
|
|
|
|
|
|
*Java*
|
|
|
|
|
2010-02-02 21:49:58 +00:00
|
|
|
3. After the ICU4C-side steps above, build the core-data and core-test-data targets of the
|
2009-07-17 22:57:26 +00:00
|
|
|
ICU4J ant build to unpack the jar files with the following commands:
|
|
|
|
|
|
|
|
cd $icu4j_root
|
|
|
|
ant core-data core-test-data
|