updating license year, fixing fetch dependencies script, adding VMA auto update, removing useless dependency in xmake build

This commit is contained in:
2024-01-03 00:01:30 +01:00
parent e15aa45627
commit 0cba8d011e
10 changed files with 16 additions and 7 deletions

View File

@@ -1,5 +1,5 @@
MIT License MIT License
Copyright (c) 2022-2023 kbz_8 Copyright (c) 2022-2024 kbz_8
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal

View File

Before

Width:  |  Height:  |  Size: 6.2 KiB

After

Width:  |  Height:  |  Size: 6.2 KiB

BIN
example/Test git.filemode.executable_file

Binary file not shown.

View File

@@ -3,13 +3,23 @@
# Update volk # Update volk
rm -f ../third_party/volk.c rm -f ../third_party/volk.c
rm -f ../third_party/volk.h rm -f ../third_party/volk.h
wget https://api.github.com/repos/zeux/volk/zipball/1.3.270 -O volk.zip tag_name=$(curl -sL https://api.github.com/repos/zeux/Volk/releases/latest | jq -r '.tag_name')
wget https://api.github.com/repos/zeux/volk/zipball/$tag_name -O volk.zip
unzip -o volk.zip -d ../third_party/ unzip -o volk.zip -d ../third_party/
mv ../third_party/zeux-volk*/volk.h ../third_party mv ../third_party/zeux-volk*/volk.h ../third_party
mv ../third_party/zeux-volk*/volk.c ../third_party mv ../third_party/zeux-volk*/volk.c ../third_party
rm -rf ../third_party/zeux-volk* rm -rf ../third_party/zeux-volk*
rm volk.zip rm volk.zip
# Update VMA
rm -f ../third_party/vma.h
tag_name=$(curl -sL https://api.github.com/repos/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator/releases/latest | jq -r '.tag_name')
wget https://api.github.com/repos/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator/zipball/$tag_name -O vma.zip
unzip -o vma.zip -d ../third_party/
mv ../third_party/GPUOpen-LibrariesAndSDKs-VulkanMemoryAllocator*/include/vk_mem_alloc.h ../third_party/vma.h
rm -rf ../third_party/GPUOpen-LibrariesAndSDKs-VulkanMemoryAllocator*
rm vma.zip
# Update Vulkan headers # Update Vulkan headers
rm -rf ../third_party/vulkan rm -rf ../third_party/vulkan
rm -rf ../third_party/vk_video rm -rf ../third_party/vk_video

View File

@@ -1,4 +1,4 @@
{
name name
Memcheck:Leak Memcheck:Leak
fun:*alloc fun:*alloc

View File

@@ -6,13 +6,12 @@
-- By: maldavid <kbz_8.dev@akel-engine.com> +#+ +:+ +#+ -- -- By: maldavid <kbz_8.dev@akel-engine.com> +#+ +:+ +#+ --
-- +#+#+#+#+#+ +#+ -- -- +#+#+#+#+#+ +#+ --
-- Created: 2023/12/07 15:21:38 by kbz_8 #+# #+# -- -- Created: 2023/12/07 15:21:38 by kbz_8 #+# #+# --
-- Updated: 2023/12/07 15:21:38 by kbz_8 ### ########.fr -- -- Updated: 2024/01/02 23:40:20 by kbz_8 ### ########.fr --
-- -- -- --
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
-- Global settings -- Global settings
add_requires("vulkan-headers")
add_requires("libsdl", {configs = { sdlmain = false }}) add_requires("libsdl", {configs = { sdlmain = false }})
add_rules("mode.debug", "mode.release") add_rules("mode.debug", "mode.release")
@@ -55,7 +54,7 @@ target("mlx")
add_files("src/**.cpp") add_files("src/**.cpp")
add_packages("libsdl", "vulkan-headers") add_packages("libsdl")
if is_mode("debug") then if is_mode("debug") then
add_defines("DEBUG") add_defines("DEBUG")
@@ -71,7 +70,7 @@ target("Test")
add_deps("mlx") add_deps("mlx")
add_files("test/main.c") add_files("example/main.c")
add_defines("SDL_MAIN_HANDLED") add_defines("SDL_MAIN_HANDLED")