diff --git a/Makefile.pl b/Makefile.pl index 67f83fe..3c5588f 100755 --- a/Makefile.pl +++ b/Makefile.pl @@ -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"); diff --git a/pl/utils.pl b/pl/utils.pl index 8f2a050..a5bf654 100644 --- a/pl/utils.pl +++ b/pl/utils.pl @@ -66,4 +66,8 @@ sub param_get { } } +sub param_list { + return sort(keys(%params)); +} + 1;