Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
ximper-welcome
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ximper Linux
ximper-welcome
Commits
9f8d12ff
Commit
9f8d12ff
authored
Jan 26, 2022
by
Bilal Elmoussaoui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
meson: use gnome.post_install
parent
a71053e4
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
21 deletions
+13
-21
meson_post_install.py
build-aux/meson_post_install.py
+0
-12
meson.build
meson.build
+9
-5
meson.build
src/meson.build
+4
-4
No files found.
build-aux/meson_post_install.py
deleted
100755 → 0
View file @
a71053e4
#!/usr/bin/env python3
from
os
import
environ
,
path
from
subprocess
import
call
if
not
environ
.
get
(
'DESTDIR'
,
''
):
PREFIX
=
environ
.
get
(
'MESON_INSTALL_PREFIX'
,
'/usr/local'
)
DATA_DIR
=
path
.
join
(
PREFIX
,
'share'
)
print
(
'Updating icon cache...'
)
call
([
'gtk-update-icon-cache'
,
'-qtf'
,
path
.
join
(
DATA_DIR
,
'icons/hicolor'
)])
print
(
"Updating desktop database..."
)
call
([
"update-desktop-database"
,
path
.
join
(
DATA_DIR
,
'applications'
)])
meson.build
View file @
9f8d12ff
...
...
@@ -2,7 +2,7 @@ project('gnome-tour',
'rust',
version: '41.rc',
license: 'GPL-3.0-or-later',
meson_version : '>= 0.5
0
')
meson_version : '>= 0.5
9
')
i18n = import('i18n')
gnome = import('gnome')
...
...
@@ -30,7 +30,7 @@ localedir = prefix / get_option('localedir')
datadir = prefix / get_option('datadir')
pkgdatadir = datadir / meson.project_name()
iconsdir = datadir / 'icons'
podir =meson.source_root () / 'po'
podir =meson.
project_
source_root () / 'po'
gettext_package = meson.project_name()
...
...
@@ -52,8 +52,8 @@ application_id = '@0@@1@'.format(base_id, profile)
meson.add_dist_script(
'build-aux/dist-vendor.sh',
meson.build_root() / 'meson-dist' / meson.project_name() + '-' + version,
meson.source_root()
meson.
project_
build_root() / 'meson-dist' / meson.project_name() + '-' + version,
meson.
project_
source_root()
)
if get_option('profile') == 'development'
...
...
@@ -66,4 +66,8 @@ subdir('data')
subdir('po')
subdir('src')
meson.add_install_script('build-aux/meson_post_install.py')
gnome.post_install(
gtk_update_icon_cache: true,
update_desktop_database: true,
)
src/meson.build
View file @
9f8d12ff
...
...
@@ -13,8 +13,8 @@ config = configure_file(
# Copy the config.rs output to the source directory.
run_command(
'cp',
meson.build_root() / 'src' / 'config.rs',
meson.source_root() / 'src' / 'config.rs',
meson.
project_
build_root() / 'src' / 'config.rs',
meson.
project_
source_root() / 'src' / 'config.rs',
check: true
)
...
...
@@ -47,8 +47,8 @@ custom_target(
depends: resources,
command: [
cargo_script,
meson.build_root(),
meson.source_root(),
meson.
project_
build_root(),
meson.
project_
source_root(),
'@OUTPUT@',
profile,
meson.project_name(),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment