Archived
1
0
This repository has been archived on 2024-10-25. You can view files and clone it, but cannot push or open issues or pull requests.
so_long/MacroLibX/xmake.lua

77 lines
2.1 KiB
Lua
Raw Normal View History

2024-01-06 17:17:52 +01:00
--------------------------------------------------------------------------------
-- --
-- ::: :::::::: --
-- xmake.lua :+: :+: :+: --
-- +:+ +:+ +:+ --
-- By: maldavid <kbz_8.dev@akel-engine.com> +#+ +:+ +#+ --
-- +#+#+#+#+#+ +#+ --
-- Created: 2023/12/07 15:21:38 by kbz_8 #+# #+# --
2024-01-12 11:25:48 +01:00
-- Updated: 2023/12/07 15:21:38 by kbz_8 ### ########.fr --
2024-01-06 17:17:52 +01:00
-- --
--------------------------------------------------------------------------------
-- Global settings
2024-01-12 11:25:48 +01:00
add_requires("libsdl", "vulkan-headers")
2024-01-06 17:17:52 +01:00
add_rules("mode.debug", "mode.release")
set_languages("cxx17", "c99")
set_objectdir("objs/xmake/$(os)_$(arch)")
set_targetdir("./")
set_optimize("fastest")
-- Options
option("images_optimized")
set_default(true)
add_defines("IMAGE_OPTIMIZED")
option_end()
option("force_integrated_gpu")
set_default(false)
add_defines("FORCE_INTEGRATED_GPU")
option_end()
option("graphics_memory_dump")
set_default(false)
add_defines("GRAPHICS_MEMORY_DUMP")
option_end()
-- Targets
target("mlx")
set_default(true)
set_license("MIT")
set_kind("shared")
add_options("images_optimized")
add_options("force_integrated_gpu")
add_options("graphics_memory_dump")
add_includedirs("includes", "src", "third_party")
2024-01-12 11:25:48 +01:00
add_defines("MLX_BUILD")
2024-01-06 17:17:52 +01:00
add_files("src/**.cpp")
2024-01-12 11:25:48 +01:00
add_packages("libsdl", "vulkan-headers")
2024-01-06 17:17:52 +01:00
if is_mode("debug") then
add_defines("DEBUG")
end
target_end() -- optional but I think the code is cleaner with this -- optional but I think the code is cleaner with this
target("Test")
set_default(false)
set_kind("binary")
set_targetdir("test")
add_linkdirs("./")
add_deps("mlx")
2024-01-12 11:25:48 +01:00
add_files("test/main.c")
2024-01-06 17:17:52 +01:00
add_packages("libsdl")
target_end()