mirror of
https://github.com/servo/servo.git
synced 2025-06-08 00:23:30 +00:00
Auto merge of #23484 - servo:jdm-patch-53, r=Manishearth
Update gstreamer on Windows to 1.16.0. Fixes #23348. <!-- 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/23484) <!-- Reviewable:end -->
This commit is contained in:
commit
3a2705f587
5 changed files with 26 additions and 15 deletions
|
@ -50,10 +50,10 @@ cache:
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- appveyor-retry choco install pkgconfiglite
|
- appveyor-retry choco install pkgconfiglite
|
||||||
- appveyor-retry appveyor DownloadFile https://gstreamer.freedesktop.org/data/pkg/windows/1.14.1/gstreamer-1.0-devel-x86_64-1.14.1.msi
|
- appveyor-retry appveyor DownloadFile https://gstreamer.freedesktop.org/data/pkg/windows/1.16.0/gstreamer-1.0-devel-msvc-x86_64-1.16.0.msi
|
||||||
- appveyor-retry appveyor DownloadFile https://gstreamer.freedesktop.org/data/pkg/windows/1.14.1/gstreamer-1.0-x86_64-1.14.1.msi
|
- appveyor-retry appveyor DownloadFile https://gstreamer.freedesktop.org/data/pkg/windows/1.16.0/gstreamer-1.0-msvc-x86_64-1.16.0.msi
|
||||||
- msiexec /i gstreamer-1.0-devel-x86_64-1.14.1.msi /quiet /qn /norestart /log install-devel.log
|
- msiexec /i gstreamer-1.0-devel-msvc-x86_64-1.16.0.msi /quiet /qn /norestart /log install-devel.log
|
||||||
- msiexec /i gstreamer-1.0-x86_64-1.14.1.msi /quiet /qn /norestart /log install.log
|
- msiexec /i gstreamer-1.0-msvc-x86_64-1.16.0.msi /quiet /qn /norestart /log install.log
|
||||||
- call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
|
- call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
|
||||||
- appveyor-retry appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
|
- appveyor-retry appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
|
||||||
- rustup-init.exe -y --default-host x86_64-pc-windows-msvc --default-toolchain none
|
- rustup-init.exe -y --default-host x86_64-pc-windows-msvc --default-toolchain none
|
||||||
|
|
|
@ -359,14 +359,17 @@ def android_x86_wpt():
|
||||||
|
|
||||||
def windows_x86():
|
def windows_x86():
|
||||||
return (
|
return (
|
||||||
windows_build_task("Dev build", package=False, arch="x86")
|
windows_build_task("Dev build", arch="x86")
|
||||||
.with_treeherder("Windows x86")
|
.with_treeherder("Windows x86")
|
||||||
.with_env(**{
|
.with_env(**{
|
||||||
"VCVARSALL_PATH": "C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\BuildTools\\VC\\Auxiliary\\Build"
|
"VCVARSALL_PATH": "C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\BuildTools\\VC\\Auxiliary\\Build"
|
||||||
})
|
})
|
||||||
.with_script(
|
.with_script(
|
||||||
"python mach build --dev --target i686-pc-windows-msvc",
|
"python mach build --dev --target i686-pc-windows-msvc",
|
||||||
|
"python mach package --dev --target i686-pc-windows-msvc",
|
||||||
)
|
)
|
||||||
|
.with_artifacts("repo/target/i686-pc-windows-msvc/debug/msi/Servo.exe",
|
||||||
|
"repo/target/i686-pc-windows-msvc/debug/msi/Servo.zip")
|
||||||
.find_or_create("build.windows_x86_dev." + CONFIG.task_id())
|
.find_or_create("build.windows_x86_dev." + CONFIG.task_id())
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -702,15 +705,19 @@ def android_build_task(name):
|
||||||
def windows_build_task(name, package=True, arch="x86_64"):
|
def windows_build_task(name, package=True, arch="x86_64"):
|
||||||
hashes = {
|
hashes = {
|
||||||
"devel": {
|
"devel": {
|
||||||
"x86_64": "b13ea68c1365098c66871f0acab7fd3daa2f2795b5e893fcbb5cd7253f2c08fa",
|
"x86_64": "c136cbfb0330041d52fe6ec4e3e468563176333c857f6ed71191ebc37fc9d605",
|
||||||
"x86": "50a18d050cdbb0779cd00607cc00a90f24fac48f2fb6c622ade6f23f050feb7a",
|
"x86": "fed862659360b4fbc77920bdc28f1a7da56bb953b88044834db5161c0ee05eb3",
|
||||||
},
|
},
|
||||||
"non-devel": {
|
"non-devel": {
|
||||||
"x86_64": "f4f20c713766ed6718b914b9ae57ed993a59ffe194e6ef530c8547508b4484d8",
|
"x86_64": "0744a8ef2a4ba393dacb7927d741df871400a85bab5aecf7905f63bf52c405e4",
|
||||||
"x86": "52692c12ba8c3f59b5a289050e146d34d8374ab32b9f5070f7d1e37809656068",
|
"x86": "f36df8ba7a3858c2299162312cb939e3fe8ff65c704f988c497405ba8d9cb275",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
version = "1.14.3"
|
prefix = {
|
||||||
|
"x86_64": "msvc",
|
||||||
|
"x86": "mingw",
|
||||||
|
}
|
||||||
|
version = "1.16.0"
|
||||||
task = (
|
task = (
|
||||||
windows_task(name)
|
windows_task(name)
|
||||||
.with_max_run_time_minutes(90)
|
.with_max_run_time_minutes(90)
|
||||||
|
@ -729,13 +736,13 @@ def windows_build_task(name, package=True, arch="x86_64"):
|
||||||
.with_rustup()
|
.with_rustup()
|
||||||
.with_repacked_msi(
|
.with_repacked_msi(
|
||||||
url=("https://gstreamer.freedesktop.org/data/pkg/windows/" +
|
url=("https://gstreamer.freedesktop.org/data/pkg/windows/" +
|
||||||
"%s/gstreamer-1.0-%s-%s.msi" % (version, arch, version)),
|
"%s/gstreamer-1.0-%s-%s-%s.msi" % (version, prefix[arch], arch, version)),
|
||||||
sha256=hashes["non-devel"][arch],
|
sha256=hashes["non-devel"][arch],
|
||||||
path="gst",
|
path="gst",
|
||||||
)
|
)
|
||||||
.with_repacked_msi(
|
.with_repacked_msi(
|
||||||
url=("https://gstreamer.freedesktop.org/data/pkg/windows/" +
|
url=("https://gstreamer.freedesktop.org/data/pkg/windows/" +
|
||||||
"%s/gstreamer-1.0-devel-%s-%s.msi" % (version, arch, version)),
|
"%s/gstreamer-1.0-devel-%s-%s-%s.msi" % (version, prefix[arch], arch, version)),
|
||||||
sha256=hashes["devel"][arch],
|
sha256=hashes["devel"][arch],
|
||||||
path="gst",
|
path="gst",
|
||||||
)
|
)
|
||||||
|
|
|
@ -618,7 +618,8 @@ class MachCommands(CommandBase):
|
||||||
return rv
|
return rv
|
||||||
|
|
||||||
if sys.platform == "win32":
|
if sys.platform == "win32":
|
||||||
servo_exe_dir = path.join(base_path, "debug" if dev else "release")
|
servo_exe_dir = os.path.dirname(self.get_binary_path(release, dev, target=target))
|
||||||
|
assert os.path.exists(servo_exe_dir)
|
||||||
|
|
||||||
# on msvc builds, use editbin to change the subsystem to windows, but only
|
# on msvc builds, use editbin to change the subsystem to windows, but only
|
||||||
# on release builds -- on debug builds, it hides log output
|
# on release builds -- on debug builds, it hides log output
|
||||||
|
@ -631,6 +632,7 @@ class MachCommands(CommandBase):
|
||||||
servo_exe_dir)
|
servo_exe_dir)
|
||||||
# Search for the generated nspr4.dll
|
# Search for the generated nspr4.dll
|
||||||
build_path = path.join(servo_exe_dir, "build")
|
build_path = path.join(servo_exe_dir, "build")
|
||||||
|
assert os.path.exists(build_path)
|
||||||
|
|
||||||
def package_generated_shared_libraries(libs, build_path, servo_exe_dir):
|
def package_generated_shared_libraries(libs, build_path, servo_exe_dir):
|
||||||
for root, dirs, files in os.walk(build_path):
|
for root, dirs, files in os.walk(build_path):
|
||||||
|
|
|
@ -367,7 +367,7 @@ class CommandBase(object):
|
||||||
def get_gstreamer_path(self):
|
def get_gstreamer_path(self):
|
||||||
return path.join(self.context.topdir, "support", "linux", "gstreamer", "gst")
|
return path.join(self.context.topdir, "support", "linux", "gstreamer", "gst")
|
||||||
|
|
||||||
def get_binary_path(self, release, dev, android=False, magicleap=False):
|
def get_binary_path(self, release, dev, target=None, android=False, magicleap=False):
|
||||||
# TODO(autrilla): this function could still use work - it shouldn't
|
# TODO(autrilla): this function could still use work - it shouldn't
|
||||||
# handle quitting, or printing. It should return the path, or an error.
|
# handle quitting, or printing. It should return the path, or an error.
|
||||||
base_path = self.get_target_dir()
|
base_path = self.get_target_dir()
|
||||||
|
@ -380,6 +380,8 @@ class CommandBase(object):
|
||||||
elif android:
|
elif android:
|
||||||
base_path = path.join(base_path, "android", self.config["android"]["target"])
|
base_path = path.join(base_path, "android", self.config["android"]["target"])
|
||||||
binary_name = "libsimpleservo.so"
|
binary_name = "libsimpleservo.so"
|
||||||
|
elif target:
|
||||||
|
base_path = path.join(base_path, target)
|
||||||
|
|
||||||
release_path = path.join(base_path, "release", binary_name)
|
release_path = path.join(base_path, "release", binary_name)
|
||||||
dev_path = path.join(base_path, "debug", binary_name)
|
dev_path = path.join(base_path, "debug", binary_name)
|
||||||
|
|
|
@ -219,7 +219,7 @@ class PackageCommands(CommandBase):
|
||||||
if magicleap:
|
if magicleap:
|
||||||
target = "aarch64-linux-android"
|
target = "aarch64-linux-android"
|
||||||
env = self.build_env(target=target)
|
env = self.build_env(target=target)
|
||||||
binary_path = self.get_binary_path(release, dev, android=android, magicleap=magicleap)
|
binary_path = self.get_binary_path(release, dev, target=target, android=android, magicleap=magicleap)
|
||||||
dir_to_root = self.get_top_dir()
|
dir_to_root = self.get_top_dir()
|
||||||
target_dir = path.dirname(binary_path)
|
target_dir = path.dirname(binary_path)
|
||||||
if magicleap:
|
if magicleap:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue