ICU-1627 Delete files in build directory
X-SVN-Rev: 7485
This commit is contained in:
parent
32074ff632
commit
7968d6c599
@ -1,25 +0,0 @@
|
||||
Makefile
|
||||
*.so
|
||||
*.opt
|
||||
*.ncb
|
||||
*.a
|
||||
Debug
|
||||
Release
|
||||
*.cnv
|
||||
icu*.mak
|
||||
pkgdatain.txt
|
||||
*.plg
|
||||
*.dat
|
||||
*.lst
|
||||
*.res
|
||||
icupkg.inc
|
||||
char.brk
|
||||
icudata.dll
|
||||
libicudata*
|
||||
line.brk
|
||||
line_th.brk
|
||||
sent.brk
|
||||
word.brk
|
||||
word_th.brk
|
||||
*.c
|
||||
*.o
|
@ -1,220 +0,0 @@
|
||||
## Makefile.in for ICU data/build
|
||||
## Copyright (c) 1999-2001, International Business Machines Corporation and
|
||||
## others. All Rights Reserved.
|
||||
|
||||
## Source directory information
|
||||
srcdir = @srcdir@
|
||||
top_srcdir = @top_srcdir@
|
||||
EXEEXT=@EXEEXT@
|
||||
|
||||
top_builddir = ../..
|
||||
|
||||
include $(top_builddir)/icudefs.mk
|
||||
|
||||
include @platform_make_fragment@
|
||||
|
||||
## Build directory information
|
||||
subdir = data/build
|
||||
|
||||
# OBJDATADIR must be a short path (with ..'s) to the data.
|
||||
|
||||
|
||||
SRCDATADIR=$(top_srcdir)/../data
|
||||
UNICODEDATADIR=$(SRCDATADIR)/unidata
|
||||
TESTSRCDATADIR=$(top_srcdir)/test/testdata
|
||||
TESTOBJDATADIR=$(top_builddir)/test/testdata
|
||||
SRCLISTDEPS=Makefile $(srcdir)/Makefile.in $(SRCDATADIR)/resfiles.mk
|
||||
|
||||
OBJDATADIR=.
|
||||
|
||||
# relative lib links from pkgdata are the same as for tmp
|
||||
TOOLDIR=$(top_builddir)/tools
|
||||
|
||||
## List of phony targets
|
||||
.PHONY : all all-local all-recursive install install-local install-files install-dlls build-cmnfile build-dll \
|
||||
install-recursive clean clean-local clean-recursive distclean \
|
||||
distclean-local distclean-recursive dist dist-local dist-recursive \
|
||||
check check-local check-recursive build-testdlls build-basetestdata build-local
|
||||
|
||||
## Clear suffix list
|
||||
.SUFFIXES :
|
||||
|
||||
## List of standard targets
|
||||
all: all-local
|
||||
install: all-local
|
||||
clean: clean-local
|
||||
distclean : distclean-local
|
||||
dist:
|
||||
check: all
|
||||
|
||||
all-local: thaidict.brk build-local
|
||||
|
||||
distclean-local: clean
|
||||
$(RMV) Makefile
|
||||
|
||||
##### Define all the data files. the build rule that depends on them is below.
|
||||
|
||||
## DAT files - Misc. data files.
|
||||
DAT_FILES=uprops.dat unames.dat unorm.dat cnvalias.dat tz.dat ucadata.dat invuca.dat
|
||||
TEST_DAT_FILES=$(TESTOBJDATADIR)/test.dat
|
||||
|
||||
## BRK files
|
||||
# ALL of these files can be deleted (the following BRK files) - they are copied
|
||||
BRK_FILES=char.brk line.brk line_th.brk sent.brk word.brk word_th.brk
|
||||
# don't include thaidict.brk - it goes into a resource bundle - plus it isn't deleted
|
||||
|
||||
## UCM files
|
||||
-include $(SRCDATADIR)/ucmcore.mk
|
||||
-include $(SRCDATADIR)/ucmfiles.mk
|
||||
-include $(SRCDATADIR)/ucmebcdic.mk
|
||||
-include $(SRCDATADIR)/ucmlocal.mk
|
||||
ALL_UCM_SOURCE=ibm-37.ucm ibm-1047-s390.ucm $(UCM_SOURCE_CORE) $(UCM_SOURCE_FILES) $(UCM_SOURCE_EBCDIC) $(UCM_SOURCE_LOCAL)
|
||||
UCM_FILES = $(ALL_UCM_SOURCE:%=$(SRCDATADIR)/%)
|
||||
CNV_FILES = $(ALL_UCM_SOURCE:%.ucm=%.cnv)
|
||||
|
||||
TEST_UCM_SOURCE= test1.ucm test3.ucm test4.ucm
|
||||
TEST_UCM_FILES=$(TEST_UCM_SOURCE:%=$(TESTSRCDATADIR)/data/%)
|
||||
TEST_CNV_FILES=$(TEST_UCM_SOURCE:%.ucm=%.cnv)
|
||||
|
||||
## RES files
|
||||
include $(SRCDATADIR)/resfiles.mk
|
||||
-include $(SRCDATADIR)/reslocal.mk
|
||||
ALL_RES_SOURCE= $(GENRB_SOURCE) $(TRANSLIT_SOURCE) $(RESOURCE_SRC) $(GENRB_SOURCE_LOCAL)
|
||||
RES_SRC_FILES = $(ALL_RES_SOURCE:%=$(SRCDATADIR)/%)
|
||||
RES_FILES = $(ALL_RES_SOURCE:%.txt=%.res)
|
||||
|
||||
TEST_RES = root.txt te.txt te_IN.txt testtypes.txt testempty.txt
|
||||
TEST_RES_SRC_FILES=$(ALL_TEST_RES_SOURCE:%=$(TESTSRCDATADIR)/%)
|
||||
TEST_RES_FILES=$(TEST_RES:%.txt=$(TESTOBJDATADIR)/%.res)
|
||||
|
||||
## All generated files
|
||||
ALL_FILES = $(DAT_FILES) $(BRK_FILES) $(CNV_FILES) $(RES_FILES)
|
||||
|
||||
ALL_TEST_FILES = $(TEST_DAT_FILES) $(TEST_BRK_FILES) $(TEST_CNV_FILES) $(TEST_RES_FILES)
|
||||
|
||||
#####################################################
|
||||
# General data build rules
|
||||
|
||||
## Files to remove for 'make clean'
|
||||
CLEANFILES = *~ $(ALL_FILES) $(ALL_TEST_FILES) *.o *.c thaidict.brk
|
||||
|
||||
icudata.lst: $(SRCLISTDEPS)
|
||||
@echo "generating $@ (list of data files)"
|
||||
@-$(RMV) $@
|
||||
@for file in $(ALL_FILES); do \
|
||||
echo $$file >> $@; \
|
||||
done;
|
||||
|
||||
$(TESTOBJDATADIR)/testdata.lst: $(SRCLISTDEPS)
|
||||
@echo "generating $@ (list of data files)"
|
||||
@-$(RMV) $@
|
||||
@for file in $(TEST_RES_FILES) $(TEST_DAT_FILES); do \
|
||||
echo $$file >> $@; \
|
||||
done;
|
||||
|
||||
build-local: build-data build-testdata
|
||||
|
||||
# Additional data for 390
|
||||
ifeq ($(OS390DATA),1)
|
||||
OS390LIST= icudata390.lst
|
||||
endif
|
||||
#
|
||||
|
||||
build-data: $(ALL_FILES) icudata.lst $(OS390LIST)
|
||||
|
||||
clean-local:
|
||||
$(RMV) $(CLEANFILES)
|
||||
$(RMV) $(TESTOBJDATADIR)/ja_data.res
|
||||
|
||||
#$(ALL_TEST_FILES)
|
||||
|
||||
build-testdata: $(ALL_TEST_FILES) $(TESTOBJDATADIR)/testdata.lst $(TESTOBJDATADIR)/ja_data.res
|
||||
|
||||
# Now, sections for building each kind of data.
|
||||
|
||||
#################################################### DAT
|
||||
# DAT FILES
|
||||
|
||||
# uprops.dat
|
||||
uprops.dat: $(UNICODEDATADIR)/UnicodeData.txt $(UNICODEDATADIR)/BidiMirroring.txt $(TOOLDIR)/genprops/genprops$(EXEEXT)
|
||||
ICU_DATA=. $(INVOKE) $(TOOLDIR)/genprops/genprops -s $(UNICODEDATADIR) -d . -u $(UNICODE_VERSION)
|
||||
|
||||
# unorm.dat
|
||||
unorm.dat: $(UNICODEDATADIR)/UnicodeData.txt $(UNICODEDATADIR)/DerivedNormalizationProperties.txt $(UNICODEDATADIR)/BidiMirroring.txt $(TOOLDIR)/gennorm/gennorm$(EXEEXT)
|
||||
ICU_DATA=. $(INVOKE) $(TOOLDIR)/gennorm/gennorm -s $(UNICODEDATADIR) -d . -u $(UNICODE_VERSION)
|
||||
|
||||
# ucadata.dat
|
||||
ucadata.dat: $(UNICODEDATADIR)/FractionalUCA.txt $(TOOLDIR)/genuca/genuca$(EXEEXT)
|
||||
ICU_DATA=. $(INVOKE) $(TOOLDIR)/genuca/genuca -s $(UNICODEDATADIR) -d .
|
||||
|
||||
# unames.dat
|
||||
unames.dat: $(UNICODEDATADIR)/UnicodeData.txt $(TOOLDIR)/gennames/gennames$(EXEEXT)
|
||||
ICU_DATA=. $(INVOKE) $(TOOLDIR)/gennames/gennames -d . $(UNICODEDATADIR)/UnicodeData.txt -u $(UNICODE_VERSION)
|
||||
|
||||
# cnvalias.dat
|
||||
cnvalias.dat: $(SRCDATADIR)/convrtrs.txt $(TOOLDIR)/gencnval/gencnval$(EXEEXT)
|
||||
ICU_DATA=. $(INVOKE) $(TOOLDIR)/gencnval/gencnval -d . $(SRCDATADIR)/convrtrs.txt
|
||||
|
||||
# tz.dat
|
||||
tz.dat: $(SRCDATADIR)/timezone.txt $(TOOLDIR)/gentz/gentz$(EXEEXT)
|
||||
ICU_DATA=. $(INVOKE) $(TOOLDIR)/gentz/gentz -d . $(SRCDATADIR)/timezone.txt
|
||||
|
||||
# test.dat
|
||||
$(TESTOBJDATADIR)/test.dat: $(TOOLDIR)/gentest/gentest$(EXEEXT)
|
||||
ICU_DATA=. $(INVOKE) $(TOOLDIR)/gentest/gentest -d $(TESTOBJDATADIR)
|
||||
|
||||
#################################################### BRK
|
||||
# BRK FILES
|
||||
|
||||
thaidict.brk: $(SRCDATADIR)/thaidict.brk
|
||||
$(RMV) $@ && ln -s $< $@
|
||||
|
||||
# copy the right endianness
|
||||
|
||||
ifeq (@U_IS_BIG_ENDIAN@,1)
|
||||
%.brk: $(SRCDATADIR)/%BE.brk
|
||||
cp $< $@
|
||||
else
|
||||
%.brk: $(SRCDATADIR)/%LE.brk
|
||||
cp $< $@
|
||||
endif
|
||||
|
||||
#################################################### CNV
|
||||
# CNV FILES
|
||||
%.cnv: $(SRCDATADIR)/%.ucm $(TOOLDIR)/makeconv/makeconv$(EXEEXT)
|
||||
ICU_DATA=. $(INVOKE) $(TOOLDIR)/makeconv/makeconv -c -d . $(SRCDATADIR)/$(<F)
|
||||
|
||||
%.cnv: $(TESTSRCDATADIR)/%.ucm $(TOOLDIR)/makeconv/makeconv$(EXEEXT)
|
||||
ICU_DATA=. $(INVOKE) $(TOOLDIR)/makeconv/makeconv -c -d . $(TESTSRCDATADIR)/$(<F)
|
||||
|
||||
#################################################### RES
|
||||
# RES FILES
|
||||
$(TESTOBJDATADIR)/%.res: $(TESTSRCDATADIR)/%.txt $(TOOLDIR)/genrb/genrb$(EXEEXT)
|
||||
ICU_DATA=. $(INVOKE) $(TOOLDIR)/genrb/genrb -q -s $(TESTSRCDATADIR) -d $(TESTOBJDATADIR) $(<F)
|
||||
|
||||
$(TESTOBJDATADIR)/ja_data.res: $(TESTSRCDATADIR)/ja_data.bin $(TOOLDIR)/genrb/genrb$(EXEEXT)
|
||||
ICU_DATA=. $(INVOKE) $(TOOLDIR)/genrb/genrb -q -s $(TESTSRCDATADIR) -eISO_2022_JP -d $(TESTOBJDATADIR) $(<F) >/dev/null
|
||||
|
||||
|
||||
|
||||
%.res: $(SRCDATADIR)/%.txt $(TOOLDIR)/genrb/genrb$(EXEEXT) ucadata.dat uprops.dat unorm.dat
|
||||
ICU_DATA=. $(INVOKE) $(TOOLDIR)/genrb/genrb -q -s $(SRCDATADIR) -d . $(<F)
|
||||
|
||||
###################################################################
|
||||
|
||||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
||||
cd $(top_builddir) \
|
||||
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
|
||||
|
||||
|
||||
###########
|
||||
########### 390 support
|
||||
UCMFILES390=ebcdic-xml-us.ucm ibm-37-s390.ucm ibm-1047-s390.ucm ibm-4909.ucm
|
||||
ALLFILES390=uprops.dat unorm.dat cnvalias.dat $(UCMFILES390:.ucm=.cnv)
|
||||
|
||||
icudata390.lst: $(SRCLISTDEPS)
|
||||
@echo "generating $@ (list of 390 data files)"
|
||||
@-$(RMV) $@
|
||||
@for file in $(ALLFILES390); do \
|
||||
echo $$file >> $@; \
|
||||
done;
|
@ -1,11 +0,0 @@
|
||||
== Copyright (c) 2000 IBM, Inc. All rights reserved. ==
|
||||
|
||||
|
||||
This directory contains the intermediate, generated ICU data. For example,
|
||||
.res, .cnv, and some .dat files end up here.
|
||||
|
||||
It is also used as a temporary directory by some ICU tools build processes.
|
||||
|
||||
You should NOT set your ICU_DATA directory to point here. Instead,
|
||||
point it to ".." (that is, icu/source/data).
|
||||
|
@ -1,33 +0,0 @@
|
||||
@echo off
|
||||
rem makedata.bat
|
||||
rem batch file for Windows for creating the ICU data files
|
||||
rem parameter:
|
||||
rem %1 path where the icu folder resides
|
||||
|
||||
if "%1"=="" goto :error
|
||||
|
||||
if "%ICU_DATA%"=="" set ICU_DATA=%1\data\
|
||||
|
||||
rem toolversion: Debug or Release
|
||||
set toolversion=Release
|
||||
if not "%2"=="" set toolversion=%2
|
||||
|
||||
nmake /f makedata.mak icup=%1 cfg=%2 %3 %4
|
||||
if not errorlevel 9009 goto :othererror
|
||||
echo Build tools are not on path! Please make sure that MSVC++ is setup correctly!
|
||||
goto :error
|
||||
:othererror
|
||||
if errorlevel 0 goto :end
|
||||
echo Nmake has unsuccesfully finished with errorcode %errorlevel%!
|
||||
goto :end
|
||||
|
||||
:error
|
||||
echo call makedata with the absolute path to the icu directory
|
||||
echo for example, if the full path is d:\mytools\icu then call
|
||||
echo makedata d:\mytools\icu
|
||||
echo a second, optional, parameter can be Debug or Release to specify the tools versions
|
||||
echo.
|
||||
echo the current directory must be the icu\source\tools directory with makedata.bat
|
||||
echo also, the cl compiler and link linker must be on the PATH
|
||||
|
||||
:end
|
@ -1,113 +0,0 @@
|
||||
# Microsoft Developer Studio Project File - Name="makedata" - Package Owner=<4>
|
||||
# Microsoft Developer Studio Generated Build File, Format Version 6.00
|
||||
# ** DO NOT EDIT **
|
||||
|
||||
# TARGTYPE "Win32 (x86) External Target" 0x0106
|
||||
|
||||
CFG=makedata - Win32 Debug
|
||||
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
|
||||
!MESSAGE use the Export Makefile command and run
|
||||
!MESSAGE
|
||||
!MESSAGE NMAKE /f "makedata.mak".
|
||||
!MESSAGE
|
||||
!MESSAGE You can specify a configuration when running NMAKE
|
||||
!MESSAGE by defining the macro CFG on the command line. For example:
|
||||
!MESSAGE
|
||||
!MESSAGE NMAKE /f "makedata.mak" CFG="makedata - Win32 Debug"
|
||||
!MESSAGE
|
||||
!MESSAGE Possible choices for configuration are:
|
||||
!MESSAGE
|
||||
!MESSAGE "makedata - Win32 Release" (based on "Win32 (x86) External Target")
|
||||
!MESSAGE "makedata - Win32 Debug" (based on "Win32 (x86) External Target")
|
||||
!MESSAGE
|
||||
|
||||
# Begin Project
|
||||
# PROP AllowPerConfigDependencies 0
|
||||
# PROP Scc_ProjName ""
|
||||
# PROP Scc_LocalPath ""
|
||||
|
||||
!IF "$(CFG)" == "makedata - Win32 Release"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 0
|
||||
# PROP BASE Output_Dir "Release"
|
||||
# PROP BASE Intermediate_Dir "Release"
|
||||
# PROP BASE Cmd_Line "NMAKE /f makedata.mak"
|
||||
# PROP BASE Rebuild_Opt "/a"
|
||||
# PROP BASE Target_File "makedata.exe"
|
||||
# PROP BASE Bsc_Name "makedata.bsc"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 0
|
||||
# PROP Output_Dir "Release"
|
||||
# PROP Intermediate_Dir "Release"
|
||||
# PROP Cmd_Line "NMAKE /f makedata.mak icudbld=$(MAKEDIR) cfg=release"
|
||||
# PROP Rebuild_Opt "clean all"
|
||||
# PROP Target_File "makedata.exe"
|
||||
# PROP Bsc_Name ""
|
||||
# PROP Target_Dir ""
|
||||
|
||||
!ELSEIF "$(CFG)" == "makedata - Win32 Debug"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 1
|
||||
# PROP BASE Output_Dir "Debug"
|
||||
# PROP BASE Intermediate_Dir "Debug"
|
||||
# PROP BASE Cmd_Line "NMAKE /f makedata.mak"
|
||||
# PROP BASE Rebuild_Opt "/a"
|
||||
# PROP BASE Target_File "makedata.exe"
|
||||
# PROP BASE Bsc_Name "makedata.bsc"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 1
|
||||
# PROP Output_Dir "Debug"
|
||||
# PROP Intermediate_Dir "Debug"
|
||||
# PROP Cmd_Line "NMAKE /f makedata.mak icudbld=$(MAKEDIR) cfg=debug"
|
||||
# PROP Rebuild_Opt "clean all"
|
||||
# PROP Bsc_Name ""
|
||||
# PROP Target_Dir ""
|
||||
|
||||
!ENDIF
|
||||
|
||||
# Begin Target
|
||||
|
||||
# Name "makedata - Win32 Release"
|
||||
# Name "makedata - Win32 Debug"
|
||||
|
||||
!IF "$(CFG)" == "makedata - Win32 Release"
|
||||
|
||||
!ELSEIF "$(CFG)" == "makedata - Win32 Debug"
|
||||
|
||||
!ENDIF
|
||||
|
||||
# Begin Group "Source Files"
|
||||
|
||||
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
|
||||
# End Group
|
||||
# Begin Group "Header Files"
|
||||
|
||||
# PROP Default_Filter "h;hpp;hxx;hm;inl"
|
||||
# End Group
|
||||
# Begin Group "Resource Files"
|
||||
|
||||
# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\makedata.mak
|
||||
# PROP Intermediate_Dir "..\..\data\*.obj"
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\..\data\resfiles.mk
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\test\testdata\testdata.mk
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\..\data\ucmfiles.mk
|
||||
# End Source File
|
||||
# End Group
|
||||
# End Target
|
||||
# End Project
|
@ -1,29 +0,0 @@
|
||||
Microsoft Developer Studio Workspace File, Format Version 6.00
|
||||
# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
|
||||
|
||||
###############################################################################
|
||||
|
||||
Project: "makedata"=.\makedata.dsp - Package Owner=<4>
|
||||
|
||||
Package=<5>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
Package=<4>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
###############################################################################
|
||||
|
||||
Global:
|
||||
|
||||
Package=<5>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
Package=<3>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
###############################################################################
|
||||
|
@ -1,330 +0,0 @@
|
||||
#**********************************************************************
|
||||
#* Copyright (C) 1999-2001, International Business Machines Corporation
|
||||
#* and others. All Rights Reserved.
|
||||
#**********************************************************************
|
||||
# nmake file for creating data files on win32
|
||||
# invoke with
|
||||
# nmake /f makedata.mak [Debug|Release]
|
||||
#
|
||||
# 12/10/1999 weiv Created
|
||||
|
||||
U_ICUDATA_NAME=icudt20
|
||||
U_ICUDATA_ENDIAN_SUFFIX=l
|
||||
UNICODE_VERSION=3.1.1
|
||||
|
||||
# ICUDBLD
|
||||
# Must be provided by whoever runs this makefile.
|
||||
# Is the directory containing this file (makedata.mak)
|
||||
# Is the directory into which most data is built (prior to packaging)
|
||||
# Is icu\source\data\build
|
||||
#
|
||||
!IF "$(ICUDBLD)"==""
|
||||
!ERROR Can't find ICUDBLD (ICU Data Build dir, should point to icu\source\data\build\ )!
|
||||
!ENDIF
|
||||
!MESSAGE ICU data build path is $(ICUDBLD)
|
||||
|
||||
|
||||
# ICUP
|
||||
# The root of the ICU source directory tree
|
||||
#
|
||||
ICUP=$(ICUDBLD)\..\..\..
|
||||
ICUP=$(ICUP:\source\data\build\..\..\..=)
|
||||
!MESSAGE ICU data root path is $(ICUP)
|
||||
|
||||
|
||||
#
|
||||
# ICUDATA
|
||||
# The source directory. Contains the source files for the common data to be built.
|
||||
# WARNING: NOT THE SAME AS ICU_DATA environment variable. Confusing.
|
||||
ICUDATA=$(ICUP)\data
|
||||
|
||||
#
|
||||
# ICUDATA_RELATIVE_PATH
|
||||
# Another name to the source directory. Used for the inference rules because
|
||||
# spaces are not allowed in the directory name.
|
||||
ICUDATA_RELATIVE_PATH=..\..\..\data
|
||||
|
||||
#
|
||||
# DLL_OUTPUT
|
||||
# Destination directory for the common data DLL file.
|
||||
# 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/
|
||||
#
|
||||
DLL_OUTPUT=$(ICUP)\bin
|
||||
|
||||
#
|
||||
# TESTDATA
|
||||
# The source directory for data needed for test programs.
|
||||
TESTDATA=$(ICUP)\source\test\testdata
|
||||
|
||||
#
|
||||
# TESTDATAOUT
|
||||
# The destination directory for the built test data .dat file
|
||||
# When running the tests, ICU_DATA environment variable is set to here
|
||||
# so that test data files can be loaded. (Tests are NOT run from this makefile,
|
||||
# only the data is put in place.)
|
||||
TESTDATAOUT=$(ICUP)\source\data
|
||||
|
||||
|
||||
#
|
||||
# ICUTOOLS
|
||||
# Directory under which all of the ICU data building tools live.
|
||||
#
|
||||
ICUTOOLS=$(ICUP)\source\tools
|
||||
|
||||
|
||||
PATH = $(PATH);$(ICUP)\bin
|
||||
|
||||
|
||||
# We have to prepare params for pkgdata - to help it find the tools
|
||||
!IF "$(CFG)" == "Debug" || "$(CFG)" == "debug"
|
||||
!MESSAGE makedata.mak: doing a Debug build.
|
||||
PKGOPT=D:$(ICUP)
|
||||
!ELSE
|
||||
!MESSAGE makedata.mak: doing a Release build.
|
||||
PKGOPT=R:$(ICUP)
|
||||
!ENDIF
|
||||
|
||||
|
||||
# Suffixes for data files
|
||||
.SUFFIXES : .ucm .cnv .dll .dat .res .txt .c
|
||||
|
||||
# We're including a list of .ucm files.
|
||||
# There are several lists, they are all optional.
|
||||
|
||||
# Always build the mapping files for the EBCDIC fallback codepages
|
||||
# They are necessary on EBCDIC machines, and
|
||||
# the following logic is much easier if UCM_SOURCE is never empty.
|
||||
# (They are small.)
|
||||
UCM_SOURCE=ibm-37.ucm ibm-1047-s390.ucm
|
||||
|
||||
!IF EXISTS("$(ICUDATA)\ucmcore.mk")
|
||||
!INCLUDE "$(ICUDATA)\ucmcore.mk"
|
||||
UCM_SOURCE=$(UCM_SOURCE) $(UCM_SOURCE_CORE)
|
||||
!ELSE
|
||||
!MESSAGE Warning: cannot find "ucmcore.mk". Not building core MIME/Unix/Windows converter files.
|
||||
!ENDIF
|
||||
|
||||
!IF EXISTS("$(ICUDATA)\ucmfiles.mk")
|
||||
!INCLUDE "$(ICUDATA)\ucmfiles.mk"
|
||||
UCM_SOURCE=$(UCM_SOURCE) $(UCM_SOURCE_FILES)
|
||||
!ELSE
|
||||
!MESSAGE Warning: cannot find "ucmfiles.mk". Not building many converter files.
|
||||
!ENDIF
|
||||
|
||||
!IF EXISTS("$(ICUDATA)\ucmebcdic.mk")
|
||||
!INCLUDE "$(ICUDATA)\ucmebcdic.mk"
|
||||
UCM_SOURCE=$(UCM_SOURCE) $(UCM_SOURCE_EBCDIC)
|
||||
!ELSE
|
||||
!MESSAGE Warning: cannot find "ucmebcdic.mk". Not building EBCDIC converter files.
|
||||
!ENDIF
|
||||
|
||||
!IF EXISTS("$(ICUDATA)\ucmlocal.mk")
|
||||
!INCLUDE "$(ICUDATA)\ucmlocal.mk"
|
||||
UCM_SOURCE=$(UCM_SOURCE) $(UCM_SOURCE_LOCAL)
|
||||
!ELSE
|
||||
!MESSAGE Information: cannot find "ucmlocal.mk". Not building user-additional converter files.
|
||||
!ENDIF
|
||||
|
||||
CNV_FILES=$(UCM_SOURCE:.ucm=.cnv)
|
||||
|
||||
# Read list of resource bundle files
|
||||
!IF EXISTS("$(ICUDATA)\resfiles.mk")
|
||||
!INCLUDE "$(ICUDATA)\resfiles.mk"
|
||||
!IF EXISTS("$(ICUDATA)\reslocal.mk")
|
||||
!INCLUDE "$(ICUDATA)\reslocal.mk"
|
||||
GENRB_SOURCE=$(GENRB_SOURCE) $(GENRB_SOURCE_LOCAL)
|
||||
!ELSE
|
||||
#!MESSAGE Warning: cannot find "reslocal.mk"
|
||||
!ENDIF
|
||||
!ELSE
|
||||
!ERROR ERROR: cannot find "resfiles.mk"
|
||||
!ENDIF
|
||||
RB_FILES = $(GENRB_SOURCE:.txt=.res)
|
||||
TRANSLIT_FILES = $(TRANSLIT_SOURCE:.txt=.res)
|
||||
ALL_RES = $(RB_FILES) $(TRANSLIT_FILES)
|
||||
|
||||
RB_SOURCE_DIR = $(GENRB_SOURCE:$=$)
|
||||
|
||||
#############################################################################
|
||||
#
|
||||
# ALL
|
||||
# This target builds all the data files. The world starts here.
|
||||
# Note: we really want the common data dll to go to $(DLL_OUTPUT), not $(ICUBLD). But specifying
|
||||
# that here seems to cause confusion with the building of the stub library of the same name.
|
||||
# Building the common dll in $(ICUBLD) unconditionally copies it to $(DLL_OUTPUT) too.
|
||||
#
|
||||
#############################################################################
|
||||
ALL : GODATA "$(ICUDBLD)\$(U_ICUDATA_NAME).dll" testdata "$(TESTDATAOUT)\test1.cnv" "$(TESTDATAOUT)\test3.cnv" "$(TESTDATAOUT)\test4.cnv"
|
||||
@echo All targets are up to date
|
||||
|
||||
#
|
||||
# testdata - nmake will invoke pkgdata, which will create testdata.dat
|
||||
#
|
||||
testdata: ucadata.dat $(RB_FILES) {"$(ICUTOOLS)\genrb\$(CFG)"}genrb.exe
|
||||
@cd "$(TESTDATA)"
|
||||
@echo building testdata...
|
||||
nmake /nologo /f "$(TESTDATA)\testdata.mk" TESTDATA=. ICUTOOLS="$(ICUTOOLS)" PKGOPT="$(PKGOPT)" CFG=$(CFG) TESTDATAOUT="$(TESTDATAOUT)" ICUDATA="$(ICUDATA)"
|
||||
@cd "$(ICUDBLD)"
|
||||
|
||||
|
||||
BRK_FILES = "$(ICUDBLD)\sent.brk" "$(ICUDBLD)\char.brk" "$(ICUDBLD)\line.brk" "$(ICUDBLD)\word.brk" "$(ICUDBLD)\line_th.brk" "$(ICUDBLD)\word_th.brk"
|
||||
|
||||
#invoke pkgdata for ICU common data
|
||||
# pkgdata will drop all output files (.dat, .dll, .lib) into the target (ICUDBLD) directory.
|
||||
# move the .dll and .lib files to their final destination afterwards.
|
||||
#
|
||||
"$(ICUDBLD)\$(U_ICUDATA_NAME).dll" : $(CNV_FILES) $(BRK_FILES) uprops.dat unames.dat unorm.dat cnvalias.dat tz.dat ucadata.dat invuca.dat $(ALL_RES) icudata.res "$(ICUP)\source\stubdata\stubdatabuilt.txt"
|
||||
@echo Building icu data
|
||||
@cd "$(ICUDBLD)"
|
||||
"$(ICUTOOLS)\pkgdata\$(CFG)\pkgdata" -e $(U_ICUDATA_NAME) -v -m dll -c -p $(U_ICUDATA_NAME) -O "$(PKGOPT)" -d "$(ICUDBLD)" -s . <<pkgdatain.txt
|
||||
uprops.dat
|
||||
unames.dat
|
||||
unorm.dat
|
||||
cnvalias.dat
|
||||
tz.dat
|
||||
ucadata.dat
|
||||
invuca.dat
|
||||
$(CNV_FILES:.cnv =.cnv
|
||||
)
|
||||
$(RB_FILES:.res =.res
|
||||
)
|
||||
$(TRANSLIT_FILES:.res =.res
|
||||
)
|
||||
$(BRK_FILES:.brk" =.brk"
|
||||
)
|
||||
<<KEEP
|
||||
copy "$(U_ICUDATA_NAME).dll" "$(DLL_OUTPUT)"
|
||||
-@erase "$(U_ICUDATA_NAME).dll"
|
||||
copy "$(U_ICUDATA_NAME).dat" "..\$(U_ICUDATA_NAME)$(U_ICUDATA_ENDIAN_SUFFIX).dat"
|
||||
-@erase "$(U_ICUDATA_NAME).dat"
|
||||
|
||||
|
||||
|
||||
|
||||
"$(ICUDBLD)\sent.brk" : "$(ICUDATA)\sentLE.brk"
|
||||
copy "$(ICUDATA)\sentLE.brk" "$(ICUDBLD)\sent.brk"
|
||||
|
||||
"$(ICUDBLD)\char.brk" : "$(ICUDATA)\charLE.brk"
|
||||
copy "$(ICUDATA)\charLE.brk" "$(ICUDBLD)\char.brk"
|
||||
|
||||
"$(ICUDBLD)\line.brk" : "$(ICUDATA)\lineLE.brk"
|
||||
copy "$(ICUDATA)\lineLE.brk" "$(ICUDBLD)\line.brk"
|
||||
|
||||
"$(ICUDBLD)\word.brk" : "$(ICUDATA)\wordLE.brk"
|
||||
copy "$(ICUDATA)\wordLE.brk" "$(ICUDBLD)\word.brk"
|
||||
|
||||
"$(ICUDBLD)\line_th.brk" : "$(ICUDATA)\line_thLE.brk"
|
||||
copy "$(ICUDATA)\line_thLE.brk" "$(ICUDBLD)\line_th.brk"
|
||||
|
||||
"$(ICUDBLD)\word_th.brk" : "$(ICUDATA)\word_thLE.brk"
|
||||
copy "$(ICUDATA)\word_thLE.brk" "$(ICUDBLD)\word_th.brk"
|
||||
|
||||
# utility target to send us to the right dir
|
||||
GODATA :
|
||||
@cd "$(ICUDBLD)"
|
||||
|
||||
|
||||
# This is to remove all the data files
|
||||
CLEAN :
|
||||
@echo Cleaning up the data files.
|
||||
@cd "$(ICUDBLD)"
|
||||
-@erase "*.cnv"
|
||||
-@erase "*.res"
|
||||
-@erase "*.obj"
|
||||
-@erase "*.brk"
|
||||
-@erase "*.dat"
|
||||
-@erase "*.dll"
|
||||
@cd "$(TESTDATAOUT)"
|
||||
-@erase "*.dat"
|
||||
-@erase "*.cnv"
|
||||
-@erase "*.res"
|
||||
@cd "$(ICUTOOLS)"
|
||||
|
||||
|
||||
|
||||
# Targets for test converter data
|
||||
"$(TESTDATAOUT)\test1.cnv": "$(TESTDATA)\test1.ucm"
|
||||
@cd "$(ICUDATA)"
|
||||
@set ICU_DATA=$(TESTDATAOUT)
|
||||
@"$(ICUTOOLS)\makeconv\$(CFG)\makeconv" $**
|
||||
|
||||
"$(TESTDATAOUT)\test3.cnv": "$(TESTDATA)\test3.ucm"
|
||||
@cd "$(ICUDATA)"
|
||||
@set ICU_DATA=$(TESTDATAOUT)
|
||||
@"$(ICUTOOLS)\makeconv\$(CFG)\makeconv" $**
|
||||
|
||||
"$(TESTDATAOUT)\test4.cnv": "$(TESTDATA)\test4.ucm"
|
||||
@cd "$(ICUDATA)"
|
||||
@set ICU_DATA=$(TESTDATAOUT)
|
||||
@"$(ICUTOOLS)\makeconv\$(CFG)\makeconv" $**
|
||||
|
||||
# Batch inference rule for creating converters
|
||||
{$(ICUDATA_RELATIVE_PATH)}.ucm.cnv::
|
||||
@echo Generating converters
|
||||
@"$(ICUTOOLS)\makeconv\$(CFG)\makeconv" $<
|
||||
|
||||
# Inference rule for creating converters
|
||||
{$(ICUDATA_RELATIVE_PATH)}.txt.res::
|
||||
@echo Making Resource Bundle files
|
||||
@"$(ICUTOOLS)\genrb\$(CFG)\genrb" -q -d"$(ICUDBLD)" $<
|
||||
|
||||
# DLL version information
|
||||
icudata.res: "$(ICUDATA)\icudata.rc"
|
||||
@echo Creating data DLL version information from $**
|
||||
@rc.exe /i ..\..\..\include\ /r /fo "$@" $**
|
||||
|
||||
# Targets for unames.dat
|
||||
unames.dat: "$(ICUDATA)\unidata\UnicodeData.txt" "$(ICUTOOLS)\gennames\$(CFG)\gennames.exe"
|
||||
@echo Creating data file for Unicode Names
|
||||
@set ICU_DATA=$(ICUDBLD)
|
||||
@"$(ICUTOOLS)\gennames\$(CFG)\gennames" -1 -u $(UNICODE_VERSION) "$(ICUDATA)\unidata\UnicodeData.txt"
|
||||
|
||||
# Targets for uprops.dat
|
||||
uprops.dat: "$(ICUDATA)\unidata\UnicodeData.txt" "$(ICUTOOLS)\genprops\$(CFG)\genprops.exe"
|
||||
@echo Creating data file for Unicode Character Properties
|
||||
@set ICU_DATA=$(ICUDBLD)
|
||||
@"$(ICUTOOLS)\genprops\$(CFG)\genprops" -u $(UNICODE_VERSION) -s "$(ICUDATA)\unidata"
|
||||
|
||||
# Targets for unorm.dat
|
||||
unorm.dat: "$(ICUDATA)\unidata\UnicodeData.txt" "$(ICUDATA)\unidata\DerivedNormalizationProperties.txt" "$(ICUTOOLS)\gennorm\$(CFG)\gennorm.exe"
|
||||
@echo Creating data file for Unicode Normalization
|
||||
@set ICU_DATA=$(ICUDBLD)
|
||||
@"$(ICUTOOLS)\gennorm\$(CFG)\gennorm" -u $(UNICODE_VERSION) -s "$(ICUDATA)\unidata"
|
||||
|
||||
# Targets for converters
|
||||
cnvalias.dat : {"$(ICUDATA)"}\convrtrs.txt "$(ICUTOOLS)\gencnval\$(CFG)\gencnval.exe"
|
||||
@echo Creating data file for Converter Aliases
|
||||
@set ICU_DATA=$(ICUDBLD)
|
||||
@"$(ICUTOOLS)\gencnval\$(CFG)\gencnval" "$(ICUDATA)\convrtrs.txt"
|
||||
|
||||
# Targets for tz
|
||||
tz.dat : {"$(ICUDATA)"}timezone.txt {"$(ICUTOOLS)\gentz\$(CFG)"}gentz.exe
|
||||
@echo Creating data file for Timezones
|
||||
@set ICU_DATA=$(ICUDBLD)
|
||||
@"$(ICUTOOLS)\gentz\$(CFG)\gentz" "$(ICUDATA)\timezone.txt"
|
||||
|
||||
# Targets for ucadata.dat & invuca.dat
|
||||
ucadata.dat: "$(ICUDATA)\unidata\FractionalUCA.txt" "$(ICUTOOLS)\genuca\$(CFG)\genuca.exe"
|
||||
@echo Creating UCA data files
|
||||
@set ICU_DATA=$(ICUDBLD)
|
||||
@"$(ICUTOOLS)\genuca\$(CFG)\genuca" -s "$(ICUDATA)\unidata"
|
||||
|
||||
invuca.dat: ucadata.dat
|
||||
|
||||
$(UCM_SOURCE) : {"$(ICUTOOLS)\makeconv\$(CFG)"}makeconv.exe
|
||||
|
||||
{"$(ICUTOOLS)\genrb\$(CFG)"}genrb.exe : ucadata.dat uprops.dat unorm.dat
|
||||
|
||||
ucadata.dat : uprops.dat unorm.dat
|
||||
|
||||
# Dependencies on the tools
|
||||
convrtrs.txt : {"$(ICUTOOLS)\gencnval\$(CFG)"}gencnval.exe
|
||||
|
||||
tz.txt : {"$(ICUTOOLS)\gentz\$(CFG)"}gentz.exe
|
||||
|
||||
uprops.dat unames.dat unorm.dat cnvalias.dat tz.dat ucadata.dat invuca.dat: {"$(ICUTOOLS)\genccode\$(CFG)"}genccode.exe
|
||||
|
||||
|
||||
$(TRANSLIT_SOURCE) $(GENRB_SOURCE) : {"$(ICUTOOLS)\genrb\$(CFG)"}genrb.exe ucadata.dat uprops.dat unorm.dat
|
||||
|
@ -1,4 +0,0 @@
|
||||
/DLL
|
||||
/NOENTRY
|
||||
/base:"0x4ad00000"
|
||||
/comment:" Copyright (C) 1999 International Business Machines Corporation and others. All Rights Reserved. "
|
@ -1,3 +0,0 @@
|
||||
"/I..\..\include"
|
||||
/GD
|
||||
/c
|
Loading…
Reference in New Issue
Block a user