Skip to content
This repository has been archived by the owner on Jul 19, 2021. It is now read-only.

Commit

Permalink
disable meson test on mingw
Browse files Browse the repository at this point in the history
  • Loading branch information
ericLemanissier committed Mar 11, 2020
1 parent d5b3d6b commit 7c4b61e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions test_package/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ def build_requirements(self):
if not tools.which("meson"):
self.build_requires("meson/0.53.2")

def _meson_supported(self):
return self.options["qt"].shared and\
not tools.cross_building(self.settings) and\
not tools.os_info.is_macos and\
not (self.settings.os == "Windows" and self.settings.compiler == "gcc")

def _build_with_qmake(self):
tools.mkdir("qmake_folder")
with tools.chdir("qmake_folder"):
Expand Down Expand Up @@ -52,7 +58,7 @@ def _getenvpath(var):
self.run("make", run_environment=True)

def _build_with_meson(self):
if self.options["qt"].shared and not tools.cross_building(self.settings) and not tools.os_info.is_macos:
if self._meson_supported():
self.output.info("Building with Meson")
tools.mkdir("meson_folder")
with tools.environment_append(RunEnvironment(self).vars):
Expand Down Expand Up @@ -88,7 +94,7 @@ def _test_with_qmake(self):
self.run(os.path.join(bin_path, "test_package"), run_environment=True)

def _test_with_meson(self):
if self.options["qt"].shared and not tools.cross_building(self.settings) and not tools.os_info.is_macos:
if self._meson_supported():
self.output.info("Testing Meson")
shutil.copy("qt.conf", "meson_folder")
self.run(os.path.join("meson_folder", "test_package"), run_environment=True)
Expand Down

0 comments on commit 7c4b61e

Please sign in to comment.