From 5f8de423f190bbb79a62f804151bc24824fa32d8 Mon Sep 17 00:00:00 2001 From: "Matt A. Tobin" Date: Fri, 2 Feb 2018 04:16:08 -0500 Subject: Add m-esr52 at 52.6.0 --- intl/icu/source/stubdata/Makefile.in | 156 ++++++++++++ intl/icu/source/stubdata/stubdata.c | 76 ++++++ intl/icu/source/stubdata/stubdata.vcxproj | 284 ++++++++++++++++++++++ intl/icu/source/stubdata/stubdata.vcxproj.filters | 27 ++ 4 files changed, 543 insertions(+) create mode 100644 intl/icu/source/stubdata/Makefile.in create mode 100644 intl/icu/source/stubdata/stubdata.c create mode 100644 intl/icu/source/stubdata/stubdata.vcxproj create mode 100644 intl/icu/source/stubdata/stubdata.vcxproj.filters (limited to 'intl/icu/source/stubdata') diff --git a/intl/icu/source/stubdata/Makefile.in b/intl/icu/source/stubdata/Makefile.in new file mode 100644 index 000000000..4e2f03fad --- /dev/null +++ b/intl/icu/source/stubdata/Makefile.in @@ -0,0 +1,156 @@ +# Copyright (C) 2016 and later: Unicode, Inc. and others. +# License & terms of use: http://www.unicode.org/copyright.html +#****************************************************************************** +# +# Copyright (C) 1999-2015, International Business Machines +# Corporation and others. All Rights Reserved. +# +#****************************************************************************** +## Makefile.in for ICU stubdata +## Stephen F. Booth + +## Source directory information +srcdir = @srcdir@ +top_srcdir = @top_srcdir@ + +top_builddir = .. + +## All the flags and other definitions are included here. +include $(top_builddir)/icudefs.mk + +## Build directory information +subdir = stubdata + +## Extra files to remove for 'make clean' +CLEANFILES = *~ $(DEPS) $(IMPORT_LIB) $(MIDDLE_IMPORT_LIB) $(FINAL_IMPORT_LIB) + +## Target information + +TARGET_STUBNAME=$(DATA_STUBNAME) + +ifneq ($(ENABLE_STATIC),) +TARGET = $(STUBDATA_LIBDIR)$(LIBSICU)$(TARGET_STUBNAME)$(ICULIBSUFFIX).$(A) +endif + + +ifneq ($(ENABLE_SHARED),) +SO_TARGET = $(STUBDATA_LIBDIR)$(LIBICU)$(TARGET_STUBNAME)$(ICULIBSUFFIX)$(STUB_SUFFIX).$(SO) +ALL_SO_TARGETS = $(FINAL_SO_TARGET) $(MIDDLE_SO_TARGET) $(SO_TARGET) $(BATCH_STUB_TARGET) $(SHARED_OBJECT) +endif + + +ALL_TARGETS = $(TARGET) $(ALL_SO_TARGETS) + +DYNAMICCPPFLAGS = $(SHAREDLIBCPPFLAGS) +DYNAMICCFLAGS = $(SHAREDLIBCFLAGS) +DYNAMICCXXFLAGS = $(SHAREDLIBCXXFLAGS) + +CPPFLAGS += -I$(top_srcdir)/common $(LIBCPPFLAGS) +LDFLAGS += $(LDFLAGSICUDT) + +OBJECTS = stubdata.o + +## Header files to install +HEADERS = + +STATIC_OBJECTS = $(OBJECTS:.o=.$(STATIC_O)) + +DEPS = $(OBJECTS:.o=.d) + +-include Makefile.local + +## List of phony targets +.PHONY : all all-local install install-local clean clean-local \ +distclean distclean-local install-library dist \ +dist-local check check-local check-exhaustive + +## Clear suffix list +.SUFFIXES : + +## List of standard targets +all: all-local +install: install-local +clean: clean-local +distclean : distclean-local +dist: dist-local +check: all check-local + +check-exhaustive: check + +all-local: $(ALL_TARGETS) + +install-local: install-library + +install-library: all-local + $(MKINSTALLDIRS) $(DESTDIR)$(libdir) +ifneq ($(ENABLE_STATIC),) + $(INSTALL-L) $(TARGET) $(DESTDIR)$(libdir) +endif +ifneq ($(ENABLE_SHARED),) + $(INSTALL-L) $(FINAL_SO_TARGET) $(DESTDIR)$(libdir) +ifneq ($(FINAL_SO_TARGET),$(SO_TARGET)) + cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(SO_TARGET)) && ln -s $(notdir $(FINAL_SO_TARGET)) $(notdir $(SO_TARGET)) +ifneq ($(FINAL_SO_TARGET),$(MIDDLE_SO_TARGET)) + cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(MIDDLE_SO_TARGET)) && ln -s $(notdir $(FINAL_SO_TARGET)) $(notdir $(MIDDLE_SO_TARGET)) +endif +endif +ifneq ($(IMPORT_LIB_EXT),) + $(INSTALL-L) $(FINAL_IMPORT_LIB) $(DESTDIR)$(libdir) +ifneq ($(IMPORT_LIB),$(FINAL_IMPORT_LIB)) + cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(IMPORT_LIB)) && ln -s $(notdir $(FINAL_IMPORT_LIB)) $(notdir $(IMPORT_LIB)) +endif +ifneq ($(MIDDLE_IMPORT_LIB),$(FINAL_IMPORT_LIB)) + cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(MIDDLE_IMPORT_LIB)) && ln -s $(notdir $(FINAL_IMPORT_LIB)) $(notdir $(MIDDLE_IMPORT_LIB)) +endif +endif +endif + +dist-local: + +clean-local: + test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES) + $(RMV) $(OBJECTS) $(STATIC_OBJECTS) $(ALL_TARGETS) + +distclean-local: clean-local + $(RMV) Makefile + +check-local: + +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + cd $(top_builddir) \ + && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status + +ifneq ($(ENABLE_STATIC),) +$(TARGET): $(STATIC_OBJECTS) + $(AR) $(ARFLAGS) $(AR_OUTOPT)$@ $^ + $(RANLIB) $@ +endif + +ifneq ($(ENABLE_SHARED),) +$(SHARED_OBJECT): $(OBJECTS) +ifeq ($(BUILD_HOST_ICU),AIX_GCC) + $(SHLIB.c) $(LD_SONAME) $(OUTOPT)libicudata.so $^ $(LIBS) + mv libicudata.so $@ +else + $(SHLIB.c) $(LD_SONAME) $(OUTOPT)$@ $^ $(LIBS) +endif +ifeq ($(ENABLE_RPATH),YES) +ifneq ($(wildcard $(libdir)/$(MIDDLE_SO_TARGET)),) + $(warning RPATH warning: --enable-rpath means test programs may use existing $(libdir)/$(MIDDLE_SO_TARGET)) +endif +endif + +ifeq ($(OS390BATCH),1) +$(BATCH_STUB_TARGET): $(OBJECTS) + $(SHLIB.c) $(LD_SONAME) $(OUTOPT)$@ $^ $(LIBS) +endif # OS390BATCH +endif # ENABLE_SHARED + +ifeq (,$(MAKECMDGOALS)) +-include $(DEPS) +else +ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),) +-include $(DEPS) +endif +endif + diff --git a/intl/icu/source/stubdata/stubdata.c b/intl/icu/source/stubdata/stubdata.c new file mode 100644 index 000000000..6493ac4b8 --- /dev/null +++ b/intl/icu/source/stubdata/stubdata.c @@ -0,0 +1,76 @@ +// Copyright (C) 2016 and later: Unicode, Inc. and others. +// License & terms of use: http://www.unicode.org/copyright.html +/****************************************************************************** +* +* Copyright (C) 2001, International Business Machines +* Corporation and others. All Rights Reserved. +* +******************************************************************************* +* file name: stubdata.c +* +* Define initialized data that will build into a valid, but empty +* ICU data library. Used to bootstrap the ICU build, which has these +* dependencies: +* ICU Common library depends on ICU data +* ICU data requires data building tools. +* ICU data building tools require the ICU common library. +* +* The stub data library (for which this file is the source) is sufficient +* for running the data building tools. +* +*/ +#include "unicode/utypes.h" +#include "unicode/udata.h" +#include "unicode/uversion.h" + + +typedef struct { + uint16_t headerSize; + uint8_t magic1, magic2; + UDataInfo info; + char padding[8]; + uint32_t count, reserved; + /* + const struct { + const char *const name; + const void *const data; + } toc[1]; + */ + int fakeNameAndData[4]; /* TODO: Change this header type from */ + /* pointerTOC to OffsetTOC. */ +} ICU_Data_Header; + +U_EXPORT const ICU_Data_Header U_ICUDATA_ENTRY_POINT = { + 32, /* headerSize */ + 0xda, /* magic1, (see struct MappedData in udata.c) */ + 0x27, /* magic2 */ + { /*UDataInfo */ + sizeof(UDataInfo), /* size */ + 0, /* reserved */ + +#if U_IS_BIG_ENDIAN + 1, +#else + 0, +#endif + + U_CHARSET_FAMILY, + sizeof(UChar), + 0, /* reserved */ + { /* data format identifier */ + 0x54, 0x6f, 0x43, 0x50}, /* "ToCP" */ + {1, 0, 0, 0}, /* format version major, minor, milli, micro */ + {0, 0, 0, 0} /* dataVersion */ + }, + {0,0,0,0,0,0,0,0}, /* Padding[8] */ + 0, /* count */ + 0, /* Reserved */ + { /* TOC structure */ +/* { */ + 0 , 0 , 0, 0 /* name and data entries. Count says there are none, */ + /* but put one in just in case. */ +/* } */ + } +}; + + diff --git a/intl/icu/source/stubdata/stubdata.vcxproj b/intl/icu/source/stubdata/stubdata.vcxproj new file mode 100644 index 000000000..36291a345 --- /dev/null +++ b/intl/icu/source/stubdata/stubdata.vcxproj @@ -0,0 +1,284 @@ + + + + + Debug + Win32 + + + Debug + x64 + + + Release + Win32 + + + Release + x64 + + + + {203EC78A-0531-43F0-A636-285439BDE025} + + + + DynamicLibrary + false + MultiByte + v140 + + + DynamicLibrary + false + MultiByte + v140 + + + DynamicLibrary + false + MultiByte + v140 + + + DynamicLibrary + false + MultiByte + v140 + + + + + + + + + + + + + + + + + + + + + + + <_ProjectFileVersion>10.0.30319.1 + .\x86\Release\ + .\x86\Release\ + false + false + .\x86\Debug\ + .\x86\Debug\ + false + .\x64\Release\ + .\x64\Release\ + false + false + .\x64\Debug\ + .\x64\Debug\ + false + + + + NDEBUG;%(PreprocessorDefinitions) + true + true + Win32 + .\x86\Release\icudt.tlb + + + ..\common;%(AdditionalIncludeDirectories) + WIN32;NDEBUG;STUBDATA_BUILD;%(PreprocessorDefinitions) + true + + + MultiThreadedDLL + true + true + true + .\x86\Release\stubdata.pch + .\x86\Release/ + .\x86\Release/ + .\x86\Release/ + Level3 + true + Default + + + NDEBUG;STUBDATA_BUILD;%(PreprocessorDefinitions) + 0x0409 + + + echo "File with stubdata build time, used as a dependency to trigger fresh data build, since stubdata dll will overwrite the real one." > "$(ProjectDir)stubdatabuilt.txt" + + + ..\..\bin\icudt58.dll + true + true + .\x86\Release\icudt.pdb + true + true + 0x4ad00000 + false + + + true + ..\..\lib\icudt.lib + + + + + _DEBUG;%(PreprocessorDefinitions) + true + true + Win32 + .\x86\Debug/icudt.tlb + + + Disabled + ..\common;%(AdditionalIncludeDirectories) + WIN32;_DEBUG;STUBDATA_BUILD;%(PreprocessorDefinitions) + EnableFastChecks + MultiThreadedDebugDLL + true + true + true + .\x86\Debug/stubdata.pch + .\x86\Debug/ + .\x86\Debug/ + .\x86\Debug/ + Level3 + true + Default + + + _DEBUG;STUBDATA_BUILD;%(PreprocessorDefinitions) + 0x0409 + + + echo "File with stubdata build time, used as a dependency to trigger fresh data build, since stubdata dll will overwrite the real one." > "$(ProjectDir)stubdatabuilt.txt" + + + ..\..\bin\icudt58.dll + true + .\x86\Debug/icudt.pdb + true + true + 0x4ad00000 + false + + + true + ..\..\lib\icudt.lib + + + + + NDEBUG;%(PreprocessorDefinitions) + true + true + X64 + .\x64\Release\icudt.tlb + + + ..\common;%(AdditionalIncludeDirectories) + WIN64;WIN32;NDEBUG;STUBDATA_BUILD;%(PreprocessorDefinitions) + true + + + MultiThreadedDLL + true + true + true + .\x64\Release\stubdata.pch + .\x64\Release/ + .\x64\Release/ + .\x64\Release/ + Level3 + true + Default + + + NDEBUG;STUBDATA_BUILD;%(PreprocessorDefinitions) + 0x0409 + + + echo "File with stubdata build time, used as a dependency to trigger fresh data build, since stubdata dll will overwrite the real one." > "$(ProjectDir)stubdatabuilt.txt" + + + ..\..\bin64\icudt58.dll + true + true + .\x64\Release\icudt.pdb + true + true + 0x4ad00000 + true + ..\..\lib64\icudt.lib + MachineX64 + + + + + _DEBUG;%(PreprocessorDefinitions) + true + true + X64 + .\x64\Debug/icudt.tlb + + + Disabled + ..\common;%(AdditionalIncludeDirectories) + WIN64;WIN32;_DEBUG;STUBDATA_BUILD;%(PreprocessorDefinitions) + EnableFastChecks + MultiThreadedDebugDLL + true + true + true + .\x64\Debug/stubdata.pch + .\x64\Debug/ + .\x64\Debug/ + .\x64\Debug/ + Level3 + true + Default + + + _DEBUG;STUBDATA_BUILD;%(PreprocessorDefinitions) + 0x0409 + + + echo "File with stubdata build time, used as a dependency to trigger fresh data build, since stubdata dll will overwrite the real one." > "$(ProjectDir)stubdatabuilt.txt" + + + ..\..\bin64\icudt58.dll + true + .\x64\Debug/icudt.pdb + true + true + 0x4ad00000 + true + ..\..\lib64\icudt.lib + MachineX64 + + + + + + + + ../common;%(AdditionalIncludeDirectories) + ../common;%(AdditionalIncludeDirectories) + ../common;%(AdditionalIncludeDirectories) + ../common;%(AdditionalIncludeDirectories) + + + + + + \ No newline at end of file diff --git a/intl/icu/source/stubdata/stubdata.vcxproj.filters b/intl/icu/source/stubdata/stubdata.vcxproj.filters new file mode 100644 index 000000000..f2742598d --- /dev/null +++ b/intl/icu/source/stubdata/stubdata.vcxproj.filters @@ -0,0 +1,27 @@ + + + + + {0ee0463f-dec0-4224-af0c-52babad261c1} + cpp;c;cxx;rc;def;r;odl;idl;hpj;bat + + + {a9df809d-9699-4284-97a0-a7e71522eac3} + h;hpp;hxx;hm;inl + + + {981a212f-ebc5-4f1e-be28-06ce5e90ecca} + ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe + + + + + Source Files + + + + + Resource Files + + + \ No newline at end of file -- cgit v1.2.3