aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/winsock/xmake.lua
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2023-10-10 13:30:07 +0200
committerGitHub <[email protected]>2023-10-10 13:30:07 +0200
commit7905d0d21af95c6016768d7a8a81dd9204b34d24 (patch)
tree076329f5fad1c33503ee611f6399853da2490567 /src/plugins/winsock/xmake.lua
parentcache reference tracking (#455) (diff)
downloadzen-7905d0d21af95c6016768d7a8a81dd9204b34d24.tar.xz
zen-7905d0d21af95c6016768d7a8a81dd9204b34d24.zip
experimental pluggable transport support (#436)
this change adds a `--http=plugin` mode where we support pluggable transports. Currently this defaults to a barebones blocking winsock implementation but there is also support for dynamic loading of transport plugins, which will be further developed in the near future.
Diffstat (limited to 'src/plugins/winsock/xmake.lua')
-rw-r--r--src/plugins/winsock/xmake.lua18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/plugins/winsock/xmake.lua b/src/plugins/winsock/xmake.lua
new file mode 100644
index 000000000..a4ef02a98
--- /dev/null
+++ b/src/plugins/winsock/xmake.lua
@@ -0,0 +1,18 @@
+-- Copyright Epic Games, Inc. All Rights Reserved.
+
+target("winsock")
+ set_kind("shared")
+ add_headerfiles("**.h")
+ add_files("**.cpp")
+ add_includedirs(".", "../../zenhttp/include/zenhttp", "../../zencore/include")
+ set_symbols("debug")
+
+ add_cxxflags("/showIncludes")
+
+ if is_mode("release") then
+ set_optimize("fastest")
+ end
+
+ if is_plat("windows") then
+ add_links("Ws2_32")
+ end