-
Notifications
You must be signed in to change notification settings - Fork 2
/
xmake.lua
47 lines (37 loc) · 986 Bytes
/
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
47
-- set xmake version
set_xmakever("2.9.4")
-- include local folders
includes("extern/commonlibf4")
-- set project
set_project("BakaPowerArmorHUD")
set_version("2.0.0")
set_license("GPL-3.0")
-- set defaults
set_arch("x64")
set_languages("c++23")
set_optimize("faster")
set_warnings("allextra", "error")
set_defaultmode("releasedbg")
-- enable lto
set_policy("build.optimization.lto", true)
-- add rules
add_rules("mode.debug", "mode.releasedbg")
add_rules("plugin.vsxmake.autoupdate")
-- add config
set_config("rex_ini", true)
-- setup targets
target("BakaPowerArmorHUD")
-- bind local dependencies
add_deps("commonlibf4")
-- add commonlibf4 plugin
add_rules("commonlibf4.plugin", {
name = "BakaPowerArmorHUD",
author = "shad0wshayd3"
})
-- add source files
add_files("src/**.cpp")
add_headerfiles("src/**.h")
add_includedirs("src")
set_pcxxheader("src/PCH.h")
-- add extra files
add_extrafiles(".clang-format")