From 61ee96e60e2c4216f7e78c42ceddb1dba0d7e606 Mon Sep 17 00:00:00 2001
From: Alam Ed Arias <alam@srb2.org>
Date: Thu, 20 Mar 2025 10:07:52 -0400
Subject: [PATCH] vcpkg: we need to compile curl with mbedtls for WASM

---
 vcpkg.json | 33 ++++++++++++---------------------
 1 file changed, 12 insertions(+), 21 deletions(-)

diff --git a/vcpkg.json b/vcpkg.json
index 3b79ec83fb..40db9ea12b 100644
--- a/vcpkg.json
+++ b/vcpkg.json
@@ -8,11 +8,16 @@
       "name": "curl",
       "platform": "!wasm32"
     },
-    "libgme",
     {
-      "name":"libopenmpt",
-      "platform": "!wasm32"
+      "name": "curl",
+      "default-features": false,
+      "platform": "wasm32",
+      "features": [
+        "mbedtls"
+      ]
     },
+    "libgme",
+    "libopenmpt",
     "libpng",
     "miniupnpc",
     {
@@ -28,7 +33,6 @@
           "platform": "!windows"
         }
       ],
-      "platform": "!wasm32",
       "version>=": "2.30.6#2"
     },
     {
@@ -38,29 +42,16 @@
           "name":"fluidsynth",
           "platform": "!static"
         },
-        {
-          "name":"libflac",
-          "platform": "!wasm32"
-        },
+        "libflac",
         "libgme",
         "libmodplug",
-        {
-          "name":"libvorbis",
-          "platform": "!wasm32"
-        },
+        "libvorbis",
         "libxmp",
-        {
-          "name":"mpg123",
-          "platform": "!wasm32"
-        },
-        {
-          "name":"opusfile",
-          "platform": "!wasm32"
-        },
+        "mpg123",
+        "opusfile",
         "pxtone",
         "timidity"
       ],
-      "platform": "!wasm32",
       "version>=": "2.6.0#0"
     },
     "zlib"
-- 
GitLab