mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
Use meson instead of setup.py
This project will usually be used as a subproject, so it needs a meson file, and I'd like to not support two different buildsystems.
This commit is contained in:
parent
848d5d5049
commit
419faf0362
5 changed files with 30 additions and 67 deletions
24
meson.build
Normal file
24
meson.build
Normal file
|
@ -0,0 +1,24 @@
|
|||
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'),
|
||||
)
|
||||
|
||||
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'])
|
Loading…
Add table
Add a link
Reference in a new issue