Kaydet (Commit) b6cbb150 authored tarafından Zolnai Tamás's avatar Zolnai Tamás

Freetype is needed by libgltf on all platforms

Change-Id: I042cbc5f4cabfa7ec387594189e2f86be6ec7fbf
üst ec95e6a1
......@@ -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@
......
......@@ -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) \
&& chmod +x builds/unix/freetype-config \
&& $(MAKE) install \
&& touch $@
--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 $@ )
# vim: set noet sw=4 ts=4:
......@@ -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 \
......
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
tools, and many other products as well.
From [http://freetype.sourceforge.net/freetype2/index.html]
\ No newline at end of file
From [http://freetype.sourceforge.net/freetype2/index.html]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment