renpy-build
renpy-build copied to clipboard
Add meson build system support
To integrate meson build system, a cross-file is required, the easiest way to do this is to use meson's env2mfile
command, which eliminates the need to generate a cross-file manually.
env2mfile
requires meson 0.62.0, but Ubuntu 22.04's meson version is 0.61.2, so using pip to install the latest version of meson
For maintaining each platform and architecture, the following variables need to be set to generate the cross-file:
-
meson_cross_system
: https://mesonbuild.com/Reference-tables.html#operating-system-names -
meson_cross_subsystem
: Not needed, if not set, will be set asmeson_cross_system
, https://mesonbuild.com/Reference-tables.html#subsystem-names-since-120 -
meson_cross_kernel
: https://mesonbuild.com/Reference-tables.html#kernel-names-since-120 -
meson_cross_cpu_family
: https://mesonbuild.com/Reference-tables.html#cpu-families -
meson_cross_cpu
: There is no reference for, so it has to manually find the appropriate value
Requires meson 1.4.1 because there is a bug before this version, which made not able to use meson's -Dc_std
, -Dcpp_std
to set c/cxx default standard version.