Files
conan-packages/pipewire-jack-devel/conanfile.py
Nikolai Rodionov 550faebcd9
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Try pipewire-jack
Signed-off-by: Nikolai Rodionov <allanger@badhouseplants.net>
2026-01-06 21:45:12 +01:00

32 lines
1.0 KiB
Python

from conan import ConanFile
from conan.tools.files import copy
from conan.tools.scm import Git
class PipewireJackDevelConan(ConanFile):
name = "pipewire-jack-devel"
version = "1.5.84"
# No settings/options are necessary, this is header only
exports_sources = "include/*"
no_copy_source = True
# Important, define the package_type
package_type = "header-library"
def package(self):
# This will also copy the "include" folder
copy(self, "*.h", "source/pipewire-jack/jack", self.package_folder)
def package_info(self):
# For header-only packages, libdirs and bindirs are not used
# so it's recommended to set those as empty.
self.cpp_info.bindirs = []
self.cpp_info.libdirs = []
def source(self):
git = Git(self)
git.clone(
url="https://gitlab.freedesktop.org/pipewire/pipewire.git",
target="source"
)
git.folder = "source"
git.checkout(f"{self.version}") # tag, branch, or commit