mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-14 17:24:01 +00:00
ICU-9665 Fix cross compilation current path issue
X-SVN-Rev: 33067
This commit is contained in:
parent
68d9cedfa8
commit
b6b2fbfa43
5 changed files with 20 additions and 10 deletions
|
@ -1,6 +1,6 @@
|
|||
#******************************************************************************
|
||||
#
|
||||
# Copyright (C) 1998-2012, International Business Machines
|
||||
# Copyright (C) 1998-2013, International Business Machines
|
||||
# Corporation and others. All Rights Reserved.
|
||||
#
|
||||
#******************************************************************************
|
||||
|
@ -52,7 +52,7 @@ ALL_PKGCONFIG_FILES=$(ALL_PKGCONFIG_SUFFIX:%=$(top_builddir)/config/icu-%.pc)
|
|||
INSTALLED_BUILT_FILES = $(top_builddir)/config/Makefile.inc $(top_builddir)/config/pkgdata.inc $(top_builddir)/config/icu-config @platform_make_fragment@ $(EXTRA_DATA:%=$(DESTDIR)$(pkglibdir)/%) $(ALL_PKGCONFIG_FILES)
|
||||
|
||||
## Files built (autoconfed) but not installed
|
||||
LOCAL_BUILT_FILES = icudefs.mk config/icucross.mk
|
||||
LOCAL_BUILT_FILES = icudefs.mk config/icucross.mk config/icucross.inc
|
||||
|
||||
DOCDIRS = common i18n
|
||||
SUBDIRS = stubdata common i18n $(LAYOUT) tools data $(ICUIO) $(EXTRA) $(SAMPLE) $(TEST)
|
||||
|
@ -206,7 +206,7 @@ clean-local:
|
|||
|
||||
distclean-local: clean-local
|
||||
$(RMV) $(top_builddir)/config/Makefile.inc $(top_builddir)/config/pkgdata.inc $(top_builddir)/config/icu-config $(top_builddir)/config/icu.pc $(ALL_PKGCONFIG_FILES)
|
||||
$(RMV) config.cache config.log config.status $(top_builddir)/config/icucross.mk autom4te.cache uconfig.h.prepend
|
||||
$(RMV) config.cache config.log config.status $(top_builddir)/config/icucross.mk $(top_builddir)/config/icucross.inc autom4te.cache uconfig.h.prepend
|
||||
$(RMV) Makefile config/Makefile icudefs.mk $(LIBDIR) $(BINDIR)
|
||||
-$(RMV) dist
|
||||
|
||||
|
@ -238,6 +238,11 @@ config/icucross.mk: $(top_builddir)/icudefs.mk $(top_builddir)/Makefile
|
|||
echo "PKGDATA_INVOKE=$(LDLIBRARYPATH_ENVVAR)=$(LIBRARY_PATH_PREFIX)"'$$(cross_buildroot)/stubdata:$$(cross_buildroot)/tools/ctestfw:$$(TOOLLIBDIR):$$$$'"$(LDLIBRARYPATH_ENVVAR) " ;\
|
||||
echo ) >> $@
|
||||
|
||||
config/icucross.inc: $(top_builddir)/icudefs.mk $(top_builddir)/Makefile @platform_make_fragment@
|
||||
@echo rebuilding $@
|
||||
@(grep '^CURR_FULL_DIR' $(top_builddir)/icudefs.mk ; \
|
||||
grep '^CURR_FULL_DIR' @platform_make_fragment || echo ""; \
|
||||
) > $@
|
||||
|
||||
config/icu.pc: $(srcdir)/config/icu.pc.in
|
||||
cd $(top_builddir) \
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
## Cygwin with Microsoft Visual C++ compiler specific setup
|
||||
## Copyright (c) 2001-2012, International Business Machines Corporation and
|
||||
## Copyright (c) 2001-2013, International Business Machines Corporation and
|
||||
## others. All Rights Reserved.
|
||||
|
||||
# We install sbin tools into the same bin directory because
|
||||
|
@ -125,7 +125,7 @@ LDFLAGSICUTOOLUTIL= /base:"0x4ac00000"# Same as layout. Layout and tools probabl
|
|||
|
||||
# The #M# is used to delete lines for icu-config
|
||||
# Current full path directory.
|
||||
CURR_FULL_DIR=$(subst \,/,$(shell cygpath -da .))#M# -m isn't used because it doesn't work on Win98
|
||||
CURR_FULL_DIR?=$(subst \,/,$(shell cygpath -da .))#M# -m isn't used because it doesn't work on Win98
|
||||
# Current full path directory for use in source code in a -D compiler option.
|
||||
CURR_SRCCODE_FULL_DIR=$(subst \,\\,$(shell cygpath -da .))#M#
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
## -*-makefile-*-
|
||||
## Cygwin/MinGW specific setup
|
||||
## Copyright (c) 2001-2012, International Business Machines Corporation and
|
||||
## Copyright (c) 2001-2013, International Business Machines Corporation and
|
||||
## others. All Rights Reserved.
|
||||
|
||||
# TODO: Finish the rest of this port. This platform port is incomplete.
|
||||
|
@ -83,7 +83,7 @@ LIBICU = $(STATIC_PREFIX_WHEN_USED)$(ICUPREFIX)
|
|||
# The #M# is used to delete lines for icu-config
|
||||
# Current full path directory.
|
||||
#CURR_FULL_DIR=$(shell pwd -W)#M# for MSYS
|
||||
CURR_FULL_DIR=$(subst \,/,$(shell cmd /c cd))#M# for Cygwin shell
|
||||
CURR_FULL_DIR?=$(subst \,/,$(shell cmd /c cd))#M# for Cygwin shell
|
||||
# Current full path directory for use in source code in a -D compiler option.
|
||||
#CURR_SRCCODE_FULL_DIR=$(subst /,\\\\,$(shell pwd -W))#M# for MSYS
|
||||
CURR_SRCCODE_FULL_DIR=$(subst \,/,$(shell cmd /c cd))#M# for Cygwin shell
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
## -*-makefile-*-
|
||||
## Cygwin64/MinGW64 specific setup
|
||||
## Copyright (c) 2012, International Business Machines Corporation and
|
||||
## Copyright (c) 2012-2013, International Business Machines Corporation and
|
||||
## others. All Rights Reserved.
|
||||
|
||||
# TODO: Finish the rest of this port. This platform port is incomplete.
|
||||
|
@ -83,7 +83,7 @@ LIBICU = $(STATIC_PREFIX_WHEN_USED)$(ICUPREFIX)
|
|||
# The #M# is used to delete lines for icu-config
|
||||
# Current full path directory.
|
||||
#CURR_FULL_DIR=$(shell pwd -W)#M# for MSYS
|
||||
CURR_FULL_DIR=$(subst \,/,$(shell cmd /c cd))#M# for Cygwin shell
|
||||
CURR_FULL_DIR?=$(subst \,/,$(shell cmd /c cd))#M# for Cygwin shell
|
||||
# Current full path directory for use in source code in a -D compiler option.
|
||||
#CURR_SRCCODE_FULL_DIR=$(subst /,\\\\,$(shell pwd -W))#M# for MSYS
|
||||
CURR_SRCCODE_FULL_DIR=$(subst \,/,$(shell cmd /c cd))#M# for Cygwin shell
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#
|
||||
# Yves Arrouye.
|
||||
#
|
||||
# Copyright (C) 2000-2012, International Business Machines Corporation and others.
|
||||
# Copyright (C) 2000-2013, International Business Machines Corporation and others.
|
||||
# All Rights Reserved.
|
||||
|
||||
#
|
||||
|
@ -279,6 +279,11 @@ INVOKE = $(LDLIBRARYPATH_ENVVAR)=$(LIBRARY_PATH_PREFIX)$(LIBDIR):$(top_builddir)
|
|||
PKGDATA_INVOKE = $(LDLIBRARYPATH_ENVVAR)=$(top_builddir)/stubdata:$(top_builddir)/tools/ctestfw:$(LIBRARY_PATH_PREFIX)$(LIBDIR):$$$(LDLIBRARYPATH_ENVVAR) $(LEAK_CHECKER)
|
||||
INSTALLED_INVOKE = $(LDLIBRARYPATH_ENVVAR)=$(libdir):$$$(LDLIBRARYPATH_ENVVAR)
|
||||
|
||||
# Current full path directory for cross compilation
|
||||
ifneq ($(strip $(cross_buildroot)),)
|
||||
include $(cross_buildroot)/config/icucross.inc
|
||||
endif
|
||||
|
||||
# Platform-specific setup
|
||||
include @platform_make_fragment@
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue