mirror of
https://github.com/google/liblc3.git
synced 2026-04-16 12:45:31 +00:00
The meson build system has builtin support for python packaging, and unlike hatchling it is spec-compliant. Additionally, meson is already responsible for building the shared library itself, which the python build backend can then distribute inside the wheel. This allows shipping a wheel that can find its own liblc3.so via ctypes and doesn't require passing paths to the library around, nor to install both separately and hope that this works.
24 lines
778 B
Meson
24 lines
778 B
Meson
# Copyright © 2022 Intel Corporation
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at:
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
option('tools',
|
|
type: 'boolean',
|
|
value: false,
|
|
description: 'Build tools')
|
|
|
|
option('python',
|
|
type: 'boolean',
|
|
value: false,
|
|
description: 'Build python bindings')
|