44 lines
972 B
Meson
44 lines
972 B
Meson
project('dev.atoft.Reactions')
|
|
|
|
i18n = import('i18n')
|
|
|
|
if get_option('profile') == 'development'
|
|
profile = 'Devel'
|
|
app_id_suffix = '.Devel'
|
|
name_suffix = ' (Devel)'
|
|
vcs_tag = run_command('git', 'rev-parse', '--short', 'HEAD').stdout().strip()
|
|
if vcs_tag == ''
|
|
version_suffix = '-devel'
|
|
else
|
|
version_suffix = '-' + vcs_tag
|
|
endif
|
|
else
|
|
profile = ''
|
|
app_id_suffix = ''
|
|
name_suffix = ''
|
|
version_suffix = ''
|
|
endif
|
|
|
|
base_id = 'dev.atoft.Reactions'
|
|
app_id = base_id + app_id_suffix
|
|
|
|
base_name = 'Reactions'
|
|
app_name = base_name + name_suffix
|
|
|
|
subdir('src')
|
|
subdir('data')
|
|
subdir('po')
|
|
|
|
exe = custom_target('dev.atoft.Reactions',
|
|
output : 'reactions',
|
|
command : [zig, 'build', '-Dtarget=native-linux-gnu'],
|
|
build_by_default : true,
|
|
install : true,
|
|
install_dir : bindir)
|
|
|
|
find_program('glib-compile-schemas', required: true)
|
|
find_program('gtk-update-icon-cache', required: false)
|
|
meson.add_install_script('build-aux/meson_post_install.py')
|
|
|
|
|