Build rules for FreeType 2.9.1

Change-Id: I26b4a399bce6bf2b35d9e6fe1c412ed47dd28f29
diff --git a/BUILD.gn b/BUILD.gn
index e3717db..1482002 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -30,6 +30,15 @@
   include_dirs = [
     "include",
   ]
+
+  cflags = []
+
+  if (is_clang) {
+    cflags += [
+      "-Wno-unused-function",
+      "-Wno-unused-variable",
+    ]
+  }
 }
 
 #TODO(mikejurka): Remove once we've migrated to the freetype2 target everywhere
@@ -45,12 +54,10 @@
     "src/base/ftbase.c",
     "src/base/ftbbox.c",
     "src/base/ftbitmap.c",
-    "src/base/ftfntfmt.c",
     "src/base/ftfstype.c",
     "src/base/ftgasp.c",
     "src/base/ftglyph.c",
     "src/base/ftinit.c",
-    "src/base/ftlcdfil.c",
     "src/base/ftmm.c",
     "src/base/ftstroke.c",
     "src/base/ftsystem.c",
diff --git a/include/freetype-fuchsia-config/ftoption.h b/include/freetype-fuchsia-config/ftoption.h
index 2499196..312eafb 100644
--- a/include/freetype-fuchsia-config/ftoption.h
+++ b/include/freetype-fuchsia-config/ftoption.h
@@ -693,6 +693,24 @@
 
 
   /*************************************************************************/
+  /*                                                                       */
+  /* Option TT_CONFIG_OPTION_MAX_RUNNABLE_OPCODES controls the maximum     */
+  /* number of bytecode instructions executed for a single run of the      */
+  /* bytecode interpreter, needed to prevent infinite loops.  You don't    */
+  /* want to change this except for very special situations (e.g., making  */
+  /* a library fuzzer spend less time to handle broken fonts).             */
+  /*                                                                       */
+  /* It is not expected that this value is ever modified by a configuring  */
+  /* script; instead, it gets surrounded with #ifndef ... #endif so that   */
+  /* the value can be set as a preprocessor option on the compiler's       */
+  /* command line.                                                         */
+  /*                                                                       */
+#ifndef TT_CONFIG_OPTION_MAX_RUNNABLE_OPCODES
+#define TT_CONFIG_OPTION_MAX_RUNNABLE_OPCODES  1000000L
+#endif
+
+
+  /*************************************************************************/
   /*************************************************************************/
   /****                                                                 ****/
   /****      T Y P E 1   D R I V E R    C O N F I G U R A T I O N       ****/