Skip to content

Commit

Permalink
no pkgconfig if windows in test_package
Browse files Browse the repository at this point in the history
  • Loading branch information
SpaceIm committed Oct 25, 2022
1 parent 154d0c2 commit 033a05c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions recipes/glib/all/test_package/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,7 @@ def test(self):
bin_path = os.path.join(self.cpp.build.bindirs[0], "test_package")
self.run(bin_path, env="conanrun")

pkg_config = PkgConfig(self, "gio-2.0", pkg_config_path=self.generators_folder)
self.run(f"{pkg_config.variables['gdbus_codegen']} -h", env="conanrun")
if self.settings.os != "Windows":
pkg_config = PkgConfig(self, "gio-2.0", pkg_config_path=self.generators_folder)
gdbus_codegen = pkg_config.variables["gdbus_codegen"]
self.run(f"{gdbus_codegen} -h", env="conanrun")

0 comments on commit 033a05c

Please sign in to comment.