diff options
Diffstat (limited to 'build_scripts/wheel_files.py')
| -rw-r--r-- | build_scripts/wheel_files.py | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/build_scripts/wheel_files.py b/build_scripts/wheel_files.py index ef5f2b74a..bd97f0941 100644 --- a/build_scripts/wheel_files.py +++ b/build_scripts/wheel_files.py @@ -850,9 +850,17 @@ def module_QtMultimedia() -> ModuleData: data.translations.append("qtmultimedia_*") data.plugins = get_module_plugins(json_data) - if sys.platform == "win32": - data.extra_files.extend(["avcodec-60.dll", "avformat-60.dll", "avutil-58.dll", - "swresample-4.dll", "swscale-7.dll"]) + platform_files = { + "win32": ["avcodec-60.dll", "avformat-60.dll", "avutil-58.dll", "swresample-4.dll", + "swscale-7.dll"], + "darwin": [f"Qt/lib/{dependency_lib}" for dependency_lib in ["libavcodec.60.dylib", + "libavformat.60.dylib", + "libavutil.58.dylib", + "libswresample.4.dylib", + "libswscale.7.dylib"]]} + + extra_files = platform_files.get(sys.platform, []) + data.extra_files.extend(extra_files) return data |
