mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Copy in DLLs to servo.exe dir
This commit is contained in:
parent
e7dd579ebf
commit
ab007315c2
1 changed files with 8 additions and 1 deletions
|
@ -257,10 +257,17 @@ class MachCommands(CommandBase):
|
||||||
# On windows, copy in our manifest
|
# On windows, copy in our manifest
|
||||||
shutil.copy(path.join(self.get_top_dir(), "components", "servo", "servo.exe.manifest"),
|
shutil.copy(path.join(self.get_top_dir(), "components", "servo", "servo.exe.manifest"),
|
||||||
servo_exe_dir)
|
servo_exe_dir)
|
||||||
# And on msvc builds, use editbin to change the subsystem to windows
|
|
||||||
if "msvc" in host_triple():
|
if "msvc" in host_triple():
|
||||||
|
# on msvc builds, use editbin to change the subsystem to windows
|
||||||
call(["editbin", "/nologo", "/subsystem:windows", path.join(servo_exe_dir, "servo.exe")],
|
call(["editbin", "/nologo", "/subsystem:windows", path.join(servo_exe_dir, "servo.exe")],
|
||||||
verbose=verbose)
|
verbose=verbose)
|
||||||
|
# on msvc, we need to copy in some DLLs in to the servo.exe dir
|
||||||
|
for ssl_lib in ["ssleay32md.dll", "libeay32md.dll"]:
|
||||||
|
shutil.copy(path.join(os.getenv('OPENSSL_LIB_DIR'), "../bin64", ssl_lib),
|
||||||
|
servo_exe_dir)
|
||||||
|
for ffmpeg_lib in ["avutil-55.dll", "avformat-57.dll", "avcodec-57.dll", "swresample-2.dll"]:
|
||||||
|
shutil.copy(path.join(os.getenv('FFMPEG_LIB_DIR'), "../bin", ffmpeg_lib),
|
||||||
|
servo_exe_dir)
|
||||||
|
|
||||||
elif sys.platform == "darwin":
|
elif sys.platform == "darwin":
|
||||||
# On the Mac, set a lovely icon. This makes it easier to pick out the Servo binary in tools
|
# 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