aboutsummaryrefslogtreecommitdiff
path: root/src/zenhttp/xmake.lua
blob: b4c65ea96386394a730f0af04c1200bd66c1e5e5 (plain) (blame)
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
-- Copyright Epic Games, Inc. All Rights Reserved.

target('zenhttp')
    set_kind("static")
    set_group("libs")
    add_headerfiles("**.h")
    add_files("**.cpp")
    add_files("servers/httpsys.cpp", {unity_ignored=true})
    add_files("servers/wshttpsys.cpp", {unity_ignored=true})
    add_includedirs("include", {public=true})
    add_deps("zencore", "zentelemetry", "transport-sdk", "asio")
    if has_config("zencpr") then
        add_deps("cpr")
    else
        remove_files("clients/httpclientcpr.cpp")
    end
    add_packages("http_parser", "json11")
    add_options("httpsys")

    if is_plat("linux", "macosx") then
        add_packages("openssl3")
    end

    if is_plat("linux") then
        add_syslinks("dl") -- TODO: is libdl needed?
    end