(dali_env) Check if vulkan is installed when outputting setenv 26/321826/1
authorAdeel Kazmi <adeel.kazmi@samsung.com>
Fri, 28 Mar 2025 18:05:50 +0000 (18:05 +0000)
committerAdeel Kazmi <adeel.kazmi@samsung.com>
Fri, 28 Mar 2025 18:05:50 +0000 (18:05 +0000)
Change-Id: I374cc14ffe3dd09d313411a70ca7e10a18e78313

build/scripts/dali_env

index 595745f6cd2dd08c263eeeb2944411b9c99592e1..013350dc66b313ac04701f4704b6334aa974427c 100755 (executable)
@@ -1,6 +1,6 @@
 #!/usr/bin/perl
 
-# Copyright (c) 2024 Samsung Electronics Co., Ltd.
+# Copyright (c) 2025 Samsung Electronics Co., Ltd.
 
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
@@ -244,7 +244,8 @@ sub create_setenv
 {
     # Setup vulkan environment if necessary
     my $vulkan_env="";
-    if(defined($opt_vulkan))
+    my $potential_setenv_path="${root_path}/vulkan/${opt_vk_version}/setup-env.sh";
+    if(defined($opt_vulkan) || -e $potential_setenv_path)
     {
         $vulkan_env=<<"EOF";
 export VULKAN_VERSION=${opt_vk_version}