Bläddra i källkod

CI,build-aux: Add Libqrcodegencpp on Linux

tytan652 2 år sedan
förälder
incheckning
ad243f2355

+ 1 - 1
CI/linux/01_install_dependencies.sh

@@ -100,7 +100,7 @@ install_dependencies() {
         "cef ${LINUX_CEF_BUILD_VERSION:-${CI_LINUX_CEF_VERSION}}"
         "plugin-deps libasound2-dev libfdk-aac-dev libfontconfig-dev libfreetype6-dev libjack-jackd2-dev \
          libpulse-dev libsndio-dev libspeexdsp-dev libudev-dev libv4l-dev libva-dev libvlc-dev libdrm-dev \
-         nlohmann-json3-dev libwebsocketpp-dev libasio-dev libvpl-dev"
+         nlohmann-json3-dev libwebsocketpp-dev libasio-dev libvpl-dev libqrcodegencpp-dev"
     )
 
     sudo apt-get -qq update

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

@@ -57,6 +57,7 @@
         "modules/40-usrsctp.json",
         "modules/50-jansson.json",
         "modules/50-libdatachannel.json",
+        "modules/50-libqrcodegencpp.json",
         "modules/50-ntv2.json",
         "modules/50-pipewire.json",
         "modules/50-swig.json",

+ 26 - 0
build-aux/modules/50-libqrcodegencpp.json

@@ -0,0 +1,26 @@
+{
+    "name": "libqrcodegencpp",
+    "buildsystem": "cmake-ninja",
+    "builddir": true,
+    "config-opts": [
+        "-DBUILD_SHARED_LIBS=ON"
+    ],
+    "post-install": [
+        "rm -rf /app/include/qrcodegen",
+        "rm -rf /app/lib/cmake/qrcodegen",
+        "rm -rf /app/lib/pkgconfig/qrcodegen.pc",
+        "rm -rf /app/lib/libqrcodegen.*"
+    ],
+    "sources": [
+        {
+            "type": "archive",
+            "url": "https://github.com/nayuki/QR-Code-generator/archive/refs/tags/v1.8.0.tar.gz",
+            "sha256": "2ec0a4d33d6f521c942eeaf473d42d5fe139abcfa57d2beffe10c5cf7d34ae60"
+        },
+        {
+            "type": "archive",
+            "url": "https://github.com/EasyCoding/qrcodegen-cmake/archive/refs/tags/v1.8.0-cmake2.tar.gz",
+            "sha256": "04e0dc2d7b19457928172e338b5b22216ad23a9dee8d26be4fb05fc39ea59904"
+        }
+    ]
+}