Add dlopen feature

If the dlopen feature is disabled, system libraries depended on by
wayland-client and smithay-client-toolkit will be statically linked.
This commit is contained in:
Milkey Mouse 2021-02-26 02:23:24 -08:00 committed by Victor Berger
parent b2b066c9e5
commit 2833d93b48

View file

@ -11,7 +11,11 @@ keywords = ["clipboard", "wayland"]
[dependencies]
sctk = { package = "smithay-client-toolkit", version = "0.14", default-features = false }
wayland-client = { version = "0.28", features = ["dlopen"] }
wayland-client = { version = "0.28", features = ["use_system_lib"] }
[dev-dependencies]
sctk = { package = "smithay-client-toolkit", version = "0.14"}
sctk = { package = "smithay-client-toolkit", version = "0.14", default-features = false, features = ["calloop"] }
[features]
default = ["dlopen"]
dlopen = ["sctk/dlopen", "wayland-client/dlopen"]