-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #152 from technosf/development
Changes to get gschema compiling
- Loading branch information
Showing
23 changed files
with
770 additions
and
244 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ build-aux | |
.vscode | ||
.buildconfig | ||
.flatpak-builder | ||
.flatpak | ||
code.sh | ||
favicon.ico | ||
tuner.code-workspace |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,81 @@ | ||
# | ||
# Data meson build file | ||
# | ||
# Icons, desktop file, appdata and schema | ||
# | ||
|
||
# | ||
# Install icons | ||
# | ||
message('Installing Icons...') | ||
|
||
icon_sizes = ['16', '24', '32', '48', '64', '128'] | ||
|
||
foreach i : icon_sizes | ||
install_data ( | ||
join_paths ('icons', i, meson.project_name () + '.svg'), | ||
install_dir: join_paths (get_option ('datadir'), 'icons', 'hicolor', i + 'x' + i, 'apps') | ||
install_dir: join_paths (get_option ('datadir'), 'icons','hicolor', i + 'x' + i, 'apps'), | ||
install_tag: 'icons' | ||
) | ||
install_data ( | ||
join_paths ('icons', i, meson.project_name () + '.svg'), | ||
install_dir: join_paths (get_option ('datadir'), 'icons', 'hicolor', i + 'x' + i + '@2', 'apps') | ||
install_dir: join_paths (get_option ('datadir'), 'icons','hicolor', i + 'x' + i + '@2', 'apps'), | ||
install_tag: 'icons' | ||
) | ||
endforeach | ||
|
||
|
||
message('Installed icons\n') | ||
|
||
|
||
# | ||
# Install desktop file | ||
# | ||
message('Installing desktop file...') | ||
# Translate and install our .desktop file so the Applications Menu will see it | ||
i18n.merge_file ( | ||
input: meson.project_name () + '.desktop.in', | ||
output: meson.project_name () + '.desktop', | ||
po_dir: join_paths (meson.project_source_root(), 'po', 'extra'), | ||
type: 'desktop', | ||
install: true, | ||
install_dir: join_paths (get_option ('datadir'), 'applications') | ||
install_dir: join_paths (get_option ('datadir'), 'applications'), | ||
install_tag: 'applications' | ||
) | ||
|
||
message('Installed desktop file\n') | ||
|
||
|
||
# | ||
# Install appdata | ||
# | ||
message('Installing appdata...') | ||
|
||
# Translate and install our .appdata.xml file so AppCenter will see it | ||
i18n.merge_file ( | ||
input: meson.project_name () + '.appdata.xml.in', | ||
output: meson.project_name () + '.appdata.xml', | ||
po_dir: join_paths (meson.project_source_root(), 'po', 'extra'), | ||
install: true, | ||
install_dir: join_paths (get_option ('datadir'), 'metainfo') | ||
install_dir: join_paths (get_option ('datadir'), 'metainfo'), | ||
install_tag: 'metainfo' | ||
) | ||
|
||
message('Installed appdata\n') | ||
|
||
|
||
# | ||
# Install schema | ||
# This doesn't work on older versions of meson: | ||
# schemas_dir = get_option('prefix') / get_option('datadir') / 'glib-2.0' / 'schemas' | ||
# | ||
message('Installing schema...') | ||
|
||
schemas_dir = join_paths (get_option('prefix'), get_option('datadir'), 'glib-2.0', 'schemas') | ||
settings_schemas = [ meson.project_name () + '.gschema.xml' ] | ||
|
||
settings_schemas = [ meson.project_name() + '.gschema.xml' ] | ||
|
||
install_data(settings_schemas, install_dir: schemas_dir) | ||
|
||
meson.add_install_script('glib-compile-schemas', schemas_dir, install_tag: 'schemas') | ||
|
||
|
||
message('Installed schema\n') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.