mirror of
https://github.com/kiwix/kiwix-build.git
synced 2025-09-23 04:25:38 -04:00
Do not hard-code qmake command
This commit is contained in:
parent
cba77fdca6
commit
c7bd6182e0
@ -32,7 +32,9 @@ class NeutralEnv:
|
|||||||
self.git_command = self._detect_command("git")
|
self.git_command = self._detect_command("git")
|
||||||
self.make_command = self._detect_command("make")
|
self.make_command = self._detect_command("make")
|
||||||
self.cmake_command = self._detect_command("cmake")
|
self.cmake_command = self._detect_command("cmake")
|
||||||
self.qmake_command = self._detect_command("qmake", required=False)
|
self.qmake_command = self._detect_command(
|
||||||
|
"qmake", required=False, default=[["qmake"], ["qmake-qt5"]]
|
||||||
|
)
|
||||||
|
|
||||||
def detect_platform(self):
|
def detect_platform(self):
|
||||||
_platform = platform.system()
|
_platform = platform.system()
|
||||||
|
@ -502,7 +502,7 @@ class QMakeBuilder(MakeBuilder):
|
|||||||
def _configure(self, context):
|
def _configure(self, context):
|
||||||
context.try_skip(self.build_path)
|
context.try_skip(self.build_path)
|
||||||
command = [
|
command = [
|
||||||
"qmake",
|
*neutralEnv("qmake_command"),
|
||||||
*self.configure_options,
|
*self.configure_options,
|
||||||
*self.env_options,
|
*self.env_options,
|
||||||
self.source_path,
|
self.source_path,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user