From 7a93a3c3e2bdb283a6d29850057982d88ea58777 Mon Sep 17 00:00:00 2001 From: "Steven R. Loomis" Date: Tue, 2 Feb 2010 21:49:58 +0000 Subject: [PATCH] ICU-7336 restore build steps on C/unix X-SVN-Rev: 27477 --- icu4c/source/Makefile.in | 6 +++- icu4c/source/data/Makefile.in | 15 +++++--- icu4c/source/data/icu4j-readme.txt | 31 +++++++++-------- icu4c/source/test/testdata/Makefile.in | 34 +++++++++++++------ icu4c/source/tools/gentest/gentest.c | 47 ++++++-------------------- 5 files changed, 66 insertions(+), 67 deletions(-) diff --git a/icu4c/source/Makefile.in b/icu4c/source/Makefile.in index f3bc0b874c3..d3c69b2d66e 100644 --- a/icu4c/source/Makefile.in +++ b/icu4c/source/Makefile.in @@ -65,7 +65,7 @@ EXTRA_DATA = install-recursive clean clean-local clean-recursive distclean \ distclean-local distclean-recursive doc dist dist-local dist-recursive \ check check-local check-recursive clean-recursive-with-twist install-icu \ -doc install-doc tests +doc install-doc tests icu4j-data icu4j-data-install ## Clear suffix list .SUFFIXES : @@ -245,3 +245,7 @@ config/%.$(SECTION): $(srcdir)/config/%.$(SECTION).in cd $(top_builddir) \ && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status +icu4j-data-install icu4j-data: all tests + @echo ICU4J_ROOT=$(ICU4J_ROOT) + @$(MAKE) -C test/testdata $@ + @$(MAKE) -C data $@ diff --git a/icu4c/source/data/Makefile.in b/icu4c/source/data/Makefile.in index cb32e42c70a..b2f10ec0ded 100644 --- a/icu4c/source/data/Makefile.in +++ b/icu4c/source/data/Makefile.in @@ -786,22 +786,29 @@ $(OUTDIR)/icu4j/icudata.jar: build-dir packagedata $(OUTTMPDIR)/$(ICUDATA_PLATFO $(INVOKE) $(TOOLBINDIR)/icupkg $(OUTTMPDIR)/$(ICUDATA_PLATFORM_NAME).dat $(OUTDIR)/icu4j/$(ICUDATA_BASENAME_VERSION)b.dat -a $(OUTDIR)/icu4j/add.txt -s $(BUILDDIR) -x '*' -tb -d $(OUTDIR)/icu4j/com/ibm/icu/impl/data/$(ICUDATA_BASENAME_VERSION)b $(JAR) cf $(OUTDIR)/icu4j/icudata.jar -C $(OUTDIR)/icu4j com/ibm/icu/impl/data/$(ICUDATA_BASENAME_VERSION)b +ICU4J_DATA=$(OUTDIR)/icu4j/icudata.jar + ifdef ICU4J_ROOT +ICU4J_DATA_INSTALLED=$(ICU4J_ROOT)/main/shared/data/icudata.jar + $(ICU4J_ROOT)/main/shared/data/icudata.jar: $(OUTDIR)/icu4j/icudata.jar mkdir -p $(ICU4J_ROOT)/main/shared/data cp $(OUTDIR)/icu4j/icudata.jar $(ICU4J_ROOT)/main/shared/data -icudata.jar: build-dir $(ICU4J_ROOT)/main/shared/data/icudata.jar +icu4j-data-install: $(ICU4J_DATA_INSTALLED) else -icudata.jar: build-dir $(OUTDIR)/icu4j/icudata.jar +icu4j-data-install: icu4j-data + @echo data is built into $(OUTDIR)/icu4j + @echo '** Error:' ICU4J_ROOT was not set, could not install + exit 1 endif -build-icu4j: all - $(MAKE) -C ../tools/genrb $@ +icu4j-data: $(ICU4J_DATA) + ################################################################### Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status diff --git a/icu4c/source/data/icu4j-readme.txt b/icu4c/source/data/icu4j-readme.txt index 3df3cee2ddd..22c069a7426 100644 --- a/icu4c/source/data/icu4j-readme.txt +++ b/icu4c/source/data/icu4j-readme.txt @@ -1,5 +1,5 @@ ******************************************************************************** -* Copyright (C) 2008-2009, International Business Machines Corporation * +* Copyright (C) 2008-2010, International Business Machines Corporation * * and others. All Rights Reserved. * * * * 6/26/08 - Created by Brian Rower - heavy copying from ICU4J readme & others * @@ -19,33 +19,36 @@ In the following, ICU4C, see the ICU4C readme at: http://source.icu-project.org/repos/icu/icu/trunk/readme.html#HowToBuild -*Windows* +2. Step 2 depends on whether you are on a Windows or a Unix-type +platform. -2. On the command line, cd to $icu4c_root\source\data. +*Windows* (note: still in progress.) -3. Do - nmake -f makedata.mak ICUMAKE=$icu4c_root\source\data\ CFG=x86\Release JAR="$jdk_bin\jar" ICU4J_ROOT=$icu4j_root icudata.jar testdata.jar +2a. On the command line, cd to $icu4c_root\source\data. + +2b. Do + nmake -f makedata.mak ICUMAKE=$icu4c_root\source\data\ CFG=x86\Release JAR="$jdk_bin\jar" ICU4J_ROOT=$icu4j_root icu4j-data-install + + Continue with step 3, in Java: - (You can omit the ICU4J_ROOT argument to skip the final copying.) *Linux* $icu4c_build is the ICU4C root build directory, which is $icu4c_root/source in an in-source build -2. On the command line, cd to $icu4c_build/data. +2c. On the command line, cd to $icu4c_build -3. Do - make JAR=$jdk_bin/jar ICU4J_ROOT=$icu4j_root icudata.jar - cd ../test/testdata - make JAR=$jdk_bin/jar ICU4J_ROOT=$icu4j_root testdata.jar +2d. Do + make JAR=$jdk_bin/jar ICU4J_ROOT=$icu4j_root icu4j-data-install - (You can omit the ICU4J_ROOT argument to skip the final copying.) - (You can omit the JAR if it's just jar.) + (You can omit the JAR if it's just jar.) + +Continue with step 3, in Java: *Java* -After the ICU4C-side steps above, build the core-data and core-test-data targets of the +3. After the ICU4C-side steps above, build the core-data and core-test-data targets of the ICU4J ant build to unpack the jar files with the following commands: cd $icu4j_root diff --git a/icu4c/source/test/testdata/Makefile.in b/icu4c/source/test/testdata/Makefile.in index 2baea35db9d..bbd8636195e 100644 --- a/icu4c/source/test/testdata/Makefile.in +++ b/icu4c/source/test/testdata/Makefile.in @@ -29,7 +29,7 @@ SUBDIRS = .PHONY : all all-local all-recursive install install-local \ install-recursive clean clean-local clean-recursive distclean \ distclean-local distclean-recursive doc dist dist-local dist-recursive \ -check check-local check-recursive build-dir java-output testdata.jar +check check-local check-recursive build-dir testdata.jar .NOTPARALLEL: build-dir @@ -152,14 +152,6 @@ $(TESTBUILDDIR)/test.icu: $(GENTEST) $(TESTBUILDDIR)/testtable32.txt: $(GENTEST) $(INVOKE) $(GENTEST) -r -d $(TESTBUILDDIR) -# java output -java-output: $(JAVA_OUT_DIR)/DebugUtilitiesData.java - -$(JAVA_OUT_DIR)/DebugUtilitiesData.java: $(GENTEST) - $(MKINSTALLDIRS) $(JAVA_OUT_DIR) - $(INVOKE) $(GENTEST) -j -d $(JAVA_OUT_DIR) - - $(TESTBUILDDIR)/testtable32.res: $(TESTBUILDDIR)/testtable32.txt $(TOOLBINDIR)/genrb$(EXEEXT) $(INVOKE) $(TOOLBINDIR)/genrb $(GENRBOPTS) -s $(TESTBUILDDIR) $(ICU_DATA_OPT) -d $(TESTBUILDDIR) $(