git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@638 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
NishiOwO
2025-11-08 02:25:57 +00:00
parent 5d1cbf3bdf
commit b2db4f0ba7
2 changed files with 15 additions and 1 deletions

View File

@@ -95,7 +95,17 @@ if(-f "./pl/ostype/${target}.pl"){
require("./pl/rules.pl");
print("Target: " . $target . "\n");
print("Target : " . $target . "\n");
my @l = ();
foreach my $e (param_list()){
if(($e eq "vulkan-string-helper") and param_get("vulkan")){
push(@l, $e);
}elsif(not($e eq "vulkan-string-helper") and param_get($e)){
push(@l, $e);
}
}
print("Enabled: " . join(" ", @l) . "\n");
open(OUT, ">", "Makefile");
print(OUT "CC = ${cc}\n");

View File

@@ -66,4 +66,8 @@ sub param_get {
}
}
sub param_list {
return sort(keys(%params));
}
1;