-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathxmake.lua
More file actions
35 lines (23 loc) · 1.03 KB
/
xmake.lua
File metadata and controls
35 lines (23 loc) · 1.03 KB
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
-- Copyright (C) 2024 ilobilo
set_project("chess")
set_version("v0.1")
set_license("GPL-3.0")
add_rules("mode.release", "mode.debug")
add_rules("plugin.compile_commands.autoupdate", { outputdir = ".vscode" })
set_policy("run.autobuild", true)
add_requires("centurion")
target("chess")
set_kind("binary")
add_packages("centurion")
add_files("src/**.cpp")
add_includedirs("src")
set_languages("c++23")
set_warnings("all", "error")
set_optimize("fastest")
on_config(function (target)
target:add("defines", "DATA_FONT=\"" .. path.join(os.projectdir(), "data/FiraCode-Regular.ttf") .. "\"")
target:add("defines", "DATA_KNOOK=\"" .. path.join(os.projectdir(), "data/knook.png") .. "\"")
target:add("defines", "DATA_PIECES=\"" .. path.join(os.projectdir(), "data/pieces") .. "\"")
target:add("defines", "DATA_MOVE=\"" .. path.join(os.projectdir(), "data/move.mp3") .. "\"")
target:add("defines", "DATA_CAPTURE=\"" .. path.join(os.projectdir(), "data/capture.mp3") .. "\"")
end)