ICU-978 cygwin port

X-SVN-Rev: 9267
This commit is contained in:
Vladimir Weinstein 2002-07-19 23:25:41 +00:00
parent f1ed8babf0
commit 2cbb05fdb9
10 changed files with 19 additions and 7 deletions

View file

@ -47,7 +47,7 @@ DYNAMICCXXFLAGS = $(SHAREDLIBCXXFLAGS)
# Data packaging options are set at configure time with --with-data-packaging.
CPPFLAGS += -I. -I$(srcdir) $(LIBCPPFLAGS) @DATA_PACKAGING_CPPFLAGS@
DEFS += -DU_LIBICUDATA_NAME=\"$(ICUDATA_NAME)\"
DEFS += -DU_LIBICUDATA_NAME=\"$(ICUDATA_NAME)\" -DU_COMMON_IMPLEMENTATION
# $(LIBICUDT) is either stub data or the real DLL common data.
LIBS = $(LIBICUDT) $(DEFAULT_LIBS)

View file

@ -232,13 +232,12 @@ typedef unsigned short uint16_t;
#define U_EXPORT
/* U_CALLCONV is releated to U_EXPORT2 */
#define U_EXPORT2
#define U_IMPORT
/* cygwin needs to export/import data */
#ifdef U_CYGWIN
#define U_DATA_IMPORT __declspec(dllimport)
#define U_IMPORT __declspec(dllimport)
#else
#define U_DATA_IMPORT
#define U_IMPORT
#endif
/*===========================================================================*/

View file

@ -144,7 +144,6 @@ typedef unsigned short uint16_t;
#define U_EXPORT __declspec(dllexport)
#define U_EXPORT2
#define U_IMPORT __declspec(dllimport)
#define U_DATA_IMPORT __declspec(dllimport)
/*===========================================================================*/
/* Code alignment and C function inlining */

View file

@ -43,7 +43,7 @@
U_CAPI const uint8_t
utf8_countTrailBytes[256];
#else
U_CFUNC U_DATA_IMPORT const uint8_t /* U_IMPORT2? */ /*U_IMPORT*/
U_CFUNC U_IMPORT const uint8_t /* U_IMPORT2? */ /*U_IMPORT*/
utf8_countTrailBytes[256];
#endif

View file

@ -40,6 +40,7 @@ DYNAMICCFLAGS = $(SHAREDLIBCFLAGS)
DYNAMICCXXFLAGS = $(SHAREDLIBCXXFLAGS)
CPPFLAGS += -I$(top_builddir)/common -I$(top_srcdir)/common -I$(top_srcdir)/i18n $(LIBCPPFLAGS)
DEFS += -DU_USTDIO_IMPLEMENTATION
LIBS = $(LIBICUUC) $(LIBICUI18N) $(DEFAULT_LIBS)
OBJECTS = locbund.o loccache.o ufile.o ufmt_cmn.o uprintf.o uprntf_p.o \

View file

@ -40,6 +40,7 @@ DYNAMICCFLAGS = $(SHAREDLIBCFLAGS)
DYNAMICCXXFLAGS = $(SHAREDLIBCXXFLAGS)
CPPFLAGS += -I$(srcdir) -I$(top_builddir)/common -I$(top_srcdir)/common $(LIBCPPFLAGS)
DEFS += -DU_I18N_IMPLEMENTATION
LIBS = $(LIBICUUC) $(DEFAULT_LIBS)
OBJECTS = ucln_in.o \

View file

@ -37,6 +37,7 @@ DYNAMICCFLAGS = $(SHAREDLIBCFLAGS)
DYNAMICCXXFLAGS = $(SHAREDLIBCXXFLAGS)
CPPFLAGS += -I$(srcdir) -I$(top_builddir)/common -I$(srcdir)/unicode -I$(srcdir)/.. -I$(top_builddir)/common -I$(top_srcdir)/common $(LIBCPPFLAGS)
DEFS += -DU_LAYOUT_IMPLEMENTATION
LIBS = $(DEFAULT_LIBS)

View file

@ -12,6 +12,12 @@
#include <unicode/umachine.h>
// Just turn off threads on cygwin, so that we can test
// the other stuff. This needs to be investigated further.
#if defined(U_CYGWIN)
#define ICU_USE_THREADS 0
#endif
#if !defined(WIN32) && !defined(XP_MAC) && !defined(U_RHAPSODY)
#define POSIX 1
#endif

View file

@ -34,6 +34,10 @@ static const struct TestNode* currentTest;
typedef enum { RUNTESTS, SHOWTESTS } TestMode;
#define TEST_SEPARATOR '/'
#ifndef C_TEST_IMPL
#define C_TEST_IMPL
#endif
#include "unicode/ctest.h"
static char ERROR_LOG[MAX_TEST_LOG][MAXTESTNAME];

View file

@ -11,9 +11,10 @@
#ifndef CTEST_H
#define CTEST_H
#include "unicode/utypes.h"
/*Deals with imports and exports of the dynamic library*/
#ifdef _WIN32
#if defined(_WIN32) || defined(U_CYGWIN)
#define T_CTEST_EXPORT __declspec(dllexport)
#define T_CTEST_IMPORT __declspec(dllimport)
#else