Fix font not being given the json dependency
Also make it and render get built as dynamic executables on ghactions, and disable dynamic+LTO, as it seems to be buggy in certain cases and isn't an important case.
This commit is contained in:
parent
ebb87a17c6
commit
8161c1d71c
6
.github/build.sh
vendored
6
.github/build.sh
vendored
@ -171,7 +171,7 @@ meson_configure+=$'\t'-Db_strip=false
|
|||||||
meson_configure+=$'\t'-Db_staticpic=false
|
meson_configure+=$'\t'-Db_staticpic=false
|
||||||
meson_configure+=$'\t'-Dinstall_check=true
|
meson_configure+=$'\t'-Dinstall_check=true
|
||||||
meson_configure+=$'\t'-Dmod_id=$MOD_ID
|
meson_configure+=$'\t'-Dmod_id=$MOD_ID
|
||||||
if [[ $BSH_HOST_ARCH-$BSH_HOST_PLATFORM-$BSH_HOST_LIBC-$BSH_STATIC_DYNAMIC == x86_64-linux-gnu-static ]]; then
|
if [[ $BSH_HOST_ARCH-$BSH_HOST_PLATFORM-$BSH_HOST_LIBC == x86_64-linux-gnu ]]; then
|
||||||
meson_configure+=$'\t'-Dbuild_render=true
|
meson_configure+=$'\t'-Dbuild_render=true
|
||||||
meson_configure+=$'\t'-Dbuild_font=true
|
meson_configure+=$'\t'-Dbuild_font=true
|
||||||
fi
|
fi
|
||||||
@ -235,8 +235,10 @@ if [[ $BSH_HOST_PLATFORM-$BSH_HOST_LIBC == windows-mingw ]]; then
|
|||||||
if [[ $BSH_BUILD_PLATFORM == linux ]]; then
|
if [[ $BSH_BUILD_PLATFORM == linux ]]; then
|
||||||
meson_configure+=$'\t'--cross-file=.github/mingw-ghactions.ini
|
meson_configure+=$'\t'--cross-file=.github/mingw-ghactions.ini
|
||||||
fi
|
fi
|
||||||
else
|
fi
|
||||||
|
if [[ $BSH_HOST_PLATFORM-$BSH_HOST_LIBC != windows-mingw ]] && [[ $BSH_STATIC_DYNAMIC == static ]]; then
|
||||||
# LTO simply doesn't work with MinGW. I have no idea why and I also don't care.
|
# LTO simply doesn't work with MinGW. I have no idea why and I also don't care.
|
||||||
|
# It also has a tendency to not play well with dynamic libraries.
|
||||||
meson_configure+=$'\t'-Db_lto=true
|
meson_configure+=$'\t'-Db_lto=true
|
||||||
fi
|
fi
|
||||||
if [[ $BSH_HOST_PLATFORM-$BSH_HOST_ARCH == darwin-aarch64 ]]; then
|
if [[ $BSH_HOST_PLATFORM-$BSH_HOST_ARCH == darwin-aarch64 ]]; then
|
||||||
|
@ -405,6 +405,7 @@ if get_option('build_font')
|
|||||||
zlib_dep,
|
zlib_dep,
|
||||||
sdl2_dep,
|
sdl2_dep,
|
||||||
bzip2_dep,
|
bzip2_dep,
|
||||||
|
json_dep,
|
||||||
]
|
]
|
||||||
executable(
|
executable(
|
||||||
'font',
|
'font',
|
||||||
|
Loading…
Reference in New Issue
Block a user