[gnome-sound-recorder] build: Use install_symlink
- From: Bilal Elmoussaoui <bilelmoussaoui src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-sound-recorder] build: Use install_symlink
- Date: Tue, 6 Sep 2022 12:01:34 +0000 (UTC)
commit 1c81ebbc367a9a8390eb186c0a5574d730a483d8
Author: Marko Milic <hae marko gmail com>
Date: Tue Sep 6 12:01:33 2022 +0000
build: Use install_symlink
build-aux/meson_post_install.py | 18 ------------------
meson.build | 28 ++++++++++++++++------------
2 files changed, 16 insertions(+), 30 deletions(-)
---
diff --git a/meson.build b/meson.build
index c862661..48c1175 100644
--- a/meson.build
+++ b/meson.build
@@ -2,9 +2,10 @@ project(
'gnome-sound-recorder',
version: '43.beta',
license: 'GPL2+',
- meson_version: '>= 0.59.0',
+ meson_version: '>= 0.63.0',
)
+
if get_option('profile') == 'development'
profile = 'Devel'
name_suffix = ' (Development)'
@@ -19,8 +20,8 @@ else
name_suffix = ''
version_suffix = ''
endif
-application_id = 'org.gnome.SoundRecorder@0@'.format(profile)
+application_id = 'org.gnome.SoundRecorder@0@'.format(profile)
gettext_package = application_id
sound_recorder_prefix = get_option('prefix')
@@ -31,6 +32,9 @@ sound_recorder_pkgdatadir = sound_recorder_datadir / application_id
sound_recorder_schemadir = sound_recorder_datadir / 'glib-2.0' / 'schemas'
+po_dir = meson.project_source_root() / 'po'
+
+
gjs_dep = dependency('gjs-1.0', version: '>= 1.54.0')
gjs_console = gjs_dep.get_variable(pkgconfig: 'gjs_console')
@@ -44,25 +48,25 @@ dependency('gobject-introspection-1.0', version: '>= 1.31.6')
dependency('gstreamer-1.0')
dependency('gstreamer-pbutils-1.0')
+
gnome = import('gnome')
i18n = import('i18n')
-po_dir = meson.project_source_root() / 'po'
subdir('data')
subdir('src')
subdir('po')
+
+install_symlink(
+ meson.project_name(),
+ pointing_to: sound_recorder_pkgdatadir / application_id,
+ install_dir: sound_recorder_bindir / meson.project_name()
+)
+
+
gnome.post_install(
glib_compile_schemas: true,
gtk_update_icon_cache: true,
update_desktop_database: true,
-)
-
-meson.add_install_script(
- 'build-aux' / 'meson_post_install.py',
- sound_recorder_datadir,
- sound_recorder_bindir,
- sound_recorder_pkgdatadir,
- application_id,
-)
+)
\ No newline at end of file
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]