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.
sphere-desktop-selector/meson.build

44 lines
1.4 KiB

project(
'sphere-desktop-selector',
['c', 'vala'],
version : '1.0.0',
meson_version : '>= 0.6.0',
default_options : ['warning_level=2', 'werror=false', 'prefix=/usr', 'libdir=lib']
)
i18n = import('i18n')
gnome = import('gnome')
valac = meson.get_compiler('vala')
srcdir = meson.project_source_root() / 'src'
config_h = configuration_data()
config_h.set_quoted('PACKAGE_VERSION', meson.project_version ())
config_h.set_quoted('GETTEXT_PACKAGE', 'sphere-desktop-selector')
config_h.set_quoted('LOCALEDIR', get_option('prefix') / get_option('localedir'))
configure_file(output: 'config.h', configuration: config_h)
config_dep = valac.find_library ('config', dirs: srcdir)
config_inc = include_directories('.')
add_project_arguments('-DGETTEXT_PACKAGE="' + meson.project_name () + '"', language: 'c')
subdir('data')
subdir('src')
subdir('po')
install_subdir('scripts', install_dir : get_option('libdir') / 'sphere-desktop-selector')
install_subdir('screen_images', install_dir : get_option('libdir') / 'sphere-desktop-selector')
install_data('screen_view.json', install_dir: get_option('libdir') / 'sphere-desktop-selector')
install_data('sphere-desktop-selector.conf', install_dir: get_option('libdir') / 'sphere-desktop-selector')
install_data('sphere-desktop-selector.css', install_dir: get_option('libdir') / 'sphere-desktop-selector')
gnome.post_install(
glib_compile_schemas: true,
gtk_update_icon_cache: true,
update_desktop_database: true,
)