aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2019-06-27 17:03:19 +0200
committerSimon Sapin <simon.sapin@exyr.org>2019-07-04 18:16:44 +0200
commit2b01c26aa58af7ff8f5ee1c17d8294ed4dad8620 (patch)
treef1e32f4e55c5afa84e7c37f19a967b9306c2c681 /python
parentc1e9347deee854bf8cee5c1837c6c96078824a3b (diff)
downloadservo-2b01c26aa58af7ff8f5ee1c17d8294ed4dad8620.tar.gz
servo-2b01c26aa58af7ff8f5ee1c17d8294ed4dad8620.zip
Add `./mach build --with-layout-2020`
… with corresponding `layout` and `layout_thread` crates, which for now do nothing.
Diffstat (limited to 'python')
-rw-r--r--python/servo/command_base.py7
-rw-r--r--python/servo/testing_commands.py2
2 files changed, 7 insertions, 2 deletions
diff --git a/python/servo/command_base.py b/python/servo/command_base.py
index 265d2814eb6..46f9f6e5ad3 100644
--- a/python/servo/command_base.py
+++ b/python/servo/command_base.py
@@ -788,6 +788,7 @@ install them, let us know by filing a bug!")
action='store_true',
help='Build for HoloLens (x64)'),
CommandArgument('--with-raqote', default=None, action='store_true'),
+ CommandArgument('--with-layout-2020', default=None, action='store_true'),
CommandArgument('--without-wgl', default=None, action='store_true'),
]
@@ -813,7 +814,7 @@ install them, let us know by filing a bug!")
env=None, verbose=False,
target=None, android=False, magicleap=False, libsimpleservo=False,
features=None, debug_mozjs=False, with_debug_assertions=False,
- with_frame_pointer=False, with_raqote=False, without_wgl=False,
+ with_frame_pointer=False, with_raqote=False, with_layout_2020=False, without_wgl=False,
uwp=False,
):
env = env or self.build_env()
@@ -852,6 +853,10 @@ install them, let us know by filing a bug!")
features.append("canvas2d-raqote")
elif "canvas2d-raqote" not in features:
features.append("canvas2d-azure")
+ if with_layout_2020 and "layout-2013" not in features:
+ features.append("layout-2020")
+ elif "layout-2020" not in features:
+ features.append("layout-2013")
if with_frame_pointer:
env['RUSTFLAGS'] = env.get('RUSTFLAGS', "") + " -C force-frame-pointers=yes"
features.append("profilemozjs")
diff --git a/python/servo/testing_commands.py b/python/servo/testing_commands.py
index d1880f6385e..57676377a7c 100644
--- a/python/servo/testing_commands.py
+++ b/python/servo/testing_commands.py
@@ -248,7 +248,7 @@ class MachCommands(CommandBase):
self_contained_tests = [
"background_hang_monitor",
"gfx",
- "layout",
+ "layout_2013",
"msg",
"net",
"net_traits",