forked from tiltedphoques/TiltedEvolution
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathxmake.lua
30 lines (26 loc) · 954 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
local function build_encoding(name, def)
target(name)
set_kind("static")
set_group("common")
add_defines(def)
add_includedirs(".", "../", {public = true})
add_headerfiles("**.h|Structs/Fallout4/**|Structs/Skyrim/**", {prefixdir = "Encoding"})
add_files("**.cpp|Structs/Fallout4/**|Structs/Skyrim/**")
set_pcxxheader("EncodingPch.h")
if is_plat("linux") then
add_cxxflags("-fPIC")
end
if name == "SkyrimEncoding" then
add_files("Structs/Skyrim/**.cpp")
add_headerfiles("Structs/Skyrim/**.h")
add_includedirs("Structs/Skyrim")
end
if name == "FalloutEncoding" then
add_files("Structs/Fallout4/**.cpp")
add_headerfiles("Structs/Fallout4/**.h")
add_includedirs("Structs/Fallout4")
end
add_packages("hopscotch-map", "glm", "tiltedcore")
end
build_encoding("SkyrimEncoding", "TP_SKYRIM=1")
build_encoding("FalloutEncoding", "TP_FALLOUT=1")