aboutsummaryrefslogtreecommitdiff
path: root/src/zenhttp/xmake.lua
blob: 1d4b56da85f0d140052413d197d76e6a984b98eb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
-- 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_includedirs("include", {public=true})
    add_deps("zencore", "zentelemetry", "transport-sdk", "asio", "cpr")
    add_packages("http_parser", "json11")
    add_options("httpsys")

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

    if is_plat("windows") then
        add_syslinks("winhttp")
    end