aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/platform
diff options
context:
space:
mode:
authorMartin Robinson <mrobinson@igalia.com>2023-10-05 03:12:29 +0200
committerGitHub <noreply@github.com>2023-10-05 01:12:29 +0000
commitaadf48bd4d8afa86fa702c8709c9bc3753dd20d8 (patch)
treef09e0045cf2210fe3b529241b3d92541ba320208 /python/servo/platform
parent67a36dd9b1f99f98e395d9b18bf8943536fb8bcd (diff)
downloadservo-aadf48bd4d8afa86fa702c8709c9bc3753dd20d8.tar.gz
servo-aadf48bd4d8afa86fa702c8709c9bc3753dd20d8.zip
Bootstrap pkg-config and cmake on MacOS (#30497)
These need to be installed in order to build so we can install them via Homebrew. Do this by simply restoring the Homebrew bootstrapping logic we had in place previously. Fixes #27171.
Diffstat (limited to 'python/servo/platform')
-rw-r--r--python/servo/platform/macos.py14
1 files changed, 13 insertions, 1 deletions
diff --git a/python/servo/platform/macos.py b/python/servo/platform/macos.py
index 1bcb88cab54..34f936a3f21 100644
--- a/python/servo/platform/macos.py
+++ b/python/servo/platform/macos.py
@@ -55,7 +55,19 @@ class MacOS(Base):
return True
def _platform_bootstrap(self, _force: bool) -> bool:
- return self._platform_bootstrap_gstreamer(False)
+ installed_something = False
+ try:
+ brewfile = os.path.join(util.SERVO_ROOT, "support", "macos", "Brewfile")
+ output = subprocess.check_output(
+ ['brew', 'bundle', 'install', "--file", brewfile]
+ ).decode("utf-8")
+ print(output)
+ installed_something = "Installing" in output
+ except subprocess.CalledProcessError as e:
+ print("Could not run homebrew. Is it installed?")
+ raise e
+ installed_something |= self._platform_bootstrap_gstreamer(False)
+ return installed_something
def _platform_bootstrap_gstreamer(self, force: bool) -> bool:
if not force and self.is_gstreamer_installed(cross_compilation_target=None):