diff --git a/luisa_compute/Cargo.toml b/luisa_compute/Cargo.toml index 9cb632a..58472ab 100644 --- a/luisa_compute/Cargo.toml +++ b/luisa_compute/Cargo.toml @@ -47,5 +47,6 @@ strict = ["luisa_compute_sys/strict"] remote = ["luisa_compute_sys/remote"] cpu = ["luisa_compute_sys/cpu"] oidn = ["luisa_compute_sys/oidn"] +wayland = ["luisa_compute_sys/wayland"] glam = ["dep:glam"] nalgebra = ["dep:nalgebra"] diff --git a/luisa_compute_sys/Cargo.toml b/luisa_compute_sys/Cargo.toml index e032c3c..c084f9c 100644 --- a/luisa_compute_sys/Cargo.toml +++ b/luisa_compute_sys/Cargo.toml @@ -21,4 +21,4 @@ remote = [] metal = [] dx = [] oidn = [] - +wayland = [] diff --git a/luisa_compute_sys/build.rs b/luisa_compute_sys/build.rs index 8e84c15..4ecceda 100644 --- a/luisa_compute_sys/build.rs +++ b/luisa_compute_sys/build.rs @@ -50,6 +50,7 @@ fn cmake_build() -> PathBuf { set_from_env!("PYTHON", "LUISA_COMPUTE_ENABLE_PYTHON"); set_from_env!("GUI", "LUISA_COMPUTE_ENABLE_GUI"); set_from_env!("OIDN", "LUISA_COMPUTE_DOWNLOAD_OIDN"); + set_from_env!("WAYLAND", "LUISA_COMPUTE_ENABLE_WAYLAND"); config.define( "LUISA_COMPUTE_CHECK_BACKEND_DEPENDENCIES", if cfg!(feature = "strict") {