You need to sign in or sign up before continuing.
提交 d9afa111 编写于 作者: B Behdad Esfahbod

Build hb-icu into libharfbuzz-icu.so

上级 7d395c2a
...@@ -137,13 +137,6 @@ hb-gobject-enums.cc: hb-gobject-enums.cc.tmpl $(HBHEADERS) ...@@ -137,13 +137,6 @@ hb-gobject-enums.cc: hb-gobject-enums.cc.tmpl $(HBHEADERS)
mv "$@.tmp" "$@" || ( $(RM) "@.tmp" && false ) mv "$@.tmp" "$@" || ( $(RM) "@.tmp" && false )
endif endif
if HAVE_ICU
HBCFLAGS += $(ICU_CFLAGS)
HBLIBS += $(ICU_LIBS)
HBSOURCES += hb-icu.cc
HBHEADERS += hb-icu.h
endif
if HAVE_FREETYPE if HAVE_FREETYPE
HBCFLAGS += $(FREETYPE_CFLAGS) HBCFLAGS += $(FREETYPE_CFLAGS)
HBLIBS += $(FREETYPE_LIBS) HBLIBS += $(FREETYPE_LIBS)
...@@ -204,7 +197,7 @@ export_symbols = -export-symbols harfbuzz.def ...@@ -204,7 +197,7 @@ export_symbols = -export-symbols harfbuzz.def
harfbuzz_def_dependency = harfbuzz.def harfbuzz_def_dependency = harfbuzz.def
libharfbuzz_la_LINK = $(CXXLINK) $(libharfbuzz_la_LDFLAGS) libharfbuzz_la_LINK = $(CXXLINK) $(libharfbuzz_la_LDFLAGS)
else else
if HAVE_ICU if HAVE_ICU_LE
libharfbuzz_la_LINK = $(CXXLINK) $(libharfbuzz_la_LDFLAGS) libharfbuzz_la_LINK = $(CXXLINK) $(libharfbuzz_la_LDFLAGS)
else else
# Use a C linker for GCC, not C++; Don't link to libstdc++ # Use a C linker for GCC, not C++; Don't link to libstdc++
...@@ -225,6 +218,16 @@ EXTRA_libharfbuzz_la_DEPENDENCIES = $(harfbuzz_def_dependency) ...@@ -225,6 +218,16 @@ EXTRA_libharfbuzz_la_DEPENDENCIES = $(harfbuzz_def_dependency)
pkginclude_HEADERS = $(HBHEADERS) pkginclude_HEADERS = $(HBHEADERS)
nodist_pkginclude_HEADERS = $(HBNODISTHEADERS) nodist_pkginclude_HEADERS = $(HBNODISTHEADERS)
if HAVE_ICU
lib_LTLIBRARIES += libharfbuzz-icu.la
libharfbuzz_icu_la_SOURCES = hb-icu.cc
libharfbuzz_icu_la_CPPFLAGS = $(ICU_CFLAGS)
libharfbuzz_icu_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(HB_LIBTOOL_VERSION_INFO) -no-undefined
libharfbuzz_icu_la_LIBADD = $(ICU_LIBS) libharfbuzz.la
pkginclude_HEADERS += hb-icu.h
endif
CLEANFILES += harfbuzz.def CLEANFILES += harfbuzz.def
harfbuzz.def: $(HBHEADERS) $(HBNODISTHEADERS) harfbuzz.def: $(HBHEADERS) $(HBNODISTHEADERS)
$(AM_V_GEN) (echo EXPORTS; \ $(AM_V_GEN) (echo EXPORTS; \
...@@ -313,14 +316,12 @@ dist_check_SCRIPTS = \ ...@@ -313,14 +316,12 @@ dist_check_SCRIPTS = \
check-symbols.sh \ check-symbols.sh \
$(NULL) $(NULL)
if HAVE_ICU
else
dist_check_SCRIPTS += check-libstdc++.sh
endif
if HAVE_ICU_LE if HAVE_ICU_LE
else else
dist_check_SCRIPTS += check-static-inits.sh dist_check_SCRIPTS += \
check-libstdc++.sh \
check-static-inits.sh \
$(NULL)
endif endif
TESTS = $(dist_check_SCRIPTS) TESTS = $(dist_check_SCRIPTS)
......
...@@ -133,7 +133,7 @@ hb_unicode_funcs_get_default (void) ...@@ -133,7 +133,7 @@ hb_unicode_funcs_get_default (void)
#ifdef HAVE_GLIB #ifdef HAVE_GLIB
HB_UNICODE_FUNCS_IMPLEMENT(glib) HB_UNICODE_FUNCS_IMPLEMENT(glib)
#elif defined(HAVE_ICU) #elif 0 && defined(HAVE_ICU)
HB_UNICODE_FUNCS_IMPLEMENT(icu) HB_UNICODE_FUNCS_IMPLEMENT(icu)
#elif defined(HAVE_UCDN) #elif defined(HAVE_UCDN)
HB_UNICODE_FUNCS_IMPLEMENT(ucdn) HB_UNICODE_FUNCS_IMPLEMENT(ucdn)
......
...@@ -33,6 +33,7 @@ test_unicode_CPPFLAGS += $(GLIB_CFLAGS) ...@@ -33,6 +33,7 @@ test_unicode_CPPFLAGS += $(GLIB_CFLAGS)
endif endif
if HAVE_ICU if HAVE_ICU
test_unicode_CPPFLAGS += $(ICU_CFLAGS) test_unicode_CPPFLAGS += $(ICU_CFLAGS)
test_unicode_LDADD = $(LDADD) $(top_builddir)/src/libharfbuzz-icu.la
endif endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册