meson.build 992 Bytes
Newer Older
1
project('gnome-tweak-tool',
Jeremy Bicha's avatar
Jeremy Bicha committed
2
  version: '3.26.2',
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
  meson_version: '>= 0.40.0'
)

gnome = import('gnome')
i18n = import('i18n')
python3 = import('python3')

prefix = get_option('prefix')

bindir = join_paths(prefix, get_option('bindir'))
datadir = join_paths(prefix, get_option('datadir'))
libexecdir = join_paths(prefix, get_option('libexecdir'))
localedir = join_paths(prefix, get_option('localedir'))
pythondir = join_paths(prefix, python3.sysconfig_path('purelib'))

pkgdatadir = join_paths(datadir, meson.project_name())

20
appdatadir = join_paths(datadir, 'metainfo')
21 22 23 24 25
desktopdir = join_paths(datadir, 'applications')
gtweakdir = join_paths(pythondir, 'gtweak')
icondir = join_paths(datadir, 'icons', 'hicolor')
schemadir = join_paths(datadir, 'glib-2.0', 'schemas')

26
install_data('gnome-tweak-tool', install_dir: bindir)
27 28 29 30 31 32
install_data('gnome-tweak-tool-lid-inhibitor', install_dir: libexecdir)

subdir('gtweak')
subdir('data')
subdir('po')

33
meson.add_install_script('meson-postinstall.py')