-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathxmake.lua
More file actions
45 lines (35 loc) · 1 KB
/
xmake.lua
File metadata and controls
45 lines (35 loc) · 1 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
36
37
38
39
40
41
42
43
44
45
-- set minimum xmake version
set_xmakever("2.8.2")
-- includes
includes("lib/commonlibsse")
includes("extern/styyx-utils")
-- set project
set_project("breaking-bows")
set_version("3.0.0")
set_license("GPL-3.0")
-- set defaults
set_languages("c++23")
set_warnings("allextra")
-- add rules
add_rules("mode.debug", "mode.releasedbg")
add_rules("plugin.vsxmake.autoupdate")
-- set policies
set_policy("package.requires_lock", true)
set_config("commonlib_toml", true)
-- targets
target("breaking-bows")
-- add dependencies to target
add_deps("commonlibsse")
add_deps("styyx-util")
-- add commonlibsse plugin
add_rules("commonlibsse.plugin", {
name = "breaking-bows",
author = "styyx"
})
-- add src files
add_files("src/**.cpp")
add_headerfiles("src/**.h")
add_includedirs("src")
set_pcxxheader("src/pch.h")
add_extrafiles("contrib/**.toml", {public=true}, "contrib/**.json", {public=true})
add_includedirs("extern/clib-util/include", {public = true})