[vlc-commits] [Git][videolan/vlc][master] 2 commits: meson: add support for smbclient module

Steve Lhomme (@robUx4) gitlab at videolan.org
Fri Aug 21 17:21:34 UTC 2026



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
ca03d41f by Pierre Lamot at 2026-08-21T18:37:09+02:00
meson: add support for smbclient module

- - - - -
bd22b535 by Pierre Lamot at 2026-08-21T18:37:09+02:00
meson: add support for smb2 module

- - - - -


2 changed files:

- meson_options.txt
- modules/access/meson.build


Changes:

=====================================
meson_options.txt
=====================================
@@ -662,7 +662,18 @@ option('udev',
 option('dsm',
     type: 'feature',
     value: 'auto',
-    description: 'SMB/CIFS access/sd support')
+    description: 'libdsm SMB/CIFS access/sd support')
+
+option('smbclient',
+    type: 'feature',
+    value: 'auto',
+    description: 'smbclient SMB/CIFS access/sd support')
+
+option('smb2',
+    type: 'feature',
+    value: 'auto',
+    description: 'support smb2 protocol via libsmb2')
+
 
 option('live555',
     type: 'feature',


=====================================
modules/access/meson.build
=====================================
@@ -429,6 +429,30 @@ vlc_modules += {
     'enabled' : libdsm_dep.found(),
 }
 
+smbclient_dep = dependency('smbclient',  required: get_option('smbclient'))
+vlc_modules += {
+    'name' : 'smbc',
+    'sources' : files('samba.c', 'smb_common.h'),
+    'dependencies' : [smbclient_dep],
+    'enabled' : smbclient_dep.found(),
+}
+
+libsmb2_dep = dependency('libsmb2', version: '>= 3.0.0', required: get_option('smb2'))
+smb2_dependencies = [libsmb2_dep]
+smb2_flags = []
+if (libdsm_dep.found())
+    smb2_dependencies += [libdsm_dep]
+    smb2_flags += '-DHAVE_DSM"'
+endif
+vlc_modules += {
+    'name' : 'smb2',
+    'sources' : files('smb2.c', 'smb_common.h'),
+    'c_args' :  smb2_flags,
+    'dependencies' : smb2_dependencies,
+    'link_with' : [vlc_access_cache_lib],
+    'enabled' : libsmb2_dep.found(),
+}
+
 # FTP
 vlc_modules += {
     'name' : 'ftp',



View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/ab46522fc34dcffce84f263146bfa745fd99cd81...bd22b5358a3f3bf5c196a87420c5fce43bb3340c

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/ab46522fc34dcffce84f263146bfa745fd99cd81...bd22b5358a3f3bf5c196a87420c5fce43bb3340c
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