Commit bd9fb431 authored by Aleix Pol's avatar Aleix Pol Committed by Albert Astals Cid

Make it possible to build poppler on Android without fontconfig

Didn't manage to make fontconfig build, still nice to have poppler
available.
parent 34a44e5b
......@@ -89,10 +89,13 @@ endif()
if(WIN32)
set(_default_fontconfiguration "win32")
elseif(ANDROID)
# on android we don't have fontconfig and we don't want window-specific code
set(_default_fontconfiguration "generic")
else()
set(_default_fontconfiguration "fontconfig")
endif()
set(FONT_CONFIGURATION "${_default_fontconfiguration}" CACHE STRING "The font configuration backend (win32|fontconfig).")
set(FONT_CONFIGURATION "${_default_fontconfiguration}" CACHE STRING "The font configuration backend (win32|generic|fontconfig).")
string(TOLOWER "${FONT_CONFIGURATION}" font_configuration)
set(WITH_FONTCONFIGURATION_WIN32 OFF)
set(WITH_FONTCONFIGURATION_FONTCONFIG OFF)
......@@ -100,6 +103,8 @@ if(font_configuration STREQUAL "win32")
set(WITH_FONTCONFIGURATION_WIN32 ON)
elseif(font_configuration STREQUAL "fontconfig")
set(WITH_FONTCONFIGURATION_FONTCONFIG ON)
elseif(font_configuration STREQUAL "generic")
message(STATUS "no fontconfig or win32 specific code")
else()
message(FATAL_ERROR "Invalid font configuration setting: ${FONT_CONFIGURATION}")
endif()
......
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