[vlc-commits] [Git][videolan/vlc][master] contrib: add a way to build native tools with meson

Felix Paul Kühne (@fkuehne) gitlab at videolan.org
Sun Mar 22 18:21:35 UTC 2026



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


Commits:
d1e07290 by Steve Lhomme at 2026-03-22T17:51:40+01:00
contrib: add a way to build native tools with meson

Similar to CMAKE_NATIVE. And also similar to $(MESON) when not cross compiling
but using all BUILDxxx variables.

- - - - -


1 changed file:

- contrib/src/main.mak


Changes:

=====================================
contrib/src/main.mak
=====================================
@@ -568,6 +568,10 @@ MESON = env -i PATH="$(PATH)" \
 else
 MESON = $(HOSTTOOLS) meson setup $(MESONFLAGS)
 endif
+MESON_NATIVE = $(BUILDTOOLS) meson setup $(BUILD_DIR) $< --prefix "$(BUILDPREFIX)" \
+	--backend ninja -Dlibdir=lib -Dcmake_prefix_path="$(BUILDPREFIX)" \
+	-Dc_args="$(BUILDCFLAGS)" -Dc_link_args="$(BUILDLDFLAGS)" -Dcpp_args="$(BUILDCXXFLAGS)" -Dcpp_link_args="$(BUILDLDFLAGS)"
+
 MESONCLEAN = rm -rf $(BUILD_DIR)/meson-private
 MESONBUILD = meson compile -C $(BUILD_DIR) $(MESON_BUILD) $(MESONCOMPILEFLAGS) && meson install -C $(BUILD_DIR)
 



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

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




More information about the vlc-commits mailing list