forked from pyrite-dev/milsko
thing
This commit is contained in:
parent
89cfece767
commit
b0f89d1dcc
1 changed files with 16 additions and 9 deletions
25
configure
vendored
25
configure
vendored
|
|
@ -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 . "-";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue