gb-emu/gui/Cargo.toml

46 lines
1.5 KiB
TOML

[package]
name = "gui"
version = "0.1.0"
edition = "2021"
description = "TWINC Game Boy (CGB/DMG) emulator GUI"
[package.metadata.bundle]
identifier = "com.alexjanka.TWINC.gui"
osx_file_extensions = [[["Game Boy ROM", "Viewer"], ["gb", "gbc"]]]
[features]
default = ["wgpu", "macos-ui", "crossplatform-ui"]
macos-ui = ["cacao", "objc", "uuid"]
crossplatform-ui = ["gtk", "adw", "glib-build-tools"]
force-crossplatform-ui = ["crossplatform-ui"]
wgpu = ["frontend-common/wgpu"]
pixels = ["frontend-common/pixels"]
vulkan = ["frontend-common/vulkan"]
[dependencies]
adw = { version = "0.7.0", package = "libadwaita", features = [
"v1_4",
"gtk_v4_6",
], optional = true }
frontend-common = { workspace = true }
gb-emu-lib = { workspace = true }
gtk = { version = "0.9.0", package = "gtk4", features = [
"v4_12",
], optional = true }
twinc_emu_vst = { path = "../gb-vst", default-features = false }
raw-window-handle = { workspace = true }
cpal = "0.15.3"
log = { workspace = true }
env_logger = { workspace = true }
thiserror = { workspace = true }
serde = { version = "1.0.205", features = ["derive"] }
anyhow = "1.0.86"
[target.'cfg(any(target_os = "macos"))'.dependencies]
cacao = { git = "https://git.alexjanka.com/alex/cacao", optional = true }
objc = { version = "=0.3.0-beta.3", package = "objc2", optional = true }
uuid = { version = "1.10.0", features = ["v4", "fast-rng"], optional = true }
[build-dependencies]
glib-build-tools = { version = "0.20.0", optional = true }