mirror of
https://github.com/servo/servo.git
synced 2025-07-27 01:00:41 +01:00
Remove more deprecated Windows GNU code/docs
This commit is contained in:
parent
ff74faee10
commit
022f0aa34a
10 changed files with 31 additions and 163 deletions
|
@ -297,10 +297,6 @@ class MachCommands(CommandBase):
|
|||
|
||||
cargo_binary = "cargo" + BIN_SUFFIX
|
||||
|
||||
if sys.platform in ("win32", "msys"):
|
||||
if "msvc" not in host_triple():
|
||||
env[b'RUSTFLAGS'] = b'-C link-args=-Wl,--subsystem,windows'
|
||||
|
||||
status = call(
|
||||
[cargo_binary, "build"] + opts,
|
||||
env=env, cwd=self.servo_crate(), verbose=verbose)
|
||||
|
@ -308,22 +304,22 @@ class MachCommands(CommandBase):
|
|||
|
||||
# Do some additional things if the build succeeded
|
||||
if status == 0:
|
||||
if sys.platform in ("win32", "msys"):
|
||||
if sys.platform == "win32":
|
||||
servo_exe_dir = path.join(base_path, "debug" if dev else "release")
|
||||
# On windows, copy in our manifest
|
||||
shutil.copy(path.join(self.get_top_dir(), "components", "servo", "servo.exe.manifest"),
|
||||
servo_exe_dir)
|
||||
if "msvc" in (target or host_triple()):
|
||||
msvc_x64 = "64" if "x86_64" in (target or host_triple()) else ""
|
||||
# on msvc builds, use editbin to change the subsystem to windows, but only
|
||||
# on release builds -- on debug builds, it hides log output
|
||||
if not dev:
|
||||
call(["editbin", "/nologo", "/subsystem:windows", path.join(servo_exe_dir, "servo.exe")],
|
||||
verbose=verbose)
|
||||
# on msvc, we need to copy in some DLLs in to the servo.exe dir
|
||||
for ssl_lib in ["libcryptoMD.dll", "libsslMD.dll"]:
|
||||
shutil.copy(path.join(env['OPENSSL_LIB_DIR'], "../bin" + msvc_x64, ssl_lib),
|
||||
servo_exe_dir)
|
||||
|
||||
msvc_x64 = "64" if "x86_64" in (target or host_triple()) else ""
|
||||
# on msvc builds, use editbin to change the subsystem to windows, but only
|
||||
# on release builds -- on debug builds, it hides log output
|
||||
if not dev:
|
||||
call(["editbin", "/nologo", "/subsystem:windows", path.join(servo_exe_dir, "servo.exe")],
|
||||
verbose=verbose)
|
||||
# on msvc, we need to copy in some DLLs in to the servo.exe dir
|
||||
for ssl_lib in ["libcryptoMD.dll", "libsslMD.dll"]:
|
||||
shutil.copy(path.join(env['OPENSSL_LIB_DIR'], "../bin" + msvc_x64, ssl_lib),
|
||||
servo_exe_dir)
|
||||
|
||||
elif sys.platform == "darwin":
|
||||
# On the Mac, set a lovely icon. This makes it easier to pick out the Servo binary in tools
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue