From 1872ee3957c7ff79c961adc10db70858c51fb1b0 Mon Sep 17 00:00:00 2001 From: Eric Lemanissier Date: Mon, 23 Nov 2020 09:06:28 +0100 Subject: [PATCH] add components --- recipes/wayland/all/conanfile.py | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/recipes/wayland/all/conanfile.py b/recipes/wayland/all/conanfile.py index 21c4464359630..f70578f99f2ab 100644 --- a/recipes/wayland/all/conanfile.py +++ b/recipes/wayland/all/conanfile.py @@ -79,5 +79,29 @@ def package(self): tools.rmdir(os.path.join(self.package_folder, "share")) def package_info(self): - self.cpp_info.libs = tools.collect_libs(self) + self.cpp_info.components["wayland-scanner"].names["pkg_config"] = "wayland-scanner" + self.cpp_info.components["wayland-scanner"].requires = ["expat::expat"] + if self.options.enable_dtd_validation: + self.cpp_info.components["wayland-scanner"].requires.append("libxml2::libxml2") + + if self.options.enable_libraries: + self.cpp_info.components["wayland-server"].libs = ["wayland-server"] + self.cpp_info.components["wayland-server"].names["pkg_config"] = "wayland-server" + self.cpp_info.components["wayland-server"].requires = ["libffi::libffi"] + self.cpp_info.components["wayland-server"].system_libs = ["pthread", "m"] + + self.cpp_info.components["wayland-client"].libs = ["wayland-client"] + self.cpp_info.components["wayland-client"].names["pkg_config"] = "wayland-client" + self.cpp_info.components["wayland-client"].requires = ["libffi::libffi"] + self.cpp_info.components["wayland-client"].system_libs = ["pthread", "m"] + + self.cpp_info.components["wayland-cursor"].libs = ["wayland-cursor"] + self.cpp_info.components["wayland-cursor"].names["pkg_config"] = "wayland-cursor" + self.cpp_info.components["wayland-cursor"].requires = ["wayland-client"] + + self.cpp_info.components["wayland-egl"].libs = ["wayland-egl"] + self.cpp_info.components["wayland-egl"].names["pkg_config"] = "wayland-egl" + self.cpp_info.components["wayland-egl"].requires = ["wayland-client"] + self.cpp_info.components["wayland-egl-backend"].names["pkg_config"] = "wayland-egl-backend" + self.cpp_info.components["wayland-egl-backend"].version = "3"