From 9ad9309267376140263cecb3f7af09073825b2a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jelmer=20Vernoo=C4=B3?= Date: Wed, 17 Mar 2021 16:49:31 +0000 Subject: [PATCH] Add qmake support. --- ognibuild/buildsystem.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ognibuild/buildsystem.py b/ognibuild/buildsystem.py index c532e8d..650b51a 100644 --- a/ognibuild/buildsystem.py +++ b/ognibuild/buildsystem.py @@ -579,6 +579,9 @@ class Make(BuildSystem): if not makefile_exists() and session.exists("configure"): run_with_build_fixers(session, ["./configure"], fixers) + if not makefile_exists() and any([n.endswith('.pro') for n in session.scandir(".")]): + run_with_build_fixers(session, ["qmake"], fixers) + def build(self, session, resolver, fixers): self.setup(session, resolver, fixers) run_with_build_fixers(session, ["make", "all"], fixers) @@ -684,6 +687,10 @@ class Make(BuildSystem): ] ): return cls(path) + for n in os.scandir(path): + # qmake + if n.name.endswith('.pro'): + return cls(path) class Cargo(BuildSystem):