From f9df7dddf5602b6ed6ab4dc0900adf5a3a40346e Mon Sep 17 00:00:00 2001 From: Michael Gratton Date: Thu, 27 Aug 2020 08:30:15 +1000 Subject: [PATCH] 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(-) delete mode 100644 .gitmodules delete mode 160000 subprojects/libhandy diff --git a/.gitmodules b/.gitmodules deleted file mode 100644 index 69a8a2ff..00000000 --- a/.gitmodules +++ /dev/null @@ -1,4 +0,0 @@ -[submodule "subprojects/libhandy"] - path = subprojects/libhandy - url = https://gitlab.gnome.org/GNOME/libhandy.git - branch = master diff --git a/meson.build b/meson.build index 30191e75..3870035e 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 de17d396..87760e74 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) diff --git a/subprojects/libhandy b/subprojects/libhandy deleted file mode 160000 index d22356ef..00000000 --- a/subprojects/libhandy +++ /dev/null @@ -1 +0,0 @@ -Subproject commit d22356ef5f0cc6c6080896ae5611677d59849f51