From a77f490229e0c29136813718219d01144853544e Mon Sep 17 00:00:00 2001 From: Jordan Williams Date: Tue, 9 Apr 2024 07:44:58 -0500 Subject: [PATCH] dbus: Use relative folders for directories Use relative folders due to this change: https://github.com/conan-io/conan/pull/15706 Remove the useless attempt to modify the separators used for the prefix path. The separators are still inconsistent for the prefix and exec_prefix on Windows. They use both backslashes and forward slashes. --- recipes/dbus/1.x.x/conanfile.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/recipes/dbus/1.x.x/conanfile.py b/recipes/dbus/1.x.x/conanfile.py index ce763ce5d1c9f5..a2d5bf2c4684e4 100644 --- a/recipes/dbus/1.x.x/conanfile.py +++ b/recipes/dbus/1.x.x/conanfile.py @@ -10,7 +10,7 @@ import os import textwrap -required_conan_version = ">=1.53.0" +required_conan_version = ">=1.64.0 <2 || >=2.2.0" class DbusConan(ConanFile): @@ -115,13 +115,11 @@ def generate(self): env = VirtualBuildEnv(self) env.generate() tc = MesonToolchain(self) - if self.settings.os == "Windows": - tc.project_options["prefix"] = self.package_folder.replace("\\", "/") tc.project_options["asserts"] = not is_apple_os(self) tc.project_options["checks"] = False - tc.project_options["datadir"] = os.path.join(self.package_folder, "res", "share") - tc.project_options["localstatedir"] = os.path.join(self.package_folder, "res", "var") - tc.project_options["sysconfdir"] = os.path.join(self.package_folder, "res", "etc") + tc.project_options["datadir"] = os.path.join("res", "share") + tc.project_options["localstatedir"] = os.path.join("res", "var") + tc.project_options["sysconfdir"] = os.path.join("res", "etc") tc.project_options["doxygen_docs"] = "disabled" tc.project_options["ducktype_docs"] = "disabled" tc.project_options["qt_help"] = "disabled"