X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/51004dcb01e06fef634b61be77ed73dd61cb6db9..a01113dcd0f39d5da295ef82785beff9ed86fe38:/icuSources/icudefs.mk.in?ds=inline diff --git a/icuSources/icudefs.mk.in b/icuSources/icudefs.mk.in index 65287028..59d82052 100644 --- a/icuSources/icudefs.mk.in +++ b/icuSources/icudefs.mk.in @@ -2,12 +2,14 @@ # # Yves Arrouye. # -# Copyright (C) 2000-2013, International Business Machines Corporation and others. +# Copyright (C) 2016 and later: Unicode, Inc. and others. +# License & terms of use: http://www.unicode.org/copyright.html +# Copyright (C) 2000-2016, International Business Machines Corporation and others. # All Rights Reserved. # # Some of these variables are overridden in the config/mh-* files. -# +# # Please be sure to update config/Makefile.inc.in if you add something here. # @@ -15,6 +17,9 @@ SHELL = @SHELL@ +# Instruct Python to never write any byte code to the ICU source tree. +export PYTHONDONTWRITEBYTECODE = 1 + # Standard directories prefix = @prefix@ @@ -116,6 +121,7 @@ ARFLAGS = @ARFLAGS@ r RANLIB = @RANLIB@ COMPILE_LINK_ENVVAR = @COMPILE_LINK_ENVVAR@ UCLN_NO_AUTO_CLEANUP = @UCLN_NO_AUTO_CLEANUP@ +SED = @SED@ # Various flags for the tools @@ -165,8 +171,8 @@ COMPILE.c= $(CC) $(CPPFLAGS) $(DEFS) $(CFLAGS) -c COMPILE.cc= $(CXX) $(CPPFLAGS) $(DEFS) $(CXXFLAGS) -c # Commands to link -LINK.c= $(CC) $(CFLAGS) $(LDFLAGS) -LINK.cc= $(CXX) $(CXXFLAGS) $(LDFLAGS) +LINK.c= $(CC) $(CFLAGS) $(LDFLAGS) $(LINKFLAGS) +LINK.cc= $(CXX) $(CXXFLAGS) $(LDFLAGS) $(LINKFLAGS) # Commands to make a shared library SHLIB.c= $(CC) $(CFLAGS) $(LDFLAGS) -shared $(LD_SOOPTIONS) @@ -243,17 +249,30 @@ TOOLLIBDIR=$(LIBDIR) DATA_STUBNAME = data COMMON_STUBNAME = uc I18N_STUBNAME = i18n -LAYOUT_STUBNAME = le LAYOUTEX_STUBNAME = lx IO_STUBNAME = io TOOLUTIL_STUBNAME = tu CTESTFW_STUBNAME = test +# get these from pkg-config, if available +ICULEHB_CFLAGS=@ICULEHB_CFLAGS@ +ICULEHB_LIBS=@ICULEHB_LIBS@ +ifneq ($(ICULEHB_CFLAGS),) +USING_ICULEHB=yes +ICULEHB_TRUE= +ICULEHB_FALSE=# +ICULIBS_LE=$(ICULEHB_LIBS) +ICULE_CFLAGS=$(ICULEHB_CFLAGS) -DUSING_ICULEHB +else +USING_ICULEHB=no +ICULEHB_TRUE=# +ICULEHB_FALSE= +endif + # Just the libs. ICULIBS_DT = -l$(STATIC_PREFIX_WHEN_USED)$(ICUPREFIX)$(DATA_STUBNAME)$(ICULIBSUFFIX)$(SO_TARGET_VERSION_SUFFIX) ICULIBS_UC = -l$(STATIC_PREFIX_WHEN_USED)$(ICUPREFIX)$(COMMON_STUBNAME)$(ICULIBSUFFIX)$(SO_TARGET_VERSION_SUFFIX) ICULIBS_I18N = -l$(STATIC_PREFIX_WHEN_USED)$(ICUPREFIX)$(I18N_STUBNAME)$(ICULIBSUFFIX)$(SO_TARGET_VERSION_SUFFIX) -ICULIBS_LE = -l$(STATIC_PREFIX_WHEN_USED)$(ICUPREFIX)$(LAYOUT_STUBNAME)$(ICULIBSUFFIX)$(SO_TARGET_VERSION_SUFFIX) ICULIBS_LX = -l$(STATIC_PREFIX_WHEN_USED)$(ICUPREFIX)$(LAYOUTEX_STUBNAME)$(ICULIBSUFFIX)$(SO_TARGET_VERSION_SUFFIX) ICULIBS_IO = -l$(STATIC_PREFIX_WHEN_USED)$(ICUPREFIX)$(IO_STUBNAME)$(ICULIBSUFFIX)$(SO_TARGET_VERSION_SUFFIX) ICULIBS_CTESTFW = -l$(STATIC_PREFIX_WHEN_USED)$(ICUPREFIX)$(CTESTFW_STUBNAME)$(ICULIBSUFFIX)$(SO_TARGET_VERSION_SUFFIX) @@ -266,7 +285,7 @@ LCTESTFW = -L$(top_builddir)/tools/ctestfw LIBICUDT = $(LLIBDIR) $(LSTUBDIR) $(ICULIBS_DT) LIBICUUC = $(LLIBDIR) $(ICULIBS_UC) $(LSTUBDIR) $(ICULIBS_DT) LIBICUI18N = $(LLIBDIR) $(ICULIBS_I18N) -LIBICULE = $(LLIBDIR) $(ICULIBS_LE) +LIBICULE = $(ICULEHB_CFLAGS) $(LLIBDIR) $(ICULIBS_LE) LIBICULX = $(LLIBDIR) $(ICULIBS_LX) LIBCTESTFW = $(LCTESTFW) $(ICULIBS_CTESTFW) LIBICUTOOLUTIL = $(LLIBDIR) $(ICULIBS_TOOLUTIL) @@ -306,5 +325,10 @@ else cross_buildroot = $(top_builddir) endif +# for tests +ifneq ($(TEST_STATUS_FILE),) +TEST_OUTPUT_OPTS="-E$(TEST_STATUS_FILE)" +endif + # optional include at top -include $(top_builddir)/icudefs.local