[libdvdnav-devel] [Git][videolan/libdvdread][master] CI: add a wasm-emscripten target
Jean-Baptiste Kempf (@jbk)
gitlab at videolan.org
Fri Sep 5 09:46:45 UTC 2025
Jean-Baptiste Kempf pushed to branch master at VideoLAN / libdvdread
Commits:
ce66ed6f by Alaric Senat at 2025-09-05T10:21:41+02:00
CI: add a wasm-emscripten target
- - - - -
2 changed files:
- .gitlab-ci.yml
- + package/crossfiles/wasm-unknown-emscripten.meson
Changes:
=====================================
.gitlab-ci.yml
=====================================
@@ -64,3 +64,15 @@ build-win-arm:
parallel:
matrix:
- CROSSFILE: [armv7-w64-mingw32, aarch64-w64-mingw32]
+
+build-wasm:
+ image: registry.videolan.org/vlc-debian-wasm-emscripten:20250323132008
+ stage: build
+ tags:
+ - docker
+ - amd64
+ script:
+ - 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,21 @@
+# 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'
+
+[properties]
+sys_root = '$EM_CACHE/sysroot'
View it on GitLab: https://code.videolan.org/videolan/libdvdread/-/commit/ce66ed6f988a20ca4e9e37c6004390c7bbda5b2d
--
View it on GitLab: https://code.videolan.org/videolan/libdvdread/-/commit/ce66ed6f988a20ca4e9e37c6004390c7bbda5b2d
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