[config] Add HB_NO_OT_LAYOUT
authorBehdad Esfahbod <behdad@behdad.org>
Wed, 26 Jun 2019 20:29:58 +0000 (13:29 -0700)
committerBehdad Esfahbod <behdad@behdad.org>
Wed, 26 Jun 2019 20:29:58 +0000 (13:29 -0700)
Part of https://github.com/harfbuzz/harfbuzz/issues/1652

src/hb-config.hh
src/hb-ot-layout.cc
src/hb-ot-map.cc

index e364a6a..1faeca2 100644 (file)
 
 #ifdef HB_NO_OT
 #define HB_NO_OT_FONT
+#define HB_NO_OT_LAYOUT
 #define HB_NO_OT_SHAPE
 #endif
 
index 10b9ba0..846c2b0 100644 (file)
  * Google Author(s): Behdad Esfahbod
  */
 
+#include "hb.hh"
+
+#ifndef HB_NO_OT_LAYOUT
+
 #include "hb-open-type.hh"
 #include "hb-ot-layout.hh"
 #include "hb-ot-face.hh"
@@ -2000,3 +2004,6 @@ hb_ot_layout_get_baseline (hb_font_t               *font,
                           hb_position_t           *coord        /* OUT.  May be NULL. */);
 
 #endif
+
+
+#endif
index 92d70bb..b0bc472 100644 (file)
  * Google Author(s): Behdad Esfahbod
  */
 
+#include "hb.hh"
+
+#ifndef HB_NO_OT_SHAPE
+
 #include "hb-ot-map.hh"
 #include "hb-ot-shape.hh"
 #include "hb-ot-layout.hh"
@@ -332,3 +336,6 @@ hb_ot_map_builder_t::compile (hb_ot_map_t                  &m,
     }
   }
 }
+
+
+#endif