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

src/hb-config.hh
src/hb-ot-layout.cc
src/hb-ot-tag.cc
src/hb-uniscribe.cc

index 38a685e..adf2b33 100644 (file)
 #ifdef HB_NO_OT
 #define HB_NO_OT_FONT
 #define HB_NO_OT_LAYOUT
+#define HB_NO_OT_TAG
 #define HB_NO_OT_SHAPE
 #endif
 
index 63ccab8..98cd109 100644 (file)
 
 #ifndef HB_NO_OT_LAYOUT
 
+#ifdef HB_NO_OT_TAG
+#error "Cannot compile hb-ot-layout.cc with HB_NO_OT_TAG."
+#endif
+
 #include "hb-open-type.hh"
 #include "hb-ot-layout.hh"
 #include "hb-ot-face.hh"
index e630458..8ad917a 100644 (file)
@@ -28,6 +28,8 @@
 
 #include "hb.hh"
 
+#ifndef HB_NO_OT_TAG
+
 
 /* hb_script_t */
 
@@ -548,3 +550,6 @@ main ()
 }
 
 #endif
+
+
+#endif
index 88f4294..5c7ff87 100644 (file)
 
 #ifdef HAVE_UNISCRIBE
 
+#ifdef HB_NO_OT_TAG
+#error "Cannot compile 'uniscribe' shaper with HB_NO_OT_TAG."
+#endif
+
 #include "hb-shaper-impl.hh"
 
 #include <windows.h>