1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/intl/icu/source/extra/uconv/makedata.mak Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,106 @@ 1.4 +#********************************************************************** 1.5 +#* Copyright (C) 1999-2008, International Business Machines Corporation 1.6 +#* and others. All Rights Reserved. 1.7 +#********************************************************************** 1.8 +# nmake file for creating data files on win32 1.9 +# invoke with 1.10 +# nmake /f makedata.mak icup=<path_to_icu_instalation> [Debug|Release] 1.11 +# 1.12 +# 12/10/1999 weiv Created 1.13 + 1.14 +#If no config, we default to debug 1.15 +!IF "$(CFG)" == "" 1.16 +CFG=Debug 1.17 +!MESSAGE No configuration specified. Defaulting to common - Win32 Debug. 1.18 +!ENDIF 1.19 + 1.20 +#Here we test if a valid configuration is given 1.21 +!IF "$(CFG)" != "Release" && "$(CFG)" != "release" && "$(CFG)" != "Debug" && "$(CFG)" != "debug" && "$(CFG)" != "x86\Release" && "$(CFG)" != "x86\Debug" && "$(CFG)" != "x64\Release" && "$(CFG)" != "x64\Debug" 1.22 +!MESSAGE Invalid configuration "$(CFG)" specified. 1.23 +!MESSAGE You can specify a configuration when running NMAKE 1.24 +!MESSAGE by defining the macro CFG on the command line. For example: 1.25 +!MESSAGE 1.26 +!MESSAGE NMAKE /f "makedata.mak" CFG="Debug" 1.27 +!MESSAGE 1.28 +!MESSAGE Possible choices for configuration are: 1.29 +!MESSAGE 1.30 +!MESSAGE "Release" 1.31 +!MESSAGE "Debug" 1.32 +!MESSAGE 1.33 +!ERROR An invalid configuration is specified. 1.34 +!ENDIF 1.35 + 1.36 +#Let's see if user has given us a path to ICU 1.37 +#This could be found according to the path to makefile, but for now it is this way 1.38 +!IF "$(ICUP)"=="" 1.39 +!ERROR Can't find path! 1.40 +!ENDIF 1.41 +!MESSAGE ICU path is $(ICUP) 1.42 +RESNAME=uconvmsg 1.43 +RESDIR=resources 1.44 +RESFILES=resfiles.mk 1.45 +ICUDATA=$(ICUP)\data 1.46 + 1.47 +DLL_OUTPUT=.\$(CFG) 1.48 +# set the following to 'static' or 'dll' depending 1.49 +PKGMODE=static 1.50 + 1.51 +ICD=$(ICUDATA)^\ 1.52 +DATA_PATH=$(ICUP)\data^\ 1.53 + 1.54 +!IF "$(CFG)" == "x64\Release" || "$(CFG)" == "x64\Debug" 1.55 +ICUTOOLS=$(ICUP)\bin64 1.56 +PATH = $(ICUP)\bin64;$(PATH) 1.57 +!ELSE 1.58 +ICUTOOLS=$(ICUP)\bin 1.59 +PATH = $(ICUP)\bin;$(PATH) 1.60 +!ENDIF 1.61 + 1.62 +# Suffixes for data files 1.63 +.SUFFIXES : .ucm .cnv .dll .dat .res .txt .c 1.64 + 1.65 +# We're including a list of resource files. 1.66 +FILESEPCHAR= 1.67 + 1.68 +!IF EXISTS("$(RESFILES)") 1.69 +!INCLUDE "$(RESFILES)" 1.70 +!ELSE 1.71 +!ERROR ERROR: cannot find "$(RESFILES)" 1.72 +!ENDIF 1.73 +RES_FILES = $(RESSRC:.txt=.res) 1.74 +RB_FILES = resources\$(RES_FILES:.res =.res resources\) 1.75 +RESOURCESDIR= 1.76 + 1.77 +# This target should build all the data files 1.78 +!IF "$(PKGMODE)" == "dll" 1.79 +OUTPUT = "$(DLL_OUTPUT)\$(RESNAME).dll" 1.80 +!ELSE 1.81 +OUTPUT = "$(DLL_OUTPUT)\$(RESNAME).lib" 1.82 +!ENDIF 1.83 + 1.84 +ALL : $(OUTPUT) 1.85 + @echo All targets are up to date (mode $(PKGMODE)) 1.86 + 1.87 + 1.88 +# invoke pkgdata - static 1.89 +"$(DLL_OUTPUT)\$(RESNAME).lib" : $(RB_FILES) $(RESFILES) 1.90 + @echo Building $(RESNAME).lib 1.91 + @"$(ICUTOOLS)\pkgdata" -f -v -m static -c -p $(RESNAME) -d "$(DLL_OUTPUT)" -s "$(RESDIR)" <<pkgdatain.txt 1.92 +$(RES_FILES:.res =.res 1.93 +) 1.94 +<<KEEP 1.95 + 1.96 +# This is to remove all the data files 1.97 +CLEAN : 1.98 + -@erase "$(RB_FILES)" 1.99 + -@erase "$(CFG)\*uconvmsg*.*" 1.100 + -@"$(ICUTOOLS)\pkgdata" -f --clean -v -m static -c -p $(RESNAME) -d "$(DLL_OUTPUT)" -s "$(RESDIR)" pkgdatain.txt 1.101 + 1.102 +# Inference rule for creating resource bundles 1.103 +{$(RESDIR)}.txt{$(RESDIR)}.res: 1.104 + @echo Making Resource Bundle files 1.105 + "$(ICUTOOLS)\genrb" -s $(@D) -d $(@D) $(?F) 1.106 + 1.107 + 1.108 +$(RESSRC) : {"$(ICUTOOLS)"}genrb.exe 1.109 +