summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorNikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>2019-06-28 01:01:17 +0530
committerWerner Lemberg <wl@gnu.org>2019-08-27 09:09:48 +0200
commit9443a1bc3e6cfa315db976ff80f6c5e91b12b387 (patch)
treea7904f3e6f52c9b3d772c5af6657e36ba2a30031 /devel
parent76c64f6ba1eb66cb983f38e03f39e179ceb74487 (diff)
downloadfreetype2-9443a1bc3e6cfa315db976ff80f6c5e91b12b387.tar.gz
Add Brotli dependency and required checks.
Brotli is required for decompressing WOFF2 font directory streams. The library is thus being added as an optional dependency for FreeType. * builds/unix/configure.raw: Add checks for `libbrotlidec'. (REQUIRES_PRIVATE, LIBS_PRIVATE, LIBSSTATIC_CONFIG): Updated. * devel/ftoption.h, include/freetype/config/ftoption.h (FT_CONFIG_OPTION_USE_BROTLI): New macro.
Diffstat (limited to 'devel')
-rw-r--r--devel/ftoption.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/devel/ftoption.h b/devel/ftoption.h
index 16cf4e126..ef8d5e56f 100644
--- a/devel/ftoption.h
+++ b/devel/ftoption.h
@@ -294,6 +294,22 @@ FT_BEGIN_HEADER
/**************************************************************************
*
+ * Brotli support.
+ *
+ * FreeType uses the Brotli library to provide support for decompressing
+ * WOFF2 streams.
+ *
+ * Define this macro if you want to enable this 'feature'.
+ *
+ * If you use a build system like cmake or the `configure` script,
+ * options set by those programs have precedence, overwriting the value
+ * here with the configured one.
+ */
+#define FT_CONFIG_OPTION_USE_BROTLI
+
+
+ /**************************************************************************
+ *
* Glyph Postscript Names handling
*
* By default, FreeType 2 is compiled with the 'psnames' module. This