[vlc-commits] [Git][videolan/vlc][master] meson.build: add watchOS and visionOS platform detection

Felix Paul Kühne (@fkuehne) gitlab at videolan.org
Sun Apr 26 17:32:27 UTC 2026



Felix Paul Kühne pushed to branch master at VideoLAN / VLC


Commits:
dfbaf0ea by Alexandre Janniaux at 2026-04-26T19:17:37+02:00
meson.build: add watchOS and visionOS platform detection

Expose have_watchos and have_xros for future cases and use TARGET_OS_OSX
for macOS detection

- - - - -


1 changed file:

- meson.build


Changes:

=====================================
meson.build
=====================================
@@ -332,12 +332,23 @@ if host_system == 'darwin'
     have_tvos = cc.get_define('TARGET_OS_TV',
         prefix: '#include <TargetConditionals.h>') == '1'
 
-    # If none of the above, assume compiling for macOS
-    have_osx = not have_ios and not have_tvos
+    # Check if compiling for watchOS
+    have_watchos = cc.get_define('TARGET_OS_WATCH',
+        prefix: '#include <TargetConditionals.h>') == '1'
+
+    # Check if compiling for visionOS
+    have_xros = cc.get_define('TARGET_OS_VISION',
+        prefix: '#include <TargetConditionals.h>') == '1'
+
+    # Check if compiling for macOS
+    have_osx = cc.get_define('TARGET_OS_OSX',
+        prefix: '#include <TargetConditionals.h>') == '1'
 
 else
     have_ios = false
     have_tvos = false
+    have_watchos = false
+    have_xros = false
     have_osx = false
 endif
 



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/dfbaf0eaf6c46c5163f7b615af1d518f866f32eb

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/dfbaf0eaf6c46c5163f7b615af1d518f866f32eb
You're receiving this email because of your account on code.videolan.org.




More information about the vlc-commits mailing list