mirror of
https://github.com/servo/servo.git
synced 2025-07-03 21:43:41 +01:00
Don't package gstreamer when it's disabled.
This commit is contained in:
parent
3ce71cda73
commit
30143558b3
1 changed files with 8 additions and 5 deletions
|
@ -193,7 +193,9 @@ class MachCommands(CommandBase):
|
||||||
if not uwp:
|
if not uwp:
|
||||||
uwp = target and 'uwp' in target
|
uwp = target and 'uwp' in target
|
||||||
|
|
||||||
features += self.pick_media_stack(media_stack, target)
|
media_stack = self.pick_media_stack(media_stack, target)
|
||||||
|
features += media_stack
|
||||||
|
has_media_stack = media_stack[0] == "media-gstreamer"
|
||||||
|
|
||||||
target_path = base_path = self.get_target_dir()
|
target_path = base_path = self.get_target_dir()
|
||||||
if android:
|
if android:
|
||||||
|
@ -726,6 +728,7 @@ class MachCommands(CommandBase):
|
||||||
status = 1
|
status = 1
|
||||||
|
|
||||||
# copy needed gstreamer DLLs in to servo.exe dir
|
# copy needed gstreamer DLLs in to servo.exe dir
|
||||||
|
if has_media_stack:
|
||||||
print("Packaging gstreamer DLLs")
|
print("Packaging gstreamer DLLs")
|
||||||
if not package_gstreamer_dlls(env, servo_exe_dir, target_triple, uwp):
|
if not package_gstreamer_dlls(env, servo_exe_dir, target_triple, uwp):
|
||||||
status = 1
|
status = 1
|
||||||
|
@ -741,7 +744,7 @@ class MachCommands(CommandBase):
|
||||||
)
|
)
|
||||||
assert os.path.exists(servo_exe_dir)
|
assert os.path.exists(servo_exe_dir)
|
||||||
|
|
||||||
if not package_gstreamer_dylibs(servo_exe_dir):
|
if has_media_stack and not package_gstreamer_dylibs(servo_exe_dir):
|
||||||
return 1
|
return 1
|
||||||
|
|
||||||
# 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