Ver Fonte

CI,build-aux: Add uthash on Linux

tytan652 há 2 anos atrás
pai
commit
0faa661f2b

+ 1 - 0
.github/scripts/utils.zsh/setup_linux

@@ -90,6 +90,7 @@ sudo apt-get install -y --no-install-recommends \
   libmbedtls-dev \
   libgl1-mesa-dev \
   libjansson-dev \
+  uthash-dev \
   libluajit-5.1-dev python3-dev \
   libx11-dev libxcb-randr0-dev libxcb-shm0-dev libxcb-xinerama0-dev \
   libxcb-composite0-dev libxinerama-dev libxcb1-dev libx11-xcb-dev libxcb-xfixes0-dev \

+ 1 - 0
build-aux/com.obsproject.Studio.json

@@ -67,6 +67,7 @@
         "modules/50-v4l-utils.json",
         "modules/90-asio.json",
         "modules/90-nlohmann-json.json",
+        "modules/90-uthash.json",
         "modules/90-websocketpp.json",
         "modules/99-cef.json",
         {

+ 19 - 0
build-aux/modules/90-uthash.json

@@ -0,0 +1,19 @@
+{
+    "name": "uthash",
+    "buildsystem": "simple",
+    "build-commands": [
+        "mkdir -p /app/include",
+        "cp src/{utarray.h,uthash.h,utlist.h,utringbuffer.h,utstack.h,utstring.h} /app/include/"
+    ],
+    "cleanup": [
+        "*"
+    ],
+    "sources": [
+        {
+            "type": "git",
+            "url": "https://github.com/troydhanson/uthash.git",
+            "tag": "v2.3.0",
+            "commit": "e493aa90a2833b4655927598f169c31cfcdf7861"
+        }
+    ]
+}