[libdvdnav-devel] [Git][videolan/libdvdnav][master] CI: add a wasm-emscripten target

Jean-Baptiste Kempf (@jbk) gitlab at videolan.org
Tue Sep 23 14:52:00 UTC 2025



Jean-Baptiste Kempf pushed to branch master at VideoLAN / libdvdnav


Commits:
c89b1be4 by Alaric Senat at 2025-09-23T14:49:52+00:00
CI: add a wasm-emscripten target

- - - - -


2 changed files:

- .gitlab-ci.yml
- + 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
+


=====================================
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/-/commit/c89b1be4b6d3705b7e71766732bb0809578bacca

-- 
View it on GitLab: https://code.videolan.org/videolan/libdvdnav/-/commit/c89b1be4b6d3705b7e71766732bb0809578bacca
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