meson.build 726 Bytes
Newer Older
1
project('shortwave',
Felix Häcker's avatar
Felix Häcker committed
2
          version: '0.0.1',
3 4
    meson_version: '>= 0.50.0',
          license: 'GPLv3',
5 6
)

7 8 9 10 11 12 13 14 15 16 17
# Initialize project variables
name       = 'Shortwave'
app_id     = 'de.haeckerfelix.Shortwave'
profile    = get_option('profile')
vcs_tag    = run_command('git', 'rev-parse', '--short', 'HEAD').stdout().strip()
localedir  = join_paths(get_option('prefix'), get_option('localedir'))
datadir    = get_option('datadir')

# Change app id for development builds
if profile == 'development'
  app_id = '@0@.Devel'.format(app_id)
18 19
endif

20 21
i18n = import('i18n')

22
subdir('data')
23
subdir('src')
24
subdir('po')
25

26 27
# Postinstall script (Update icon cache, gsettings, ...)
meson.add_install_script('build-aux/meson/postinstall.py')