From b2db4f0ba7838e97cf72ed13d521d5aaabe8a5d0 Mon Sep 17 00:00:00 2001 From: NishiOwO Date: Sat, 8 Nov 2025 02:25:57 +0000 Subject: [PATCH] better git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@638 b9cfdab3-6d41-4d17-bbe4-086880011989 --- Makefile.pl | 12 +++++++++++- pl/utils.pl | 4 ++++ 2 files changed, 15 insertions(+), 1 deletion(-) 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;