X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/2ca993e82fb37b597a3c73ecd1586a139a6579c5..0f5d89e82340278ed3d7d50029f37cab2c41a57e:/icuSources/data/makedata.mak diff --git a/icuSources/data/makedata.mak b/icuSources/data/makedata.mak index 46486b2d..d7c2466b 100644 --- a/icuSources/data/makedata.mak +++ b/icuSources/data/makedata.mak @@ -1,3 +1,5 @@ +# Copyright (C) 2016 and later: Unicode, Inc. and others. +# License & terms of use: http://www.unicode.org/copyright.html #********************************************************************** #* Copyright (C) 1999-2016, International Business Machines Corporation #* and others. All Rights Reserved. @@ -10,10 +12,14 @@ ############################################################################## # Keep the following in sync with the version - see common/unicode/uvernum.h -U_ICUDATA_NAME=icudt57 +U_ICUDATA_NAME=icudt62 ############################################################################## +!IF "$(UWP)" == "UWP" +# Optionally change the name of the data file for the UWP version. +U_ICUDATA_NAME=icudt62 +!ENDIF U_ICUDATA_ENDIAN_SUFFIX=l -UNICODE_VERSION=8.0 +UNICODE_VERSION=11.0 ICU_LIB_TARGET=$(DLL_OUTPUT)\$(U_ICUDATA_NAME).dll # ICUMAKE @@ -32,7 +38,7 @@ ICU_LIB_TARGET=$(DLL_OUTPUT)\$(U_ICUDATA_NAME).dll ICUOUT=$(ICUMAKE)\out -# the prefix "icudt21_" for use in filenames +# the prefix "icudt62_" for use in filenames ICUPKG=$(U_ICUDATA_NAME)$(U_ICUDATA_ENDIAN_SUFFIX) # need to nuke \\ for .NET... @@ -117,10 +123,14 @@ ICUDATA=$(ICUP)\source\data # This is the same place that all of the other ICU DLLs go (the code-containing DLLs) # The lib file for the data DLL goes in $(DLL_OUTPUT)/../lib/ # -!IF "$(CFG)" == "x64\Release" || "$(CFG)" == "x64\Debug" -DLL_OUTPUT=$(ICUP)\bin64 +!IF "$(CFG)" == "ARM\Release" || "$(CFG)" == "ARM\Debug" +DLL_OUTPUT=$(ICUP)\binARM$(UWP) +!ELSE IF "$(CFG)" == "x64\Release" || "$(CFG)" == "x64\Debug" +DLL_OUTPUT=$(ICUP)\bin64$(UWP) +!ELSE IF "$(UWP)" == "UWP" +DLL_OUTPUT=$(ICUP)\bin32$(UWP) !ELSE -DLL_OUTPUT=$(ICUP)\bin +DLL_OUTPUT=$(ICUP)\bin$(UWP) !ENDIF # @@ -145,14 +155,28 @@ TESTDATABLD=$(ICUP)\source\test\testdata\out\build # Directory under which all of the ICU data building tools live. # ICUTOOLS=$(ICUP)\source\tools +!MESSAGE ICU tools path is $(ICUTOOLS) + +# +# TOOLS CFG PATH +# ARM needs to use one of the other tools, so make sure to get an usable cfg path +# Since tools, particularly pkggen, have architecture built-in, we made x64 on +# Windows be machine-independent and use those tools. +# +CFGTOOLS=$(CFG) +!IF "$(CFG)" == "ARM\Release" || "$(CFG)" == "ARM\Debug" +CFGTOOLS=x64\Release +!ENDIF +!MESSAGE ICU tools CFG subpath is $(CFGTOOLS) # The current ICU tools need to be in the path first. -!IF "$(CFG)" == "x64\Release" || "$(CFG)" == "x64\Debug" -PATH = $(ICUP)\bin64;$(PATH) -ICUPBIN=$(ICUP)\bin64 -!ELSE +# x86 uses x86, x64 and arm use x64 +!IF "$(CFG)" == "x86\Release" || "$(CFG)" == "x86\Debug" PATH = $(ICUP)\bin;$(PATH) ICUPBIN=$(ICUP)\bin +!ELSE +PATH = $(ICUP)\bin64;$(PATH) +ICUPBIN=$(ICUP)\bin64 !ENDIF @@ -217,7 +241,9 @@ UCM_SOURCE_SPECIAL=$(UCM_SOURCE_EBCDIC_IGNORE_SISO) !IF EXISTS("$(ICUSRCDATA)\$(ICUUCM)\ucmlocal.mk") !INCLUDE "$(ICUSRCDATA)\$(ICUUCM)\ucmlocal.mk" +!IFDEF UCM_SOURCE_LOCAL UCM_SOURCE=$(UCM_SOURCE) $(UCM_SOURCE_LOCAL) +!ENDIF !IFDEF UCM_SOURCE_EBCDIC_IGNORE_SISO_LOCAL UCM_SOURCE_SPECIAL=$(UCM_SOURCE_SPECIAL) $(UCM_SOURCE_EBCDIC_IGNORE_SISO_LOCAL) BUILD_SPECIAL_CNV_FILES=YES @@ -235,9 +261,15 @@ CNV_FILES_SPECIAL=$(UCM_SOURCE_SPECIAL:.ucm=.cnv) !INCLUDE "$(ICUSRCDATA)\$(ICUBRK)\brkfiles.mk" !IF EXISTS("$(ICUSRCDATA)\$(ICUBRK)\brklocal.mk") !INCLUDE "$(ICUSRCDATA)\$(ICUBRK)\brklocal.mk" +!IFDEF BRK_SOURCE_LOCAL BRK_SOURCE=$(BRK_SOURCE) $(BRK_SOURCE_LOCAL) +!ENDIF +!IFDEF BRK_DICT_SOURCE_LOCAL BRK_DICT_SOURCE=$(BRK_DICT_SOURCE) $(BRK_DICT_SOURCE_LOCAL) +!ENDIF +!IFDEF BRK_RES_SOURCE_LOCAL BRK_RES_SOURCE=$(BRK_RES_SOURCE) $(BRK_RES_SOURCE_LOCAL) +!ENDIF !ELSE !MESSAGE Information: cannot find "brklocal.mk". Not building user-additional break iterator files. !ENDIF @@ -270,7 +302,9 @@ ALL_RES = $(ALL_RES) $(ICUBRK)\res_index.res !INCLUDE "$(ICUSRCDATA)\$(ICULOC)\resfiles.mk" !IF EXISTS("$(ICUSRCDATA)\$(ICULOC)\reslocal.mk") !INCLUDE "$(ICUSRCDATA)\$(ICULOC)\reslocal.mk" +!IFDEF GENRB_SOURCE_LOCAL GENRB_SOURCE=$(GENRB_SOURCE) $(GENRB_SOURCE_LOCAL) +!ENDIF !ELSE !MESSAGE Information: cannot find "reslocal.mk". Not building user-additional resource bundle files. !ENDIF @@ -289,7 +323,9 @@ ALL_RES = $(ALL_RES) res_index.res !INCLUDE "$(ICUSRCDATA)\curr\resfiles.mk" !IF EXISTS("$(ICUSRCDATA)\curr\reslocal.mk") !INCLUDE "$(ICUSRCDATA)\curr\reslocal.mk" +!IFDEF CURR_SOURCE_LOCAL CURR_SOURCE=$(CURR_SOURCE) $(CURR_SOURCE_LOCAL) +!ENDIF !ELSE !MESSAGE Information: cannot find "curr\reslocal.mk". Not building user-additional resource bundle files. !ENDIF @@ -310,7 +346,9 @@ ALL_RES = $(ALL_RES) curr\res_index.res !INCLUDE "$(ICUSRCDATA)\lang\resfiles.mk" !IF EXISTS("$(ICUSRCDATA)\lang\reslocal.mk") !INCLUDE "$(ICUSRCDATA)\lang\reslocal.mk" +!IFDEF LANG_SOURCE_LOCAL LANG_SOURCE=$(LANG_SOURCE) $(LANG_SOURCE_LOCAL) +!ENDIF !ELSE !MESSAGE Information: cannot find "lang\reslocal.mk". Not building user-additional resource bundle files. !ENDIF @@ -331,7 +369,9 @@ ALL_RES = $(ALL_RES) lang\res_index.res !INCLUDE "$(ICUSRCDATA)\region\resfiles.mk" !IF EXISTS("$(ICUSRCDATA)\region\reslocal.mk") !INCLUDE "$(ICUSRCDATA)\region\reslocal.mk" +!IFDEF REGION_SOURCE_LOCAL REGION_SOURCE=$(REGION_SOURCE) $(REGION_SOURCE_LOCAL) +!ENDIF !ELSE !MESSAGE Information: cannot find "region\reslocal.mk". Not building user-additional resource bundle files. !ENDIF @@ -352,7 +392,9 @@ ALL_RES = $(ALL_RES) region\res_index.res !INCLUDE "$(ICUSRCDATA)\zone\resfiles.mk" !IF EXISTS("$(ICUSRCDATA)\zone\reslocal.mk") !INCLUDE "$(ICUSRCDATA)\zone\reslocal.mk" +!IFDEF ZONE_SOURCE_LOCAL ZONE_SOURCE=$(ZONE_SOURCE) $(ZONE_SOURCE_LOCAL) +!ENDIF !ELSE !MESSAGE Information: cannot find "zone\reslocal.mk". Not building user-additional resource bundle files. !ENDIF @@ -374,7 +416,9 @@ ALL_RES = $(ALL_RES) zone\res_index.res !INCLUDE "$(ICUSRCDATA)\unit\resfiles.mk" !IF EXISTS("$(ICUSRCDATA)\unit\reslocal.mk") !INCLUDE "$(ICUSRCDATA)\unit\reslocal.mk" +!IFDEF UNIT_SOURCE_LOCAL UNIT_SOURCE=$(UNIT_SOURCE) $(UNIT_SOURCE_LOCAL) +!ENDIF !ELSE !MESSAGE Information: cannot find "unit\reslocal.mk". Not building user-additional resource bundle files. !ENDIF @@ -395,7 +439,9 @@ ALL_RES = $(ALL_RES) unit\res_index.res !INCLUDE "$(ICUSRCDATA)\$(ICUCOL)\colfiles.mk" !IF EXISTS("$(ICUSRCDATA)\$(ICUCOL)\collocal.mk") !INCLUDE "$(ICUSRCDATA)\$(ICUCOL)\collocal.mk" +!IFDEF COLLATION_SOURCE_LOCAL COLLATION_SOURCE=$(COLLATION_SOURCE) $(COLLATION_SOURCE_LOCAL) +!ENDIF !ELSE !MESSAGE Information: cannot find "collocal.mk". Not building user-additional resource bundle files. !ENDIF @@ -416,7 +462,9 @@ ALL_RES = $(ALL_RES) $(ICUCOL)\res_index.res !INCLUDE "$(ICUSRCDATA)\$(ICURBNF)\rbnffiles.mk" !IF EXISTS("$(ICUSRCDATA)\$(ICURBNF)\rbnflocal.mk") !INCLUDE "$(ICUSRCDATA)\$(ICURBNF)\rbnflocal.mk" +!IFDEF RBNF_SOURCE_LOCAL RBNF_SOURCE=$(RBNF_SOURCE) $(RBNF_SOURCE_LOCAL) +!ENDIF !ELSE !MESSAGE Information: cannot find "rbnflocal.mk". Not building user-additional resource bundle files. !ENDIF @@ -437,7 +485,9 @@ ALL_RES = $(ALL_RES) $(ICURBNF)\res_index.res !INCLUDE "$(ICUSRCDATA)\$(ICUTRNS)\trnsfiles.mk" !IF EXISTS("$(ICUSRCDATA)\$(ICUTRNS)\trnslocal.mk") !INCLUDE "$(ICUSRCDATA)\$(ICUTRNS)\trnslocal.mk" +!IFDEF TRANSLIT_SOURCE_LOCAL TRANSLIT_SOURCE=$(TRANSLIT_SOURCE) $(TRANSLIT_SOURCE_LOCAL) +!ENDIF !ELSE !MESSAGE Information: cannot find "trnslocal.mk". Not building user-additional transliterator files. !ENDIF @@ -458,7 +508,9 @@ TRANSLIT_RES_FILES = $(TRANSLIT_RES_FILES:translit\ =translit\) !INCLUDE "$(ICUSRCDATA)\$(ICUMISC2)\miscfiles.mk" !IF EXISTS("$(ICUSRCDATA)\$(ICUMISC2)\misclocal.mk") !INCLUDE "$(ICUSRCDATA)\$(ICUMISC2)\misclocal.mk" +!IFDEF MISC_SOURCE_LOCAL MISC_SOURCE=$(MISC_SOURCE) $(MISC_SOURCE_LOCAL) +!ENDIF !ELSE !MESSAGE Information: cannot find "misclocal.mk". Not building user-additional miscellaenous files. !ENDIF @@ -477,7 +529,9 @@ ALL_RES = $(ALL_RES) $(RB_FILES) $(MISC_FILES) !INCLUDE "$(ICUSRCDATA)\$(ICUSPREP)\sprepfiles.mk" !IF EXISTS("$(ICUSRCDATA)\$(ICUSPREP)\spreplocal.mk") !INCLUDE "$(ICUSRCDATA)\$(ICUSPREP)\spreplocal.mk" +!IFDEF SPREP_SOURCE_LOCAL SPREP_SOURCE=$(SPREP_SOURCE) $(SPREP_SOURCE_LOCAL) +!ENDIF !ELSE !MESSAGE Information: cannot find "spreplocal.mk". Not building user-additional stringprep files. !ENDIF @@ -490,6 +544,12 @@ SPREP_FILES = $(SPREP_SOURCE:.txt=.spp) # Common defines for both ways of building ICU's data library. COMMON_ICUDATA_DEPENDENCIES="$(ICUPBIN)\pkgdata.exe" "$(ICUTMP)\icudata.res" "$(ICUP)\source\stubdata\stubdatabuilt.txt" COMMON_ICUDATA_ARGUMENTS=-f -e $(U_ICUDATA_NAME) -v $(ICU_PACKAGE_MODE) -c -p $(ICUPKG) -T "$(ICUTMP)" -L $(U_ICUDATA_NAME) -d "$(ICUBLD_PKG)" -s . +!IF "$(UWP)" == "UWP" +COMMON_ICUDATA_ARGUMENTS=$(COMMON_ICUDATA_ARGUMENTS) -u +!IF "$(CFG)" == "ARM\Release" || "$(CFG)" == "ARM\Debug" +COMMON_ICUDATA_ARGUMENTS=$(COMMON_ICUDATA_ARGUMENTS) -a +!ENDIF +!ENDIF ############################################################################# # @@ -503,6 +563,11 @@ COMMON_ICUDATA_ARGUMENTS=-f -e $(U_ICUDATA_NAME) -v $(ICU_PACKAGE_MODE) -c -p $( ALL : GODATA "$(ICU_LIB_TARGET)" "$(TESTDATAOUT)\testdata.dat" @echo All targets are up to date +!IF "$(UWP)" == "UWP" + @if not exist "$(ICUMAKE)\..\..\commondata\" mkdir "$(ICUMAKE)\..\..\commondata\" + copy "$(ICUOUT)\$(U_ICUDATA_NAME)$(U_ICUDATA_ENDIAN_SUFFIX).dat" "$(ICUMAKE)\..\..\commondata\" +!ENDIF + # The core Unicode properties files (uprops.icu, ucase.icu, ubidi.icu) # are hardcoded in the common DLL and therefore not included in the data package any more. # They are not built by default but need to be built for ICU4J data and for getting the .c source files @@ -554,9 +619,9 @@ DEBUGUTILITIESDATA_DIR=main\tests\core\src\com\ibm\icu\dev\test\util DEBUGUTILITIESDATA_SRC=DebugUtilitiesData.java # Build DebugUtilitiesData.java -"$(ICUOUT)\icu4j\src\$(DEBUGUTILITIESDATA_DIR)\$(DEBUGUTILITIESDATA_SRC)" : {"$(ICUTOOLS)\gentest\$(CFG)"}gentest.exe +"$(ICUOUT)\icu4j\src\$(DEBUGUTILITIESDATA_DIR)\$(DEBUGUTILITIESDATA_SRC)" : {"$(ICUTOOLS)\gentest\$(CFGTOOLS)"}gentest.exe if not exist "$(ICUOUT)\icu4j\src\$(DEBUGUTILITIESDATA_DIR)" mkdir "$(ICUOUT)\icu4j\src\$(DEBUGUTILITIESDATA_DIR)" - "$(ICUTOOLS)\gentest\$(CFG)\gentest" -j -d"$(ICUOUT)\icu4j\src\$(DEBUGUTILITIESDATA_DIR)" + "$(ICUTOOLS)\gentest\$(CFGTOOLS)\gentest" -j -d"$(ICUOUT)\icu4j\src\$(DEBUGUTILITIESDATA_DIR)" ICU4J_DATA="$(ICUOUT)\icu4j\icudata.jar" "$(ICUOUT)\icu4j\testdata.jar" "$(ICUOUT)\icu4j\src\$(DEBUGUTILITIESDATA_DIR)\$(DEBUGUTILITIESDATA_SRC)" @@ -600,10 +665,10 @@ icu4j-data-install : # # testdata - nmake will invoke pkgdata, which will create testdata.dat # -"$(TESTDATAOUT)\testdata.dat": "$(TESTDATA)\*" "$(ICUBLD_PKG)\$(ICUCOL)\ucadata.icu" $(TRANSLIT_RES_FILES) $(MISC_FILES) $(RB_FILES) {"$(ICUTOOLS)\genrb\$(CFG)"}genrb.exe +"$(TESTDATAOUT)\testdata.dat": "$(TESTDATA)\*" "$(ICUBLD_PKG)\$(ICUCOL)\ucadata.icu" $(TRANSLIT_RES_FILES) $(MISC_FILES) $(RB_FILES) {"$(ICUTOOLS)\genrb\$(CFGTOOLS)"}genrb.exe @cd "$(TESTDATA)" @echo building testdata... - nmake /nologo /f "$(TESTDATA)\testdata.mak" TESTDATA=. ICUTOOLS="$(ICUTOOLS)" ICUPBIN="$(ICUPBIN)" ICUP="$(ICUP)" CFG=$(CFG) TESTDATAOUT="$(TESTDATAOUT)" TESTDATABLD="$(TESTDATABLD)" + nmake /nologo /f "$(TESTDATA)\testdata.mak" TESTDATA=. ICUTOOLS="$(ICUTOOLS)" ICUPBIN="$(ICUPBIN)" ICUP="$(ICUP)" CFG=$(CFGTOOLS) TESTDATAOUT="$(TESTDATAOUT)" TESTDATABLD="$(TESTDATABLD)" #invoke pkgdata for ICU common data # pkgdata will drop all output files (.dat, .dll, .lib) into the target (ICUBLD_PKG) directory. @@ -667,6 +732,7 @@ $(SPREP_FILES:.spp=.spp ) <