From c079e8620469a051aba312719f373a07c1f01284 Mon Sep 17 00:00:00 2001 From: Mike Smith Date: Mon, 2 Sep 2024 15:53:44 +0800 Subject: [PATCH] support for wayland --- luisa_compute/Cargo.toml | 1 + luisa_compute_sys/Cargo.toml | 2 +- luisa_compute_sys/build.rs | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) 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") {