Files
Christian Svensson 40e2a67e72 Let the CLI start on Windows Server Core: no opengl32.dll import (#14971) (#15308)
* claim: #14971

* Let the CLI start on Windows Server Core: no opengl32.dll import (#14971)

Windows Server Core has no opengl32.dll, and solidcraft-cli.exe imported it at load time
through wgpu's GL backend, so the loader refused to start the CLI (0xC0000135, no output).
The CLI never asks wgpu for GL on Windows (native_backends() is DX12 | Vulkan there).

- solidcraft-gpu and solidcraft-viewport-gpu enable wgpu's "gles" feature everywhere but
  Windows.
- package.ps1 builds the app and the CLI in separate cargo invocations; built together,
  the app's eframe re-enabled "gles" for the CLI through feature unification.
- package.ps1 fails if solidcraft-cli.exe or solvecraft-cli.exe imports opengl32.dll
  (llvm-objdump, else dumpbin).

The app is unchanged and keeps GL as its last backend.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 19:24:24 +00:00

46 lines
1.9 KiB
TOML

[package]
name = "solidcraft-gpu"
description = "SolidCraft GPU rendering: the viewport's render pipelines, offscreen captures, and display tessellation plans evaluated in a compute shader"
version.workspace = true
edition.workspace = true
license.workspace = true
[lints]
workspace = true
[dependencies]
solidcraft-viewport-gpu = { workspace = true }
solidcraft-viewport = { workspace = true }
solidcore-record = { workspace = true }
solidcore-tess = { workspace = true }
robust = "1.2"
solidcraft-color = { workspace = true }
solidcraft-geom = { workspace = true }
solidcraft-render = { workspace = true }
wgpu = { workspace = true }
log = { workspace = true }
thiserror = { workspace = true }
serde = { workspace = true }
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
robust = { workspace = true }
pollster = { workspace = true }
# Native backends, so tests and the CLI can open a device without a window.
wgpu = { workspace = true, features = ["metal", "vulkan", "dx12"] }
# wgpu's GL backend statically imports opengl32.dll on Windows, which the Windows Server Core
# images lack, so the headless CLI there cannot even load with it linked in (STATUS_DLL_NOT_FOUND,
# 0xC0000135). Windows draws with D3D12 (WARP) or Vulkan instead; keep GL for the other platforms.
[target.'cfg(all(not(target_arch = "wasm32"), not(target_os = "windows")))'.dependencies]
wgpu = { workspace = true, features = ["gles"] }
[dev-dependencies]
image = { workspace = true }
solidcraft-kernel = { workspace = true }
# Headless pictures of real designs (capture tests), built by the real kernel, solidcore, as in the
# apps.
solidcraft-engine = { workspace = true, features = ["bundled-render-library"] }
solidcraft-io = { workspace = true }
serde_json = { workspace = true }
# The HLSL the D3D12 backend compiles (tests check it suits FXC).
naga = { workspace = true, features = ["wgsl-in", "hlsl-out"] }