Skip to content

Commit

Permalink
feat: minimize media_kit_libs_windows_audio bundle size
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmercerind committed Feb 16, 2023
1 parent 5bb601c commit 21eb88d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion media_kit_libs_windows_audio/CHANGELOG.md
@@ -1,3 +1,3 @@
## 1.0.0

- [mpv-player/mpv@`f52cfda`](https://github.com/mpv-player/mpv/commit/f52cfdabca246a7edb59c234d5a63eb638f63e70)
- [mpv-player/mpv@`5510d9f`](https://github.com/mpv-player/mpv/commit/5510d9f6632c009c398ce48a4d5a89c7f95efc96)
2 changes: 2 additions & 0 deletions media_kit_libs_windows_audio/README.md
Expand Up @@ -4,6 +4,8 @@ Windows package providing audio (only) native libraries for [`package:media_kit`

Visit [alexmercerind/mpv-win32-cmake@`disable-gl`](https://github.com/alexmercerind/mpv-win32-cmake/tree/disable-gl) for descriptive details.

Thanks to [Mitchel Stewart](https://github.com/Quackdoc) for providing patches to generate minimal libmpv & FFmpeg audio specific builds.

## Support

If you find [package:media_kit](https://github.com/alexmercerind/media_kit) package(s) useful or want to support future development, please consider supporting me. It's a very tedious process to write code, document, maintain & provide support for free. Since this is first of a kind project, it takes a lot of time to experiment & develop.
Expand Down
10 changes: 6 additions & 4 deletions media_kit_libs_windows_audio/windows/CMakeLists.txt
@@ -1,14 +1,16 @@
# Thanks to Mitchel Stewart (https://github.com/Quackdoc) for providing patches to generate minimal libmpv & FFmpeg audio specific builds.

cmake_minimum_required(VERSION 3.14)

set(PROJECT_NAME "media_kit_libs_windows_audio")
project(${PROJECT_NAME} LANGUAGES CXX)

# libmpv archive containing the pre-built shared libraries & headers.
set(LIBMPV "mpv-dev-x86_64-20230117-git-f52cfda.7z")
set(LIBMPV "mpv-dev-x86_64-20230125-git-5510d9f.7z")

# Download URL & MD5 hash of the libmpv archive.
set(LIBMPV_URL "https://github.com/harmonoid/mpv-win32-build/releases/download/2023-01-17/${LIBMPV}")
set(LIBMPV_MD5 "9c7bbdf2c52fd6599df7336a0b61dc06")
set(LIBMPV_URL "https://github.com/harmonoid/mpv-win32-build/releases/download/2023-01-25/${LIBMPV}")
set(LIBMPV_MD5 "218daf8210a080f84493f7ff89406043")

# Download location of the libmpv archive.
set(LIBMPV_ARCHIVE "${CMAKE_BINARY_DIR}/${LIBMPV}")
Expand Down Expand Up @@ -44,6 +46,6 @@ endif()

set(
media_kit_libs_windows_audio_bundled_libraries
"${LIBMPV_SRC}/mpv-2.dll"
"${LIBMPV_SRC}/libmpv-2.dll"
PARENT_SCOPE
)

0 comments on commit 21eb88d

Please sign in to comment.