You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
1.3 KiB

project(
'snapcontrol', 'c',
version: '1.0.0',
license: 'BSD3',
meson_version: '>= 0.50.0',
)
app_command = 'snapcontrol'
app_id = 'org.snapcast.control.gtk'
gnome = import('gnome')
intl = import('i18n')
config_h = configuration_data()
GETTEXT_PACKAGE = app_id
config_h.set_quoted('GETTEXT_PACKAGE', GETTEXT_PACKAGE)
config_h.set_quoted('LOCALEDIR', join_paths(get_option('prefix'), get_option('localedir')))
configure_file(
output: 'config.h',
configuration: config_h,
)
add_global_arguments([
'-DHAVE_CONFIG_H',
'-I' + meson.build_root(),
], language: 'c')
app_configuration = configuration_data()
app_configuration.set('GJS', find_program('gjs').path())
app_configuration.set('PACKAGE_NAME', app_id)
app_configuration.set('PACKAGE_VERSION', meson.project_version())
app_configuration.set('prefix', get_option('prefix'))
#pkgdatadir = join_paths(get_option('datadir'), app_command, app_id)
pkgdatadir = join_paths(get_option('datadir'), app_id)
libexecdir = join_paths(get_option('prefix'), get_option('libexecdir'))
app_configuration.set('libdir', join_paths(get_option('prefix'), get_option('libdir')))
app_configuration.set('pkgdatadir', pkgdatadir)
app_configuration.set('libexec', libexecdir)
#install_data('helper-bin', install_dir: libexecdir)
subdir('src')
subdir('data')
subdir('po')
meson.add_install_script('meson/meson_post_install.py')