cli/gui: expose renderer as feature

This commit is contained in:
Alex Janka 2024-08-11 12:21:16 +10:00
parent 1efe321c05
commit 138e77bb4c
3 changed files with 11 additions and 2 deletions

View file

@ -7,6 +7,12 @@ description = "TWINC Game Boy (CGB/DMG) emulator CLI"
[package.metadata.bundle]
identifier = "com.alexjanka.TWINC.cli"
[features]
default = ["wgpu"]
wgpu = ["frontend-common/wgpu"]
pixels = ["frontend-common/pixels"]
vulkan = ["frontend-common/vulkan"]
[dependencies]
frontend-common = { workspace = true }
gb-emu-lib = { workspace = true }

View file

@ -5,7 +5,7 @@ edition = "2021"
description = "Frontend common library for TWINC Game Boy (CGB/DMG) emulator"
[features]
default = ["wgpu"]
default = []
pixels = ["gb-emu-lib/pixels-renderer"]
vulkan = ["gb-emu-lib/vulkan-renderer", "gb-emu-lib/vulkan-debug"]
vulkan-static = ["vulkan", "gb-emu-lib/vulkan-static"]

View file

@ -9,10 +9,13 @@ identifier = "com.alexjanka.TWINC.gui"
osx_file_extensions = [[["Game Boy ROM", "Viewer"], ["gb", "gbc"]]]
[features]
default = ["macos-ui", "crossplatform-ui"]
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 = [