aboutsummaryrefslogtreecommitdiff
path: root/cmake/CopyAssets.cmake
diff options
context:
space:
mode:
authorisaiah <isaiahjclark21@gmail.com>2026-03-01 15:46:25 -0700
committerisaiah <isaiahjclark21@gmail.com>2026-03-01 15:47:31 -0700
commit9a85a1cd07edf5c45f11fd6654825287b1069262 (patch)
tree6766bb4a008096b675ef0352344f256b2e347317 /cmake/CopyAssets.cmake
parent6cbdc8ac9b9f6e0623292c04955f0f3cbfb4e490 (diff)
Add functions to ensure directory creation and copy legacy redistributables
Diffstat (limited to 'cmake/CopyAssets.cmake')
-rw-r--r--cmake/CopyAssets.cmake11
1 files changed, 11 insertions, 0 deletions
diff --git a/cmake/CopyAssets.cmake b/cmake/CopyAssets.cmake
index 661ba785..47b19ca7 100644
--- a/cmake/CopyAssets.cmake
+++ b/cmake/CopyAssets.cmake
@@ -18,6 +18,10 @@ function(copy_tree_if_exists src_rel dst_rel)
endif()
endfunction()
+function(ensure_dir rel_path)
+ file(MAKE_DIRECTORY "${OUTPUT_DIR}/${rel_path}")
+endfunction()
+
function(copy_file_if_exists src_rel dst_rel)
set(_src "${PROJECT_SOURCE_DIR}/${src_rel}")
set(_dst "${OUTPUT_DIR}/${dst_rel}")
@@ -61,6 +65,13 @@ else()
copy_tree_if_exists("Windows64Media" "Windows64Media")
endif()
+# Some runtime code asserts if this directory tree is missing.
+ensure_dir("Windows64/GameHDD")
+
+# Keep legacy runtime redistributables in a familiar location.
+copy_tree_if_exists("Windows64/Miles/lib/redist64" "redist64")
+copy_tree_if_exists("Windows64/Iggy/lib/redist64" "redist64")
+
# Runtime DLLs required at launch.
copy_first_existing("iggy_w64.dll"
"Minecraft.Client/Windows64/Iggy/lib/redist64/iggy_w64.dll"