aboutsummaryrefslogtreecommitdiff
path: root/src/zen/xmake.lua
blob: bf595a21d20bd6a0cfff2495d34c51ca3c75be0b (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
28
29
30
31
32
-- Copyright Epic Games, Inc. All Rights Reserved.

target("zen")
    set_kind("binary")
    add_headerfiles("**.h")
    add_files("**.cpp")
    add_files("zen.cpp", {unity_ignored  = true })
    add_deps("zencore", "zenhttp", "zenstore", "zenutil")
    add_includedirs(".")
    set_symbols("debug")

    if is_mode("release") then
        set_optimize("fastest")
    end

    if is_plat("windows") then
        add_files("zen.rc")
        add_ldflags("/subsystem:console,5.02")
        add_ldflags("/LTCG")
        add_links("crypt32", "wldap32", "Ws2_32")

        add_links("dbghelp", "winhttp", "version")    -- for Sentry
    end

    if is_plat("macosx") then
        add_ldflags("-framework CoreFoundation")
        add_ldflags("-framework Foundation")
        add_ldflags("-framework Security")
        add_ldflags("-framework SystemConfiguration")
    end

    add_packages("vcpkg::cpr", "vcpkg::cxxopts", "vcpkg::mimalloc", "vcpkg::fmt")