Add qmake support.

This commit is contained in:
Jelmer Vernooij 2021-03-17 16:49:31 +00:00
parent 703d1cda94
commit 9ad9309267

View file

@ -579,6 +579,9 @@ class Make(BuildSystem):
if not makefile_exists() and session.exists("configure"): if not makefile_exists() and session.exists("configure"):
run_with_build_fixers(session, ["./configure"], fixers) 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): def build(self, session, resolver, fixers):
self.setup(session, resolver, fixers) self.setup(session, resolver, fixers)
run_with_build_fixers(session, ["make", "all"], fixers) run_with_build_fixers(session, ["make", "all"], fixers)
@ -684,6 +687,10 @@ class Make(BuildSystem):
] ]
): ):
return cls(path) return cls(path)
for n in os.scandir(path):
# qmake
if n.name.endswith('.pro'):
return cls(path)
class Cargo(BuildSystem): class Cargo(BuildSystem):