[gnome-characters/wip/jtojnar/post-install: 10/10] build: Use install_symlink() function




commit e124901fafcd030cd2365ca7f8f226d9606856b4
Author: Jan Tojnar <jtojnar gmail com>
Date:   Thu Sep 8 14:54:07 2022 +0200

    build: Use install_symlink() function
    
    This removes explicit Python dependency.
    Raises required Meson version to 0.61.0.

 meson.build           |  9 +--------
 meson_post_install.py | 17 -----------------
 src/meson.build       |  5 +++++
 3 files changed, 6 insertions(+), 25 deletions(-)
---
diff --git a/meson.build b/meson.build
index a2f6f9f..6f82c2d 100644
--- a/meson.build
+++ b/meson.build
@@ -3,7 +3,7 @@ project(
   version: '44.alpha',
   license: ['BSD-3-Clause', 'GPL-2.0-or-later'],
   default_options: 'buildtype=debugoptimized',
-  meson_version: '>= 0.59.0'
+  meson_version: '>= 0.61.0'
 )
 
 if get_option('profile') == 'development'
@@ -81,13 +81,6 @@ configure_file(
   configuration: configuration_data()
 )
 
-meson.add_install_script(
-  'meson_post_install.py',
-  characters_bindir,
-  characters_pkgdatadir,
-  application_id
-)
-
 gnome.post_install(
   gtk_update_icon_cache: true,
   glib_compile_schemas: true,
diff --git a/src/meson.build b/src/meson.build
index d9cb676..9591b28 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -13,6 +13,11 @@ configure_file(
     install_dir: characters_pkgdatadir
 )
 
+install_symlink(
+  'gnome-characters',
+  install_dir: characters_bindir,
+  pointing_to: characters_pkgdatadir / application_id,
+)
 
 resource_data = files(
   'characterDialog.js',


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