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 = [] self.cpp_info.set_property("pkg_config_name", "jack") 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