[libdvdnav-devel] [Git][videolan/libdvdnav][master] 2 commits: CI: add a wasm-emscripten target
Jean-Baptiste Kempf (@jbk)
gitlab at videolan.org
Tue Sep 23 14:53:17 UTC 2025
Jean-Baptiste Kempf pushed to branch master at VideoLAN / libdvdnav
Commits:
ee85c333 by Alaric Senat at 2025-09-23T16:53:05+02:00
CI: add a wasm-emscripten target
- - - - -
38238caf by Jean-Baptiste Kempf at 2025-09-23T16:53:05+02:00
Update to 7.0.0 to align with dvdread
- - - - -
3 changed files:
- .gitlab-ci.yml
- meson.build
- + package/crossfiles/wasm-unknown-emscripten.meson
Changes:
=====================================
.gitlab-ci.yml
=====================================
@@ -69,3 +69,17 @@ build-win-arm:
parallel:
matrix:
- CROSSFILE: [armv7-w64-mingw32, aarch64-w64-mingw32]
+
+build-wasm:
+ image: registry.videolan.org/vlc-debian-wasm-emscripten:20250905104736
+ stage: build
+ tags:
+ - docker
+ - amd64
+ script:
+ - git clone --branch master --depth 1 https://code.videolan.org/videolan/libdvdread.git subprojects/libdvdread
+ - source $EMSCRIPTEN_SDK/emsdk_env.sh
+ - export EM_CACHE=`em-config CACHE`
+ - meson setup build --cross-file package/crossfiles/wasm-unknown-emscripten.meson
+ - meson compile -C build
+
=====================================
meson.build
=====================================
@@ -2,7 +2,7 @@
# SPDX-License-Identifier: MIT
project('libdvdnav', 'c',
- version: '6.2.0',
+ version: '7.0.0',
meson_version: '>= 0.60.0',
default_options: ['buildtype=debugoptimized',
'c_std=c17',
=====================================
package/crossfiles/wasm-unknown-emscripten.meson
=====================================
@@ -0,0 +1,24 @@
+# The Emscripten SDK cache needs to be specified as an `EM_CACHE` environment
+# variable. It can be retrieved with `em-config CACHE`.
+[binaries]
+c = 'emcc'
+cpp = 'em++'
+ar = 'emar'
+ranlib = 'emranlib'
+strip = 'strip'
+pkg-config = 'pkg-config'
+
+[host_machine]
+system = 'emscripten'
+cpu_family = 'wasm32'
+endian = 'little'
+cpu = 'wasm32'
+
+[built-in options]
+default_library = 'static'
+
+[libdvdread:built-in options]
+default_library = 'static'
+
+[properties]
+sys_root = '$EM_CACHE/sysroot'
View it on GitLab: https://code.videolan.org/videolan/libdvdnav/-/compare/c89b1be4b6d3705b7e71766732bb0809578bacca...38238caf599dc9405eddf1531c858c725015f776
--
View it on GitLab: https://code.videolan.org/videolan/libdvdnav/-/compare/c89b1be4b6d3705b7e71766732bb0809578bacca...38238caf599dc9405eddf1531c858c725015f776
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the libdvdnav-devel
mailing list