Commit graph

1495 commits

Author SHA1 Message Date
marmeladema
f1d42fe787 Use urllib from six module in order to be compatible with Python3 2019-10-16 00:22:07 +01:00
marmeladema
f063ea64a5 Add six module to python requirements.txt for Python3 compatibility 2019-10-16 00:22:06 +01:00
marmeladema
4e1ee07a79 Improve print statement compatibility with Python3 2019-10-16 00:22:06 +01:00
Josh Matthews
5367da98f8 Support building UWP with native UWP rustc target. 2019-10-12 10:19:26 -04:00
Josh Matthews
025cb64d85 Create a zip of all UWP packaging artifacts. 2019-10-10 15:50:37 -04:00
Fernando Jimenez Moreno
becb694013 Allow building and cleaning for UWP without system GStreamer 2019-10-08 10:27:10 +02:00
bors-servo
86efbe30ca
Auto merge of #24359 - servo:jdm-patch-31, r=jdm
Remove intermittent failure reporting.

The frequency with which we hit https://github.com/servo/intermittent-failure-tracker/issues/5 means that this is hurting us more than it helps.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/24359)
<!-- Reviewable:end -->
2019-10-04 13:02:43 -04:00
Josh Matthews
050fcc989d Remove intermittent failure reporting. 2019-10-04 09:12:08 -04:00
Josh Matthews
6535899d54
Use correct OpenSSL arch in UWP builds. 2019-10-03 00:52:27 -04:00
Josh Matthews
96302bad91 Update to UWP compatible OpenSSL build. 2019-10-02 15:00:29 -04:00
Manish Goregaokar
c716d4662d Isolate UWP builds from external gstreamers 2019-10-02 00:05:16 -07:00
Manish Goregaokar
43467e8d82 Bump gstreamer-uwp msvc-package to 1.16.0.5
This new package contains a hacky gstreamer-webrtc-1.0.pc file so that we can still do self-contained builds without relying on external PKG_CONFIG_PATH.
2019-10-01 17:35:06 -07:00
bors-servo
a2755f5689
Auto merge of #24264 - SiddharthaMishra:master, r=Manishearth
Make tidy report when a rand exception is no longer needed

Make test-tidy always check Cargo.lock and make tidy report when a rand exception is not needed
---

- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #24152  (GitHub issue number if applicable)

- [X] There are tests for these changes

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/24264)
<!-- Reviewable:end -->
2019-09-25 16:25:51 -04:00
Fernando Jiménez Moreno
ea6cff4b8d Allow playing video/webm on Windows 2019-09-24 13:32:15 +02:00
Siddhartha Mishra
aa7ba1a850 report when blocked package exception is not needed 2019-09-22 14:16:46 +05:30
Siddhartha Mishra
3ced8d4ddc have tidy always check Cargo.lock 2019-09-22 14:08:06 +05:30
bors-servo
4fe8238b14
Auto merge of #24260 - paulrouget:miscUWP, r=jdm
Some small UWP improvements

- isolate the default url in its own file. As we keep tweaking it.
- allow code generation and local network connections
- cleaning the newly introduce AppPackages directory

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/24260)
<!-- Reviewable:end -->
2019-09-21 11:11:38 -04:00
Paul Rouget
3e4cac3481 Cleanup AppPackages on mach clean 2019-09-21 09:45:50 +02:00
bors-servo
b3c2bed84b
Auto merge of #24185 - jdm:uwp-native-build, r=asajeffrey
Fix many WACK errors

These changes ensure that all native dependencies are built with the compiler flags that will prevent forbidden API uses. They also incorporate a fork of rand_os that backports UWP support from more recent rand releases. This is necessary in the short term to avoid having to wait for the entire ecosystem to migrate to the most recent rand release.

Depends on https://github.com/servo/mozjs/pull/200 and https://github.com/servo/rust-mozjs/pull/471.

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes do not require tests because no windows WACK tests

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/24185)
<!-- Reviewable:end -->
2019-09-20 11:22:02 -04:00
bors-servo
540a73ed29
Auto merge of #24226 - paulrouget:openxrup, r=jdm
OpenXR loader update

Fix #24181

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/24226)
<!-- Reviewable:end -->
2019-09-17 10:22:41 -04:00
bors-servo
8bc8981ae5
Auto merge of #24149 - jdm:opt-in-msbuild, r=paulrouget
Add explicit packaging step for UWP apps

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/24149)
<!-- Reviewable:end -->
2019-09-17 02:44:18 -04:00
Paul Rouget
94eeea3664 "mach clean" cleans uwp artifacts 2019-09-17 07:47:01 +02:00
Josh Matthews
dcbec3e404 Build native dependencies with UWP compatibility. 2019-09-16 13:03:08 -04:00
Josh Matthews
c1f9dfda25 Make APPX build part of package command. Add nightly build for UWP. 2019-09-12 23:27:38 -04:00
bors-servo
e6376ab322
Auto merge of #24197 - Manishearth:vs-crt, r=jdm
Pull in CRT runtime on VS 2019 as well

Building for x64 UWP leads to the build system complaining about this DLL not being in the target/ folder.

I think these three VS versions are the only ones we support, perhaps we should remove this check entirely and unconditionally include this DLL?

r? @jdm

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/24197)
<!-- Reviewable:end -->
2019-09-12 16:57:18 -04:00
Manish Goregaokar
3f025f889c Pull in CRT runtime on VS 2019 as well 2019-09-11 11:29:08 -07:00
Josh Matthews
032fabaa44
Use updated gstreamer binaries for UWP. 2019-09-11 11:20:04 -04:00
Manish Goregaokar
67f59f5cae Don't run msbuild if packaging failed 2019-09-04 13:37:17 -07:00
Manish Goregaokar
92bddf081d Use OpenXR Loader from NuGet 2019-09-04 13:37:17 -07:00
Joel Martin
1291d52f3f Call gstreamer_root with top_dir string, not func.
Commit 72e28dffcd introduced a build
regression on Linux when resolving the in-tree gstreamer libs.

The error:

------------------------------------
$ ./mach build --release
...
The details of the failure are as follows:

AttributeError: 'function' object has no attribute 'endswith'

  File "/data/joelm/personal/UTA/dissertation/servo/servo-master.git/python/servo/build_commands.py", line 237, in build
    env = self.build_env(target=target, is_build=True)
  File "/data/joelm/personal/UTA/dissertation/servo/servo-master.git/python/servo/command_base.py", line 646, in build_env
    if self.needs_gstreamer_env(target or host_triple(), env):
  File "/data/joelm/personal/UTA/dissertation/servo/servo-master.git/python/servo/command_base.py", line 574, in needs_gstreamer_env
    if path.isdir(gstreamer_root(effective_target, env, self.get_top_dir)):
  File "/data/joelm/personal/UTA/dissertation/servo/servo-master.git/python/servo/command_base.py", line 257, in gstreamer_root
    return path.join(topdir, "support", "linux", "gstreamer", "gst")
  File "/usr/lib/python2.7/posixpath.py", line 70, in join
    elif path == '' or path.endswith('/'):
------------------------------------

The problem is that get_top_dir is being passed as a function to
gstreamer_root in a couple of places instead of being invoked first.
2019-08-29 09:29:55 -05:00
bors-servo
87f328a9a2
Auto merge of #24063 - paulrouget:missingAdb, r=jdm
Download platform-tools even for non-emulator builds

`mach install --android` fails because adb is missing.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/24063)
<!-- Reviewable:end -->
2019-08-27 21:36:35 -04:00
bors-servo
9fe3c4fc0f
Auto merge of #24004 - servo:win-gstreamer, r=ferjm
Enable GStreamer on Windows.

I have verified that desktop and emulator UWP builds work with this set of DLLs.

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes do not require tests because no tests for UWP

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/24004)
<!-- Reviewable:end -->
2019-08-27 10:11:37 -04:00
Paul Rouget
4635f81647 Download platform-tools even for non-emulator builds 2019-08-27 06:53:31 +02:00
Josh Matthews
c0ff30b71f Enable GStreamer on Windows. 2019-08-26 17:41:22 -04:00
TheGoddessInari
789cc5a2e8
Don't assume Visual Studio environment in python. 2019-08-26 11:30:15 -07:00
bors-servo
dfabc33e06
Auto merge of #24040 - asajeffrey:magicleap-gstreamerup, r=jdm
Updated magicleap gtstreamer tarball

<!-- Please describe your changes on the following line: -->

Updates the gstreamer library on magicleap.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [X] These changes do not require tests because we don't test on devices

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/24040)
<!-- Reviewable:end -->
2019-08-24 08:44:03 -04:00
Alan Jeffrey
1c661be721 In mach, add arguments to bare uses of is_windows 2019-08-23 11:54:46 -05:00
Alan Jeffrey
aae32cd6d4 Updated gtstreamer tarball 2019-08-23 11:49:26 -05:00
angelortiz1007
3dd1bfc317 Added support to download nuget and added python code to automate the x64 and arm64 mach build -r/-d --uwp build process. 2019-08-21 20:28:41 -04:00
bors-servo
2e0d1ad567
Auto merge of #24005 - ferjm:windows.pkgconfig, r=Manishearth
Simplify Windows build by not setting PKG_CONFIG_PATH

- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #23177

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/24005)
<!-- Reviewable:end -->
2019-08-20 22:42:12 -04:00
Fernando Jimenez Moreno
72e28dffcd Do not require setting PKG_CONFIG_PATH on Windows 2019-08-20 08:47:35 +02:00
Alan Jeffrey
88a3021c9d Add --magicleap option to mach install 2019-08-19 10:26:15 -05:00
bors-servo
ec2ca08e8e
Auto merge of #23977 - servo:jdm-patch-46, r=Manishearth
Use correct openxr loader path for x64

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23977)
<!-- Reviewable:end -->
2019-08-16 16:59:47 -04:00
Josh Matthews
4c7922759f
Use correct openxr loader path for x64. 2019-08-15 16:59:07 -04:00
Alan Jeffrey
9a2ba596e5 Package both Servo2D and Servo3D in one magicleap mpk 2019-08-15 10:19:02 -05:00
Manish Goregaokar
c879ce078d Use packaged OpenXR 2019-08-12 19:28:48 -07:00
Alan Jeffrey
11b3d78f40 Added gstreamer support to the magicleap port 2019-08-08 16:52:50 -05:00
Josh Matthews
8a10faf3b9 Remove GStreamer dependencies from UWP app. Remove GStreamer backend on Windows.
It's impossible to conditionally use a crate based only on cargo features, so
temporarily disable the backend on all Windows builds while we sort out how
to get the UWP builds working again.
2019-07-30 21:17:34 -07:00
bors-servo
570788610f
Auto merge of #23889 - servo:jdm-patch-48, r=jdm
Correct GStreamer packaging issues

As reported by someone trying to build the UWP app for the very first time.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23889)
<!-- Reviewable:end -->
2019-07-30 07:24:33 -04:00
Simon Sapin
0215d09ccb Generate apis.html and css-properties.json for docs as part of crates’ build scripts
… rather than as an extra step after `cargo doc`.
This helps always using the correct set of CSS properties
(for layout 2013 v.s. 2020).
2019-07-30 08:37:33 +02:00