From b0f89d1dcce5d976651dffb3ffe0ce27c9afcdb3 Mon Sep 17 00:00:00 2001 From: Nishi Date: Wed, 22 Apr 2026 08:50:56 +0900 Subject: [PATCH] thing --- configure | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/configure b/configure index 5bd5cc6..6bd00b7 100755 --- a/configure +++ b/configure @@ -73,14 +73,24 @@ my @features_keys = ( "1dbus" ); -if($target ne "Darwin" and $target ne "ClassicMacOS" and $target ne "Windows") { - param_set("freetype2", 1); - param_set("stb-truetype", 0); -} else { - param_set("freetype2", 0); - param_set("stb-truetype", 1); +sub def_platform { + if($target ne "Darwin" and $target ne "ClassicMacOS" and $target ne "Windows") { + param_set("freetype2", 1); + param_set("stb-truetype", 0); + } else { + param_set("freetype2", 0); + param_set("stb-truetype", 1); + } } +foreach my $l (@ARGV) { + if ($l =~ /^--target=(.+)$/) { + $target = $1; + } +} + +def_platform(); + if($target eq "Linux") { param_set("x11", 1); if(!param_get("tiny")){ @@ -98,9 +108,6 @@ foreach my $l (@ARGV) { elsif ($l =~ /^--(?:without|disable)-(.+)$/) { param_set($1, 0); } - elsif ($l =~ /^--target=(.+)$/) { - $target = $1; - } elsif ($l =~ /^--host=(.+)$/) { $host = $1 . "-"; }