[pango/pango2: 58/195] Drop pangoot




commit 312ed16cf1b7f1e2073eba73ea2f0221a60a1f3e
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Jan 10 13:54:33 2022 -0500

    Drop pangoot

 pango/meson.build        |  45 +----
 pango/pango-ot-buffer.c  | 229 -------------------------
 pango/pango-ot-info.c    | 325 ------------------------------------
 pango/pango-ot-private.h |  89 ----------
 pango/pango-ot-ruleset.c | 407 --------------------------------------------
 pango/pango-ot-tag.c     | 135 ---------------
 pango/pango-ot.h         | 427 -----------------------------------------------
 tests/testmisc.c         |  29 ----
 8 files changed, 3 insertions(+), 1683 deletions(-)
---
diff --git a/pango/meson.build b/pango/meson.build
index 3826f949..d90f0976 100644
--- a/pango/meson.build
+++ b/pango/meson.build
@@ -193,17 +193,6 @@ if build_pangoft2
     'pango-trace.c',
   ]
 
-  pangoot_headers = [
-    'pango-ot.h',
-  ]
-
-  pangoot_public_sources = [
-    'pango-ot-buffer.c',
-    'pango-ot-info.c',
-    'pango-ot-ruleset.c',
-    'pango-ot-tag.c',
-  ]
-
   pangoft2_headers = [
     'pangoft2.h',
   ]
@@ -214,7 +203,7 @@ if build_pangoft2
     'pangoft2.c',
   ]
 
-  pangoft2_sources = pangofc_public_sources + pangoot_public_sources + pangoft2_public_sources
+  pangoft2_sources = pangofc_public_sources + pangoft2_public_sources
 
   if host_system == 'windows'
     pangoft2_rc = configure_file(
@@ -226,7 +215,7 @@ if build_pangoft2
     pangoft2_sources += pangoft2_res
   endif
 
-  install_headers(pangoft2_headers + pangofc_headers + pangoot_headers, subdir: pango_api_path)
+  install_headers(pangoft2_headers + pangofc_headers, subdir: pango_api_path)
 
   libpangoft2 = library(
     'pangoft2-@0@'.format(pango_api_version),
@@ -263,28 +252,10 @@ if build_pangoft2
     pangofc_gir_dep = declare_dependency(sources: pangofc_gir)
     pangoft2_dep_sources += pangofc_gir
 
-    # Deprecated API, still needed for PangoXft
-    pangoot_gir = gnome.generate_gir(
-      libpangoft2,
-      sources: pangoot_headers + pangoot_public_sources,
-      dependencies: [ libpango_dep, pango_gir_dep, pangofc_gir_dep ],
-      namespace: 'PangoOT',
-      nsversion: pango_api_version,
-      identifier_prefix: 'PangoOT',
-      symbol_prefix: 'pango_ot',
-      export_packages: 'pangoot',
-      includes: [ pangofc_gir[0], 'freetype2-2.0', ],
-      header: 'pango/pango-ot.h',
-      install: true,
-      extra_args: gir_args,
-    )
-    pangoot_gir_dep = declare_dependency(sources: pangoot_gir)
-    pangoft2_dep_sources += pangoot_gir
-
     pangoft2_gir = gnome.generate_gir(
       libpangoft2,
       sources: pangoft2_headers + pangoft2_public_sources,
-      dependencies: [ libpango_dep, pango_gir_dep, pangofc_gir_dep, pangoot_gir_dep ],
+      dependencies: [ libpango_dep, pango_gir_dep, pangofc_gir_dep ],
       namespace: 'PangoFT2',
       nsversion: pango_api_version,
       identifier_prefix: 'PangoFT2',
@@ -315,16 +286,6 @@ if build_pangoft2
     requires: [ 'pango', freetype2_pc, fontconfig_pc ],
   )
 
-  # Since we split the introspection data, we also need a split pkg-config
-  # file for Vala
-  pkgconfig.generate(
-    name: 'Pango OT',
-    description: 'OpenType font support for Pango (deprecated)',
-    filebase: 'pangoot',
-    subdirs: pango_api_name,
-    requires: [ 'pangoft2' ],
-  )
-
   pkgconfig.generate(
     name: 'Pango FC',
     description: 'Fontconfig support for Pango',
diff --git a/tests/testmisc.c b/tests/testmisc.c
index 1aa90948..c1eadc58 100644
--- a/tests/testmisc.c
+++ b/tests/testmisc.c
@@ -23,10 +23,6 @@
 #include <glib.h>
 #include <pango/pangocairo.h>
 
-#ifdef HAVE_CAIRO_FREETYPE
-#include <pango/pango-ot.h>
-#endif
-
 /* test that we don't crash in shape_tab when the layout
  * is such that we don't have effective attributes
  */
@@ -388,28 +384,6 @@ test_gravity_for_script (void)
     }
 }
 
-#ifdef HAVE_CAIRO_FREETYPE
-G_GNUC_BEGIN_IGNORE_DEPRECATIONS
-
-static void
-test_language_to_tag (void)
-{
-  PangoLanguage *lang;
-  PangoOTTag tag;
-  PangoLanguage *lang2;
-
-  lang = pango_language_from_string ("de");
-
-  tag = pango_ot_tag_from_language (lang);
-
-  lang2 = pango_ot_tag_to_language (tag);
-
-  g_assert_true (lang2 == lang);
-}
-
-G_GNUC_END_IGNORE_DEPRECATIONS
-#endif
-
 static void
 test_fallback_shape (void)
 {
@@ -841,9 +815,6 @@ main (int argc, char *argv[])
   g_test_add_func ("/gravity/from-matrix", test_gravity_from_matrix);
   g_test_add_func ("/gravity/for-script", test_gravity_for_script);
   g_test_add_func ("/layout/fallback-shape", test_fallback_shape);
-#ifdef HAVE_CAIRO_FREETYPE
-  g_test_add_func ("/language/to-tag", test_language_to_tag);
-#endif
   g_test_add_func ("/bidi/get-cursor-crash", test_get_cursor_crash);
   g_test_add_func ("/bidi/get-cursor", test_get_cursor);
   g_test_add_func ("/layout/index-to-x", test_index_to_x);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]