-
Notifications
You must be signed in to change notification settings - Fork 2
/
meson.build
38 lines (32 loc) · 1 KB
/
meson.build
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# SPDX-FileCopyrightText: 2024 The pypackaging-native developers
#
# SPDX-License-Identifier: MIT
project('pkgconf-pypi',
version : '2.2.0-0',
license : 'MIT AND ISC',
license_files : ['LICENSE'],
meson_version : '>=1.3.2',
)
py = import('python').find_installation(pure: false)
python_bin_dir = py.get_install_dir() / 'pkgconf' / '.bin'
py.install_sources(
[
'src/pkgconf/__init__.py',
'src/pkgconf/__main__.py',
'src/pkgconf/diagnose.py',
],
subdir: 'pkgconf',
)
# In pyproject.toml we only select the `runtime-python` tag to install,
# which contains the doesn't contain anything from the upstream pkgconf.
upstream = subproject('pkgconf', default_options : ['default_library=static'])
libpkgconf = upstream.get_variable('libpkgconf')
pkgconf_exe = upstream.get_variable('pkgconf_exe')
executable(
'pkgconf',
objects: pkgconf_exe.extract_all_objects(),
link_with: upstream.get_variable('libpkgconf'),
install_dir: python_bin_dir,
install_tag: 'python-runtime',
install: true,
)