refactor font api
Some checks failed
pyrite-dev/milsko/pipeline/head There was a failure building this commit

This commit is contained in:
Nishi 2026-04-06 17:29:09 +09:00
commit 0de09207a4
Signed by: nishi
GPG key ID: 27EF69B208EB9343
31 changed files with 12209 additions and 6149 deletions

View file

@ -1,10 +1,10 @@
my @enabled_backends=();
my @enabled_backends = ();
if (param_get("wayland")) {
push(@enabled_backends,"wayland");
push(@enabled_backends, "wayland");
}
if (param_get("x11")) {
push(@enabled_backends,"x11");
push(@enabled_backends, "x11");
}
use_backend(@enabled_backends);

View file

@ -3,7 +3,7 @@ new_object("src/*.c");
my $gl_libs = "";
if (param_get("tiny")) {
add_cflags("-Oz");
if(defined($ENV{CC}) && grep(/^clang$/, $ENV{CC})) {
if (defined($ENV{CC}) && grep(/^clang$/, $ENV{CC})) {
add_libs("-flto=thin");
add_cflags("-flto=thin");
}
@ -68,7 +68,7 @@ if (grep(/^cocoa$/, @backends)) {
if (param_get("stb-image")) {
add_cflags("-DUSE_STB_IMAGE");
if(param_get("tiny")) {
if (param_get("tiny")) {
add_cflags("-DSTB_IMAGE_STATIC");
add_cflags("-DSTB_IMAGE_IMPLEMENTATION");
}