Commit 5f516489 authored by Jeremy Bicha's avatar Jeremy Bicha

build: Add meson support

parent 08498e35
foreach size: [ '16x16', '22x22', '24x24', '32x32', '48x48']
install_data (join_paths ('icons', 'hicolor', size, 'gnome-tetravex.png'),
install_dir: join_paths (datadir, 'icons', 'hicolor', size, 'apps'))
endforeach
install_data (join_paths ('icons', 'hicolor', 'scalable', 'gnome-tetravex.svg'),
install_dir: join_paths (datadir, 'icons', 'hicolor', 'scalable', 'apps'))
install_data (join_paths ('icons', 'hicolor', 'scalable', 'gnome-tetravex-symbolic.svg'),
install_dir: join_paths (datadir, 'icons', 'hicolor', 'scalable', 'apps'))
install_data ('org.gnome.tetravex.gschema.xml',
install_dir: join_paths (datadir, 'glib-2.0', 'schemas'))
meson.add_install_script ('meson_compile_gschema.py')
i18n.merge_file ('desktop-file',
input: 'gnome-tetravex.desktop.in',
output: 'gnome-tetravex.desktop',
install: true,
install_dir: join_paths (datadir, 'applications'),
po_dir: '../po',
type: 'desktop')
i18n.merge_file ('appdata-file',
input: 'gnome-tetravex.appdata.xml.in',
output: 'gnome-tetravex.appdata.xml',
install: true,
install_dir: join_paths (datadir, 'metainfo'),
po_dir: '../po')
install_man ('gnome-tetravex.6')
#!/usr/bin/env python3
import os
import subprocess
schemadir = os.path.join(os.environ['MESON_INSTALL_PREFIX'], 'share', 'glib-2.0', 'schemas')
if not os.environ.get('DESTDIR'):
print('Compiling gsettings schemas...')
subprocess.call(['glib-compile-schemas', schemadir])
# please keep this list sorted alphabetically
#
ca
cs
da
de
el
en_GB
es
eu
fr
gl
hu
it
oc
pl
pt_BR
ro
ru
sl
sr
sr@latin
sv
zh_CN
gnome.yelp ('gnome-tetravex',
sources: [ 'hint.page',
'index.page',
'license.page',
'move.page',
'shortcut.page',
'size.page',
'usage.page',
'winning.page' ],
media: [ 'figures/gnome-tetravex-logo.png',
'figures/gnome-tetravex-video.ogv' ],
symlink_media: true)
project ('gnome-tetravex', ['vala', 'c'],
version: '3.31.1',
license: 'GPLv2+',
default_options: [
'warning_level=1',
'buildtype=debugoptimized',
],
meson_version: '>= 0.37.1')
gnome = import ('gnome')
i18n = import ('i18n')
# Paths
mandir = join_paths (get_option ('prefix'), get_option ('mandir'))
localedir = join_paths (get_option ('prefix'), get_option ('localedir'))
datadir = join_paths (get_option ('prefix'), get_option ('datadir'))
pkgdatadir = join_paths (datadir, 'gnome-mines')
# Dependencies
glib_dep = dependency ('glib-2.0', version: '>= 2.40.0')
gtk_dep = dependency ('gtk+-3.0', version: '>= 3.14')
subdir ('po')
subdir ('data')
subdir ('help')
subdir ('src')
......@@ -82,7 +82,7 @@ te
tg
th
tr
ug
ug
uk
vi
wa
......
i18n.gettext ('gnome-tetravex', preset: 'glib')
podir = meson.current_source_dir ()
resources = gnome.compile_resources ('resources', 'gnome-tetravex.gresource.xml',
source_dir: '.',
c_name: 'resources')
gnome_mines = executable ('gnome-tetravex',
[ 'config.vapi',
'gnome-tetravex.vala',
'history.vala',
'puzzle.vala',
'puzzle-view.vala',
'score-dialog.vala',
'theme.vala'] + resources,
dependencies: [ glib_dep,
gtk_dep ],
vala_args: [ '--pkg=posix' ],
c_args: [ '-DVERSION="@0@"'.format (meson.project_version ()),
'-DGETTEXT_PACKAGE="gnome-tetravex"',
'-DLOCALEDIR="@0@"'.format (localedir),
'-DDATA_DIRECTORY="@0@"'.format (pkgdatadir) ],
install: true )
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment