blueprint-compiler/meson.build
James Westman 55a117a5b7
lsp: Show docs on hover
Also:
- Install the script to <prefix>/bin
- Fix a bug in XmlReader that would cause "uninteresting" tags to not be
  fully ignored
- Other minor improvements
2021-10-26 10:54:32 -05:00

30 lines
775 B
Meson

project('gtk-blueprint-tool',
version: '0.1.0',
)
prefix = get_option('prefix')
libdir = join_paths(prefix, get_option('libdir'))
py = import('python').find_installation('python3')
configure_file(
input: 'gtk-blueprint-tool.pc.in',
output: 'gtk-blueprint-tool.pc',
configuration: { 'VERSION': meson.project_version() },
install: not meson.is_subproject(),
install_dir: join_paths(libdir, 'pkgconfig'),
)
install_data(
'gtk-blueprint-tool.py',
install_dir: get_option('bindir'),
rename: 'gtk-blueprint-tool',
)
meson.override_find_program('gtk-blueprint-tool', find_program('gtk-blueprint-tool.py'))
if not meson.is_subproject()
install_subdir('gtkblueprinttool', install_dir: py.get_install_dir())
endif
test('tests', py, args: ['-m', 'unittest'])