mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Implement ./mach bootstrap
for MacOS
This commit is contained in:
parent
7aaad0aa7e
commit
a57c49a4bb
4 changed files with 20 additions and 6 deletions
|
@ -54,6 +54,21 @@ class MacOS(Base):
|
|||
return False
|
||||
return True
|
||||
|
||||
def _platform_bootstrap(self, _cache_dir: str, force: bool) -> bool:
|
||||
installed_something = False
|
||||
try:
|
||||
brewfile = os.path.join(util.SERVO_ROOT, "etc", "homebrew", "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):
|
||||
return False
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue