Freetype is needed by libgltf on all platforms
Change-Id: I042cbc5f4cabfa7ec387594189e2f86be6ec7fbf
This commit is contained in:
parent
ec95e6a17c
commit
b6cbb15026
@ -1254,7 +1254,7 @@ endef
|
||||
|
||||
gb_ExternalProject__use_freetype :=
|
||||
|
||||
else ifeq ($(OS),ANDROID)
|
||||
else ifneq (,$(or $(filter-out ANDROID,$(OS)),$(ENABLE_GLTF)))
|
||||
|
||||
define gb_LinkTarget__use_freetype_headers
|
||||
$(call gb_LinkTarget_use_external_project,$(1),freetype)
|
||||
|
@ -126,6 +126,7 @@ export ENABLE_GNOMEVFS=@ENABLE_GNOMEVFS@
|
||||
export ENABLE_GRAPHITE=@ENABLE_GRAPHITE@
|
||||
export ENABLE_ORCUS=@ENABLE_ORCUS@
|
||||
export ENABLE_HARFBUZZ=@ENABLE_HARFBUZZ@
|
||||
export ENABLE_GLTF=@ENABLE_GLTF@
|
||||
export ENABLE_GSTREAMER=@ENABLE_GSTREAMER@
|
||||
export ENABLE_GSTREAMER_0_10=@ENABLE_GSTREAMER_0_10@
|
||||
export ENABLE_GTK3=@ENABLE_GTK3@
|
||||
|
17
configure.ac
17
configure.ac
@ -10359,6 +10359,23 @@ fi
|
||||
|
||||
AC_SUBST(ENABLE_OPENCL)
|
||||
|
||||
dnl ===================================================================
|
||||
dnl Check whether to enable glTF support
|
||||
dnl ===================================================================
|
||||
|
||||
ENABLE_GLTF=
|
||||
AC_MSG_CHECKING([whether to enable glTF support])
|
||||
if test "$enable_opengl" = "yes"; then
|
||||
ENABLE_GLTF=TRUE
|
||||
AC_MSG_RESULT([yes])
|
||||
if test "$test_freetype" = "no"; then
|
||||
BUILD_TYPE="$BUILD_TYPE FREETYPE"
|
||||
fi
|
||||
else
|
||||
AC_MSG_RESULT([no])
|
||||
fi
|
||||
AC_SUBST(ENABLE_GLTF)
|
||||
|
||||
# pdf import?
|
||||
AC_MSG_CHECKING([whether to build the PDF import feature])
|
||||
ENABLE_PDFIMPORT=
|
||||
|
@ -14,16 +14,16 @@ $(eval $(call gb_ExternalProject_register_targets,freetype,\
|
||||
))
|
||||
|
||||
$(call gb_ExternalProject_get_state_target,freetype,build) :
|
||||
cd $(EXTERNAL_WORKDIR) \
|
||||
&& CFLAGS="$(if $(debug),-g) $(gb_VISIBILITY_FLAGS)" \
|
||||
$(call gb_ExternalProject_run,build,\
|
||||
./configure \
|
||||
--disable-shared \
|
||||
--without-zlib \
|
||||
--without-bzip2 \
|
||||
--prefix=$(call gb_UnpackedTarball_get_dir,freetype/instdir) \
|
||||
--build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM) \
|
||||
CFLAGS="$(if $(debug),-g) $(gb_VISIBILITY_FLAGS)" \
|
||||
&& chmod +x builds/unix/freetype-config \
|
||||
&& $(MAKE) install \
|
||||
&& touch $@
|
||||
&& touch $@ )
|
||||
|
||||
# vim: set noet sw=4 ts=4:
|
||||
|
2
external/freetype/Module_freetype.mk
vendored
2
external/freetype/Module_freetype.mk
vendored
@ -9,7 +9,7 @@
|
||||
|
||||
$(eval $(call gb_Module_Module,freetype))
|
||||
|
||||
ifeq ($(OS),ANDROID)
|
||||
ifneq (,$(or $(filter-out ANDROID,$(OS)),$(ENABLE_GLTF)))
|
||||
|
||||
$(eval $(call gb_Module_add_targets,freetype,\
|
||||
ExternalProject_freetype \
|
||||
|
2
external/freetype/README
vendored
2
external/freetype/README
vendored
@ -1,5 +1,3 @@
|
||||
This "bundled" freetype is built only in an Android build
|
||||
|
||||
FreeType 2 is a software font engine that is designed to be small, efficient, highly customizable,
|
||||
and portable while capable of producing high-quality output (glyph images). It can be
|
||||
used in graphics libraries, display servers, font conversion tools, text image generation
|
||||
|
Loading…
x
Reference in New Issue
Block a user