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

25
configure vendored
View file

@ -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 . "-";
}