Skip to content

Commit bffb42b

Browse files
committed
fix(cli): align SDK profile metadata
1 parent 605eb9a commit bffb42b

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

‎src/sdk/SdkProfiles.cpp‎

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ namespace vix::cli::sdk
3737
const std::vector<std::string> kBaseModules{
3838
"core", "json", "error", "path", "fs", "io", "env", "os",
3939
"utils", "log", "async", "time", "process", "threadpool", "template",
40-
"ui", "note", "reply", "net", "sync", "conversion"};
40+
"ui", "note", "reply", "net", "sync", "engine", "conversion"};
4141

4242
std::string lower_copy(std::string s)
4343
{
@@ -411,15 +411,19 @@ namespace vix::cli::sdk
411411
"xcode-select --install",
412412
"brew install cmake ninja pkg-config"};
413413
const std::vector<std::string> baseWindowsDeps{
414-
"Visual Studio 2022 Build Tools", "CMake", "Ninja", "Git",
415-
"WebView2 Runtime"};
414+
"Visual Studio 2022 Build Tools", "CMake", "Ninja", "Git"};
415+
416+
std::vector<std::string> webviewWindowsDeps = baseWindowsDeps;
417+
webviewWindowsDeps.emplace_back("WebView2 Runtime");
416418

417419
std::vector<std::string> opensslLinuxDeps = baseLinuxDeps;
418420
opensslLinuxDeps.emplace_back("libssl-dev");
419421
std::vector<std::string> opensslMacosDeps = baseMacosDeps;
420422
opensslMacosDeps.emplace_back("brew install openssl@3");
421423
std::vector<std::string> opensslWindowsDeps = baseWindowsDeps;
422424
opensslWindowsDeps.emplace_back("vcpkg install openssl --triplet x64-windows");
425+
std::vector<std::string> opensslWebviewWindowsDeps = opensslWindowsDeps;
426+
opensslWebviewWindowsDeps.emplace_back("WebView2 Runtime");
423427

424428
if (profile == "default")
425429
return make_info(profile, "Default SDK",
@@ -447,7 +451,7 @@ namespace vix::cli::sdk
447451
"SDK for desktop apps using the Vix UI desktop shell.",
448452
{},
449453
sorted_unique(std::vector<std::string>(baseLinuxDeps.begin(), baseLinuxDeps.end())),
450-
baseMacosDeps, baseWindowsDeps,
454+
baseMacosDeps, webviewWindowsDeps,
451455
{"On Linux, WebKitGTK is required for the desktop WebView backend."});
452456

453457
if (profile == "p2p")
@@ -476,7 +480,7 @@ namespace vix::cli::sdk
476480
{"websocket", "realtime", "middleware", "validation", "webrpc",
477481
"requests", "crypto", "db", "orm", "kv", "cache", "p2p",
478482
"p2p_http", "game", "agent", "tests"},
479-
opensslLinuxDeps, opensslMacosDeps, opensslWindowsDeps,
483+
opensslLinuxDeps, opensslMacosDeps, opensslWebviewWindowsDeps,
480484
{"This profile is heavier. Prefer a smaller profile when possible."});
481485

482486
return std::nullopt;

0 commit comments

Comments
 (0)