aboutsummaryrefslogtreecommitdiff
path: root/thirdparty/xmake.lua
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2025-10-15 22:03:56 +0200
committerGitHub Enterprise <[email protected]>2025-10-15 22:03:56 +0200
commit5c3ead7d717512aaae237d9009c312e3f61d154d (patch)
tree3ff3716d77d5102a354b08eba8ec729019fc0626 /thirdparty/xmake.lua
parentmove file i/o related files to separate file and remove duplicated code (#576) (diff)
downloadzen-5c3ead7d717512aaae237d9009c312e3f61d154d.tar.xz
zen-5c3ead7d717512aaae237d9009c312e3f61d154d.zip
added separate xmake.lua for thirdparty (#578)
Moves out third-party stuff from zencore Establishes new pattern for incorporating thirdparty code. The integration is cleaner, clearer and also surfaces the code in the generated .sln
Diffstat (limited to 'thirdparty/xmake.lua')
-rw-r--r--thirdparty/xmake.lua45
1 files changed, 45 insertions, 0 deletions
diff --git a/thirdparty/xmake.lua b/thirdparty/xmake.lua
new file mode 100644
index 000000000..d745a5109
--- /dev/null
+++ b/thirdparty/xmake.lua
@@ -0,0 +1,45 @@
+target('utfcpp')
+ set_kind("headeronly")
+ set_group("thirdparty")
+ add_headerfiles("utfcpp/**.h")
+ add_includedirs("utfcpp/source", {public=true})
+
+target('oodle')
+ set_kind('headeronly')
+ set_group("thirdparty")
+ add_includedirs("Oodle/include", {public=true})
+ if is_os("windows") then
+ add_linkdirs("Oodle/lib/Win64", {public=true})
+ add_links("oo2core_win64", {public=true})
+ elseif is_os("linux") then
+ add_linkdirs("Oodle/lib/Linux_x64", {public=true})
+ add_links("oo2corelinux64", {public=true})
+ add_syslinks("pthread", {public=true})
+ elseif is_os("macosx") then
+ add_linkdirs("Oodle/lib/Mac_x64", {public=true})
+ add_links("oo2coremac64", {public=true})
+ end
+
+target('timesinceprocessstart')
+ set_kind('headeronly')
+ set_group('thirdparty')
+ add_includedirs("GetTimeSinceProcessStart", {public=true})
+ add_headerfiles("GetTimeSinceProcessStart/**.h")
+
+target('ue-trace')
+ set_kind('headeronly')
+ set_group('thirdparty')
+ add_includedirs("trace", {public=true})
+ add_headerfiles("trace/**.h")
+
+target('rpmalloc')
+ set_kind("static")
+ set_group('thirdparty')
+ set_languages("c17", "cxx20")
+ if is_os("windows") then
+ add_cflags("/experimental:c11atomics")
+ end
+ add_defines("RPMALLOC_FIRST_CLASS_HEAPS=1", "ENABLE_STATISTICS=1", "ENABLE_OVERRIDE=0")
+ add_files("rpmalloc/rpmalloc.c")
+ add_headerfiles("rpmalloc/**.h")
+ add_includedirs("rpmalloc", {public=true})