diff options
author | Josh Matthews <josh@joshmatthews.net> | 2019-06-28 16:48:26 -0400 |
---|---|---|
committer | Paul Rouget <me@paulrouget.com> | 2019-07-03 21:35:44 +0200 |
commit | 7a3d346087dcc09112bf1bc13ec70de42ede509d (patch) | |
tree | f4d26d9306fffb57865650967eebf3a5ea4992b0 /python/servo/command_base.py | |
parent | f2e0870e60dfd4bf4233ac00c6bc46ab95f22067 (diff) | |
download | servo-7a3d346087dcc09112bf1bc13ec70de42ede509d.tar.gz servo-7a3d346087dcc09112bf1bc13ec70de42ede509d.zip |
Simplify build process for UWP app.
Diffstat (limited to 'python/servo/command_base.py')
-rw-r--r-- | python/servo/command_base.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/python/servo/command_base.py b/python/servo/command_base.py index 838e03f910c..265d2814eb6 100644 --- a/python/servo/command_base.py +++ b/python/servo/command_base.py @@ -782,6 +782,11 @@ install them, let us know by filing a bug!") action='store_true', help='Build with frame pointer enabled, used by the background hang monitor.', ), + CommandArgument( + '--uwp', + default=None, + action='store_true', + help='Build for HoloLens (x64)'), CommandArgument('--with-raqote', default=None, action='store_true'), CommandArgument('--without-wgl', default=None, action='store_true'), ] @@ -809,6 +814,7 @@ install them, let us know by filing a bug!") 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, + uwp=False, ): env = env or self.build_env() target, android = self.pick_target_triple(target, android, magicleap) @@ -836,6 +842,12 @@ install them, let us know by filing a bug!") features.append("debugmozjs") if not magicleap: features.append("native-bluetooth") + if uwp: + features.append("canvas2d-raqote") + features.append("no_wgl") + else: + # Non-UWP builds provide their own libEGL via mozangle. + features.append("egl") if with_raqote and "canvas2d-azure" not in features: features.append("canvas2d-raqote") elif "canvas2d-raqote" not in features: |