[vlc-commits] [Git][videolan/vlc][master] meson: share: generate the default skin
Steve Lhomme (@robUx4)
gitlab at videolan.org
Fri Oct 2 13:32:27 UTC 2026
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
ab236c42 by Wassim Lalaoui at 2026-10-02T13:21:59+00:00
meson: share: generate the default skin
Create the archive with tar like the autotools build, in share/skins2 of
the build directory where an in-tree vlc-static finds it.
Adapted to remain in the skins2 folder.
Signed-off-by: Steve Lhomme <robux4 at ycbcr.xyz>
- - - - -
1 changed file:
- modules/gui/skins2/meson.build
Changes:
=====================================
modules/gui/skins2/meson.build
=====================================
@@ -1,3 +1,5 @@
+fs = import('fs')
+
skins2_option = get_option('skins2') \
.disable_auto_if(host_system != 'windows' and host_system != 'darwin' and not x11_dep.found()) \
.require(freetype_dep.found(), error_message: 'Freetype is not available')
@@ -207,5 +209,42 @@ if skins2_feasible
install_data('../../../share/skins2/skin.dtd', install_dir: skinsdatadir_path)
install_data('../../../share/skins2/winamp2.xml', install_dir: skinsdatadir_path)
- # TODO default.vlt which is a gzip/tarball of the skins2/default folder
+ # Content of the default skin archive, in the order it is stored
+ default_vlt_files = files(
+ '../../../share/skins2/default/subX/about.png',
+ '../../../share/skins2/default/subX/eq.png',
+ '../../../share/skins2/default/subX/font.otf',
+ '../../../share/skins2/default/subX/main.png',
+ '../../../share/skins2/default/subX/pl.png',
+ '../../../share/skins2/default/subX/playtreeglyphs.png',
+ '../../../share/skins2/default/subX/sysbuttons.png',
+ '../../../share/skins2/default/subX/vol_anim.png',
+ '../../../share/skins2/default/subX/vol_slider.png',
+ '../../../share/skins2/default/theme.xml',
+ )
+
+ # Store root as the owner of the files like the autotools build. This is not
+ # supported by the tar of macOS.
+ tar = find_program('tar')
+ if build_machine.system() == 'darwin'
+ tar_owner_args = []
+ else
+ tar_owner_args = ['--owner=root', '--group=root']
+ endif
+
+ relative_vlt_files = []
+ foreach f : default_vlt_files
+ relative_vlt_files += fs.relative_to(f, '../../../share/skins2')
+ endforeach
+
+ custom_target(
+ input: default_vlt_files,
+ output: 'default.vlt',
+ command: [tar, 'cvvzf', '@OUTPUT@', '--format=ustar', tar_owner_args,
+ '--directory=' + vlc_src_root / 'share/skins2', relative_vlt_files
+ ],
+ env: {'GZIP': '--no-name'},
+ console: true,
+ install: true,
+ install_dir: skinsdatadir_path)
endif
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/ab236c42c360ea2a89ea20d25464bfe45423ce32
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/ab236c42c360ea2a89ea20d25464bfe45423ce32
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help
More information about the vlc-commits
mailing list