Part of https://github.com/harfbuzz/harfbuzz/issues/1652
#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
#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"
#include "hb.hh"
+#ifndef HB_NO_OT_TAG
+
/* hb_script_t */
}
#endif
+
+
+#endif
#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>