From fc3555556cfe5ee775281eb05cfeea232efa68c7 Mon Sep 17 00:00:00 2001 From: UK992 Date: Mon, 1 Aug 2016 15:20:26 +0200 Subject: Create `mach bootstrap` based on Mozilla's mozboot bootstrapper --- python/servo/build_commands.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'python/servo/build_commands.py') diff --git a/python/servo/build_commands.py b/python/servo/build_commands.py index 708640208b8..5277adf66d0 100644 --- a/python/servo/build_commands.py +++ b/python/servo/build_commands.py @@ -257,16 +257,14 @@ class MachCommands(CommandBase): # 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 host_triple(): + 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 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 ["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), + shutil.copy(path.join(env['OPENSSL_LIB_DIR'], "../bin" + msvc_x64, ssl_lib), servo_exe_dir) elif sys.platform == "darwin": -- cgit v1.2.3