[geary/mjog/remove-handy-subproj: 2/2] build: Remove libhandy submodule from the build




commit 21bbad375663b7906986c79339f97905bb429572
Author: Michael Gratton <mike vee net>
Date:   Thu Aug 27 08:30:15 2020 +1000

    build: Remove libhandy submodule from the build
    
    Although libhandy-1 is not widely available yet, Damned-Lies is having
    trouble dealing with the submodule and it's more important to get
    translations done than this build convenience, so pull it out.
    
    See Infrastructure/damned-lies#184

 .gitmodules          |  4 ----
 meson.build          | 22 +---------------------
 src/meson.build      | 19 ++++++-------------
 subprojects/libhandy |  1 -
 4 files changed, 7 insertions(+), 39 deletions(-)
---
diff --git a/meson.build b/meson.build
index 30191e750..3870035ea 100644
--- a/meson.build
+++ b/meson.build
@@ -85,7 +85,7 @@ gthread = dependency('gthread-2.0', version: '>=' + target_glib)
 iso_codes = dependency('iso-codes')
 javascriptcoregtk = dependency('javascriptcoregtk-4.0', version: '>=' + target_webkit)
 json_glib = dependency('json-glib-1.0', version: '>= 1.0')
-libhandy = dependency('libhandy-1', version: '>= 0.90', required: false)
+libhandy = dependency('libhandy-1', version: '>= 0.90')
 libmath = cc.find_library('m')
 libpeas = dependency('libpeas-1.0', version: '>= 1.24.0')
 libpeas_gtk = dependency('libpeas-gtk-1.0', version: '>= 1.24.0')
@@ -117,26 +117,6 @@ if libunwind_dep.found()
    )
 endif
 
-# Handy 1.0 is still rather new
-libhandy_vapi = ''
-if not libhandy.found()
-  libhandy_project = subproject(
-    'libhandy',
-    default_options: [
-      'examples=false',
-      'package_subdir=geary',
-      'tests=false',
-    ]
-  )
-  libhandy = declare_dependency(
-    dependencies: [
-      libhandy_project.get_variable('libhandy_dep'),
-      libhandy_project.get_variable('libhandy_vapi')
-    ]
-  )
-  libhandy_vapi = meson.build_root() / 'subprojects' / 'libhandy' / 'src'
-endif
-
 # Optional dependencies
 appstream_util = find_program('appstream-util', required: false)
 desktop_file_validate = find_program('desktop-file-validate', required: false)
diff --git a/src/meson.build b/src/meson.build
index de17d396b..87760e741 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -136,6 +136,11 @@ valadoc_dependencies = [
   webkit2gtk
 ]
 
+valadoc_vapi_dirs = [
+  vapi_dir,
+  meson.current_build_dir()
+]
+
 # Hopefully Meson will get baked-in valadoc support, so we don't have
 # to resort to these kinds of hacks any more. See
 # https://github.com/mesonbuild/meson/issues/894
@@ -143,22 +148,10 @@ valadoc_dependencies = [
 valadoc_dep_args = []
 foreach dep : valadoc_dependencies
   valadoc_dep_args += '--pkg'
-  if dep != libhandy
-    valadoc_dep_args += dep.name()
-  else
-    valadoc_dep_args += 'libhandy-1'
-  endif
+  valadoc_dep_args += dep.name()
 endforeach
 valadoc_dep_args += [ '--pkg', 'posix' ]
 
-valadoc_vapi_dirs = [
-  vapi_dir,
-  meson.current_build_dir()
-]
-if libhandy_vapi != ''
-  valadoc_vapi_dirs += libhandy_vapi
-endif
-
 valadoc_vapidir_args = []
 foreach dir : valadoc_vapi_dirs
   valadoc_vapidir_args += '--vapidir=@0@'.format(dir)


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