fractal/meson.build
Daniel García Moreno 7adbb5bf9d New alpha release 0.1.4
New features:

 * New room creation dialog
 * Smart auto scrolling
 * Login by email
 * Member list with avatar and username
 * Big refactor and a lot of bug fixes
2017-12-13 13:38:25 +01:00

35 lines
1.5 KiB
Meson

project(
'fractal', 'rust',
version: '0.1.4',
license: 'GPLv3',
)
fractal_version = meson.project_version()
version_array = fractal_version.split('.')
fractal_major_version = version_array[0].to_int()
fractal_minor_version = version_array[1].to_int()
fractal_version_micro = version_array[2].to_int()
fractal_prefix = get_option('prefix')
fractal_bindir = join_paths(fractal_prefix, get_option('bindir'))
install_data('fractal-gtk/res/org.gnome.Fractal.svg', install_dir : get_option('datadir') + '/icons')
install_data('fractal-gtk/res/org.gnome.Fractal.desktop', install_dir : get_option('datadir') + '/applications')
install_data('fractal-gtk/res/org.gnome.Fractal.appdata.xml', install_dir : get_option('datadir') + '/appdata')
cargo = find_program('cargo', required: false)
gresource = find_program('glib-compile-resources', required: false)
cargo_vendor = find_program('cargo-vendor', required: false)
cargo_script = find_program('scripts/cargo.sh')
cargo_release = find_program('scripts/release.sh')
cargo_release = custom_target('cargo-build',
build_by_default: true,
output: ['fractal'],
install: true,
install_dir: fractal_bindir,
command: [cargo_script, '@CURRENT_SOURCE_DIR@', '@OUTPUT@'])
run_target('release', command: ['scripts/release.sh',
meson.project_name() + '-' + fractal_version
])