This commit is contained in:
Nishi 2026-04-22 08:50:56 +09:00
commit b0f89d1dcc

13
configure vendored
View file

@ -73,6 +73,7 @@ my @features_keys = (
"1dbus" "1dbus"
); );
sub def_platform {
if($target ne "Darwin" and $target ne "ClassicMacOS" and $target ne "Windows") { if($target ne "Darwin" and $target ne "ClassicMacOS" and $target ne "Windows") {
param_set("freetype2", 1); param_set("freetype2", 1);
param_set("stb-truetype", 0); param_set("stb-truetype", 0);
@ -80,6 +81,15 @@ if($target ne "Darwin" and $target ne "ClassicMacOS" and $target ne "Windows") {
param_set("freetype2", 0); param_set("freetype2", 0);
param_set("stb-truetype", 1); param_set("stb-truetype", 1);
} }
}
foreach my $l (@ARGV) {
if ($l =~ /^--target=(.+)$/) {
$target = $1;
}
}
def_platform();
if($target eq "Linux") { if($target eq "Linux") {
param_set("x11", 1); param_set("x11", 1);
@ -98,9 +108,6 @@ foreach my $l (@ARGV) {
elsif ($l =~ /^--(?:without|disable)-(.+)$/) { elsif ($l =~ /^--(?:without|disable)-(.+)$/) {
param_set($1, 0); param_set($1, 0);
} }
elsif ($l =~ /^--target=(.+)$/) {
$target = $1;
}
elsif ($l =~ /^--host=(.+)$/) { elsif ($l =~ /^--host=(.+)$/) {
$host = $1 . "-"; $host = $1 . "-";
} }