Only build ports/servo by default (except Android), add ./mach build --libsimpleservo

Fixes #21314
This commit is contained in:
Simon Sapin 2018-09-25 15:00:25 +02:00
parent 6842553923
commit 39079cff8b
4 changed files with 20 additions and 6 deletions

View file

@ -670,9 +670,18 @@ install them, let us know by filing a bug!")
def ports_servo_crate(self):
return path.join(self.context.topdir, "ports", "servo")
def manifest_path(self, android=False, libsimpleservo=False):
if libsimpleservo or android:
return self.ports_libsimpleservo_manifest()
else:
return self.ports_servo_manifest()
def ports_servo_manifest(self):
return path.join(self.context.topdir, "ports", "servo", "Cargo.toml")
def ports_libsimpleservo_manifest(self):
return path.join(self.context.topdir, "ports", "libsimpleservo", "Cargo.toml")
def servo_features(self):
"""Return a list of optional features to enable for the Servo crate"""
features = []