Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(22)

Unified Diff: source/tools/gencolusb/Makefile

Issue 1621843002: ICU 56 update step 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/icu.git@561
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « source/tools/gencnval/gencnval.vcxproj.filters ('k') | source/tools/gencolusb/README.md » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: source/tools/gencolusb/Makefile
diff --git a/source/tools/gencolusb/Makefile b/source/tools/gencolusb/Makefile
new file mode 100644
index 0000000000000000000000000000000000000000..9fc79563dda649d4334192f49160e63dd70def3b
--- /dev/null
+++ b/source/tools/gencolusb/Makefile
@@ -0,0 +1,43 @@
+## Makefile for rebuilding 'unsafe backward' data
+## Copyright (c) 2015, International Business Machines Corporation and
+## others. All Rights Reserved.
+
+##
+## CONFIGURATION:
+## 1. create Makefile.local containing overrides if necessary:
+## BUILD_ROOT=/home/user/icu-build (location of 'config.status' etc.)
+## PATH_VAR=DYLD_LIBRARY_PATH (if on OSX etc)
+##
+## UPDATING
+## 1. make 'reset-icu' will reset ICU to 'bootstrap' state, zeroing out source/i18n/collunsafe.h
+## 2. make 'gen-file' will generate and test source/i18n/collunsafe.h
+
+subdir=tools/gencolusb
+srcdir=$(shell pwd)
+SOURCE_ROOT=$(shell cd ../.. ; pwd)
+BUILD_ROOT=$(SOURCE_ROOT)
+BUILD_HERE=$(BUILD_ROOT)/$(subdir)
+TOOL=extract_unsafe_backwards
+TEST=verify_uset
+PATH_VAR=LD_LIBRARY_PATH
+
+-include Makefile.local
+
+GEN_FILE=$(SOURCE_ROOT)/i18n/collunsafe.h
+BUILD_OPTS=-I$(SOURCE_ROOT)/common -I$(SOURCE_ROOT)/i18n -L$(BUILD_ROOT)/lib -licuuc -licui18n -licudata
+RUN_OPTS=env $(PATH_VAR)=$(BUILD_ROOT)/lib
+
+reset-icu:
+ >$(GEN_FILE)
+ $(MAKE) -C $(BUILD_ROOT)/i18n
+
+gen-file: reset-icu
+ mkdir -p $(BUILD_HERE)
+ $(CXX) -o $(BUILD_HERE)/$(TOOL) $(srcdir)/$(TOOL).cpp $(BUILD_OPTS)
+ $(RUN_OPTS) $(BUILD_HERE)/$(TOOL) > $(GEN_FILE) || exit 1
+ $(CXX) -o $(BUILD_HERE)/$(TEST) $(srcdir)/$(TEST).cpp $(BUILD_OPTS)
+ $(RUN_OPTS) $(BUILD_HERE)/$(TEST) || exit 1
+ $(MAKE) -C $(BUILD_ROOT)/i18n
+ $(RUN_OPTS) $(BUILD_HERE)/$(TEST) || exit 1
+
+.PHONY: reset-icu gen-file
« no previous file with comments | « source/tools/gencnval/gencnval.vcxproj.filters ('k') | source/tools/gencolusb/README.md » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698