diff options
Diffstat (limited to 'src/zencore/xmake.lua')
| -rw-r--r-- | src/zencore/xmake.lua | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/zencore/xmake.lua b/src/zencore/xmake.lua index fe12c14e8..c5a3ea562 100644 --- a/src/zencore/xmake.lua +++ b/src/zencore/xmake.lua @@ -39,6 +39,14 @@ target('zencore') if is_plat("linux", "macosx") then add_packages("openssl3") -- required for crypto end + + if is_plat("linux") and has_config("zenlibsecret") then + -- libsecret-1 is pulled from the system package (libsecret-1-dev on + -- Debian/Ubuntu, libsecret-devel on Fedora). xmake's package recipe + -- resolves include dirs and link flags through pkg-config. + add_requires("libsecret") + add_packages("libsecret") + end add_packages( "gsl-lite", @@ -79,6 +87,11 @@ target('zencore') add_syslinks("rt") end + if is_plat("macosx") then + -- Security.framework for TryProtectData/TryUnprotectData (Keychain) + add_frameworks("Security", "CoreFoundation") + end + if is_plat("windows") then add_syslinks("Advapi32") add_syslinks("Dbghelp") |