-
Notifications
You must be signed in to change notification settings - Fork 0
/
xmake.lua
46 lines (34 loc) · 1.6 KB
/
xmake.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
-- **************************************************************************** --
-- --
-- ::: :::::::: --
-- xmake.lua :+: :+: :+: --
-- +:+ +:+ +:+ --
-- By: maldavid <[email protected]> +#+ +:+ +#+ --
-- +#+#+#+#+#+ +#+ --
-- Created: 2023/12/19 14:51:42 by maldavid #+# #+# --
-- Updated: 2023/12/27 22:31:25 by maldavid ### ########.fr --
-- --
-- **************************************************************************** --
add_requires("imgui v1.90-docking", { configs = { sdl2 = true }})
add_requires("libsdl", "libsdl_image", "sol2")
add_rules("mode.debug", "mode.release")
set_languages("cxx17")
set_objectdir("build/objects/$(os)_$(arch)")
set_targetdir("build/$(os)_$(arch)")
set_optimize("fastest")
target("MacroUnitTest")
set_default(true)
set_license("MIT")
set_kind("binary")
set_targetdir("./")
add_packages("libsdl", "libsdl_image", "imgui", "sol2")
add_includedirs("includes", "srcs")
add_files("srcs/**.cpp")
set_pcxxheader("includes/pch.h")
add_defines("SDL_MAIN_HANDLED")
if is_mode("debug") then
add_defines("MLX_UT_DEBUG")
elseif is_mode("release") then
add_defines("MLX_UT_RELEASE")
end
target_end()